text
stringlengths
17
737k
""" Support functions for parsing command-line arguments and providing the Topographica command prompt. Typically called from the './topographica' script, but can be called directly if using Topographica files within a separate Python. $Id$ """ __version__='$Revision$' import sys, __main__, math, os, topo from optp...
# coding: utf8 from enum import Enum import abc import copy class OperatorType(Enum): AND = 'and' OR = 'or' XOR = 'xor' class Entity(metaclass=abc.ABCMeta): @abc.abstractmethod def check(self, element, ref_position): pass @abc.abstractmethod def get_max_position(self): ...
#!/usr/bin/env python # -*- coding: utf8 -*- """ Financial Market Simulator """ __author__ = "Jean-Charles Bagneris <jcb@bagneris.net>" __license__ = "BSD" import sys import logging import fms.core from fms.core import set_parser, set_logger, get_command def main(): """ Run experiment : - parse command ...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PySfepy(PythonPackage): """SfePy (https://sfepy.org/) is a software for solving systems of...
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import llnl.util.tty as tty from spack import * class Swiftsim(AutotoolsPackage): """SPH With Inter-dependent Fine-...
import re import serial from time import sleep class SerialConnectionError(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) class AbstractDoor(): # \\n.+\\r code_re = re.compile("\\n(.+)\\r", re.UNICODE) def __init__(self, *...
# -*- coding: utf-8 -*- # Copyright (c) 2016 The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. See the LICENSE file for details. import functools import factory from factory.faker import Faker from pycroft.helpers.u...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright 2016 Fedele Mantuano (https://twitter.com/fedelemantuano) 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/lice...
# -*- coding: utf-8 -*- """ developer convenience functions for ibs TODO: need to split up into sub modules: consistency_checks feasibility_fixes move the export stuff to dbio then there are also convineience functions that need to be ordered at least within this file """ from __future__ import ab...
#!/usr/bin/env python import unkml import logging logging.basicConfig(format = '%(levelname)s: %(message)s', level = logging.DEBUG) unkml.Config.outputDir = 'output' layers = [ unkml.Layer('Sample KMZ', 'http://kml-samples.googlecode.com/svn/trunk/kml/time/time-stamp-point.kmz') ] unkml.Config.processLayerList(lay...
from __future__ import print_function import sys, os, json, zipfile from re import sub from pyspark.sql import SparkSession, Row from pyspark.sql.functions import col def getSeries(fname): with zipfile.ZipFile(fname, 'r') as zf: names = zf.namelist() mfile = [f for f in names if f.endswith('.meta...
import os import threading import Queue import traceback import atexit import weakref import __future__ # note that the whole code of this module (as well as some # other modules) execute not only on the local side but # also on any gateway's remote side. On such remote sides # we cannot assume the py library to be ...
import concurrent.futures import csv import sys import logging import jinja2 import json import gzip import psycopg2 import psycopg2.extras import os import os.path import time from datetime import timedelta from tempfile import NamedTemporaryFile import requests from invoke import task from invoke.exceptions import Fa...
#!/usr/bin/python # -*- coding: utf-8 -*- import flask from flask import Flask, render_template from flask_googlemaps import GoogleMaps from flask_googlemaps import Map from flask_googlemaps import icons import os import re import sys import struct import json import time import requests import argparse import threadi...
__author__ = "mramire8" import os, sys sys.path.append(os.path.abspath(".")) sys.path.append(os.path.abspath("../")) from sklearn import metrics import utilities.experimentutils as exputil import utilities.datautils as datautil import utilities.configutils as cfgutil from sklearn import cross_validation import numpy...
import pwd import os from django.core import mail from django import apps from django.core.checks import register, Error, Warning, Info from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.core.files.base import ContentFile from django.core.files.storage import default_s...
# # 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 us...
#!/usr/bin/env python # coding: utf-8 import numpy as np import random from mutualModelling import model from mutualModelling.model import diff_reward import matplotlib.pyplot as plt import copy import operator class Agent: """agent able of first and 2nd mutual modelling reasoning""" def __init__(self,name,ag...
# -*- coding: iso8859-1 -*- # # Copyright (C) 2004 Edgewall Software # Copyright (C) 2004 Christopher Lenz <cmlenz@gmx.de> # # Trac 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 # Lic...
import mimetypes import os import stat import urllib from django import http, template from django.conf import settings from django.core.servers.basehttp import FileWrapper from django.shortcuts import render_to_response from django.utils.http import http_date from django.utils.safestring import mark_safe from django...
# -*- coding: utf-8 -*- AUTHOR = u'Matt Makai' SITENAME = u'Full Stack Python' SITEURL = 'https://www.fullstackpython.com' TIMEZONE = 'America/New_York' GITHUB_URL = 'https://github.com/mattmakai/fullstackpython.com' PDF_GENERATOR = False DIRECT_TEMPLATES = ('index', 'sitemap', 'table-of-contents', 'email', ...
# -*- coding: utf-8 -*- """Script to compact all Brython scripts in a single one.""" import datetime import os import re import sys import tarfile import zipfile import make_static_doc # lint:ok try: import slimit minify = slimit.minify except ImportError: minify = slimit = None # path of parent di...
# coding: utf-8 """ TriAnd RR Lyrae """ from __future__ import division, print_function __author__ = "adrn <adrn@astro.columbia.edu>" # Standard library import os, sys from datetime import datetime, timedelta # Third-party import astropy.coordinates as coord import astropy.units as u from astropy.io import ascii f...
import requests import os import json # NOTE: You must create a file for CONFIG_JSON with your LDAP auth in it like: # { # "username": "username", # "password": "password" # } # # In order to access the phonebook data MY_DIR = os.path.abspath(os.path.dirname(__file__)) PEOPLE_FILENAME = os.path.join(MY_DIR, 'peo...
from pigui.clickable_label import ClickableLabel __author__ = 'richard' from pigui.canvas import Canvas from pigui.label import Label from pigui.button import Button from pigui.color import * from pigui.move_label import MoveLabel from pigui.clickable_label import ClickableLabel from pigui.listview import ListView im...
""" File, to store some multi-run parametres `HONEYFOLDER` - root folder, to put all gathered data into. """ HONEYPORT = 80 HONEYFOLDER = "bots/" HIVEHOST = '127.0.0.1' HIVEPORT = 666
#!/usr/bin/env python3.4 # vim:fileencoding=utf-8:ft=python # file: img4latex.py # # Author: R.F. Smith <rsmith@xs4all.nl> # Created: 2014-12-04 20:14:34 +0100 # $Date$ # $Revision$ # # To the extent possible under law, R.F. Smith has waived all copyright and # related or neighboring rights to img4latex.py. This work i...
# ---------------------------------------------------------------------- # Numenta Platform for Intelligent Computing (NuPIC) # Copyright (C) 2014-2015, Numenta, Inc. Unless you have an agreement # with Numenta, Inc., for a separate license for this software code, the # following terms and conditions apply: # # This p...
# -*- coding: utf8 -*- # This file is part of PyBossa. # # Copyright (C) 2014 SF Isle of Man Limited # # PyBossa 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...
from os import listdir, makedirs from os.path import exists, join import shutil from flask import current_app from flask.cli import with_appcontext import click import iatikit from ..core import models from . import utils @click.group('iati') def iati_cli(): """Automated test commands.""" pass @iati_cli.c...
#!/usr/bin/env python3 import os.path import os import json import gmafile from functools import partial from fnmatch import fnmatch class GModAddon: """Represents a Garry's mod addon based on the addon.json data """ def __init__(self, data, path): self.data = data self.file = os.path.join...
import functools import inspect import os import random import subprocess from tempfile import NamedTemporaryFile from datetime import datetime from io import StringIO import dj_database_url from dulwich import porcelain from fabric import task from fabric.connection import Connection from invoke import Exit from invo...
from os import listdir, makedirs from os.path import exists, join import shutil from flask import current_app from flask.cli import with_appcontext import click import iatikit from ..core import models from . import utils @click.group('iati') def iati_cli(): """Automated test commands.""" pass @iati_cli.c...
import sys from itertools import cycle from .multiplexer import Multiplexer from . import colors class LogPrinter(object): def __init__(self, containers, attach_params=None): self.containers = containers self.attach_params = attach_params or {} self.generators = self._make_log_generators...
from fabric.api import abort, cd, env, get, hide, hosts, local, prompt, parallel, serial from fabric.api import put, require, roles, run, runs_once, settings, show, sudo, warn from fabric.colors import red, green, blue, cyan, magenta, white, yellow try: from boto.s3.connection import S3Connection from boto.s3.k...
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import numpy as np from scipy.ndimage.filters import uniform_filter1d from scipy.ndimage.fourier import fourier_gaussian from .utils import print_update, validate_tuple # When loading module, try ...
# # Copyright 2018 Analytics Zoo 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 applicable law or agreed to...
import os, re from datetime import datetime from fabric.api import * #server user name env.user = 'zhengnan' # sudo user env.sudo_user = 'root' # server address env.hosts = ['192.168.56.103'] db_user = 'www-data' db_password = 'www-data' _TAR_FILE = 'dist-awesome.tar.gz' def build(): includes = ['static', '...
#!/usr/bin/env python # This script is run by /etc/rc.local when booting up. It does special configuration # depending on what images are mounted, etc. import os, socket, sys # If hostname isn't "salvus-base", then setup /tmp and swap. if socket.gethostname() == "salvus-base": sys.exit(0) # Enable swap if not...
import sqlite3 conn = sqlite3.connect('noteProject.sqlite3') cursor = conn.cursor() def createTableList(cursor): SQLtables = [] tagTable = """ create table User( ) """ SQLtables.append(tagTable); notesTable = """ create table Notes( NoteID integer PRIMARY KEY AUTOINCREMENT, UserID integer, ...
############################################################################## # Copyright (c) 2013-2016, 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...
# Django settings for store project. import os import socket import sys PROJECT_ROOT = os.path.dirname(__file__) sys.path.insert(0, os.path.join(PROJECT_ROOT, "apps")) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS if socket.gethostname() == "force...
############################################################################### # This file holds the implementations for all the API clients. # # If you want to develop a new client, here are some suggestions: Get the fetch # methods working first, then the push, then the liquidsoap notifier. You will # probably want...
""" Tests for UMAP to ensure things are working as expected. """ from nose.tools import assert_less from nose.tools import assert_greater_equal import os.path import numpy as np from scipy.spatial import distance from scipy import sparse from scipy import stats from sklearn.utils.estimator_checks import check_estimator...
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # Copyright (c) 2015, Battelle Memorial Institute # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistri...
# -*- coding: utf-8 -*- """ profiling.remote ~~~~~~~~~~~~~~~~ """ from __future__ import absolute_import import io from logging import getLogger as get_logger try: import cPickle as pickle except ImportError: import pickle import struct import gevent from gevent import socket from gevent.server import ...
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyTornado(PythonPackage): """Tornado is a Python web framework and asynchronous networking...
import pandas as pd import numpy as np from scipy.stats.stats import _ttest_finish as get_pval from itertools import combinations, chain from collections import defaultdict, OrderedDict import quantipy as qp import pandas as pd import numpy as np from operator import add, sub, mul, div from quantipy.core.view import Vi...
#!/bin/env python # Copyright (c) 2002-2014, California Institute of Technology. # All rights reserved. Based on Government Sponsored Research under contracts NAS7-1407 and/or NAS7-03001. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following co...
# -*- coding: utf-8 -*- """ Fabric build scripts """ from fabric.api import * from fabvenv import * # The main module name, which is equal to repository name env.name = 'scrapy-utils' # Git repository url env.repository = 'git@github.com:dantin/%s.git' % env.name # Default Git branch env.branch = 'master' # Custom se...
#!/usr/bin/env python3 import click import sqlite3 import signal import sys import sched import time import uuid import datetime import Adafruit_DHT import cv2 import numpy as np import matplotlib.pyplot as plt from pylepton import Lepton from skimage import io from sklearn.externals import joblib from skimage.draw im...
f463ddf6-2e72-11e5-9284-b827eb9e62be
import os import pyfits import numpy as np import glob import shutil import time import matplotlib.pyplot as plt USE_PLOT_GUI=False from matplotlib.figure import Figure from matplotlib.backends.backend_agg import FigureCanvasAgg import matplotlib.ticker as mticker from pyraf import iraf from iraf import iraf impor...
""" Copyright 2017-present, Airbnb 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, sof...
import os import base64 from django.db.models import F, Q from xos.config import Config from observer.openstacksyncstep import OpenStackSyncStep from core.models import Controller from core.models.network import * from util.logger import observer_logger as logger class SyncNetworkSlivers(OpenStackSyncStep): reques...
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END """FogLAMP Scheduler module""" import asyncio import collections import datetime import logging import math import time import uuid import os import subprocess import signal from typing import List from foglamp.common.configu...
#!/usr/bin/env python """ gui/toraw ~~~~~~~~~~~~~~~~~~~~ Graphical user interface for converting movies to raw files :author: Joerg Schnitzbauer, 2015 :copyright: Copyright (c) 2015 Jungmann Lab, Max Planck Institute of Biochemistry """ import sys import os import os.path from PyQt4 import QtCore...
from django.conf import settings from django.core.urlresolvers import reverse from ureport.assets.models import Image from ureport.tests import DashTest class ImageTest(DashTest): def setUp(self): super(ImageTest, self).setUp() self.uganda = self.create_org('uganda', self.admin) self.nig...
33acb0d8-2e72-11e5-9284-b827eb9e62be
from typing import Dict, Tuple, Union from collections import deque from datetime import datetime import io import logging import os import numpy as np from ..messages import * class MessageData(object): def __init__(self, message_type, params): self.message_type = message_type self.message_cla...
""" wiki: https://en.wikipedia.org/wiki/Pangram """ def check_pangram( input_str: str = "The quick brown fox jumps over the lazy dog", ) -> bool: """ A Pangram String contains all the alphabets at least once. >>> check_pangram("The quick brown fox jumps over the lazy dog") True >>> check_pangr...
import doctest import getopt import glob import sys try: import pkg_resources pkg_resources.require('OWSLib') except (ImportError, pkg_resources.DistributionNotFound): pass def open_file(filename, mode='r'): """Helper function to open files from within the tests package.""" import os return op...
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import print_function import re import os import warnings import functools import getpass import keyring import numpy as np import astropy.units as u import astropy.io.votable as votable from astropy import coordinates from astropy.extern...
# -*- coding: utf-8 -*- # # Copyright 2018-2020 Data61, CSIRO # # 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 applicabl...
# System-level modules from fabric.api import task, env, local from fabric.contrib.console import confirm from tinyetl import TinyETL import os import requests import sqlite3 import pandas as pd import iso8601 # Helper script from eq_database import create_eq_table, get_db description = """ Real-time Earthquake Data ...
"""UI module.""" import pygame import logging import math from .locals import * # noqa from .display import DisplayModule, DisplayLayer from .events import TickEvent, EventManager from .entities import EntityManager, EntityHealthChangeEvent from .assets import AssetManager from .modules import Module from .session im...
# -*- coding: utf-8 -*- import os.path #DEBUG = False DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('larry@carthage.edu'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'HOST': 'localhost', 'NAME': 'djforms', 'ENGINE': 'django.db.backends.mysql', 'USER': ''...
import unittest import datetime import os import pytz from firmant.datasource.atom import AtomProvider, \ AtomBase, \ DatetimeFilter, \ AtomObjectFilter, \ AtomObjectListFilte...
""" desispec.tilecompleteness.py ======================== Routines to determine the survey progress and tiles completion. """ import os,sys import numpy as np import yaml import glob from astropy.table import Table,vstack from desiutil.log import get_logger def compute_tile_completeness_table(exposure_table,specpr...
# -*- coding: UTF-8 -*- import os.path import string import random from fabric.api import * from fabric.contrib import files env.hosts = [ 'pycon.it' ] # sshagent_run credits to http://lincolnloop.com/blog/2009/sep/22/easy-fabric-deployment-part-1-gitmercurial-and-ssh/ # modified by dvd :) def sshagent_run(cmd, cap...
# Django settings for stats project. import os import sys import datetime import socket PRODUCTION_LOGGING_SERVER_NAME = "florida" PRODUCTION_QUERY_SERVER_NAME = "yuma" IS_PRODUCTION_LOGGING_SERVER = ( socket.gethostname() == PRODUCTION_LOGGING_SERVER_NAME) IS_PRODUCTION_QUERY_SERVER = ( socket.gethostname()...
import re from . import AWSObject, AWSProperty, Join, Tags from .validators import boolean, integer, positive_integer MEMORY_VALUES = [x for x in range(128, 3009, 64)] RESERVED_ENVIRONMENT_VARIABLES = [ 'AWS_ACCESS_KEY', 'AWS_ACCESS_KEY_ID', 'AWS_DEFAULT_REGION', 'AWS_EXECUTION_ENV', 'AWS_LAMBDA_FU...
import confy import os from fabric.api import cd, run, sudo from fabric.colors import green, yellow, red from fabric.contrib.files import exists, upload_template confy.read_environment_file() e = **os.environ def _get_latest_source(): run('mkdir -p {}'.format(DEPLOY_TARGET)) if exists(os.path.join(DEPLOY_TARG...
from django.contrib import admin from imagekit.admin import AdminThumbnail from .models import Clipboard class ClipboardAdmin(admin.ModelAdmin): _thumbnail = AdminThumbnail(image_field='thumbnail') list_display = 'filename', 'user', '_thumbnail', 'date_created', readonly_fields = 'filename', '_thumbnail'...
#!/usr/bin/python import corgy.graph.graph_pdb as gpdb import Bio.PDB as bpdb import os import numpy as np import math import corgy.builder.config as cbc import corgy.visual.pymol as cvp import corgy.builder.stats as cbs import corgy.graph.graph_pdb as cgg import corgy.utilities.vector as cuv from random import choi...
from django.core.mail import send_mail from django.forms import model_to_dict import json import logging import os from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render, render_to_response from django.template import Context, Template, RequestContext from django.template.loader ...
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' Su Doku (Japanese meaning number place) is the name given to a popular puzzle concept. Its origin is unclear, but credit must be attributed to Leonhard Euler who invented a similar, and much more difficult, puzzle idea called Latin Squares. The objective of Su Doku ...
#!/usr/bin/python from __future__ import print_function def interrogator(corpus, search, query = 'any', show = 'w', exclude = False, excludemode = 'any', searchmode = 'all', dep_type = 'collapsed-ccprocessed-dependencies', ...
from __future__ import absolute_import from time import strptime, mktime from datetime import datetime import fnmatch import os from sqlalchemy import Column, Integer, Float, String, DateTime, Boolean,\ Table, ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import declarative_ba...
from __future__ import absolute_import import os import re import json from datetime import datetime, timedelta import hashlib import time from fabric.api import env, hide, settings, cd, lcd from fabric.operations import local as lrun, run, sudo, put from fabric.contrib.console import confirm from fabric.tasks import ...
import torch.nn as nn from torch.autograd import Variable import numpy as np import torch def laplace(): return np.array([[0.25, 0.5, 0.25], [0.5, -3.0, 0.5], [0.25, 0.5, 0.25]]).astype(np.float32)[None, None, ...] class Laplace(nn.Module): """ Laplace filter for a stack of data. """ def __init...
# # Copyright 2014 Quantopian, 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 wr...
# Copyright 2016 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. # Recipe module for Skia Swarming test. DEPS = [ 'core', 'env', 'flavor', 'recipe_engine/context', 'recipe_engine/file', 'recipe_engine/json',...
#!/usr/bin/env python3 # Copyright (c) 2018, CNRS-LAAS # 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 copyright notice, this # list...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function import ast import six import token import tokenize import unittest from .context import asttokens class TestASTTokens(unittest.TestCase): def test_tokenizing(self): # Test that we produce meaningful tokens on initialization. sou...
# Zephyr documentation build configuration file. # Reference: https://www.sphinx-doc.org/en/master/usage/configuration.html import sys import os from pathlib import Path import re from sphinx.highlighting import lexers import sphinx_rtd_theme ZEPHYR_BASE = os.environ.get("ZEPHYR_BASE") if not ZEPHYR_BASE: raise...
import six try: import unittest2 as unittest except ImportError: import unittest # noqa from mock import Mock from cassandra import AlreadyExists from cassandra.cluster import Cluster from cassandra.metadata import (Metadata, KeyspaceMetadata, TableMetadata, Token, MD5Token, ...
#cython: c_string_type=str, c_string_encoding=ascii #cython: profile=True, cdivision=True, cdivision_warnings=True import subprocess import os.path import shlex import logging import re import operator import numpy as np import pysam import cython import numconv from utilBMF.HTSUtils import ThisIsMadness from utilBM...
# -*- coding: utf-8 -*- """ Pygments basic API tests ~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2006-2010 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import random import unittest from pygments import lexers, formatters, filters, format from pygments.t...
"""Runtime configuration logic for running a bundle build. Copyright (c) 2013 Clarinova. This file is licensed under the terms of the Revised BSD License, included in this distribution as LICENSE.txt """ import os.path from six import string_types from ambry.util import AttrDict, lru_cache, parse_url_to_dict from ...
import os from general import _bedgraph_to_bigwig from general import _bigwig_files from general import _fastqc from general import _flagstat from general import _make_softlink from general import _pbs_header from general import _picard_remove_duplicates from general import _process_fastqs from general import _samtool...
052d9150-2e72-11e5-9284-b827eb9e62be
# coding: utf-8 # # This file is part of Progdupeupl. # # Progdupeupl 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. # # Progdu...
######## # Copyright (c) 2016 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 requir...
""" shrunk - Rutgers University URL Shortener Sets up a Flask application for the main web server. """ from flask import Flask, render_template, make_response, request, redirect, g, session from flask_sso import SSO from shrunk.forms import BlockLinksForm, LinkForm, BlacklistUserForm, AddAdminForm from shrunk.util im...
a8c42468-2e73-11e5-9284-b827eb9e62be
""" Initialise database. Sieve blockchain for Counterparty transactions, and add them to the database. """ import os import time import binascii import struct import decimal D = decimal.Decimal import logging import collections from Crypto.Cipher import ARC4 import apsw import bitcoin as bitcoinlib import bitcoin.rpc...
""" =============== Python Seawater =============== Introduction: ------------- This module contains a translation of the original CSIRO Matlab package (SEAWATER-3.2) for calculating the properties of sea water. It consists of a self contained library easy to use. The only requirent is NumPy. The author has no inten...
DEVELREV="481" DEVELREVTAG="unstable" DEVELREV=DEVELREV+"-"+DEVELREVTAG # Copyright (C) 2004 Anthony Baxter # The Phone app. import os, platform, sys, threading, time from twisted.internet import defer, protocol from twisted.python import log, threadable from shtoom.app.interfaces import Application from shtoom.ap...
#!/usr/bin/env python """ CREATED:2015-03-01 by Eric Battenberg <ebattenberg@gmail.com> unit tests for librosa core.constantq Run me as follows: cd tests/ nosetests -v --with-coverage --cover-package=librosa """ from __future__ import division import warnings # Disable cache import os try: os.environ.pop...