gt stringclasses 1
value | context stringlengths 2.49k 119k |
|---|---|
#!/usr/bin/env python
#-----------------------------------------------------------------------------
# Copyright (c) 2013--, biocore development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-------------------------... | |
import sys
import traceback
import string
import re
import copy
from flask import current_app
# We don't support python 2, but attempt to make it work.
if sys.version_info[0] < 3:
from urlparse import urlparse,urlunparse
print( "DANGER WILL ROBINSON: You are running python 2, which is unsupported. YMMV." )
el... | |
"""
Convert the NCBI taxonomy to an SQLite database for faster access
"""
import os
import sys
import argparse
import sqlite3
import json
from config import get_db_dir
import gzip
def connect_to_db(outdir, dbname, verbose=False):
"""
Connect to the database
:param dbname: the database file name
:par... | |
"""Helpers to execute scripts."""
from __future__ import annotations
import asyncio
from collections.abc import Callable, Sequence
from contextlib import asynccontextmanager, suppress
from datetime import datetime, timedelta
from functools import partial
import itertools
import logging
from types import MappingProxyTy... | |
# coding: utf-8
# Deep Learning
# =============
#
# Assignment 4
# ------------
#
# Previously in `2_fullyconnected.ipynb` and `3_regularization.ipynb`, we trained fully connected networks to classify [notMNIST](http://yaroslavvb.blogspot.com/2011/09/notmnist-dataset.html) characters.
#
# The goal of this assignme... | |
import time
import weakref
import gtk
from uxie.floating import Manager as FloatingManager, TextFeedback, add_float, remove_float,\
Feedback
from uxie.escape import Manager as EscapeManager
from uxie.actions import wait_mod_unpress_for_last_shortcut
from uxie.utils import idle, refresh_gui, lazy_func
tab_bar_pos... | |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# This file is part of pyunicorn.
# Copyright (C) 2008--2015 Jonathan F. Donges and pyunicorn authors
# URL: <http://www.pik-potsdam.de/members/donges/software>
# License: BSD (3-clause)
"""
Provides classes for analyzing spatially embedded complex networks, handling
multiva... | |
__author__ = 'lovci'
import matplotlib
import pylab
import numpy as np
import pandas as pd
import itertools
import seaborn
seaborn.set_style({'axes.axisbelow': True,
'axes.edgecolor': '.15',
'axes.facecolor': 'white',
'axes.grid': False,
'axes.labelc... | |
# uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: FileDialog.py
"""File selection dialog classes.
Classes:
- FileDialog
- LoadFileDialog
- SaveFileDialog
"""
from Tkinter import *
from Dialog impo... | |
# Copyright (c) 2014 Pure Storage, 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 re... | |
# -*- coding: utf-8 -*-
"""
Use nose
`$ pip install nose`
`$ nosetests`
"""
from hyde.ext.plugins.meta import MetaPlugin
from hyde.fs import File, Folder
from hyde.generator import Generator
from hyde.site import Site
from pyquery import PyQuery
import yaml
TEST_SITE = File(__file__).parent.parent.child_folder('_tes... | |
#!/usr/bin/env python
#### licensing nonsense
#The MIT License (MIT)
#
#Copyright (c) 2010 Derek Barnett
#
#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 ... | |
from __future__ import unicode_literals
import re
import unicodedata
import warnings
from gzip import GzipFile
from io import BytesIO
from django.utils.encoding import force_text
from django.utils.functional import allow_lazy, SimpleLazyObject
from django.utils import six
from django.utils.six.moves import html_entit... | |
# Copyright 2021 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, ... | |
#!/usr/bin/python
"""
Console Logging
"""
import os
import sys
import json
import logging
import logging.handlers
import argparse
from .settings import Settings, settings, os_settings, dict_settings
from .debugging import bacpypes_debugging, LoggingFormatter, ModuleLogger
from ConfigParser import ConfigParser as _C... | |
#
# 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... | |
## This file is part of Scapy
## See http://www.secdev.org/projects/scapy for more informations
## Copyright (C) Philippe Biondi <phil@secdev.org>
## This program is published under a GPLv2 license
"""
Global variables and functions for handling external data sets.
"""
import os, sys, re, time
from scapy.dadict impor... | |
# -*- coding: utf-8 -*-
"""
@file edge.py
@author Michael Behrisch
@date 2011-03-17
@version $Id: edge.py 15358 2014-01-08 18:28:02Z namdre $
Python implementation of the TraCI interface.
SUMO, Simulation of Urban MObility; see http://sumo-sim.org/
Copyright (C) 2011-2013 DLR (http://www.dlr.de/) and contribut... | |
"""
Many of these tests use the minimal test/data/gdc.bed file which has just
enough complexity to be useful in testing corner cases. When reading through
the tests, it's useful to have that file open to understand what's happening.
"""
import os
import metaseq
import multiprocessing
from metaseq.array_helpers import ... | |
"""The implementation of the BLEU metric (Papineni et al., 2002)."""
import math
import logging
from importlib import import_module
from typing import List, Sequence, Optional, Dict, Any
from ..utils import my_log, sum_of_lists
from .base import Score, Signature, Metric
from .helpers import extract_all_word_ngrams
... | |
importantDatabase = {
"floor_00": {
"nameOnWeb": "Ground Floor",
"room_00": {
"Device": {
"Device_01": {
"inNode": "dataNodeSlave01",
"name": "Device02",
"nameModule": "Light",
"nameOnWeb": "L... | |
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 OpenStack Foundation
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use t... | |
from __future__ import annotations
import filecmp
import inspect
import logging
import os
import shutil
import sys
import urllib.request
from collections.abc import Iterable
from importlib import import_module
from types import ModuleType
from typing import TYPE_CHECKING, cast
import click
from dask.utils import tmp... | |
# 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 t... | |
# Copyright 2015 - StackStorm, Inc.
# Copyright 2016 - Brocade Communications Systems, 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/... | |
#! /usr/bin/env python
# Copyright 2009 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | |
# Copyright (c) 2015 Cloudera, 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 o... | |
# -*- coding: utf-8 -*-
"""
unit tests for misc module
"""
from .client_test import _mocked_session
import unittest
import json
import requests_mock
from nose.tools import raises
from datetime import timedelta
from influxdb.tests import skipIfPYpy, using_pypy
import copy
import warnings
if not using_pypy:
import ... | |
"""Tests for SequenceSessionizerSketchPlugin."""
from __future__ import unicode_literals
import mock
from timesketch.lib.analyzers.psexec_sessionizers \
import DestPsexecSessionizerSketchPlugin
from timesketch.lib.analyzers.sequence_sessionizer \
import SequenceSessionizerSketchPlugin
from timesketch.lib.tes... | |
# coding=utf-8
"""
Collects JMX metrics from the Jolokia Agent. Jolokia is an HTTP bridge that
provides access to JMX MBeans without the need to write Java code. See the
[Reference Guide](http://www.jolokia.org/reference/html/index.html) for more
information.
By default, all MBeans will be queried for metrics. All n... | |
from utils import execute_sql_fetch_single, execute_sql_fetch_multiple
from objectcube.services.base import BaseDimensionService
from objectcube.exceptions import ObjectCubeException
from objectcube.data_objects import DimensionNode
from types import LongType
from logging import getLogger
class DimensionService(BaseD... | |
#*************************************************************************
#Copyright (C) 2015 by Arash Bakhtiari
#You may not use this file except in compliance with the License.
#You obtain a copy of the License in the LICENSE file.
#Unless required by applicable law or agreed to in writing, software
#distributed un... | |
#!/usr/bin/env python3
#
# 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 "Li... | |
"""
SQLite3 backend for django.
Works with either the pysqlite2 module or the sqlite3 module in the
standard library.
"""
from __future__ import unicode_literals
import datetime
import decimal
import warnings
import re
from django.db import utils
from django.db.backends import *
from django.db.backends.sqlite3.clien... | |
# -*- coding: utf-8 -*-
#
# Copyright (C) 2007-2011 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://babel.edgewall.org/wiki/License.
#
# This software consists... | |
#!/usr/bin/env python
from __future__ import division
import struct
import socket
import asyncore
import binascii
import time
import random
import cStringIO
from Crypto.Hash import SHA256
MY_VERSION = 312
MY_SUBVERSION = ".4"
COIN_FRAC = 100000000
START_ERROR_WAIT_TIME = 1
MAX_ERROR_WAIT_TIME = 16
def deser_strin... | |
# Copyright 2017 The TensorFlow Authors. 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 applica... | |
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2020, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | |
# Copyright 2011 Ken Pepple
# 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... | |
# Copyright 2014 Red Hat, 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... | |
# Copyright 2015 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 a... | |
#!/usr/bin/python3
#
# Copyright (C) 2011 Google Inc.
# 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 o... | |
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
sys.path.append(os.path.join(os.path.dirname(__file__), '..', 'lib'))
import base58
import hashlib
import re
from decimal import Decimal
import simplejson
import binascii
from misc import printdbg, epoch2str
import time
def is_valid_d... | |
"""Prettyprinter by Jurjen Bos.
(I hate spammers: mail me at pietjepuk314 at the reverse of ku.oc.oohay).
All objects have a method that create a "stringPict",
that can be used in the str method for pretty printing.
Updates by Jason Gedge (email <my last name> at cs mun ca)
- terminal_string() method
- minor ... | |
#
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | |
import os
from datetime import datetime, timedelta, timezone
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from unittest import TestCase
from tcxparser import TCXParser
from tcxparser.exceptions import NoHeartRateDataError
class TestParseTCX(TestCase):
def setUp(self):
... | |
import requests
import datetime
import time
from collections import namedtuple
from enum import Enum
class Rarity(Enum):
COMMON = 1
UNCOMMON = 2
RARE = 3
VERY_RARE = 4
ULTRA_RARE = 5
class Team(Enum):
MYSTIC=1
VALOR=2
INSTINCT=3
TEAM_NAMES = {
0: 'Uncontested',
1: 'Mystic',
... | |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import vim
import re
import os
import os.path
import time
import itertools
from .utils import *
from .devicons import (
webDevIconsGetFileTypeSymbol,
highlightDevIcons
)
def iconLine(line):
if lfEval("get(g:, 'Lf_ShowDevIcons', 1)") == "1":
return web... | |
# coding=utf-8
__author__ = 'lichengwu'
import datetime
import re
'''
Garbage First Log Analyse Util
'''
class G1LogUtil:
__path = ''
# some regular expression pattern
# like this '2012-12-19T10:25:19'
__START_LINE_PATTERN = re.compile('^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:.*pause.*')
# like th... | |
#!/usr/bin/env python3
# Copyright (c) 2016 The PlanBcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test the SegWit changeover logic."""
from test_framework.test_framework import PlanbcoinTestFramework
from tes... | |
# Copyright 2013 Nebula 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... | |
from core.himesis import Himesis
import uuid
class Hlayer5rule4(Himesis):
def __init__(self):
"""
Creates the himesis graph representing the DSLTrans rule layer5rule4.
"""
# Flag this instance as compiled now
self.is_compiled = True
super(Hlayer5rule4, self).__init__(name='Hlayer5rule4', num_nodes=0, edg... | |
from collections import deque
import random
import functools
import itertools
import logging
from collections import defaultdict
logger = logging.getLogger(__name__)
def blockedSample(sampler, sample_size, predicates, *args):
blocked_sample = set()
remaining_sample = sample_size - len(blocked_sample)
pr... | |
import arrow
import logging
import pickle
import redis
import random
from collections import MutableMapping
from datetime import timedelta
CONST_GC_MAX = 100
CONST_GC_PROB = 50
class ExpiringDictStore(MutableMapping):
""" Store for ExpiringDict.
Implement MutableMapping interface to act as a collection.
... | |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 28 18:16:14 2017
@author: kasperipalkama
"""
from random import uniform, seed
from math import exp
def initialize(n_input, n_hidden_neuron, n_hidden_layer, n_output):
seed(1)
network = list()
left_bound = -0.5 / n_input # common way t... | |
# Django settings for lot project.
from madrona.common.default_settings import *
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
TIME_ZONE = 'America/Vancouver'
ROOT_URLCONF = 'urls'
LOGIN_REDIRECT_URL = '/visualize'
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.postgis',
... | |
'''
Add the Amazing feature to co-write fictional or non-fictional epics.
'''
import os
from datetime import datetime
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
from stickord.registry import Command, get_easy_logger, role_whitelist, channel_whitelist
Base = declarative_base() # py... | |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import ctypes
import pyglet
from pyglet.input.base import \
Device, DeviceException, DeviceOpenException, \
Control, Button, RelativeAxis, AbsoluteAxis
from pyglet.libs.x11 import xlib
try:
from pyglet.libs.x11 impor... | |
#!/usr/bin/env python
from collections import deque
import gym
import numpy as np
import os
import random
import tensorflow as tf
from tensorflow.contrib.session_bundle import exporter
import time
# Define parameters
flags = tf.app.flags
FLAGS = flags.FLAGS
flags.DEFINE_float('learning_rate', 0.001, 'Initial learning... | |
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 29 15:17:26 2020
@author: rish-r
"""
from config import *
from initialize_arango import *
from ontology_mapper import *
from arango import ArangoClient, ArangoServerError, DocumentInsertError
import json
import requests
import time
import gzip
from pathlib import Path
... | |
# Copyright 2018 The TensorFlow Authors. 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 applica... | |
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
# Copyright (c) 2012 X.commerce, a business unit of eBay Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")... | |
# Copyright 2014 IBM Corp.
#
# 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... | |
# Copyright 2014 Ahmed El-Hassany
#
# 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 wri... | |
import difflib
from django.conf import settings
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
from django.http import (
Http404, HttpResponseBadRequest, HttpResponseForbidden,
HttpResponseRedirect
)
from django.shortcuts import get_object_or_404, render
from django.u... | |
"""
created 2017-2018 by Jens Diemer <ya-publisher@jensdiemer.de>
"""
import sys
from unittest import mock
import django
from django.contrib.contenttypes.models import ContentType
from django.test.utils import override_settings
from cms.models import Page
from publisher.models import PublisherStateModel
from ... | |
# Copyright 2015 NEC Corporation. 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 l... | |
########################################################################################
## This file is a part of YAP package of scripts. https://github.com/shpakoo/YAP
## Distributed under the MIT license: http://www.opensource.org/licenses/mit-license.php
## Copyright (c) 2011-2013 Sebastian Szpakowski
#############... | |
import difflib
from collections import OrderedDict as odict
from pprint import pprint
from jinja2 import Environment, FileSystemLoader
import argparse
from colorama import Fore, init
# Ignore command which contains words
ignore = ['---', '+++', '@@', '-^C', '+^C', '*********',
'duplex', 'description', 'ver... | |
from django.contrib import admin
from django.utils.html import format_html
from django import forms
from .models import (
Organization,
Contact,
Address,
MembershipApplication,
Country,
ReportedStatistic,
Invoice,
BillingLog,
LoginKey,
Continent,
Profile,
)
class ContactIn... | |
import codecs
from sic_assembler.errors import DuplicateSymbolError, LineFieldsError, OpcodeLookupError
from sic_assembler.instructions import Format
from sic_assembler.instructions import Format1, Format2, Format3, Format4
from sic_assembler.instructions import extended, op_table
from sic_assembler.records import gen... | |
"""
Import USHMM's
"""
import os
import re
import sys
import datetime
from lxml import etree
import babel
from django.db import transaction
from django.db.models import signals
from django.core import management
from django.core.management.base import BaseCommand, CommandError
from portal import models
def gs(doc... | |
#! /usr/bin/env python3
"""Test script for the gzip module.
"""
import unittest
from test import support
import os
import io
import struct
gzip = support.import_module('gzip')
data1 = b""" int length=DEFAULTALLOC, err = Z_OK;
PyObject *RetVal;
int flushmode = Z_FINISH;
unsigned long start_total_out;
"""
data... | |
# Copyright 2012 OpenStack Foundation
# 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 requ... | |
# Copyright 2016 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... | |
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the... | |
# Copyright 2015 The TensorFlow Authors. 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 applica... | |
#!/usr/bin/env python
"""Test for the ee.__init__ file."""
import six
import unittest
import ee
from ee import apitestcase
class EETestCase(apitestcase.ApiTestCase):
def setUp(self):
ee.Reset()
ee.data._install_cloud_api_resource = lambda: None
def testInitialization(self):
"""Verifies library ... | |
import pytest
import marshmallow as ma
from marshmallow import ValidationError, INCLUDE
from marshmallow_jsonapi import Schema, fields
from marshmallow_jsonapi.exceptions import IncorrectTypeError
from tests.base import (
AuthorSchema,
CommentSchema,
PostSchema,
PolygonSchema,
ArticleSchema,
)
de... | |
'''
miranda2GTF.py - template for CGAT scripts
====================================================
:Author:
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
Parse output from miRNA binding site prediction softward
miRanda - a convoluted format and can produce
very large output files (~ GBs).
Improvements... | |
# 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 ... | |
"""Test Axis device."""
from copy import deepcopy
from unittest import mock
import axis as axislib
from axis.api_discovery import URL as API_DISCOVERY_URL
from axis.applications import URL_LIST as APPLICATIONS_URL
from axis.applications.vmd4 import URL as VMD4_URL
from axis.basic_device_info import URL as BASIC_DEVICE... | |
"""Constants for the Kostal Plenticore Solar Inverter integration."""
from typing import NamedTuple
from homeassistant.components.sensor import (
ATTR_STATE_CLASS,
SensorDeviceClass,
SensorStateClass,
)
from homeassistant.const import (
ATTR_DEVICE_CLASS,
ATTR_ICON,
ATTR_UNIT_OF_MEASUREMENT,
... | |
"""
This software was developed by the University of Tennessee as part of the
Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
project funded by the US National Science Foundation.
See the license text in license.txt
copyright 2008, 2009, University of Tennessee
"""
import wx
import sys
from sas.... | |
# -*- test-case-name: admin.test.test_runner -*-
# Copyright Hybrid Logic Ltd. See LICENSE file for details.
# -*- test-case-name: flocker.common.test.test_runner -*-
"""
Tools for running commands.
"""
import os
from pipes import quote as shell_quote
from characteristic import attributes
from eliot import MessageTyp... | |
"""
Mail (SMTP) notification service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/notify.smtp/
"""
import logging
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from email.mime.image import MIMEImage... | |
# -*- coding: utf-8 -*-
# Copyright (c) 2014 Spotify AB
#
# 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... | |
# coding: utf-8
import unittest
from accesses import dumpdata
from xylose.scielodocument import Article
class DumpDataTest(unittest.TestCase):
def test_pdf_keys(self):
data = {
'html': {
'pt': 'http://www.scielo.br?script=sci_arttext&pid=S0102-67202009000300001&tlng=pt'
... | |
# -*- coding: utf-8 -*-
""" Sahana Eden Members Model
@copyright: 2012-15 (c) Sahana Software Foundation
@license: MIT
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... | |
import re
from itertools import chain
from ... import options as opts, safe_str
from ..common import BuildCommand, library_macro, SimpleBuildCommand
from ...arguments.windows import ArgumentParser
from ...file_types import DllBinary, Executable, StaticLibrary, WholeArchive
from ...iterutils import iterate, merge_into_... | |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 OpenStack Foundation
# 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.apach... | |
#!/usr/bin/env python
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree. An additional intellectual property rights grant can be found
# in the file PATENTS. All c... | |
# -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | |
#! /usr/bin/env python
#coding=utf-8
"""
Baihui API core functions.
inspiration from https://github.com/miohtama/mfabrik.zoho
"""
__author__ = "pyhunterpig <hunterpig@gmail.com>"
__license__ = "MIT"
import requests
import logging
try:
from xml import etree
from xml.etree.ElementTree import Element,... | |
from __future__ import print_function, division
from os.path import join
import tempfile
import shutil
from io import BytesIO
try:
from subprocess import STDOUT, CalledProcessError
from sympy.core.compatibility import check_output
except ImportError:
pass
from sympy.utilities.exceptions import SymPyDepre... | |
# coding=utf-8
# Copyright 2022 The Tensor2Tensor 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... | |
import numpy as np
import sklearn
from sklearn.linear_model import ARDRegression, LinearRegression
from sklearn.metrics import roc_curve, auc
import sklearn.linear_model
import azimuth.util
import azimuth.metrics as ranking_metrics
import azimuth.predict
import numbers
def ARDRegression_on_fold(feature_sets, train, te... | |
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''get metadata from the kodi DB'''
import xbmc
import xbmcgui
import xbmcvfs
from utils import json, try_encode, log_msg, log_exception, get_clean_image, KODI_VERSION
from utils import try_parse_int, localdate_from_utc_string, localized_date_time
from kodi_constants import *... | |
import math
import astropy.stats
import attr
import attr.validators
import numpy as np
from attr import attrib, attrs
from scipy import ndimage
from scipy.optimize import OptimizeResult, least_squares
from fastimgproto.sourcefind.fit import Gaussian2dParams, gaussian2d
from fastimgproto.utils import nonzero_bounding_... | |
#!/usr/bin/env python
##
# Copyright (c) 2014 Apple 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 require... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.