src
stringlengths
721
1.04M
""" Copyright (C) Richard Lewis 2006 This software is licensed under the terms of the GNU GPL. The module provides the throw component which handles <throw> elements in pipeline configurations causing the given error condition. """ import sys #from pycoon import apache from pycoon.components import syntax_component,...
# -*- coding: utf-8 -*- # # Copyright (C) 2010 Lincoln de Sousa <lincoln@comum.org> # Copyright (C) 2010 Gabriel Falcão <gabriel@nacaolivre.org> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Fo...
# coding=utf-8 # Copyright 2020 Google Health Research. # # 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 la...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020 Espressif Systems (Shanghai) CO LTD # # 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/LIC...
#!/usr/bin/python import os from common import prepare_include_data, log_block, build_lib_dependencies, find_package_for_file import config __author__ = 'cymric@npg.net' myConfig = config.get_config() def write_lib_graph(data): log_block("writing library dependency graph") dependencies, ignore = build_lib_...
#! /usr/bin/env python ############################################################################### # # simulavr - A simulator for the Atmel AVR family of microcontrollers. # Copyright (C) 2001, 2002 Theodore A. Roth # # This program is free software; you can redistribute it and/or modify # it under the terms of th...
#!/usr/bin/env python3 ############################################################################### # # # Copyright 2019. Triad National Security, LLC. All rights reserved. # # This program was produced under U.S. Government contrac...
#!/usr/bin/env python3 from __future__ import print_function, division import numpy as np from polyproject import polyproject def test_diamond(): a = np.array([[2, 1], [1, 2], [2, 3], [3, 2]]) point = np.array([0, 0]) from scipy.spatial import Conve...
from marshmallow_jsonapi import Schema, fields from marshmallow import validate from flask.ext.sqlalchemy import SQLAlchemy from sqlalchemy.exc import SQLAlchemyError from app.helper.helper import Calc db = SQLAlchemy(session_options={"autoflush": False}) class CRUD(): def add(self, resource): db.sess...
# Copyright (c) 2013 Mirantis 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 writi...
"""This module contains tools for emulating a network virtual terminal. See RFC 854 for details of the NVT commands, and VT100 documentation for the colour codes. """ from mudpyl.metaline import Metaline, RunLengthList from mudpyl.colours import NORMAL_CODES, fg_code, bg_code, WHITE, BLACK import re ALL_RESET = '0' B...
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*- # # Copyright (C) 2016-2019 Canonical Ltd # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in ...
""" NOTE: this example requires PyAudio because it uses the Microphone class """ import os import speech_recognition as sr import time from playsound import playsound from reko.polly import Polly from reko.reko import Reko class SpeechReko(Reko): def __init__(self, profile, collection_id, audio_on=False): ...
import RPi.GPIO as GPIO import os.path from time import sleep import sys # use P1 header pin numbering convention #GPIO.setmode(GPIO.BOARD) GPIO.setmode(GPIO.BCM) pin=23 # Set up the GPIO channels - one input and one output #GPIO.setup(11, GPIO.IN) GPIO.setup(pin, GPIO.OUT) # Input from pin 11 #input_value = GPIO...
"""K8s util class for E2E tests.""" import datetime import json import logging import re import time from kubeflow.testing import util from kubernetes import client as k8s_client from kubernetes.client import rest def get_container_start_time(client, namespace, pod_selector, index, phase): """ get start time of c...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2013 VMware, 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/lic...
# # Copyright 2014 Cumulus Networks, Inc. All rights reserved. # Author: Alexandre Renard <arenardvv@gmail.com> # # pyjeet -- # the distributed log analysis tool for networking troubleshooting. # from abc import ABCMeta, abstractmethod from file import * from network_obj import * class LogContainer: __metaclass_...
"""Core module. Provides the basic operations needed in sympy. """ from sympify import sympify from cache import cacheit from basic import Basic, Atom, C from singleton import S from expr import Expr, AtomicExpr from symbol import Symbol, Wild, Dummy, symbols, var, Pure from numbers import Number, Real, Rational, Inte...
import redis from data_sources.hippo_base import HippoDataSource class RedisQueue(HippoDataSource): namespace = 'redis' label = 'Redis Queue' inputs = { 'host': {'input':'text','label':'Redis Host'}, 'port': {'input':'number','label':'Redis Port','default':6379}, 'db' : {'input':'...
import random import string import app import json import unittest from datetime import datetime App = app.app testSet = { True : [ '''[{"date": "2015-05-12T14:36:00.451765", "md5checksum": "e8c83e232b64ce94fdd0e4539ad0d44f", "name": "John Doe", "uid": "1"}, ...
from api.exceptions import APIException import asyncio import uuid import secrets import bcrypt import aiohttp from api.urls import handle_url from api.web import HTMLRequest from libs import config, db, log from tornado.auth import OAuth2Mixin from .errors import OAuthNetworkError, OAuthRejectedError from .r4_mixin ...
import os import sys import getopt def get_zero_bytes_of_file(filename): count = 0 with open(filename, "rb") as f: byte = f.read(1) while byte: if byte == '\0': count = count + 1 byte = f.read(1) return count def get_file_size(filename): statinfo...
import os import sys import numpy as np import pandas as pd import h5py import json from ..markov import get_probs from ..utils import seasons_params from ..plotting import heatmap from ..plotting import bar from ..utils import make_sig class WR: """ base class for weather regimes calculations and plots ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (C) 2015 Thomas Maurice <thomas@maurice.fr> 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 3 of the License, or (at your o...
# Copyright (C) 2011 by Brandon Invergo (b.invergo@gmail.com) # This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. import re line_floats_re = re.compile("-*\d+\.\d+") try: float("nan") _nan_float...
import string class DFA: keywords = [ 'var', 'input', 'output', 'break', 'continue', 'if', 'elsif', 'else', 'switch', 'case', 'default', 'while', 'do', 'for', 'foreach', 'in', 'f...
#!/usr/bin/python import meraki import json # # Python Script Using Meraki API to collect all MX L3 Firewall Rules in all Networks to CSV file. # Returns Site, Comments, Source port and CIDR, Destination port and CIDR. # # Enter User's API Key apikey = 'xxxxxx' # Enter Organization ID Here organizationid = 'xxxxxx...
# Copyright © 2020 Arm Ltd. All rights reserved. # SPDX-License-Identifier: MIT import os import platform import pytest import pyarmnn as ann @pytest.fixture() def get_supported_backends_setup(shared_data_folder): options = ann.CreationOptions() runtime = ann.IRuntime(options) get_device_spec = runtime.G...
import sys #reads input assembly, breakpoints given by the method and outputs new contig file with lengths #offsets bed file as well def parse_fasta(fh): fa = {} current_short_name = None # Part 1: compile list of lines per sequence for ln in fh: if ln[0] == '>': # new name line; r...
from django.conf import settings from django.test import TestCase from django.test.client import Client from django.contrib.auth.models import User, AnonymousUser, Group import geonode.maps.models import geonode.maps.views from geonode.maps.models import Map, Layer, User from geonode.maps.utils import get_valid_user,...
# Copyright (c) 2017 Orange. # # 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, soft...
#!/usr/bin/env python # -*- coding: utf-8 -*- # author: maxime déraspe # email: maximilien1er@gmail.com # date: 2017-05-25 # version: 0.01 import sys from time import sleep from Bio import Entrez def bioproject_nuccore(project_id, output): Entrez.email = "microbesdbs@example.com" handle = Entrez.eli...
import os import ycm_core import re import commands # These are the compilation flags that will be used in case there's no # compilation database set (by default, one is not set). # CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR. flags = [ '-Wall', '-Wextra', '-Werror', '-Wc++98-co...
#============================================================================= # FILE: racer.py # AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com> # License: MIT license {{{ # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation file...
# -*- coding: utf-8 -*- # Resource object code # # Created: Tue Aug 17 21:28:52 2010 # by: The Resource Compiler for PyQt (Qt v4.6.3) # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore qt_resource_data = "\ \x00\x00\x04\x23\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x...
############################################################################### ## ## Copyright (C) 2012-2014 Tavendo GmbH ## ## 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 ## #...
#!/usr/bin/env python # # Appcelerator Titanium Module Packager # # import os, subprocess, sys, glob, string, optparse, subprocess import zipfile from datetime import date cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) os.chdir(cwd) required_module_keys = ['name','version','moduleid','desc...
import json from hashlib import md5 from flask import request from flask.ext.restplus import Resource as RestplusResource from flask_restplus import Model, fields, reqparse from app.helpers.data import update_version from app.models.event import Event as EventModel from .error_docs import ( notfound_error_model, ...
"""Defines interfaces for accessing menu items.""" import enum import iterm2.api_pb2 import iterm2.rpc import typing class MenuItemException(Exception): """A problem was encountered while selecting a menu item.""" class MenuItemState: """Describes the current state of a menu item.""" def __init__(self, c...
import logging import datetime from sqlalchemy import func, and_, or_, not_ from flask import url_for, session from misc.mixins import myTemplateView, JSONView from utils.arp_list import get_mac_by_ip from models.all_models import InetEther from models.session import session from utils.server.http_client import HT...
#!/usr/bin/env python """ player.py Humberto Henrique Campos Pinheiro Human and Computer classes """ from evaluator import Evaluator from config import WHITE, BLACK from minimax import Minimax import random def change_color ( color ): if color == BLACK: return WHITE else: return BLACK ...
# Copyright (C) 2010-2011 Richard Lincoln # # 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 # rights to use, copy, modify, merge, publish...
# coding=utf-8 import os import secrets import shutil import tempfile from nose.tools import assert_equal, assert_true, assert_raises from unittest import TestCase from ultros.core.storage.config.ini import INIConfig from ultros.core.storage.manager import StorageManager __author__ = "Gareth Coles" class TestINI(...
# # 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 # ...
import os import sys from .compat_2_to_3 import * from . import file_utils from . import object_utils import logging log = logging.getLogger(__file__) try: import configparser except ImportError: import ConfigParser as configparser SECTION = 'view' INI = ['app.ini', 'client.ini', 'services.ini', 'view.ini'...
# Copyright 2019 DeepMind Technologies 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 required by appl...
"""ShutIt module. See http://shutit.tk """ from shutit_module import ShutItModule class screen(ShutItModule): def build(self, shutit): shutit.send('mkdir -p /tmp/build/screen') shutit.send('cd /tmp/build/screen') shutit.send('wget -qO- http://ftp.gnu.org/gnu/screen/screen-4.2.1.tar.gz | tar -zxf -') shutit...
import discord from discord.ext import commands class Pikl: """Super pikly commands.""" def __init__(self, bot): self.bot = bot @commands.command(hidden=False) async def helloworld(self): """Hello, world!""" await self.bot.say("Hello, world!") @commands.command(hidden=False) async def postraidembed(sel...
#This is the siimplest neural network implementation #Its the point from where my neural network journey begins import numpy as np #using sigmoid activation function def activate(x,deriv=False): if(deriv==True): return x*(1-x) return 1/(1+np.exp(-x)) #toy data input_data = np.array([[0,0,1], [0,1,1],...
""" Example generation for the scikit learn Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from time import time import os import re import shutil import traceback import glob import sys from StringIO import StringIO import ...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
from vusion.persist import Model class ContentVariableTable(Model): MODEL_TYPE = 'content_variable_table' MODEL_VERSION = '2' fields= { 'name': { 'required': True }, 'columns': { 'required': True }, 'column-key-selection': {...
from __future__ import print_function, division import sys import numpy as np from collections import Counter ########################################################################### # # This file contains different functions for generation of non-standard # contexts (contexts where each 'token' is a list of words...
from enigma import getPrevAsciiCode from Tools.NumericalTextInput import NumericalTextInput from Tools.Directories import resolveFilename, SCOPE_CONFIG, fileExists from Components.Harddisk import harddiskmanager from copy import copy as copy_copy from os import path as os_path from time import localtime, strftime # Co...
""" COPYRIGHT (C) 2014 AFRICASTALKING LTD <www.africastalking.com> # AFRICAStALKING SMS GATEWAY CLASS IS A FREE SOFTWARE IE. CAN BE MODIFIED AND/OR REDISTRIBUTED UNDER THER TERMS OF GNU GENERAL PUBLIC LICENCES AS PUBLISHED BY THE ...
import pandas as pd import glob import time import numpy as num inter=sorted(glob.glob('*****.csv')) w='*****.xlsx' table1=pd.read_excel(w, '*****', index_col=None, na_values=['NA']).fillna(0) w='*****.csv' tab=pd.read_csv(w).fillna(0) tab.is_copy = False pd.options.mode.chained_assignment = None t1=time.time() ...
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
# 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 os from twit...
from os.path import join from os import walk import re def main(mypath, file_end): """ Store the paths and names of all the input clusters stored in the 'input/' folder. """ # Path where cluster data files are stored. input_dir = 'input' + file_end full_in_dir = join(mypath, input_dir) ...
from tempfile import NamedTemporaryFile import os import math import numpy as np import subprocess import types def guess_fileformat(filename): """ Guess the format of a sound file. """ try: return filename.split('.')[-1] except IndexError: raise ValueError('unknown file format') ...
__all__ = [ 'TensorMeshReader', 'TensorMeshAppender', 'TopoMeshAppender', ] __displayname__ = 'Tensor Mesh' import os import sys import numpy as np import pandas as pd import vtk from .. import _helpers, interface from ..base import AlgorithmBase from .two_file_base import ModelAppenderBase, ubcMeshRead...
from kapteyn import maputils import numpy from service import * fignum = 4 fig = plt.figure(figsize=figsize) frame = fig.add_axes(plotbox) mu = 2.0; phi = 180.0; theta = 60 title = r"""Slant zenithal perspective (SZP) with: ($\mu,\phi,\theta)=(2,180,60)$ with special algorithm for border (Cal. fig.7)""" header = {'NAX...
# coding=utf-8 import unittest """919. Complete Binary Tree Inserter https://leetcode.com/problems/complete-binary-tree-inserter/description/ A _complete_ binary tree is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible. Write a data structu...
import os class HighState(object): def __init__(self): if os.path.isfile('/etc/salt/master.d/file_roots.conf') == True: os.system("mkdir -p /srv/salt") else: file_roots = file("/etc/salt/master.d/file_roots.conf", "w+") add = ["file_roots:\n", " base:\n", " -...
""" Django settings for {{ project_name }} project. Common settings for all environments. Don't directly use this settings file, use environments/development.py or environments/production.py and import this file from there. """ import sys from path import path from django.conf import global_settings PROJECT_NAME = "B...
""" radish ~~~~~~ The root from red to green. BDD tooling for Python. :copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com> :license: MIT, see LICENSE for more details. """ import inspect import bisect import tagexpressions from radish.errors import HookExecError class HookImpl: """Represent a single Hook ...
""" These "scans" bundle a Message generator with an instance of the RunEngine, combining two separate concepts -- instructions and execution -- into one object. This makes the interface less flexible and somewhat less "Pythonic" but more condensed. This module is meant to be run in a namespace where several global va...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2014 The Plaso Project Authors. # Please see the AUTHORS file for details on individual 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 L...
import os import pandas as pd import matplotlib.pyplot as plt import seaborn seaborn.set() path= os.path.expanduser("~/Desktop/ece671/udpt8") num_files = len([f for f in os.listdir(path)if os.path.isfile(os.path.join(path, f))]) print(num_files) u8=[] i=0 def file_len(fname): with open(fname) as f: for i,...
""" This module is executed in remote subprocesses and helps to control a remote testing session and relay back information. It assumes that 'py' is importable and does not have dependencies on the rest of the xdist code. This means that the xdist-plugin needs not to be installed in remote environm...
import signal import time import wiringpi as wp from rasp.allgo_utils import PCA9685 from rasp.allgo_utils import ultrasonic as uls LOW = 0 HIGH = 1 OUTPUT = wp.OUTPUT INPUT = wp.INPUT CAR_DIR_FW = 0 CAR_DIR_BK = 1 CAR_DIR_LF = 2 CAR_DIR_RF = 3 CAR_DIR_ST = 4 DIR_DISTANCE_ALERT = 20 preMillis = 0 ...
# -*- coding: utf-8 -*- ############################################### from osv import fields,osv from tools.sql import drop_view_if_exists class res_partner_history(osv.osv): _name = "res_partner_history" _description = "Partner History" _auto = False _columns = { 'date': fields.datetime('Datum', r...
# -*- coding: utf-8 -*- # Copyright 2016 OpenMarket Ltd # # 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 la...
#!/usr/bin/python # -*- coding: utf-8 -*- """ PyCOMPSs Testbench Tasks ======================== """ # Imports import unittest import os from pycompss.api.task import task from pycompss.api.parameter import * from pycompss.api.api import compss_barrier, compss_open, compss_wait_on from pycompss.api.mpi import mpi fr...
r""" HTTP transport to the trac server AUTHORS: - David Roe, Julian Rueth, Robert Bradshaw: initial version """ #***************************************************************************** # Copyright (C) 2013 David Roe <roed.math@gmail.com> # Julian Rueth <julian.rueth@fsfe.org> # ...
# -*- coding: utf-8 -*- # # Copyright (C) 2009 Rene Liebscher # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 3 of the License, or (at your option) any # later version....
# -*- coding: utf-8 -*- # 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 Apach...
import uncertainties from uncertainties import ufloat import math import numpy import numpy import pylab from scipy.optimize import curve_fit import math import scipy.stats import uncertainties from uncertainties import unumpy Vmeno = ufloat(-15.00, 15.00*0.005) Vpiu = ufloat(14.99, 14.99*0.005) R1 = ufloat(2.18, 2.1...
# -*- encoding: utf-8 -*- from glob import glob from pymongo import MongoClient from gensim import models from sklearn.metrics.pairwise import cosine_similarity import numpy as np def fillMongo(db): """ gets the mongodb connection and fills the database. """ for index, file in enumerate(glob('./**/*.txt',recurs...
def programStart(): start = raw_input(" Would you like to begin the simulation? \n\n ") if start in {"Yes", "yes", "Yep", "yep", "Begin", "begin", "Start", "start", "y", "Y"}: time.sleep(0.3) print "" time.sleep(0.2) ...
""" Boolean geometry utilities. """ from __future__ import absolute_import from fabmetheus_utilities.geometry.geometry_utilities import evaluate from fabmetheus_utilities import archive __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __credits__ = 'Art of Illusion <http://www.artofillusion.org/>' __date__ =...
#!/usr/bin/env python3 # Copyright (c) 2015-2016 The Bitcoin 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.test_framework import ComparisonTestFramework from test_framework.util import * from ...
import requests import requests_ntlm """ This test is meant to run with Appveyor but until the integration is solved it can only be run locally. The script setup_iis.ps1 can set up an IIS server with the 4 scenarios tested below if you wish to run a sanity check """ username = '.\\User' password = 'Password01' http_w...
'''patching scipy to fit distributions and expect method This adds new methods to estimate continuous distribution parameters with some fixed/frozen parameters. It also contains functions that calculate the expected value of a function for any continuous or discrete distribution It temporarily also contains Bootstrap...
"""Our standardized pyWWA command line.""" # stdlib import argparse from datetime import datetime, timezone def parse_cmdline(argv): """Parse command line for context settings.""" parser = argparse.ArgumentParser(description="pyWWA Parser.") parser.add_argument( "-c", "--custom-args", ...
import logging from .fields import IntegerField, EnumField, EnumListField, DateOrDateTimeField, DateTimeField, EWSElementField, \ IdElementField, MONTHS, WEEK_NUMBERS, WEEKDAYS from .properties import EWSElement, IdChangeKeyMixIn, ItemId, EWSMeta log = logging.getLogger(__name__) def _month_to_str(month): r...
""" Django settings for robotgear project. Generated by 'django-admin startproject' using Django 1.11.7. """ import os INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.static...
""" 18 Nov 2014 """ from warnings import warn from collections import OrderedDict from pysam import AlignmentFile from scipy.stats import norm as sc_norm, skew, kurtosis from scipy.stats import pearsonr, spearmanr, linregres...
from math import pi from drawable import Drawable from matrix2D import Matrix from ray import Ray class Medium(Drawable): def __init__(self, refractive_index, polygon): self.refractiveIndex = refractive_index self.polygon = polygon def on_hit(self, ray, hit_point): pass def draw...
#!/usr/bin/env python # -*- coding: utf-8 -*-# # Copyright 2014 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...
""" Copyright 2016 Raffaele Di Campli 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 di...
# This file is part of GxSubOS. # Copyright (C) 2014 Christopher Kyle Horton <christhehorton@gmail.com> # GxSubOS is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your...
""" Generator for a defined ranged. .. module:: select :platform: Unix, Windows :synopis: Generator for a defined range. .. moduleauthor:: Thomas Lehmann <thomas.lehmann.private@googlemail.com> ======= License ======= Copyright (c) 2015 Thomas Lehmann Permission is hereby granted, free of...
""" Author: PH01L Email: phoil@osrsbox.com Website: https://www.osrsbox.com Description: Parse OSRS cache data and extract model ID numbers for items, npcs, and objects. Known keys for models: - items: inventoryModel - npcs: models, models_2 (version 2 does not seem to be used) - objects: objectModels Copyright (c...
#!/usr/bin/python # -*- coding: utf-8 -*- # # --- BEGIN_HEADER --- # # rmvgridowner - remove a vgrid owner # Copyright (C) 2003-2015 The MiG Project lead by Brian Vinter # # This file is part of MiG. # # MiG is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License ...
from django.shortcuts import render from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404, redirect from lisa_search.forms import UploadDataForm from lisa_modules.csv_reader import CSV from lisa_models.table import Table_Model from lisa_modules.db_middleware impor...
#! /usr/bin/env python3 # -*- coding:Utf8 -*- import matplotlib as ml ml.use('agg') import os import argparse as ap import logging as log import numpy as np from LibThese import Carte as c from LibThese.Plot import Animate as an from LibThese.Plot import hdf5 as h class FromHDF5(...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orgs', '0016_taskstate_is_disabled'), ('msgs', '0052_triggers'), ] operations = [ migrations.CreateModel( ...
''' Deliver state of Rock-Paper-Scissors style of Conway game of life Status: Accepted ''' ############################################################################### class RockPaperScissorsGrid(): '''Conway life-style grid''' def __init__(self, grid): self._grid = grid self._rows = len(...
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any lat...