text
stringlengths
12
6.59M
# -*- coding: utf-8 -*- # # Copyright 2013 Ghent University # # This file is part of vsc-base, # originally created by the HPC team of Ghent University (http://ugent.be/hpc/en), # with support of Ghent University (http://ugent.be/hpc), # the Flemish Supercomputer Centre (VSC) (https://vscentrum.be/nl/en), # the Hercule...
#!/usr/bin/env python import itertools import random import math import numpy as np from collections import MutableMapping from individual import Individual from chromosome import Chromosome from paths import kinship from common import * from pydigree._pydigree import sample_with_replacement,random_pairs from pydigr...
# -*- test-case-name: vumi.persist.tests.test_txriak_manager -*- """A manager implementation on top of txriak.""" from riakasaurus.riak import RiakClient, RiakObject, RiakMapReduce, RiakLink import riakasaurus from twisted.internet.defer import ( inlineCallbacks, gatherResults, maybeDeferred, succeed) from distu...
#!/usr/bin/python # vim: ts=4 sw=4 et """ vctools is a Python module using pyVmomi which aims to simplify command-line operations inside VMWare vCenter. https://github.com/mdechiaro/vctools/ """ # pylint: disable=no-name-in-module from __future__ import print_function import logging from getpass import getuser import ...
# Copyright (c) 2017, John Skinner import functools import numpy as np import cv2 MAXIMUM_QUALITY = 10 def generate_depth_noise(left_ground_truth_depth, right_ground_truth_depth, camera_intrinsics, right_camera_relative_pose, quality_level=MAXIMUM_QUALITY): """ Generate a noisy dept...
from xml.etree import ElementTree class HigateXMLParser(): def parse(self, xmlstring): element = ElementTree.fromstring(xmlstring) messagedict = {} try: responselist = element.find("Response").items() for i in responselist: messagedict[i[0]] = i[1]...
""" module with high-level functions to help perform complex tasks """ from __future__ import print_function, division import os import multiprocessing as mp import subprocess as sp import platform import time import warnings import struct import socket import shutil import copy import numpy as np import pandas as pd ...
import time import django.core.exceptions import commands import random from core.common.models import RequestStat from django.utils import timezone from datetime import timedelta from django.db.models import Count, Sum from django.http import HttpResponse import json # We postpone JSON requests is server is overload...
""" Helpers for tests """ from __future__ import absolute_import, division, print_function import __builtin__ import sys from . import util_print from . import util_dbg from . import util_arg from . import util_time from .util_inject import inject print, print_, printDBG, rrr, profile = inject(__name__, '[tests]') HA...
from mock import patch import urllib2 try: import embedly no_embedly = False except ImportError: no_embedly = True from django.test import TestCase from wagtail.tests.utils import WagtailTestUtils, unittest from wagtail.wagtailembeds import get_embed from wagtail.wagtailembeds.embeds import ( EmbedN...
""" pointcloud Read in and store point clouds. """ import numpy as np from laspy.file import File from laspy.header import Header, VLR from collections import namedtuple from .exceptions import EmptyPointCloud _HEADER_DEFAULT = {'data_format_id': 3, 'x_scale': 2.5e-4, 'y_scale':...
### author: alessio.marcozzi@gmail.com ### version: 2017_08 ### licence: MIT ### requires Python >= 3.6 and numpy from Bio import pairwise2, Entrez, SeqIO from Bio.SubsMat import MatrixInfo as matlist from Bio.Blast.Applications import NcbiblastnCommandline from Bio.Blast import NCBIXML from urllib.request import ...
#TODO: choose a df/f method import numpy as np import warnings from util import sliding_window as sw from util import ProgressBar def compute_dff(data, percentile=8., window_size=1., step_size=.025, root_f=False, subtract_minimum=True, pad_mode='edge', in_place=False, return_f0=False, prog_bar=True): """Compute d...
#!/usr/local/bin/python # tabview.py -- View a tab-delimited file in a spreadsheet-like display. # Contributed by A.M. Kuchling <amk@amk.ca> # # ******************************************************************* # Minor modification by mooseman (Andy Elvey) # The only mod that I've made was to put the cursor key na...
# 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 Li...
import os mylang = 'test' family = 'wikipedia' custom_path = os.path.expanduser('~/user-config.py') if os.path.exists(custom_path): with open(custom_path, 'r') as f: variables = globals() # Do not pass in variables we do not want users to change for var in ['usernames', 'sysopnames']: ...
import sublime import sublime_plugin import re, sys if not 'dict' in globals(): dict = {} if not 'hist' in globals(): hist = [] def input_parser(user_input): m = re.match(r"(.+)/([lcr*()0-9]*)(f[0-9]*)?", user_input) if m and (m.group(2) or m.group(3)): regex = m.group(1) option = m.group(2) ...
#!/usr/bin/env python # ftpserver.py # # pyftpdlib is released under the MIT license, reproduced below: # ====================================================================== # Copyright (C) 2007 Giampaolo Rodola' <g.rodola@gmail.com> # # All Rights Reserved # # Permission to use, copy, mo...
#!/usr/bin/python -Wall # Author: Ron Lockwood-Childs # Licensed under LGPL v2.1 (see file COPYING for details) # represent a PyGameMaker action that executes following an event import pygame import re class PyGameMakerActionException(Exception): pass class PyGameMakerAction(object): """Base class for act...
#!/usr/bin/python -Wall # Author: Ron Lockwood-Childs # Licensed under LGPL v2.1 (see file COPYING for details) # pygame maker object resource import pygame import re import math import yaml import pygame_maker_event as pygm_event import pygame_maker_action as pygm_action import pygame_maker_sprite as pygm_sprite i...
# Note: The display mode API used here is Mac OS 10.6 only. ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from ctypes import * from ctypes import util from pyglet import app from base import Display, Screen, ScreenMode, Canvas # Use PyObjC to get the list of displays and their dimensions, # jus...
#!/usr/bin/python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2007 Alex Holkner # All rights reserved. # # Redistribution and use in _al_source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
# Copyright (c) 2010-2012 OpenStack, 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 ...
# -*- coding: utf-8 -*- """ pygments.lexers.jvm ~~~~~~~~~~~~~~~~~~~ Pygments lexers for JVM languages. :copyright: Copyright 2006-2015 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, ...
import pandas as pd from psutil import cpu_count from dask import dataframe as dd from dask.multiprocessing import get import timeit def pd_apply(df, myfunc, *args, **kwargs): def wrapped(): if type(df) == pd.DataFrame: pd.concat([df[c].apply(myfunc, args=args, **kwargs) ...
from django.db import models from django.utils import timezone from core.models.application import Application from core.models.instance import Instance from core.models.user import AtmosphereUser from core.models.volume import Volume from threepio import logger class Project(models.Model): """ A Project is...
import re from .utils import validator user_regex = re.compile( # dot-atom r"(^[-!#$%&'*+/=?^_`{}|~0-9A-Z]+" r"(\.[-!#$%&'*+/=?^_`{}|~0-9A-Z]+)*$" # quoted-string r'|^"([\001-\010\013\014\016-\037!#-\[\]-\177]|' r"""\\[\001-\011\013\014\016-\177])*"$)""", re.IGNORECASE ) domain_regex = re....
# -*- coding: utf-8 -*- """ pygments.lexers.web ~~~~~~~~~~~~~~~~~~~ Lexers for web-related languages and markup. :copyright: Copyright 2006-2011 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import copy from pygments.lexer import RegexLexer, ExtendedReg...
""" API request handlers for process-job-handling. """ # We shadow the standard library; this is a workaround. from __future__ import absolute_import import bson import pymongo import datetime from collections import namedtuple from . import base from . import config log = config.log JOB_STATES = [ 'pending',...
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim: ai ts=4 sts=4 et sw=4 nu """ py3compat, based on jinja2._compat ~~~~~~~~~~~~~~ Some py2/py3 compatibility support based on a stripped down version of six so we don't have to depend on a specific version of it. :copyright: Copyright 2013 by ...
#!/usr/bin/env python import os import uuid from ample.util import ample_util from ample.util import pdb_edit # Our imports class Csymmatch( object ): def __init__(self): self._reset() return def _reset(self): self.logfile=None self.parsed=False self.changeOfHand...
from .clients import vcstool_clients __version__ = '0.1.17'
# -*- coding: utf-8 -*- """ pygments.lexers.web ~~~~~~~~~~~~~~~~~~~ Lexers for web-related languages and markup. :copyright: Copyright 2006-2011 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import copy from pygments.lexer import RegexLexer, ExtendedReg...
# -*- coding: utf-8 -*- from __future__ import unicode_literals import argparse import codecs from collections import OrderedDict, namedtuple, deque import csv import datetime import gc from math import sqrt import os import random import platform import subprocess import sys from threading import Thread from time impo...
#!/usr/bin/env ccp4-python import matplotlib matplotlib.use('Cairo') import matplotlib.pyplot # Set some matplotlib parameters matplotlib.rcParams['font.family'] = 'Arial' matplotlib.rcParams['font.size'] = 8 matplotlib.rcParams['xtick.direction'] = 'out' matplotlib.rcParams['ytick.direction'] = 'out' class Plotter(...
from .clients import vcstool_clients __version__ = '0.1.4'
# -*- coding: utf-8 -*- """ pygments.lexers.web ~~~~~~~~~~~~~~~~~~~ Lexers for web-related languages and markup. :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, ExtendedRegexLexer, byg...
from Tkinter import * class InstallerAPI(object): def check_version(self): pass def get_items(self): return [ {'id': 1, 'name': "Item 1", 'installed': True}, {'id': 2, 'name': "Item 2", 'installed': False}, {'id': 3, 'name': "Item 3", 'installed': False} ...
import numpy as np __all__ = ('add_bias_column', 'iter_until_converge', 'shuffle') def add_bias_column(data): """ Transform input data to matrix and add as first column which contains all ones. Parameters ---------- data : array-like Main matrix. Returns ------- array-like ...
# vim: sw=4:expandtab:foldmethod=marker # # Copyright (c) 2006, Mathieu Fenniak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyrig...
from django.contrib import admin from django.template.response import TemplateResponse from django.urls import path import django_rq from .models import EmailTemplate, Trigger scheduler = django_rq.get_scheduler('default') class EmailTemplateAdmin(admin.ModelAdmin): list_display = ['slug', 'subject', 'to_head...
#!/usr/bin/python # mhite@hotmail.com # 9/12/2015 import argparse import collections import datetime import logging import math import os import plistlib import sqlite3 import time import urllib __VERSION__ = '1.0.1' DEFAULT_SQLITE = os.path.expanduser('~/Library/Application Support/Swinsian/Library.sqlite') DEFAULT...
import json import os from vent.api.plugins import Plugin from vent.api.templates import Template from vent.helpers.meta import Version class Action: """ Handle actions in menu """ def __init__(self, **kargs): self.plugin = Plugin(**kargs) def add(self, repo, tools=None, overrides=None, version="HEAD...
# -*- coding: utf-8 -*- """ pygments.lexers.web ~~~~~~~~~~~~~~~~~~~ Lexers for web-related languages and markup. :copyright: Copyright 2006-2011 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import copy from pygments.lexer import RegexLexer, ExtendedReg...
#!/usr/bin/env python """ Represent connectivity pattern using pandas DataFrame. """ from collections import OrderedDict import itertools import re import networkx as nx import numpy as np import pandas as pd from plsel import Selector, BasePortMapper, SelectorMethods class Interface(object): """ Container...
# -- coding: utf-8 -- # Copyright 2018 Olivier Scholder <o.scholder@gmail.com> from __future__ import absolute_import from . import Block import numpy as np import struct import os.path import zlib import re import os from .utils.misc import deprecated, aliased, alias, PB from warnings import warn class InvalidRAWda...
from __future__ import print_function, division, absolute_import import sys from os.path import isfile, join from optparse import OptionParser from anaconda_verify.recipe import validate_recipe, RecipeError from anaconda_verify.package import validate_package, PackageError def main(): p = OptionParser() p....
from collections import OrderedDict from django import forms import account.forms class SignupForm(account.forms.SignupForm): first_name = forms.CharField() last_name = forms.CharField() email_confirm = forms.EmailField(label="Confirm Email") def __init__(self, *args, **kwargs): super(Sign...
# -*- coding: utf-8 -*- """ pygments.lexers.web ~~~~~~~~~~~~~~~~~~~ Lexers for web-related languages and markup. :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import copy from pygments.lexer import RegexLexer, ExtendedReg...
# Author: Michele Mattioni # Mon Jan 26 05:54:30 GMT 2009 import math from neuron import h, nrn import ecellControl as eC from synapse import Synapse class Spine(): """ Class spine. Create a spine with head neck and psd """ def __init__(self, id, filename_bioch_mod="../bioche...
# -*- coding: utf-8 -*- # Copyright (c) 2015, MIT Probabilistic Computing Project # # 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...
import telnetlib import logging from argparse import ArgumentParser # Set log format FORMAT = ('%(asctime)-20s %(levelname)-6s %(filename)-8s %(name)-10s ' '%(funcName)-8s %(message)s') logging.basicConfig(format=FORMAT) class VDX: def __init__(self, hostname, username, password, timeout=10, ...
# -*- coding: utf-8 -*- import exceptions class IC_Exception(Exception): """ An exception for the IC imaging control software. It contains a message property which is a string indicating what went wrong. error code -3 has multiple possible interpretations, sometimes from the same function! ...
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
# -*- coding: utf-8 -*- from __future__ import unicode_literals try: from django.conf.urls import patterns, include, url except ImportError: from django.conf.urls.defaults import patterns, include, url from pybb.feeds import LastPosts, LastTopics from pybb.views import IndexView, CategoryView, ForumView, Topi...
#!/usr/bin/env python3 import sys import util.io as io import numpy as np # read in two files -- one twice the resolution of the other, and # compute the error by averaging down usage = """ usage: ./convergence.py fine coarse """ def compare(fine, coarse): dens = coarse.get_var("density") dens_avg = ...
# -*- coding: utf-8 -*- import os.path import sys title = "Synapse" author = "Max Larsson" version = "1.2.0" date = ("May", "4", "2018") email = "max.larsson@liu.se" homepage = "www.liu.se/medfak/forskning/larsson-max/software" if hasattr(sys, 'frozen'): if '_MEIPASS2' in os.environ: path = os.environ['_...
# coding: utf-8 ''' support library to write SQLite FTS3 tokenizer ''' from __future__ import print_function, unicode_literals import sys import struct import warnings from .tokenizer import (ffi, dll, get_db_from_connection, SQLITE_OK, SQLITE_DONE) from .error import Error SQLITE_DBCONFIG_ENA...
import os import numpy as np import uuid import hashlib import sys, getopt import struct from wheezy.template.engine import Engine from wheezy.template.ext.core import CoreExtension from wheezy.template.loader import DictLoader IMZML_TEMPLATE = """\ @require(uuid, sha1sum, mz_data_type, int_data_type, run_id, spectr...
""" @author : David R. Pugh @date : 2016-01-27 TODO ----- 1. Use ElementTree to implement XML parsing of BEA data. 2. Lots of documentation needs to be written! Mostly this can be copied verbatim from the BEA user guide. """ import json import requests class Request(dict): """Base class for a Request.""" ...
"""Utilities for PyTables' test suites.""" import os import re import sys import locale import platform import tempfile from pathlib import Path from time import perf_counter as clock from packaging import version import unittest import numexpr as ne import numpy as np import tables as tb from tables.req_versions i...
""" SQLObject --------- :author: Ian Bicking <ianb@colorstudy.com> SQLObject is a object-relational mapper. See SQLObject.html or SQLObject.txt for more. Modified by: * Daniel Savard, Xsoli Inc <sqlobject xsoli.com> 7 Feb 2004 Added support for simple table inheritance. * Oleg Broytmann, SIA "ANK" <phd@phd.pp.r...
#coding:utf8 import hashlib import os.path import time from twisted.internet.protocol import ClientFactory from twisted.internet import reactor, task from syncplay.protocols import SyncClientProtocol class SyncClientFactory(ClientFactory): def __init__(self, client, retry = 10): self._client = client ...
# -*- coding: utf-8 -*- import urllib2, time from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities class PyInsta_DL(object): def __init__(self): self.userAgent = 'Mozilla/5.0 (Linux; U; Android 2.2.1; en-ca; LG-P505R Bu...
# Copyright (C) 2006-2011, Timothy A. Davis. # Copyright (C) 2012, Richard Lincoln. # http://www.cise.ufl.edu/research/sparse/CSparse # # CSparseJ 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 ...
# -*- coding: utf-8 -*- ######################################################################## # # License: BSD # Created: 2005-05-24 # Author: Ivan Vilata i Balaguer - ivan@selidor.net # # $Id$ # ######################################################################## """Utilities for PyTables' test suites.""" fr...
"""Managing clustering, fnotching and cut application here.""" from __future__ import division, print_function import importlib import matplotlib import matplotlib.pyplot as plt import pandas as pd from pathlib import Path from scipy.stats import circmean import numpy as np from . import io, markings from .dbscan impo...
#coding:utf8 import hashlib import os.path import time from twisted.internet.protocol import ClientFactory from twisted.internet import reactor, task from syncplay.protocols import SyncClientProtocol from syncplay import utils, constants from syncplay.messages import getMessage import threading try: import libMal e...
#!/usr/bin/env python3 """ class InstallItem hold information about how to install one or more install_sources. information include: iid - must be unique amongst all InstallItems. name - will appear in progress messages and logs. guids - a standard 36 character guid. Can be used as add...
import daemon import datetime import feedparser import logging import os import time import re import urllib import settings from middleware.mii_sql import FeedDownloaded, get_serie_episode, get_serie_season, db from sorter.sorter import is_serie logging.basicConfig(filename='example.log', level=logging.DEBUG) def ...
import json import yaml from django.contrib.auth.models import Group as UserGroup from squad.core.models import Group, Project, ProjectStatus, Build, TestRun, Environment, Test, Metric, EmailTemplate, KnownIssue, PatchSource, Suite from squad.core.notification import Notification from squad.ci.models import Backend, T...
import logging import networkx import string import claripy l = logging.getLogger(name="angr.functionmanager") class Function(object): ''' A representation of a function and various information about it. ''' def __init__(self, function_manager, addr, name=None): ''' Function construct...
"""Python wrapper for GTA Orange's vehicle functions Subscribable built-in events: +===============+=========================+====================================+ | name | vehicle-local arguments | global arguments | +===============+=========================+===============================...
# Copyright (c) 2014, Facebook, Inc. # All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. import logging import re from ab...
from PySide import QtGui from PySide.QtCore import Qt, QSettings, QSize, QPoint, QUrl from syncplay import utils, constants, version from syncplay.messages import getMessage import sys import time from datetime import datetime import re import os from syncplay.utils import formatTime, sameFilename, sameFilesize, sameFi...
name = 'pykechain' description = 'KE-chain Python SDK' version = '0.1.0.dev1' author = 'KE-works BV' email = 'support+pykechain@ke-works.com'
import chess import sys import copy def minimax(board, move, depth, isMax): if depth > 0: if isMax: best_value, best_move = (sys.maxsize*-1,None) else: best_value, best_move = (sys.maxsize,None) for legal_move in board.legal_moves: board_cpy = copy.deepco...
""" GFA representation trough a networkx MulitDiGraph. """ import copy import re import logging import networkx as nx from pygfa.graph_element.parser import header, segment, link, containment, path from pygfa.graph_element.parser import edge, gap, fragment, group from pygfa.graph_element.parser import line from py...
''' Contact managing views ''' from datetime import date from django import forms from django.contrib import messages from django.contrib.admin import filters from django.contrib.admin.widgets import FilteredSelectMultiple from django.contrib.auth import password_validation from django.core.exceptions import Permissi...
"""TestCase subclass for executing the scenarios from a feature""" from six.moves import ( cStringIO as StringIO, ) import csv from importlib import import_module import io import logging import os import re import sys from unittest import ( TestCase, SkipTest, ) from nose2.util import ( exc_info_to_s...
''' Created on Jul 19, 2013 @author: Nathan Schneider (nschneid) ''' from __future__ import print_function, division, absolute_import import sys, os, re, fileinput, codecs, json from collections import defaultdict, Counter from heapq import heappush, heappop import morph _lexicons = {} def load_lexicons(lexfiles): ...
#-*- coding:Utf-8 -*- # # Class Layout # # This class handle the description of buildings # import pdb import os import copy import glob import pickle import cPickle import ConfigParser import numpy as np import numpy.random as rd import scipy as sp import struct as stru from scipy import io import doctest import ran...
#!/usr/bin/env python """minipkg.py - install pkgsrc Usage: python minipkg.py [-h | --help] [-v | --version] """ from __future__ import print_function import hashlib import os import subprocess import sys import urllib2 __author__ = 'Mansour Moufid' __copyright__ = 'Copyright 2015, Mansour Moufid' __email__ = 'ma...
""" run the following for help python bin/runpygg.py --help """ import os import re import subprocess import csv import tempfile import pandas quote1re = re.compile('"') quote2re = re.compile("'") def esc(mystr): """Escape string so that it remains a string when converted to R""" return '"{}"'.format(quo...
import os import re import sys import time import urllib.error import urllib.parse import urllib.request from datetime import datetime from functools import wraps from platform import python_version from twisted.internet import task from syncplay import utils, constants, version, revision, release_number from syncpl...
from setuptools import setup VERSION = '6.4.1' setup( name='Marvin', version=VERSION, description='Marvin - Python client for Cosmic', author='Mission Critical Cloud', author_email='int-cloud@schubergphilis.com', maintainer='Mission Critical Cloud', maintainer_email='int-cloud@schubergphil...
# Copyright (C) Ivan Kravets <me@ikravets.com> # See LICENSE for details. import json from urllib import unquote from bottle import Bottle, request, response from platformio_api import api from platformio_api.database import db_session from platformio_api.exception import APIBadRequest, APINotFound app = applicati...
#!/usr/bin/env python ############################################################################# # Copyright (c) 2017 SiteWare Corp. All right reserved ############################################################################# import subprocess import copy import os import jinja2 import json import yaml import st...
# -*- coding: utf-8 -*- import sys, os, random from PyQt4.QtCore import * from PyQt4.QtGui import * import matplotlib from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar from matplotlib.figure impor...
import json from flask_nav import Nav from flask_nav.elements import Navbar, View, Subgroup, Link from flask import session class Navigation: with open("configs/base.json", "r") as base_config_file: base_config = json.load(base_config_file) base = ['TiT', View('Home', 'home'), View('Account', "acc...
#!/usr/bin/env python """The mirrors module defines classes and methods for Ubuntu archive mirrors. Provides latency testing and mirror attribute getting from Launchpad.""" from sys import stderr from socket import (socket, AF_INET, SOCK_STREAM, gethostbyname, setdefaulttimeout, ...
from datetime import datetime, timedelta import pytz from dateutil.parser import parse as dateutil_parse import pandas as pd from pyiso.base import BaseClient class BPAClient(BaseClient): NAME = 'BPA' base_url = 'http://transmission.bpa.gov/business/operations/' fuels = { 'Hydro': 'hydro...
from PySide import QtGui #@UnresolvedImport from PySide.QtCore import Qt, QSettings, QSize, QPoint #@UnresolvedImport from syncplay import utils, constants, version import sys import time import re import os from syncplay.utils import formatTime class MainWindow(QtGui.QMainWindow): def addClient(self, client): ...
######## # Copyright (c) 2013 GigaSpaces 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...
#!/usr/bin/env python # 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...
#PyjsArray - Copyright (C) 2013 James Garnon #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 option) any later version. # #This program is distributed...
######## # Copyright (c) 2013 GigaSpaces 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...
################################################################################################################# # pynamical # Description: Model, simulate, and visualize discrete nonlinear dynamical systems and chaos # Author: Geoff Boeing # Web: https://geoffboeing.com/ # Code repo: https://github.com/gboeing/pynami...
""" vim mock object for easier testing of vim plugins written in Python. """ import sys from vimmock.mocked import VimMock VERSION = (0, 1, 1) __all__ = ['VimMock'] __version__ = '.'.join((str(each) for each in VERSION[:4])) def get_version(): """ Returns shorter version (digit parts only) as string. ""...
# coding=utf-8 """ Main Linear Inverse Model classes and methods. Author: Andre Perkins """ import numpy as np from numpy.linalg import pinv, cond, eigvals from math import ceil import tables as tb import cPickle as cpk import logging import time from Stats import calc_eofs import DataTools as Dt logger = logging....