text stringlengths 12 6.59M |
|---|
# -*- coding: utf-8 -*-
from django.conf import settings
from django.http import HttpResponse
from django.test import TestCase
from django_auth_ldap.backend import _LDAPUser
from django.test.client import RequestFactory
from typing import Any, Callable, Dict
from builtins import object
from oauth2client.crypt import Ap... |
from flask import Flask, render_template, flash
from flask_bootstrap import Bootstrap
from flask_appconfig import AppConfig
def create_app(configfile=None):
app = Flask(__name__)
AppConfig(app, configfile)
Bootstrap(app)
@app.route('/')
def index():
return render_template('index.html')
... |
# ovirt-hosted-engine-setup -- ovirt hosted engine setup
# Copyright (C) 2017 Red Hat, Inc.
#
# 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 2.1 of the License, or (at ... |
"""Webhooks for external integrations."""
from __future__ import absolute_import
from django.http import HttpRequest, HttpResponse
from django.utils.translation import ugettext as _
from zerver.models import get_client, UserProfile
from zerver.lib.actions import check_send_message
from zerver.lib.response import json... |
# Copyright (c) 2014 Steve Yadlowsky, Preetum Nakkarin.
# Licensed under MIT License.
# More information including the exact terms of the License
# can be found in the file COPYING in the project root directory.
import numpy as np
import time
import operator
import sys
import scipy.sparse
class IHTClassifier(object):... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*
from flask import Flask, render_template, send_from_directory
from flaskext.mysql import MySQL
from mysecret import DATABASE_USER, DATABASE_PASS, DATABASE_HOST
from werkzeug import generate_password_hash, check_password_hash
app = Flask(__name__)
@app.route('/')
def hom... |
#!/usr/local/bin/python -t
# $Id$
# Gnuplot.py -- A pipe-based interface to the gnuplot plotting program.
# Copyright (C) 1998 Michael Haggerty <mhagger@blizzard.harvard.edu>.
"""A pipe-based interface to the gnuplot plotting program.
This program is free software; you can redistribute it and/or modify
it under the... |
# Copyright 2014 LinkedIn Corp.
#
# 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.... |
# Copyright © 2017 Evan Smelser
# This software is Licensed under the MIT license. For more info please see SnookR/COPYING
"""
Django settings for SnookR project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/se... |
from zabbixdata import *
from geckoboard import *
import configs
gb = Geckoboard()
for piece in configs.pieces:
kind = piece['kind']
if kind == 'Line':
history = ZabbixData().gethistory(piece)
gb.line(history,piece)
gb.push(piece)
if kind == 'Monitoring':
webmondata = Zabb... |
from typing import Optional
# Zulip Settings intended to be set by a system administrator.
#
# See http://zulip.readthedocs.io/en/latest/settings.html for
# detailed technical documentation on the Zulip settings system.
#
### MANDATORY SETTINGS
#
# These settings MUST be set in production. In a development environment... |
from django.conf import settings
from django.core.cache import cache
import machiavelli.models as machiavelli
def banners(request):
context = {}
try:
conf = settings.BANNERS
except AttributeError:
return context
else:
for k, v in conf.items():
if not v['banner'] is None and v['banner'] != "":
context... |
import exptools
from ordereddict import OrderedDict
import pydataframe
import sys
from hilbert import hilbert_plot, hilbert_to_image
import rpy2.robjects as robjects
exptools.load_software('pyvenn')
import pyvenn
from square_euler import SquareEuler
import re
from sequence_logos import plot_sequences, plot_sequence_ali... |
from django.db import models
from django.db.models import Count, Max, Q, Sum, Case, When, IntegerField, Value
from django.urls import reverse # TODO ideally this shouldn't be in the model
from django.utils import timezone
from django.contrib.auth.models import User
from django.db.models import F
from django.utils.tran... |
"""
Some Documentation about AC_tools goes here. All modules should have this in the
__init__ folder at the top, in tripple double quotes - PEP
AC_tools is a bunch of started by Tomas, and contributed to by others in the group, and hopefully maintained by the Evans Group.
To access the help, from python or ipython, typ... |
# -*- coding: utf-8 -*-
u"""
Using xrtQook for script generation
-----------------------------------
- Start xrtQook: type ``python xrtQook.pyw`` from xrt/xrtQook or, if you have
installed xrt by running setup.py, type ``xrtQook.pyw`` from any location.
- Rename beamLine to myTestBeamline by double clicking o... |
from pprint import pprint
from datetime import datetime, timedelta
import pytz
from operator import itemgetter
from django.utils import timezone
from django.shortcuts import render
from django.views import View
from django.urls import reverse
from django.db.models import Q
from django.core.paginator import Paginator, ... |
# -*- coding: utf-8 -*-
import __main__
import numpy
import pylab
import os.path
import os
import copy
import pdb
import param
import topo.pattern.basic
import topo.command.analysis
from math import pi, sqrt, exp, pow
from numpy.oldnumeric import zeros, Float, sum
from topo.projection.basic import CFProjection, Share... |
try:
import os
import re
import sys
import shlex
import signal
import paramiko
import argparse
import tempfile
import subprocess
from lib.nmap import Nmap
from lib.core.common import *
from lib.core.logger import Logger
from lib.core.threadpool import ThreadPool
f... |
#
# ovirt-host-deploy -- ovirt host deployer
# Copyright (C) 2012-2013 Red Hat, Inc.
#
# 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 2.1 of the License, or (at your opt... |
import traceback
from submissions.Fritz import medal_of_honor
class DataFrame:
data = []
feature_names = []
target = []
target_names = []
honordata = DataFrame()
honordata.data = []
honortarget = []
class DataFrame2:
data2 = []
feature_names2 = []
target2 = []
target_names2 = []
hon... |
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from fabtastic import db
class Command(BaseCommand):
args = '[<output_file_path>]'
help = 'Restores a DB from a SQL dump file.'
option_list = BaseCommand.option_list + (
... |
#
# Copyright (c) 2016 NORDUnet A/S
# 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. Redistributions of source code must retain the above copyright
# notice, this list of ... |
import collections, operator, re, sys
# Frequency of letters etc according to http://www.cryptograms.org/letter-frequencies.php
# Other stats (TODO) http://scottbryce.com/cryptograms/stats.htm
# Letters
fletters = "etaoinshrdlucmfwgypbvkxjqz"
fbigrams = [
"th",
"he",
"in",
"er",
"an",
"re",
"nd",
"on",
"en"... |
import itertools
from cgi import escape
try:
from sys import intern
except ImportError:
pass
TOKEN_RAW = intern('raw')
TOKEN_TAGOPEN = intern('tagopen')
TOKEN_TAGINVERT = intern('taginvert')
TOKEN_TAGCLOSE = intern('tagclose')
TOKEN_TAGCOMMENT = intern('tagcomment')
TOKEN_TAGDELIM = intern('ta... |
# -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# 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
# l... |
from spacenavigator import * |
# -*- coding: utf-8 -*-
# flake8: noqa
import account_sepa_purpose
import account_sdd_mandate
import account_voucher
import sepa_batch
import res_bank
import res_partner
|
"""
@file
@brief Parse a file *.yml* and convert it into a set of actions.
.. todoext::
:title: define Jenkins job with .yml
:tag: enhancement
:cost: 4
:date: 2016-08-25
:issue: 29
:hidden:
:release: 1.4
The current build system is not easy to read.
This should make things more cle... |
## Copyright (c) 2009-2011, Florian Finkernagel. 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 li... |
'''
Library for working with Smartsheet's version 1.1 API.
This is HORRIBLY incomplete at the moment.
Author: Scott Wimer <scott.wimer@smartsheet.com>
'''
import json
from smartsheet_exceptions import (SmartsheetClientError, BadCellData,
DeprecatedAttribute, OperationOnDiscardedObject)
from base import Cont... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Appier Framework
# Copyright (c) 2008-2017 Hive Solutions Lda.
#
# This file is part of Hive Appier Framework.
#
# Hive Appier Framework is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apach... |
# -*- coding: utf-8 -*-
# This file is part of the pymfony package.
#
# (c) Alexandre Quercia <alquerci@email.com>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
"""
"""
from __future__ import absolute_import;
import os;
from time import ... |
#!/usr/bin/env python
"""
.. module:: radical.pilot.agent
:platform: Unix
:synopsis: An agent for RADICAL-Pilot.
.. moduleauthor:: Ole Weidner <ole.weidner@rutgers.edu>
"""
__copyright__ = "Copyright 2013-2014, http://radical.rutgers.edu"
__license__ = "MIT"
import os
import ast
import sys
import time
impor... |
# -*- coding: utf-8 -*-
from __future__ import division, print_function
from multiprocess import Pool
import sys
import numpy as np
import pandas as pd
import h5py
import click
from . import cli, logger
from .. import ice
from ..io import parse_cooler_uri
from ..api import Cooler
from ..util import bedslice
@cli.co... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# Hive Appier Framework
# Copyright (c) 2008-2022 Hive Solutions Lda.
#
# This file is part of Hive Appier Framework.
#
# Hive Appier Framework is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apach... |
"""
Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting).
"""
import numpy as np
from numpy.testing import assert_array_equal
from numpy.testing import assert_equal
from nose.tools import assert_raises
from sklearn.utils import check_random_state
from sklearn.ensemble import GradientBoosting... |
# Copyright (c) 2013 Alexander Taylor
# 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, dis... |
"""Test the validation module"""
from __future__ import division
import sys
import warnings
import numpy as np
from scipy.sparse import coo_matrix, csr_matrix
from sklearn.utils.testing import assert_true
from sklearn.utils.testing import assert_false
from sklearn.utils.testing import assert_equal
from sklearn.utils... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import time
from httputil import encode_multipart_formdata
import urllib2
from socket import timeout as socket_timeout
from json import JSONDecoder
from Cookie import BaseCookie
import lxml
import lxml.html
#import html5lib
#: Адрес Табуна. Именно на указанный здесь адре... |
"""
Implements a special view to visualize and stage pieces of a project's
current diff.
"""
from contextlib import contextmanager
from itertools import dropwhile, takewhile
import os
import re
import bisect
import sublime
from sublime_plugin import WindowCommand, TextCommand, EventListener
from .navigate import GsN... |
import datetime
import json
import re
import os
import time
import winreg
from zashel.winhttp import Requests, encode, decode, LOCALPATH
from functools import partial, wraps
from math import floor
#LOCALPATH = os.path.join(os.environ["LOCALAPPDATA"], "zashel", "gapi")
# SCOPES
class SCOPE:
"""
... |
from building import Building
from core.entities.unit import Unit
from core.entities.event import *
from random import choice
from core.managers.locator import Locator
from core.managers.eventmanager import EventManager
# city wall and building positions (N = Wall, L = Street, O = Building)
# NNNNN
# NOLON
# NLOLN
# ... |
import os, requests, validation, config
from flask import Flask, redirect, request, render_template, send_from_directory, escape
from flask_mail import Mail, Message
app = Flask (__name__)
app.config.from_object(config.BaseConfig)
mail = Mail(app)
version = "2.1.2"
@app.route("/")
def index():
return render_temp... |
"""
from PROJECT.settings import ProjectSettings
>>> class ConcreteProgram(Program):
... pass
>>> @ConcreteProgram.command
... def test(*args, **options):
... print 'command', args
>>> @test.subcommand('subcommand')
... def sub_command(*args, **options):
... print 'named subcommand'
>>> ConcreteProgram([... |
'''
Created on 2013-01-21
@author: levi
'''
'''
Useful Himesis-related operations
'''
try:
import pydot
has_pydot = True
except ImportError:
has_pydot = False
import subprocess
import re
import sys
import os
import traceback
from os import path
import uuid
from profiler import *
#cross-compatibility
... |
from cnab240.registro import Registro
from datetime import datetime
class Cnab240(object):
CAMPOS_OBRIGATORIOS = (
'versao',
'banco_codigo',
'banco_nome',
'cedente_nome',
'cedente_convenio',
'cedente_agencia',
'cedente_agencia_dv',
'cedente_conta',
... |
# vim:ai:et:ff=unix:fileencoding=utf-8:sw=4:ts=4:
# conveyor/src/main/python/conveyor/domain.py
#
# conveyor - Printing dispatch engine for 3D objects and their friends.
# Copyright © 2012 Matthew W. Samsonoff <matthew.samsonoff@makerbot.com>
#
# This program is free software: you can redistribute it and/or modify it u... |
# vim:ai:et:ff=unix:fileencoding=utf-8:sw=4:ts=4
# conveyor/src/main/python/conveyor/recipe.py
#
# conveyor - Printing dispatch engine for 3D objects and their friends.
# Copyright © 2012 Matthew W. Samsonoff <matthew.samsonoff@makerbot.com>
#
# This program is free software: you can redistribute it and/or modify it un... |
# This file is part of the kivy-garden project.
# Copyright (c) Zachary Spector, public@zacharyspector.com
# Available under the terms of the MIT license.
"""Several textures superimposed on one another, and possibly offset
by some amount.
In 2D games where characters can wear different clothes or hold
different equip... |
from os.path import abspath
from tempfile import mkstemp
from flyingpigeon.subset import countries, countries_longname
from flyingpigeon.subset import clipping
from flyingpigeon.log import init_process_logger
from flyingpigeon.utils import rename_complexinputs
from flyingpigeon.utils import archive, archiveextract
fro... |
# Copyright (c) 2013 Alexander Taylor
# 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, dis... |
import numpy as np
import pandas as pd
import quantipy as qp
from quantipy.core.helpers.functions import emulate_meta
from quantipy.core.helpers.functions import (
create_full_index_dataframe,
paint_dataframe
)
from quantipy.core.tools.view.logic import (
has_any,
get_logic_index
)
def recode_into(da... |
### create temp folder if none exists #########################################
import sys as _sys
import os as _os
import matplotlib as _matplotlib
### temp directory ############################################################
_temp_dir = _os.path.join(_os.path.dirname(__file__), 'temp')
if not _os.path.isdir(... |
from bson import json_util, ObjectId
from flask import request, session, g
from flask_restful import Resource
from service.UserService import UserService, DuplicateUserException, UserServiceException
from foodbeazt.fapp import mongo
import logging
class UserListApi(Resource):
def __init__(self):
self.log = loggi... |
import numpy as np
import pandas as pd
import quantipy as qp
from quantipy.core.helpers.functions import emulate_meta
from quantipy.core.tools.view.logic import (
has_any,
get_logic_index
)
def recode_into(data, col_from, col_to, assignment, multi=False):
''' Recodes one column based on the values of ano... |
import copy
import datetime
import json
import logging
from django.utils.decorators import classonlymethod, method_decorator
from django.views.generic import View
from no_exceptions.exceptions import Http400
from dimagi.utils.parsing import ISO_DATE_FORMAT
from corehq.apps.api.models import ESCase, ESXFormInstance
... |
'''
Graph
======
The :class:`Graph` widget is a widget for displaying plots. It supports
drawing multiple plot with different colors on the Graph. It also supports
axes titles, ticks, labeled ticks, grids and a log or linear representation on
both the x and y axis, independently.
To display a plot. First create a gra... |
# coding=utf-8
#
# 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 https://mozilla.org/MPL/2.0/.
"""Compiles SpiderMonkey shells on different platforms using various specified configuration parameter... |
# This file is part of brain-skill
# brain-skill - This is a Mycroft skill that is intended to be dynamically extensible and modifiable.
# @author Andrew Phillips
# @copyright 2017 Andrew Phillips <skeledrew@gmail.com>
# brain-skill is free software; you can redistribute it and/or
# modify it under the terms of the ... |
import pygame
import sys
from pygame.locals import *
from variables import *
from Card import *
# --------------CREATE PLAYER INFO--------------
# creates the player information box which shows the property owned by the player
def create_player_info(screen,Players,Cards,cur_player,dist_x = 1155,dist_y = 100,Mark =... |
import exptools
from ordereddict import OrderedDict
import sys
from hilbert import hilbert_plot, hilbert_to_image
import rpy2.robjects as robjects
exptools.ensureSoftwareVersion('pyvenn','tip')
import pyvenn
from square_euler import SquareEuler
import re
from sequence_logos import plot_sequences
try:
from pwmlocati... |
"""
This module implements a Graph class, and a GraphFactory class,
which can construct a few types of classic graphs.
This was done mostly as a way to try my hand at OOP.
The goal being to write a Graph object that hides the implementation.
In this case, the implementation of the graph structure being a
dict... |
import datetime
import json
import re
import os
import time
from zashel.winhttp import Requests
from functools import partial, wraps
from math import floor
LOCALPATH = os.path.join(os.environ["LOCALAPPDATA"], "zashel", "gapi")
# SCOPES
class SCOPE:
BLOGGER = "https://www.googleapis.com/auth/blogger"
... |
import pyximport; pyximport.install()
import csv
from asyncio import gather, get_event_loop, sleep, wait_for, Event, TimeoutError
from functools import partial
from io import BytesIO, TextIOWrapper
from itertools import islice
from os import cpu_count, mkfifo, path
from random import randint
from shutil import copyfil... |
from SCons.Environment import *
from SCons.Script import *
import sys
from time import *
import atexit
import os
import socket
import string
import subprocess
import autoconf
import compilators
from utils import *
from utils.colors import *
class SConsProject:
'''
This is a base class helper for SCons build tool... |
#!/usr/bin/env python
from time import sleep
from decimal import Decimal
import signal
import sys
def signal_handler(signal, frame):
# print('You pressed Ctrl+C!')
exit_progam(0)
signal.signal(signal.SIGINT, signal_handler)
# print('Press Ctrl+C')
# signal.pause()
import sys
import json
from iterto... |
import json, os.path, asyncio, datetime
import discord
from discord.ext import commands
import config
import cogs
from Verifier import Verifier
def main():
# define bot
bot = Bot(
description=config.description,
verbose=config.verbose,
bleeding=config.bleeding,
reactive=confi... |
import os
from datetime import timedelta
from unittest.mock import MagicMock
from anymail.exceptions import AnymailAPIError
from dateutil.relativedelta import relativedelta
from django.conf import settings
from django.contrib import auth
from django.contrib.auth import get_user_model
from django.core import mail
from ... |
"""Implement configuration file parsing."""
# Copyright (C) 2015 Brad Cowie, Christopher Lorier and Joe Stringer.
# Copyright (C) 2015 Research and Education Advanced Network New Zealand Ltd.
# Copyright (C) 2015--2017 The Contributors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not u... |
#!/usr/bin/env python
import csv
import re
import sys
from operator import itemgetter
from EPPs.common import StepEPP, step_argparser
class GenerateHamiltonInputUPL(StepEPP):
""""Generate a 2 row CSV containing the necessary information to for the Make QPCR Hamilton app - number of samples
UCT plate barcode... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# install.py - part of the FDroid server tools
# Copyright (C) 2013, Ciaran Gultnieks, ciaran@ciarang.com
# Copyright (C) 2013-2014 Daniel Martí <mvdan@mvdan.cc>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affe... |
#!/usr/bin/env python3
#
# scanner.py - part of the FDroid server tools
# Copyright (C) 2010-13, Ciaran Gultnieks, ciaran@ciarang.com
#
# 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 Foundation, eit... |
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
#
# scanner.py - part of the FDroid server tools
# Copyright (C) 2010-13, Ciaran Gultnieks, ciaran@ciarang.com
#
# 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 ... |
# for ORM core:
import re, sys, threading
from operator import attrgetter, itemgetter
from itertools import count, ifilter, ifilterfalse, izip
# for SQL translator:
import __builtin__, types, inspect
from types import NoneType
from compiler import ast
from decimal import Decimal
from datetime import date, da... |
import logging
import sys
import os
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from textwrap import dedent
from hashlib import sha512
import requests
from tambo import Transport
import chacractl
from chacractl.util import retry
logger = logging.getLogger(__name__)
class... |
# -*- coding: utf-8 -*-
# python imports
import logging
from datetime import datetime
# django imports
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django import forms
from django.contrib import messages
# third part imports
from tinymce_4.fields import TinyMCEModelField
f... |
# -*- coding: cp1251 -*-
import itertools, operator, sys, threading
import utils
__all__ = ('database', 'PrimaryKey', 'Unique', 'Required', 'Optional',
'Set', 'List', 'Persistent')
################################################################################
_local = threading.local()
c... |
#!/usr/bin/env python
import argparse
import time
import numpy as np
from chainer import cuda
from chainer import optimizers
parser = argparse.ArgumentParser(
description=' convnet benchmarks on imagenet')
parser.add_argument('--arch', '-a', default='alexbn',
help='Convnet architecture \
... |
#!/usr/bin/env python
import os
import json
import argparse
from utils import db_utils as db
from scripts.processing import clan_competition as cc
# ----------------------------------------------------------------
# human and mouse tax ids
ESSENTIAL_TAXIDS = [9606, 10090]
# ----------------------------------------... |
# -*- coding: cp1251 -*-
import threading
from sys import _getframe
from itertools import count
from operator import attrgetter
import utils
from utils import FrozenDict, NameMapMixin
__all__ = ('database',
'PrimaryKey', 'Unique', 'Required', 'Optional',
'Set', 'List', 'Persistent... |
#!/usr/bin/env python
import os
import json
import argparse
from utils import db_utils as db
from scripts.processing import clan_competition as cc
# ----------------------------------------------------------------
def parse_outlist_file(outlist_file):
"""
:param outlist_file:
:return:
"""
outl... |
import re, threading, os.path, inspect, sys, cStringIO, itertools
import cgi, cgitb, urllib, Cookie, mimetypes
from operator import itemgetter
from pony.thirdparty.cherrypy.wsgiserver import CherryPyWSGIServer
import pony
from pony import autoreload, auth, utils, xslt
from pony.autoreload import on_reload
... |
#
# 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... |
#----------------------------------------------------------------------
# Copyright (c) 2014 Raytheon BBN Technologies
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, including witho... |
# --------------------------------------------------------------------------------------
# Copyright 2016, Benedikt J. Daurer, Filipe R.N.C. Maia, Max F. Hantke, Carl Nettelblad
# Hummingbird is distributed under the terms of the Simplified BSD License.
# ----------------------------------------------------------------... |
# Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
# Created By: dan@reciprocitylabs.com
# Maintained By: dan@reciprocitylabs.com
APP_ENGINE = True
ENABLE_JASMINE = False
LOGIN_MANAGER = 'ggrc.login.appengine'
FU... |
#!/usr/bin/env python3
import os
import random
import time
from collections import defaultdict
from functools import wraps
import cereal.messaging as messaging
from cereal import car
from common.basedir import BASEDIR
from common.params import Params
from common.spinner import Spinner
from common.timeout import Timeou... |
"""Translates between LCLS events and Hummingbird ones"""
import os
import logging
from backend.event_translator import EventTranslator
from backend.record import Record, add_record
import psana
import numpy
import datetime
from pytz import timezone
from . import ureg
from backend import Worker
import ipc
class LCLSTr... |
#!/usr/bin/env python3
import os
import random
import time
import unittest
from collections import defaultdict
from functools import wraps
import cereal.messaging as messaging
from cereal import car
from common.params import Params
from common.spinner import Spinner
from common.timeout import Timeout
from panda import... |
import ddapp.objectmodel as om
import ddapp.applogic as app
from ddapp import affordance
from shallowCopy import shallowCopy
import ddapp.vtkAll as vtk
from ddapp.debugVis import DebugData
from ddapp.timercallback import TimerCallback
from ddapp import transformUtils
from ddapp import callbacks
import numpy as np
from ... |
rule qc_trimmomatic_pe:
"""
Run trimmomatic on paired end mode to eliminate Illumina adaptors and
remove low quality regions and reads.
Inputs _1 and _2 are piped through gzip/pigz.
Outputs _1 and _2 are piped to gzip/pigz (level 9).
Outputs _3 and _4 are compressed with the builtin compressor f... |
"""Translates between LCLS events and Hummingbird ones"""
import os
import logging
from backend.event_translator import EventTranslator
from backend.record import Record, add_record
import psana
import numpy
import datetime
from pytz import timezone
from . import ureg
from backend import Worker
class LCLSTranslator(ob... |
# -*- coding: utf-8 -*-
"""
Dialog panel to explore the P(r) inversion results for a range
of D_max value. User picks a number of points and a range of
distances, then can toggle between inversion outputs and see
their distribution as a function of D_max.
"""
# global
import sys
import os
import logging
import numpy a... |
rule qc_trimmomatic_pe:
"""
Run trimmomatic on paired end mode to eliminate Illumina adaptors and
remove low quality regions and reads.
Inputs _1 and _2 are piped through gzip/pigz.
Outputs _1 and _2 are piped to gzip/pigz (level 9).
Outputs _3 and _4 are compressed with the builtin compressor f... |
#
# soaplib - Copyright (C) Soaplib contributors.
#
# 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 2.1 of the License, or (at your option) any later version.
#
# This l... |
# -*-coding:Utf-8 -*
# Copyright (c) 2010-2016 LE GOFF Vincent
# 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
# ... |
import datetime
import os
import pickle
import signal
from multiprocessing import Process, Lock
from socket import (socket, AF_INET, SOCK_STREAM, SOL_SOCKET, SO_REUSEADDR,
error as socket_error, inet_aton)
from manyfaced.client.faces import faces
from manyfaced.common.bearstorage import BearStorage... |
from django.contrib.gis.db import models
from django.contrib.gis.db.models import Max, Sum
from django.contrib.gis.db.models.aggregates import Collect
from django.utils.translation import ugettext_lazy as _
from protected_areas.models import BaseProtectedArea
from boundaries.models import City, State
class MapLayer(... |
#!/usr/bin/python
## Binary Analysis Tool
## Copyright 2012-2013 Armijn Hemel for Tjaldur Software Governance Solutions
## Licensed under Apache 2.0, see LICENSE file for details
import os, os.path, sys, subprocess, copy, cPickle, multiprocessing
'''
This program can be used to check whether the dependencies of a dy... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.