gt
stringclasses
1 value
context
stringlengths
2.49k
119k
"""Core authentication views.""" import logging import oath from django.http import ( HttpResponse, HttpResponseRedirect, Http404, JsonResponse) from django.template.loader import render_to_string from django.urls import reverse from django.utils import translation from django.utils.encoding import force_bytes f...
import numpy as np import matplotlib.pyplot as plt import time import random import bisect import json import sys from numpy import linalg as alg from scipy import sparse from sklearn import cross_validation as cv from itertools import product from collections import defaultdict from functools import partial from multi...
"""Offer reusable conditions.""" import asyncio from collections import deque from datetime import datetime, timedelta import functools as ft import logging import re import sys from typing import Any, Callable, Container, List, Optional, Set, Union, cast from homeassistant.components import zone as zone_cmp from home...
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
import sublime import sublime_plugin import re import os import codecs # import sys # import platform # from .sublime_helper import * try: from . import scopes except (ImportError, ValueError): import scopes try: from .sublime_helper import SublimeHelper except (ImportError, ValueError): from sublime_he...
__author__ = 'thomas' from jinja2 import nodes from jinja2.ext import Extension import inspect class Property(object): def __init__(self, type=None, template=None, css_classes="", label=None): self.type = type self.template = template self.css_classes = css_classes self.label = la...
import pandas as pd import numpy as np import pyranges as pr from copy import deepcopy from kipoi.metadata import GenomicRanges from kipoi.data import Dataset, kipoi_dataloader from kipoi_conda.dependencies import Dependencies from kipoiseq.transforms import ReorderedOneHot from kipoi.specs import Author from kipoi_uti...
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins 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 bitcoind or Bit...
# 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...
import tensorflow as tf import numpy as np class BaseController: def __init__(self, input_size, output_size, memory_read_heads, word_size, shift_range, batch_size=1): """ constructs a controller as described in the "Neural Turing Machines" paper https://arxiv.org/abs/1410.5401 Par...
''' Tag To Header Version 2.0.1 By Joe Hiatt, Scott Kennedy(1), Brendan Kohrn and Mike Schmitt(1) (1) Department of Pathology, University of Washington School of Medicine, Seattle, WA 98195 March 24, 2014 Isolate duplex tags, move them from within the sequenced read to the header region, and remove the spacer region....
from tastypie.authorization import Authorization from tastypie.resources import ModelResource, fields, ALL_WITH_RELATIONS from openpds.authentication import OAuth2Authentication from openpds.authorization import PDSAuthorization from openpds.tastypie_internaldatastore import IDSAnswerResource from openpds import settin...
# 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 ...
import os import os.path import tempfile import shutil from nose.tools import eq_ from build_pack_utils import utils from compile_helpers import setup_webdir_if_it_doesnt_exist from compile_helpers import convert_php_extensions from compile_helpers import is_web_app from compile_helpers import find_stand_alone_app_to_r...
# -*- coding: utf-8 -*- """ Copyright (C) 2017 Sebastian Golasch (plugin.video.netflix) Copyright (C) 2018 Caphm (original implementation module) Navigation for classic plugin directory listing mode SPDX-License-Identifier: MIT See LICENSES/MIT.md for more information. """ from __future__ import ab...
#!/usr/bin/env python # # Use the raw transactions API to spend bitcoins 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 bitcoind or Bit...
#!/usr/bin/env python # coding: utf-8 import itertools import logging import unittest import urllib import environment import keyspace_util import utils from protocols_flavor import protocols_flavor from vtdb import dbexceptions from vtdb import vtgate_cursor from vtdb import vtgate_client shard_0_master = None sh...
# Copyright 2015 Michael DeHaan <michael.dehaan/gmail> # # 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...
# Copyright 2015, 2016 IBM Corp. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
<<<<<<< HEAD <<<<<<< HEAD """Word completion for GNU readline. The completer completes keywords, built-ins and globals in a selectable namespace (which defaults to __main__); when completing NAME.NAME..., it evaluates (!) the expression up to the last dot and completes its attributes. It's very cool to do "import sys...
"""Provides functionality to interact with image processing services.""" import asyncio from datetime import timedelta import logging from typing import Tuple from PIL import ImageDraw import voluptuous as vol from homeassistant.const import ATTR_ENTITY_ID, ATTR_NAME, CONF_ENTITY_ID, CONF_NAME from homeassistant.core...
from sqlalchemy.orm import relationship from app.database import Base, engine0 # from app import db from sqlalchemy import Table, Integer, Column, PrimaryKeyConstraint # Base.metadata.reflect(db.engine) # Base.metadata.bind=engine class Hd(Base): __tablename__ = 'hd' __table_args__ = {'autoload':True} def ...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from fancypages.compat import AUTH_USER_MODEL, AUTH_USER_MODEL_NAME class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'HorizontalSeparatorBlock' ...
"""Configuration management setup Some terminology: - name As written in config files. - value Value associated with a name - key Name combined with it's section (section.name) - variant A single word describing where the configuration key-value pair came from """ # The following comment should be removed at ...
#!/usr/bin/env python # Copyright (c) 2011, 2012 Walter Bender # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # Thi...
from datetime import timedelta try: from django.utils.timezone import now except ImportError: from datetime import datetime now = datetime.now from django.contrib import messages from django.core.urlresolvers import reverse from django.db import models from django.conf import settings from django.http impo...
from __future__ import absolute_import import logging import sys import threading from Queue import Full, PriorityQueue from concurrent.futures import Future from concurrent.futures._base import RUNNING, FINISHED from time import time from six.moves import xrange logger = logging.getLogger(__name__) def execute(f...
import albow from albow.dialogs import Dialog from config import config import pygame from albow.translate import _, buildTemplate import sys import os import logging import traceback import directories old_lang = None old_fprop = None class OptionsPanel(Dialog): anchor = 'wh' def __init__(self, mcedit): ...
from __future__ import print_function, division import scipy from keras.datasets import mnist from keras_contrib.layers.normalization.instancenormalization import InstanceNormalization from keras.layers import Input, Dense, Reshape, Flatten, Dropout, Concatenate from keras.layers import BatchNormalization, Activation,...
#!/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. # Virtual Me2Me implementation. This script runs and manages the processes # required for a Virtual Me2Me desktop, which are: X se...
# Copyright 2015, 2016 IBM Corp. # # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
# coding: utf-8 # In[1]: import numpy as np import random from ipythonblocks import BlockGrid as BG from IPython.html import widgets # In[2]: def make_num_grid(width,height,Red_perc,Blue_perc): grid = np.random.choice((0,1,2),size = (height,width), p = [1.00-((Red_perc+Blue_perc)/100),Red_perc/100,Blue_perc/1...
# Copyright 2014 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. # We need to keep same argument names for mocked calls (to accept kwargs), and # thus can't use '_' prefix to silence the warming. # pylint: disable=unused-a...
#!/usr/bin/env python """ ============================================= dMRI: Connectivity - MRtrix, CMTK, FreeSurfer ============================================= Introduction ============ This script, connectivity_tutorial_advanced.py, demonstrates the ability to perform connectivity mapping using Nipype for pipeli...
from __future__ import unicode_literals import base64 import calendar import datetime import re import sys from binascii import Error as BinasciiError from email.utils import formatdate from django.utils.datastructures import MultiValueDict from django.utils.encoding import force_str, force_text from django.utils.fu...
# Copyright 2009-2014 Eucalyptus Systems, Inc. # # Redistribution and use of this software 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 ...
""" Tests for DBSCAN clustering algorithm """ import pickle import numpy as np import warnings from scipy.spatial import distance from scipy import sparse import pytest from sklearn.utils._testing import assert_array_equal from sklearn.neighbors import NearestNeighbors from sklearn.cluster import DBSCAN from skle...
import json from django.contrib.auth import get_user_model from django.contrib.auth.models import Group, Permission from django.core.files.uploadedfile import SimpleUploadedFile from django.template.defaultfilters import filesizeformat from django.test import TestCase, override_settings from django.urls import reverse...
#!/usr/bin/env python3 """Check the MANIFEST.in file in a Python source package for completeness. This script works by building a source distribution archive (by running setup.py sdist), then checking the file list in the archive against the file list in version control (Subversion, Git, Mercurial, Bazaar are supporte...
#!/usr/bin/env python # # Copyright 2012 Facebook # # 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 a...
"""The tests for the Template Binary sensor platform.""" from datetime import timedelta import unittest from unittest import mock from homeassistant.const import MATCH_ALL, EVENT_HOMEASSISTANT_START from homeassistant import setup from homeassistant.components.template import binary_sensor as template from homeassista...
# Copyright 2016 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
#!/usr/bin/python import os import pickle import pygame import sys import time from pygame.locals import * from itertools import cycle from random import randint ############################################################################### Black = (0,0,0) White = (255,255,255) Red = (255,0,0) Green = (0,255,0) Blu...
bl_info = { "name": "RenderWare importer/exporter for GTA III/VC/SA (.dff)", "author": "Ago Allikmaa (maxorator)", "version": (0, 9, 2), "blender": (2, 6, 3), "location": "File > Import-Export > Renderware (.dff) ", "description": "RenderWare importer/exporter for GTA III/VC/SA", "category":...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Do-nothing script for making a release This idea comes from here: https://blog.danslimmon.com/2019/07/15/do-nothing-scripting-the-key-to-gradual-automation/ Author: Gertjan van den Burg Date: 2019-07-23 """ import colorama import os import sys import tempfile impo...
"""The tests for the emulated Hue component.""" import asyncio import json from ipaddress import ip_address from unittest.mock import patch from aiohttp.hdrs import CONTENT_TYPE import pytest from tests.common import get_test_instance_port from homeassistant import core, const, setup import homeassistant.components a...
import math import numpy import pylab import skimage.color, skimage.io # Input original image in color as float array def remove_background(image, box_start_row, box_start_col, box_width, box_height, is_text_inverse): image = skimage.img_as_float(image) height = image.shape[0] width = image.shape[1] ...
# -*- coding: utf-8 - # # This file is part of restkit released under the MIT license. # See the NOTICE for more information. import cgi import copy import mimetypes import os from StringIO import StringIO import types import urlparse import uuid from .datastructures import MultiDict from .errors import AlreadyRead,...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ The setup script is the centre of all activity in building, distributing, and installing modules using the Distutils. It is required for ``pip install``. See more: https://docs.python.org/2/distutils/setupscript.html """ from __future__ import print_function import o...
''' FileName: Author:KWJ(kyson) UpdateTime:2016/10/10 Introduction: ''' from __future__ import division import copy from operator import attrgetter from ryu.base import app_manager from ryu.base.app_manager import lookup_service_brick from ryu.controller.handler import CONFIG_DISPATCHER, MAIN_DISPATCHER, DEAD_DISPATC...
#! /usr/bin/env python2.7 from sys import argv from operator import itemgetter import urllib2 import csv def print_list(list): for l in list: print "[ {0} ]".format(l) def print_support(support): for s in support: print "[ {0} = {1} ]".format(s, support[s]) def print_freq_items(sets, support)...
# 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 import matplotlib import logging from sys import stdout matplotlib.use('Agg') # Must be before importing matplotlib.pyplot or pylab! from neuralnilm import (Net, RealApplianceSource) from neuralnilm.source import (standardise, discretize, fdiff, power_and_fdiff, ...
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import sys import textwrap from types import ModuleType import pytest from pex.compatibility import WINDOWS, nested, to_bytes from pex.installer import EggInstaller, WheelInsta...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ .. module:: glacier.py :platform: Unix, Windows :synopsis: Command line interface for amazon glacier """ import sys import os import ConfigParser import argparse import re import locale import glob import csv import json import glacierexception import constants ...
# # 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 # ...
# Copyright 2015 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
#!/usr/bin/env python # # test_multibytecodec_support.py # Common Unittest Routines for CJK codecs # import codecs import os import re import sys import unittest from httplib import HTTPException from test import test_support from StringIO import StringIO class TestBase: encoding = '' # codec name ...
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
import xlwt import requests import ast import datetime from openpyxl import Workbook now = datetime.datetime.now() """ This takes a list of PLOS article dois and will produce a excel spreadsheet a monthly breakdown of all articles The list of articles can be in .txt format separated by linebreaks or csv where the li...
'''Thread-safe version of Tkinter. Copyright (c) 2009, Allen B. Taylor This module is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This pro...
# Copyright 2017 Brandon T. Gorman # 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...
""" Test the neural network package. Yujia Li, 09/2014 """ import os os.environ['GNUMPY_CPU_PRECISION'] = '64' import gnumpy as gnp import numpy as np import pynn.layer as ly import pynn.loss as ls import pynn.nn as nn import pynn.rnn as rnn import time _GRAD_CHECK_EPS = 1e-6 _BN_GRAD_CHECK_EPS = 1e-5 _FDIFF_EPS = ...
#!/usr/bin/env python """ @package coverage_model.test.test_complex_coverage @file coverage_model/test/test_R2_complex_coverage.py @author Christopher Mueller @brief Unit & Integration tests for AggregateCoverage """ from ooi.logging import log import os import numpy as np import random from coverage_model import * f...
########################################################################## # # Copyright (c) 2011-2012, John Haddon. All rights reserved. # Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted prov...
# Copyright 2015 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. """General functions which are useful throughout this project.""" import json import logging import os import re import time import urllib from apiclient i...
# 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. #----------------------------------------------------------------------...
# Copyright (c) 2020 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...
# 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 # -*- coding: utf-8 -*- ### # Copyright (2016-2020) Hewlett Packard Enterprise Development LP # # 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/licen...
import sys, os sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) from utils import load_externals from mobilenets import * from mobilenets import _obtain_input_shape, __conv_block, __depthwise_conv_block from keras.layers import Lambda def scaling_tf(X, input_range_type):...
""" pygn.py pygn (pronounced "pigeon") is a simple Python client for the Gracenote Music Web API, which can retrieve Artist, Album and Track metadata with the most common options. You will need a Gracenote Client ID to use this module. Please contact developers@gracenote.com to get one. """ from __future__ import...
# Copyright 2015 SAP SE. # # 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...
# Requires Python 2.4 or better and win32api. """Config on Msys mingw This version expects the Pygame 1.9.0 dependencies as built by msys_build_deps.py """ import dll from setup_win_common import get_definitions import msys import os, sys, string from glob import glob from distutils.sysconfig import get_python_inc ...
# /*********************************************************************** # Copyright 2019 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/LICE...
# 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...
"""Test requirements module.""" import os from pathlib import Path import pytest from homeassistant import loader, setup from homeassistant.requirements import ( CONSTRAINT_FILE, PROGRESS_FILE, RequirementsNotFound, _install, async_get_integration_with_requirements, async_process_requirements,...
"""Unit test for Treadmill apptrace events module. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import mock from treadmill.apptrace import events class AppTraceEventsTest(unittest.TestCase):...
# The contents of this file are subject to the Common Public Attribution # License Version 1.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://code.reddit.com/LICENSE. The License is based on the Mozilla Public # License Version 1.1, ...
import logging from pathlib import Path from typing import Text, Optional, Union from unittest.mock import Mock import pytest from aioresponses import aioresponses from rasa.shared.exceptions import FileNotFoundException from tests.utilities import latest_request, json_of_latest_request import rasa.utils.endpoints as...
# Lint as: python3 # Copyright 2021 Google LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import dataclasses import functools import os import sys from contextlib import contextmanager from dataclasses import dataclass from io import StringIO...
# oxAuth is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. # Copyright (c) 2016, Gluu # # Author: Yuriy Movchan # from org.gluu.oxauth.security import Identity from org.gluu.service.cdi.util import CdiUtil from org.gluu.model.custom.script.type.auth import PersonAuthentic...
# =============================================================================== # Copyright 2015 Geoscience Australia # # 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.apac...
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
#!/usr/bin/env python # Copyright (c) 2012 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 ...
# Copyright 2013 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...
#!/usr/bin/env python # Copyright (c) 2016 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...
#!/usr/bin/env python # Copyright (c) 2013. Mark E. Madsen <mark@madsenlab.org> # # This work is licensed under the terms of the Apache Software License, Version 2.0. See the file LICENSE for details. import ming import csv import logging as log import argparse import ctmixtures.data as data import pytransmission.p...
# Copyright 2016,2017 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """ Base functionality for ThingFlow. All the core abstractions are defined here. Everything else is just subclassing or using these abstractions. The key abstractions are: * Thing - a unit of computation in the da...
#!/usr/bin/python # -*- coding: utf-8 -*- # moldynplot.dataset.ChemicalShiftDataset.py # # Copyright (C) 2015-2017 Karl T Debiec # All rights reserved. # # This software may be modified and distributed under the terms of the # BSD license. See the LICENSE file for details. """ Represents an NMR chemical shift...
''' Provide basic Bokeh server objects that use a Tornado ``HTTPServer`` and ``BokeTornado`` Tornado Application to service Bokeh Server Applications. There are two public classes in this module: :class:`~bokeh.server.server.BaseServer` This is a lightweight class to explicitly coordinate the components needed ...
# -*- coding: utf-8 -*- """ Modbus Payload Builders ------------------------ A collection of utilities for building and decoding modbus messages payloads. """ from struct import pack, unpack from pymodbus3.interfaces import IPayloadBuilder from pymodbus3.constants import Endian from pymodbus3.utilities import pack_bi...
# (c) Crown Owned Copyright, 2016. Dstl. from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from django_webtest import WebTest from apps.organisations.models import Organisation from apps.teams.models import Team class UserWebTest(WebTest): def test_update_button_shows_...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Stardust Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.mininode import * from test_framework.test_framework import StardustTestFramework fr...
"""Support for vacuum cleaner robots (botvacs).""" from datetime import timedelta from functools import partial import logging import voluptuous as vol from homeassistant.components import group from homeassistant.const import ( # noqa: F401 # STATE_PAUSED/IDLE are API ATTR_BATTERY_LEVEL, ATTR_COMMAND, S...
# Copyright 2008-2012 Nokia Siemens Networks Oyj # # 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...
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MPL/ # # Softwa...
# -*- coding: utf-8 -*- # Copyright (c) 2012-2015, Anima Istanbul # # This module is part of anima-tools and is released under the BSD 2 # License: http://www.opensource.org/licenses/BSD-2-Clause import pymel.core as pm class RenderSlicer(object): """A tool to help slice single frame renders in to many little pa...
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright 2011-2021, Nigel Small # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...