src
stringlengths
721
1.04M
import logging import utils import options _Warning = logging.Warning #//===========================================================================// _site_setup = [] _user_setup = {} _tools_setup = {} _tools_post_setup = {} def ResetSetup( site_setup = _site_setup, tools_setup = _tools_se...
# -*- coding: utf-8 -*- #= DESCRIZIONE ================================================================= # Quando si droppano le spore, se finiscono in un terreno fertile, # allora danno corpo ad un nuovo mob fungoso #= IMPORT ====================================================================== import random ...
__author__ = 'Antony Cherepanov' from exceptions import Exception class MatrixException(Exception): pass class Matrix(object): def __init__(self, t_rowNum=0, t_colNum=0, t_values=None): if not self.__checkDimensionType(t_rowNum) or\ not self.__checkDimensionType(t_colNum...
from pandas_datareader import data as pdr import datetime import pandas as pd import numpy as np def download_data(ticker, start = datetime.datetime(1950, 1, 1), end = datetime.datetime.today(), source = 'yahoo', drop_extra = True): # may need to use this for weekly data #...
# VMware vCloud Director Python SDK # Copyright (c) 2017 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/licenses/LICENSE-2.0 #...
# anaconda: The Red Hat Linux Installation program # # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 # Red Hat, Inc. All rights reserved. # # 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 Softw...
from .class_hierarchy import A, AChild, AGrandchild from ..conversion_config import ConversionConfig import unittest class find(unittest.TestCase): """ Test cases of find """ def test_matchingClassFound(self): """ Test that a matching class is found properly """ expected = "Dummy Conf...
# -*- coding: utf-8 -*- from copy import deepcopy import pytest from pydash._compat import iteritems # pytest.mark is a generator so create alias for convenience parametrize = pytest.mark.parametrize class Object(object): def __init__(self, **attrs): for key, value in iteritems(attrs): se...
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
# Copyright 2014-2016 OpenMarket Ltd # Copyright 2017-2018 New Vector Ltd # Copyright 2019 The Matrix.org Foundation C.I.C. # # 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....
# Copyright 2012 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 ...
# This file defines an interface and client-side API stub # for referring either to the core Ray API or the same interface # from the Ray client. # # In tandem with __init__.py, we want to expose an API that's # close to `python/ray/__init__.py` but with more than one implementation. # The stubs in __init__ should call...
from django.contrib.auth.mixins import LoginRequiredMixin from django.contrib.auth.models import User from django.contrib.staticfiles.templatetags.staticfiles import static from django.urls import reverse from django.db import connection from django.shortcuts import render, HttpResponse from django.utils import timezon...
# -*- coding: UTF-8 """ Log output handlers implementation Classes ======= Handler -- Abstract output handler STDOUTHandler -- Console output handler FileHandler -- Text file output handler NullHandler -- Empty handler (stub) """ import sys import logging import fcntl import termios import ...
from client import Client from script_host import ScriptHost from plugin_host import PluginHost from uv_stream import UvStream from msgpack_stream import MsgpackStream from rpc_stream import RPCStream from time import sleep import logging, os __all__ = ['connect', 'start_host', 'ScriptHost', 'PluginHost'] # Required...
from oauth2_provider.decorators import protected_resource from django.views.decorators.csrf import csrf_exempt from django.core.urlresolvers import reverse from django.http import HttpResponse from sqlshare_rest.views import get_oauth_user, get403, get404, get400, get405 from sqlshare_rest.util.db import get_backend fr...
import unittest import pycellbase.cbrestclients as cbfts from pycellbase.cbconfig import ConfigClient from requests import Session class GeneClientTest(unittest.TestCase): """Tests the GeneClient class""" def setUp(self): """Initializes the gene client""" self._gc = cbfts.GeneClient(Session()...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'UsaspendingAssistanceRaw.cfda_program' db.delete_column('data_usaspendingassistanceraw', '...
#coding=utf-8 __author__ = 'answer-huang' import sys reload(sys) sys.setdefaultencoding('utf8') """ 代码行统计工具 """ import wx from MyInfo import AboutMe from AHDropTarget import AHDropTarget import os class AHFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, wx...
# Copyright 2019 Microsoft Corporation # Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 from azure.mgmt.web.models import ( Site, SiteConfig, ManagedServiceIdentity, ManagedServiceIdentityUserAssignedIdentitiesValue as UserAssignedIdentity) from c7n_azure.constants import...
# -*- coding: utf-8 -*- ### # AUTHORS: CHRISTIAN GIBSON, # PROJECT: /r/MechMarket Bot # UPDATED: SEPTEMBER 11, 2015 # USAGE: python bot.py [-h / --help] [-is / --interactive-shell] # EXPECTS: python 3.4.0 # beautifulsoup4 4.4.0 # praw 3.2.1 # regex 2015.06.24 ### import argparse import bs4...
import datetime import random from flask import url_for as base_url_for from flask import abort, current_app, request, jsonify from werkzeug.exceptions import BadRequest from dmutils.formats import DATE_FORMAT from .validation import validate_updater_json_or_400 from . import search_api_client, dmapiclient def ran...
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
# ################################################### # Copyright (C) 2008-2017 The Unknown Horizons Team # team@unknown-horizons.org # This file is part of Unknown Horizons. # # Unknown Horizons is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published ...
#!/usr/bin/env python # Copyright 2014 linyehui # Part of https://github.com/linyehui/migrating-from-wikidot-to-jekyll from wikidot import WikidotToMarkdown ## most important here import sys ## for sys.exit() import os ## for os.makedirs() import optparse ## for optparse.OptionParser() import markdown ## for markdow...
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # # This file is part of the E-Cell System # # Copyright (C) 1996-2016 Keio University # Copyright (C) 2008-2016 RIKEN # Copyright (C) 2005-2009 The Molecular Sciences Institute # #:::::::::::::::::::::::::::::::::::::::...
# -*- coding: UTF-8 -*- from behave import step from dogtail.tree import root from behave_common_steps import * from random import sample from behave_common_steps import limit_execution_time_to CITIES = [ { 'partial': 'Brno', 'full': 'Brno, Czech Republic'}, { 'partial': 'Minsk', 'full': 'M...
# 10. sl/eol/get_links # Parameter: list of species # Result: # input_species - repeats input (issue: flush this) # message, status_code as usual # meta_data - not very useful # species - list of blobs about species # eol_id # matched_name - contains authority # searched_name - presumably wha...
# # Copyright 2013, 2014 Sourcefabric z.u. and contributors. # # For the full copyright and license information, please see the # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license*. from .zczc import ZCZCFeedParser from superdesk.metadata.item import FO...
# 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-2.0 # # Unless required by applicable law or ag...
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
import time from distribute_setup import use_setuptools use_setuptools() from setuptools import setup from setuptools.extension import Extension from Cython.Distutils import build_ext # Cython extension. source_files = ['wrapper_inner.pyx'] include_dirs = ['C:/Python27/include', 'C:/Python27/Lib/s...
# -*- coding: utf-8 -*- """ |oauth2| Providers ------------------- Providers which implement the |oauth2|_ protocol. .. autosummary:: OAuth2 Behance Bitly Cosm DeviantART Facebook Foursquare GitHub Google LinkedIn PayPal Reddit Viadeo VK WindowsLive ...
# Copyright 2014 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
from django.db import models import datetime from django.utils import timezone from django.utils.encoding import python_2_unicode_compatible class Category(models.Model): name = models.CharField(max_length=100) slug = models.SlugField(max_length=100, unique=True, verbose_name='slug') description = models.T...
import argparse from datetime import datetime def Parser(): the_parser = argparse.ArgumentParser() the_parser.add_argument( '--gff_path', action="store", type=str, help="path to miRBase GFF3 file") the_parser.add_argument( '--output', action="store", type=str, help="output ...
#!/bin/false # This file is part of Espruino, a JavaScript interpreter for Microcontrollers # # Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk> # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at h...
#!/usr/local/bin/python3 # Libraries are in parent directory import sys sys.path.append('../') import math import numpy as np import scipy as sp import matplotlib.pyplot as plt import pdb from dtrw import * class DTRW_PBPK(DTRW_compartment): def __init__(self, X_inits, T, dT, V, Q, R, mu, Vmax, Km, g, g_T): ...
""" SQL-style merge routines """ import copy import warnings import string import numpy as np from pandas.compat import range, lzip, zip, map, filter import pandas.compat as compat from pandas import (Categorical, Series, DataFrame, Index, MultiIndex, Timedelta) from pandas.core.frame import _mer...
""" @package mi.instrument.seabird.driver @file mi/instrument/seabird/driver.py @author Roger Unwin @brief Base class for seabird instruments Release notes: None. """ import datetime import re from mi.core.log import get_logger, get_logging_metaclass from mi.core.instrument.instrument_protocol import CommandResponse...
#!/usr/bin/env python # -*- coding: utf-8 -*- """Wrapping python os and related functions. Args: LOGGER_NAME (str): the default logging.Logger name """ from __future__ import absolute_import, division, print_function, \ unicode_literals import logging import os LOGGER_NAME = "scriptharness.co...
import logging import database import json import central_psparser import math class Billing(): def __init__(self, config, queues): self.threadOps = queues["threadControl"] self.toBill = queues["toBill"] self.toPrint = queues["toPrint"] self.logger = logging.getLogger("Billing") ...
""" Django settings for Django Condition Chain project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ ""...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
import os import unittest from IO.BufferedFileWriter import BufferedFileWriter from IO.FileReader import FileReader # Buffered file writer test case. class TestClass(unittest.TestCase): def setUp(self): self.testsDataDirectory = "TestsData/BufferedFileWriterTest" self.writer = BufferedFileWriter(s...
#!/usr/bin/env python ## category Misc ## desc Checks a BAM file for corruption ''' Checks a BAM file for corruption ''' import sys import os import ngsutils.bam def bam_check(fname, quiet=False): if not quiet: sys.stdout.write('%s: ' % fname) sys.stdout.flush() fail = False i = 1 try...
import urllib.request, json, re import pyCFL.config as cfg class cflAPI(object): def __init__(self): self.base_url = 'http://api.cfl.ca/v1' self._set_api_key() def _get_games_data(self, season, game_id=None): if game_id: api_url = self.base_url + '/games/' + str(season) + ...
#! env/bin/python from datetime import timedelta import psutil import re import yaml outputs = [] # load default configs config = yaml.load(file('conf/rtmbot.conf', 'r')) def status_main(): """ Does the work of checking the server's status Returns the message to output :return: message """ ...
#!/usr/bin/env python import logging l = logging.getLogger("claripy.frontends.frontend") import ana #pylint:disable=unidiomatic-typecheck class Frontend(ana.Storable): def __init__(self, solver_backend): self._solver_backend = solver_backend self.result = None self._simplified = False # # Storable support...
#!/usr/bin/python # coding: utf-8 from datetime import datetime import deform import colander import jinja2 from deform import ValidationFailure from deform.widget import CheckedPasswordWidget from pyramid.view import view_config from pyramid.httpexceptions import HTTPForbidden from pyramid.httpexceptions import HTTP...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """ Intro ----- This module contains integration Annoy with :class:`~gensim.models.word2vec.Word2Vec`, :class:`~gensim.models.doc2vec.Doc2V...
import os import uuid from datetime import datetime from django.conf import settings from django.contrib.auth.models import User from django.core.mail import send_mail from django.db import models from django.db.models import signals as dbsignals from django.dispatch import receiver from elasticutils.contrib.django i...
# coding: utf-8 import json import time # class PeriodicTask(object): # """ # :param name: task name # :param fn: callable function # :param period: minimal delay between two consecutive function invocation [seconds] # :param cool_down: delay to start next invocation after previous one finished [s...
# # Copyright (C) 2015 Basho Technologies, 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 a...
# 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 ...
""" Django settings for project project on Heroku. For more info, see: https://github.com/heroku/heroku-django-template For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ ...
# -*- coding: utf-8 -*- # # SpamFighter, Copyright 2008, 2009 NetStream LLC (http://netstream.ru/, we@netstream.ru) # # This file is part of SpamFighter. # # SpamFighter 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 Fou...
"""Support for Rflink switches.""" import logging import voluptuous as vol from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv from . import ( CONF_ALIASES, CONF_DEVICE_DEFAULTS, CONF_DEVI...
import numpy as np import dask.array as darr from dask import compute, delayed from dask.bag import from_delayed, from_sequence from pandas import Timedelta from xarray import Variable, IndexVariable, DataArray, Dataset from trdi_adcp_readers.pd0.pd0_parser_sentinelV import (ChecksumError, ...
# Why cls_state... cls_state is a portable attrdict class ClsDict(dict): """This is an attrdict implementation that provides: * property access for dict elements * overrides for properties * * Override getitem, setitem, getattr, and setattr to provide the following behaviors: @property deco...
import logging import json import socket import traceback import urllib2 from urlparse import urlparse from proxymatic.services import Server, Service from proxymatic import util class RegistratorEtcdDiscovery(object): def __init__(self, backend, url): self._backend = backend self._url = urlparse(u...
import re import sys import unicodedata import six import collections from social.p3 import urlparse, urlunparse, urlencode, \ parse_qs as battery_parse_qs SETTING_PREFIX = 'SOCIAL_AUTH' def import_module(name): __import__(name) return sys.modules[name] def module_member(name): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' https://pymotw.com/3/asyncio/futures.html ''' import asyncio import time import functools #import gc #gc.set_debug(gc.DEBUG_STATS) def mark_done(future, result): print("Setting future result to ", result) future.set_result(result) async def work_one(future...
from django.conf.urls import patterns, url from django.contrib.auth.views import password_reset, password_reset_done, password_reset_confirm, password_reset_complete urlpatterns = patterns('user_management.views', url(r'^$', 'index'), url(r'^accounts/login/$', 'login_user'...
import wx import gui.fitCommands as cmd import gui.mainFrame from gui.contextMenu import ContextMenuSingle from service.fit import Fit _t = wx.GetTranslation class ProjectItem(ContextMenuSingle): visibilitySetting = 'project' def __init__(self): self.mainFrame = gui.mainFrame.MainFrame.getInstance(...
from django import forms from django.forms.fields import CharField from django.forms.widgets import PasswordInput from AdminBackend.models import TMUser, MailSettings, GeneralSettings class BasicUserForm(forms.Form): """ Class which represents a form for a given user """ username = forms.CharField()...
# ----------------- # list comprehensions # ----------------- # basics: a = ['' for a in [1]] #? str() a[0] #? ['insert'] a.insert a = [a for a in [1]] #? int() a[0] y = 1.0 # Should not leak. [y for y in [3]] #? float() y a = [a for a in (1, 2)] #? int() a[0] a = [a for a,b in [(1,'')]] #? int() a[0] arr = [1,'...
''' searx 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 Foundation, either version 3 of the License, or (at your option) any later version. searx is distributed in the hope that it will be useful, but WITHOUT ANY W...
# coding: utf-8 import copy from google.appengine.ext import ndb import flask from apps import auth from apps.auth import helpers from core import task from core import util import config import forms import models bp = flask.Blueprint( 'user', __name__, url_prefix='/user', template_folder='templates...
# Copyright 2013: Mirantis 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 b...
import os import unittest import logging import shutil import time import testfixtures from pyvivado import filetestbench_project, fpga_project, axi from pyvivado.synopsys import synopsys_project from pyvivado import vivado_project, test_info from pyvivado import config from pyvivado import base_test_utils logger = l...
#!/usr/bin/python # -*- coding:utf-8 -*- """ Author: AsherYang Email: 1181830457@qq.com Date: 2017/4/11 Desc: json encoder for custom class """ import json from BaseResponse import BaseResponse from ContentData import ContentData class JSONEncoder(json.JSONEncoder): def default(self, obj): if isin...
"""Example of whole body controller on A1 robot.""" import os import inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path.dirname(currentdir)) os.sys.path.insert(0, parentdir) from absl import app from absl import flags from absl import logg...
# -*- coding: utf-8 -*- # This file is part of pygal # # A python svg graph plotting library # Copyright © 2012-2016 Kozea # # This library 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...
# Licensed to the .NET Foundation under one or more agreements. # The .NET Foundation licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information. ## ## Testing IronPython Engine ## from iptest.assert_util import * skiptest("win32") import sys remove_ironpy...
WinBorder = 2 LeftPadding = 15 BottomPadding = 15 TopPadding = BottomPadding RightPadding = BottomPadding NavigateAcrossWorkspaces = True # availabe in Unity7 TempFile = "/dev/shm/.stiler_db" LockFile = "/dev/shm/.stiler.lock" # This is the congiguration that works for unity7. If you are using a # different Desktop ...
# Author: Hubert Kario, (c) 2015 # Released under Gnu GPL v2.0, see LICENSE file for details """Test for DHE_RSA key exchange error handling""" from __future__ import print_function import traceback import sys import getopt import re from itertools import chain from tlsfuzzer.runner import Runner from tlsfuzzer.mess...
""" This module contains tests for tofu.geom in its structured version """ # Built-in import os import warnings # Standard import numpy as np import scipy.constants as scpct import matplotlib.pyplot as plt # tofu-specific from tofu import __version__ import tofu.data as tfd import tofu.utils as tfu _here = os.path...
import tflearn from tflearn.data_preprocessing import DataPreprocessing from tflearn.layers.core import input_data, dropout, fully_connected, reshape from tflearn.layers.conv import conv_2d, max_pool_2d from tflearn.layers.estimator import regression from tflearn.metrics import Accuracy from tflearn.data_augmentation i...
#!/usr/bin/env python3 # Copyright (c) 2017-2019 TurboCoin # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test getblockstats rpc call # from test_framework.test_framework import TurbocoinTestFramework from test_framework.util...
data smix_intermediates[2**160](pos, stored[1024][4], state[8]) event TestLog6(h:bytes32) macro blockmix($_inp): with inp = $_inp: with X = string(64): mcopy(X, inp + 64, 64) X[0] = ~xor(X[0], inp[0]) X[1] = ~xor(X[1], inp[1]) log(type=TestLog, 1, msg.gas) ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2012-2015 Calum Lind <calumlind@gmail.com> # Copyright (C) 2010 Damien Churchill <damoxc@gmail.com> # Copyright (C) 2009-2010 Andrew Resch <andrewresch@gmail.com> # Copyright (C) 2009 Jesper Lund <mail@jesperlund.com> # # This file is part of Deluge and is...
"""Interstat's core single-line and whole-file formatters.""" from __future__ import (absolute_import, division, print_function, unicode_literals) from builtins import * from datetime import datetime from itertools import tee import re from jinja2 import Environment, ChoiceLoader, FileSystem...
#!/usr/bin/env python # -*- mode: python; coding: utf-8; -*- # ---------------------------------------------------------------------------## # # Copyright (C) 1998-2003 Markus Franz Xaver Johannes Oberhumer # Copyright (C) 2003 Mt. Hood Playing Card Co. # Copyright (C) 2005-2009 Skomoroh # # This program is free softwa...
# Created 2014 by Zack Sheppard. Licensed under the MIT License (see LICENSE file) """ Main handlers for the two pages that make up the clear-weather app """ from flask import Flask, request, url_for import api_endpoint, os, web_endpoints app = Flask(__name__) if (not app.debug): import logging from logging im...
#!/usr/bin/env python from __future__ import unicode_literals #'read FTML file and generate LO writer .odt file' __url__ = 'http://github.com/silnrsi/pysilfont' __copyright__ = 'Copyright (c) 2015, SIL International (http://www.sil.org)' __license__ = 'Released under the MIT License (http://opensource.org/licenses/MIT...
# -*- coding: utf-8 -*- # ********************************************************************** # # Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. # # This copy of Ice is licensed to you under the terms described in the # ICE_LICENSE file included in this distribution. # # ***********************************...
# This file is part of pi-jukebox. # # pi-jukebox 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 Foundation, either version 3 of the License, or # (at your option) any later version. # # pi-jukebox is distributed ...
#!/usr/bin/env python '''camera control for ptgrey chameleon camera''' import time, threading, sys, os, numpy, Queue, errno, cPickle, signal, struct, fcntl, select, cStringIO import cv2.cv as cv # use the camera code from the cuav repo (see githib.com/tridge) sys.path.insert(0, os.path.join(os.path.dirname(os.path.re...
#!/usr/bin/env python3 ############################################################################### # # # Copyright 2019. Triad National Security, LLC. All rights reserved. # # This program was produced under U.S. Government contrac...
# -*- coding: utf-8 *-* # Copyright (c) 2013 Tisserant Pierre # # This file is part of Dragon dice simulator. # # Dragon dice simulator 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 ve...
# encoding=utf8 #input is a csv file path, and a search target folder import fixutf8 import sys,os import logging import fnmatch import argparse import collections from dgsUtil import * parser = argparse.ArgumentParser(description='This program is to check file existence for DGS. Also generating a log file with the n...
# -*- coding: Latin-1 -*- # Graphviz's dot language Python interface. # This module provides with a full interface to create handle modify # and process graphs in Graphviz's dot language. # References: # pydot Homepage: http://code.google.com/p/pydot/ # Graphviz: http://www.graphviz.org/ # DOT Language: http://...
from collections import OrderedDict import logging import math, time, sys import libsbml from basics.logging.stdoutwrapper import StdOutWrapper import backend from backend.basebackend import BaseBackend from backend.exceptions import InitError from backend import settingsandvalues import datamanagement.entitydata from ...
from __future__ import absolute_import from .lexer import Lexer from . import nodes import six textOnly = ('script','style') class Parser(object): def __init__(self,str,filename=None,**options): self.input = str self.lexer = Lexer(str,**options) self.filename = filename self.bloks ...
import os, random, time import yender import numpy as np import collections block_set = collections.OrderedDict() block_set["."] = yender.Block(char=".", name="air", visible=False) block_set["#"] = yender.Block(char="#", name="stone", color=(127, 127, 127), movable=False) block_set["R"] = yender.Block(char="R", name="...
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
from __future__ import absolute_import import logging import warnings from bson.objectid import ObjectId, InvalidId from .exceptions import ValidationError from .ConnectionManager import GetConnectionManager from .Cursor import Cursor from . import field_types LOG = logging.getLogger('mongotron.Document') class ...
# -*- mode: python; coding: utf-8 -*- # :Progetto: vcpx -- svn specific tests # :Creato: gio 11 nov 2004 19:09:06 CET # :Autore: Lele Gaifax <lele@nautilus.homeip.net> # :Licenza: GNU General Public License # from unittest import TestCase from datetime import datetime from vcpx.repository.svn import changesets_fr...
# 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 under the...