text:
"""Temporal Shift Module w/ ResNet-50 and ResNet-101.

Based on:
  TSM: Temporal Shift Module for Efficient Video Understanding
  Ji Lin, Chuang Gan, Song Han
  https://arxiv.org/pdf/1811.08383.pdf.
"""

from typing import Optional

import haiku as hk
import jax
import jax.numpy as jnp

from mmv.models import tsm_utils as tsmu
from mmv.models import types

class TSMResNetBlock(hk.Module):
  """A ResNet subblock with Temporal Channel Shifting.

  Combines a typical ResNetV2 block implementation
  (see https://arxiv.org/abs/1512.03385) with a pre-convolution Temporal
  Shift Module (see https://arxiv.org/pdf/1811.08383.pdf) in the residual.
  """

  def __init__(self,
               output_channels: int,
               stride: int,
               use_projection: bool,
               tsm_mode: str,
               normalize_fn: Optional[types.NormalizeFn] = None,
               channel_shift_fraction: float = 0.125,
               num_frames: int = 8,
               name: str = 'TSMResNetBlock'):
    """Initializes the TSMResNetBlock module.

    Args:
      output_channels: Number of output channels.
      stride: Stride used in convolutions.
      use_projection: Whether to use a projection for the shortcut.
      tsm_mode: Mode for TSM ('gpu' or 'tpu').
      normalize_fn: Function used for normalization.
      channel_shift_fraction: The fraction of temporally shifted channels. If
        `channel_shift_fraction` is 0, the block is the same as a normal ResNet
        block.
      num_frames: Size of frame dimension in a single batch example
      name: The name of the module.
    """
    super().__init__(name=name)
    self._output_channels = output_channels
    self._bottleneck_channels = output_channels // 4
    self._stride = stride
    self._use_projection = use_projection
    self._normalize_fn = normalize_fn
    self._tsm_mode = tsm_mode
    self._channel_shift_fraction = channel_shift_fraction
    self._num_frames = num_frames

  def __call__(self,
               inputs: types.TensorLike,
               is_training: bool = True) -> jnp.ndarray:
    """Connects the ResNetBlock module into the graph.

    Args:
      inputs: A 4-D float array of shape `[B, H, W, C]`.
      is_training: Whether to use training mode.

    Returns:
      A 4-D float array of shape
      `[B * num_frames, new_h, new_w, output_channels]`.
    """
    # ResNet V2 uses pre-activation, where the batch norm and relu are before
    # convolutions, rather than after as in ResNet V1.
    preact = inputs
    if self._normalize_fn is not None:
      preact = self._normalize_fn(preact, is_training=is_training)
    preact = jax.nn.relu(preact)

    if self._use_projection:
      shortcut = hk.Conv2D(
          output_channels=self._output_channels,
          kernel_shape=1,
          stride=self._stride,
          with_bias=False,
          padding='SAME',
          name='shortcut_conv')(
              preact)
    else:
      shortcut = inputs

    # Eventually applies Temporal Shift Module.
    if self._channel_shift_fraction != 0:
      preact = tsmu.apply_temporal_shift(
          preact, tsm_mode=self._tsm_mode, num_frames=self._num_frames,
          channel_shift_fraction=self._channel_shift_fraction)

    # First convolution.
    residual = hk.Conv2D(
        self._bottleneck_channels,
        kernel_shape=1,
        stride=1,
        with_bias=False,
        padding='SAME',
        name='conv_0')(
            preact)

    # Second convolution.
    if self._normalize_fn is not None:
      residual = self._normalize_fn(residual, is_training=is_training)
    residual = jax.nn.relu(residual)
    residual = hk.Conv2D(
        output_channels=self._bottleneck_channels,
        kernel_shape=3,
        stride=self._stride,
        with_bias=False,
        padding='SAME',
        name='conv_1')(
            residual)

    # Third convolution.
    if self._normalize_fn is not None:
      residual = self._normalize_fn(residual, is_training=is_training)
    residual = jax.nn.relu(residual)
    residual = hk.Conv2D(
        output_channels=self._output_channels,
        kernel_shape=1,
        stride=1,
        with_bias=False,
        padding='SAME',
        name='conv_2')(
            residual)

    # NOTE: we do not use block multiplier.
    output = shortcut + residual
    return output

class TSMResNetUnit(hk.Module):
  """Block group for TSM ResNet."""

  def __init__(self,
               output_channels: int,
               num_blocks: int,
               stride: int,
               tsm_mode: str,
               num_frames: int,
               normalize_fn: Optional[types.NormalizeFn] = None,
               channel_shift_fraction: float = 0.125,
               name: str = 'tsm_resnet_unit'):
    """Creates a TSMResNet Unit.

    Args:
      output_channels: Number of output channels.
      num_blocks: Number of ResNet blocks in the unit.
      stride: Stride of the unit.
      tsm_mode: Which temporal shift module to use.
      num_frames: Size of frame dimension in a single batch example.
      normalize_fn: Function used for normalization.
      channel_shift_fraction: The fraction of temporally shifted channels. If
        `channel_shift_fraction` is 0, the block is the same as a normal ResNet
        block.
      name: The name of the module.
    """
    super().__init__(name=name)
    self._output_channels = output_channels
    self._num_blocks = num_blocks
    self._normalize_fn = normalize_fn
    self._stride = stride
    self._tsm_mode = tsm_mode
    self._channel_shift_fraction = channel_shift_fraction
    self._num_frames = num_frames

  def __call__(self,
               inputs: types.TensorLike,
               is_training: bool) -> jnp.ndarray:
    """Connects the module to inputs.

    Args:
      inputs: A 4-D float array of shape `[B * num_frames, H, W, C]`.
      is_training: Whether to use training mode.

    Returns:
      A 4-D float array of shape
      `[B * num_frames, H // stride, W // stride, output_channels]`.
    """
    net = inputs
    for idx_block in range(self._num_blocks):
      net = TSMResNetBlock(
          self._output_channels,
          stride=self._stride if idx_block == 0 else 1,
          use_projection=idx_block == 0,
          normalize_fn=self._normalize_fn,
          tsm_mode=self._tsm_mode,
          channel_shift_fraction=self._channel_shift_fraction,
          num_frames=self._num_frames,
          name=f'block_{idx_block}')(
              net, is_training=is_training)
    return net

class TSMResNetV2(hk.Module):
  """TSM based on ResNet V2 as described in https://arxiv.org/abs/1603.05027."""

  # Endpoints of the model in order.
  VALID_ENDPOINTS = (
      'tsm_resnet_stem',
      'tsm_resnet_unit_0',
      'tsm_resnet_unit_1',
      'tsm_resnet_unit_2',
      'tsm_resnet_unit_3',
      'last_conv',
      'Embeddings',
  )

  def __init__(self,
               normalize_fn: Optional[types.NormalizeFn] = None,
               depth: int = 50,
               num_frames: int = 16,
               channel_shift_fraction: float = 0.125,
               width_mult: int = 1,
               name: str = 'TSMResNetV2'):
    """Constructs a ResNet model.

    Args:
      normalize_fn: Function used for normalization.
      depth: Depth of the desired ResNet.
      num_frames: Number of frames (used in TPU mode).
      channel_shift_fraction: Fraction of channels that are temporally shifted,
        if `channel_shift_fraction` is 0, a regular ResNet is returned.
      width_mult: Whether or not to use a width multiplier.
      name: The name of the module.

    Raises:
      ValueError: If `channel_shift_fraction` or `depth` has invalid value.
    """
    super().__init__(name=name)

    if not 0. <= channel_shift_fraction <= 1.0:
      raise ValueError(
          f'channel_shift_fraction ({channel_shift_fraction})'
          ' has to be in [0, 1].')

    self._num_frames = num_frames

    self._channels = (256, 512, 1024, 2048)
    self._strides = (1, 2, 2, 2)

    num_blocks = {
        50: (3, 4, 6, 3),
        101: (3, 4, 23, 3),
        152: (3, 8, 36, 3),
        200: (3, 24, 36, 3),
    }
    if depth not in num_blocks:
      raise ValueError(
          f'`depth` should be in {list(num_blocks.keys())} ({depth} given).')
    self._num_blocks = num_blocks[depth]

    self._width_mult = width_mult
    self._channel_shift_fraction = channel_shift_fraction
    self._normalize_fn = normalize_fn

  def __call__(
      self,
      inputs: types.TensorLike,
      is_training: bool = True,
      final_endpoint: str = 'Embeddings') -> jnp.ndarray:
    """Connects the TSM ResNetV2 module into the graph.

    Args:
      inputs: A 4-D float array of shape `[B, H, W, C]`.
      is_training: Whether to use training mode.
      final_endpoint: Up to which endpoint to run / return.

    Returns:
      Network output at location `final_endpoint`. A float array which shape
      depends on `final_endpoint`.

    Raises:
      ValueError: If `final_endpoint` is not recognized.
    """

    # Prepare inputs for TSM.
    inputs, tsm_mode, num_frames = tsmu.prepare_inputs(inputs)
    num_frames = num_frames or self._num_frames

    self._final_endpoint = final_endpoint
    if self._final_endpoint not in self.VALID_ENDPOINTS:
      raise ValueError(f'Unknown final endpoint {self._final_endpoint}')

    # Stem convolution.
    end_point = 'tsm_resnet_stem'
    net = hk.Conv2D(
        output_channels=64 * self._width_mult,
        kernel_shape=7,
        stride=2,
        with_bias=False,
        name=end_point,
        padding='SAME')(
            inputs)
    net = hk.MaxPool(
        window_shape=(1, 3, 3, 1),
        strides=(1, 2, 2, 1),
        padding='SAME')(
            net)
    if self._final_endpoint == end_point:
      return net

    # Residual block.
    for unit_id, (channels, num_blocks, stride) in enumerate(
        zip(self._channels, self._num_blocks, self._strides)):
      end_point = f'tsm_resnet_unit_{unit_id}'
      net = TSMResNetUnit(
          output_channels=channels * self._width_mult,
          num_blocks=num_blocks,
          stride=stride,
          normalize_fn=self._normalize_fn,
          channel_shift_fraction=self._channel_shift_fraction,
          num_frames=num_frames,
          tsm_mode=tsm_mode,
          name=end_point)(
              net, is_training=is_training)
      if self._final_endpoint == end_point:
        return net

    if self._normalize_fn is not None:
      net = self._normalize_fn(net, is_training=is_training)
    net = jax.nn.relu(net)

    end_point = 'last_conv'
    if self._final_endpoint == end_point:
      return net
    net = jnp.mean(net, axis=(1, 2))
    # Prepare embedding outputs for TSM (temporal average of features).
    net = tsmu.prepare_outputs(net, tsm_mode, num_frames)
    assert self._final_endpoint == 'Embeddings'
    return net

redpajama_set_name: RedPajamaGithub


text:
//
/*
=======================================================================

DISPLAY OPTIONS MENU

=======================================================================
*/

#include "ui_local.h"

#define ART_FRAMEL			"menu/" MENU_ART_DIR "/frame2_l"
#define ART_FRAMER			"menu/" MENU_ART_DIR "/frame1_r"
#define ART_BACK0			"menu/" MENU_ART_DIR "/back_0"
#define ART_BACK1			"menu/" MENU_ART_DIR "/back_1"

#define ID_GRAPHICS			10
#define ID_DISPLAY			11
#define ID_SOUND			12
#define ID_NETWORK			13
#define ID_BRIGHTNESS		14
#define ID_SCREENSIZE		15
#define ID_BACK				16

typedef struct {
    menuframework_s	menu;

    menutext_s		banner;
    menubitmap_s	framel;
    menubitmap_s	framer;

    menutext_s		graphics;
    menutext_s		display;
    menutext_s		sound;
    menutext_s		network;

    menuslider_s	brightness;
    menuslider_s	screensize;

    menubitmap_s	back;
} displayOptionsInfo_t;

static displayOptionsInfo_t	displayOptionsInfo;

/*
=================
UI_DisplayOptionsMenu_Event
=================
*/
static void UI_DisplayOptionsMenu_Event( void* ptr, int event ) {
    if( event != QM_ACTIVATED ) {
        return;
    }

    switch( ((menucommon_s*)ptr)->id ) {
    case ID_GRAPHICS:
        UI_PopMenu();
        UI_GraphicsOptionsMenu();
        break;

    case ID_DISPLAY:
        break;

    case ID_SOUND:
        UI_PopMenu();
        UI_SoundOptionsMenu();
        break;

    case ID_NETWORK:
        UI_PopMenu();
        UI_NetworkOptionsMenu();
        break;

    case ID_BRIGHTNESS:
        trap_Cvar_SetValue( "r_gamma", displayOptionsInfo.brightness.curvalue / 10.0f );
        break;

    case ID_SCREENSIZE:
        trap_Cvar_SetValue( "cg_viewsize", displayOptionsInfo.screensize.curvalue * 10 );
        break;

    case ID_BACK:
        UI_PopMenu();
        break;
    }
}

/*
===============
UI_DisplayOptionsMenu_Init
===============
*/
static void UI_DisplayOptionsMenu_Init( void ) {
    int		y;

    memset( &displayOptionsInfo, 0, sizeof(displayOptionsInfo) );

    UI_DisplayOptionsMenu_Cache();
    displayOptionsInfo.menu.wrapAround = qtrue;
    displayOptionsInfo.menu.fullscreen = qtrue;

    displayOptionsInfo.banner.generic.type		= MTYPE_BTEXT;
    displayOptionsInfo.banner.generic.flags		= QMF_CENTER_JUSTIFY;
    displayOptionsInfo.banner.generic.x			= 320;
    displayOptionsInfo.banner.generic.y			= 16;
    displayOptionsInfo.banner.string			= "SYSTEM SETUP";
    displayOptionsInfo.banner.color				= color_white;
    displayOptionsInfo.banner.style				= UI_CENTER;

    displayOptionsInfo.framel.generic.type		= MTYPE_BITMAP;
    displayOptionsInfo.framel.generic.name		= ART_FRAMEL;
    displayOptionsInfo.framel.generic.flags		= QMF_INACTIVE;
    displayOptionsInfo.framel.generic.x			= 0;
    displayOptionsInfo.framel.generic.y			= 78;
    displayOptionsInfo.framel.width				= 256;
    displayOptionsInfo.framel.height			= 329;

    displayOptionsInfo.framer.generic.type		= MTYPE_BITMAP;
    displayOptionsInfo.framer.generic.name		= ART_FRAMER;
    displayOptionsInfo.framer.generic.flags		= QMF_INACTIVE;
    displayOptionsInfo.framer.generic.x			= 376;
    displayOptionsInfo.framer.generic.y			= 76;
    displayOptionsInfo.framer.width				= 256;
    displayOptionsInfo.framer.height			= 334;

    displayOptionsInfo.graphics.generic.type		= MTYPE_PTEXT;
    displayOptionsInfo.graphics.generic.flags		= QMF_RIGHT_JUSTIFY|QMF_PULSEIFFOCUS;
    displayOptionsInfo.graphics.generic.id			= ID_GRAPHICS;
    displayOptionsInfo.graphics.generic.callback	= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.graphics.generic.x			= 216;
    displayOptionsInfo.graphics.generic.y			= 240 - 2 * PROP_HEIGHT;
    displayOptionsInfo.graphics.string				= "GRAPHICS";
    displayOptionsInfo.graphics.style				= UI_RIGHT;
    displayOptionsInfo.graphics.color				= color_red;

    displayOptionsInfo.display.generic.type			= MTYPE_PTEXT;
    displayOptionsInfo.display.generic.flags		= QMF_RIGHT_JUSTIFY;
    displayOptionsInfo.display.generic.id			= ID_DISPLAY;
    displayOptionsInfo.display.generic.callback		= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.display.generic.x			= 216;
    displayOptionsInfo.display.generic.y			= 240 - PROP_HEIGHT;
    displayOptionsInfo.display.string				= "DISPLAY";
    displayOptionsInfo.display.style				= UI_RIGHT;
    displayOptionsInfo.display.color				= color_red;

    displayOptionsInfo.sound.generic.type			= MTYPE_PTEXT;
    displayOptionsInfo.sound.generic.flags			= QMF_RIGHT_JUSTIFY|QMF_PULSEIFFOCUS;
    displayOptionsInfo.sound.generic.id				= ID_SOUND;
    displayOptionsInfo.sound.generic.callback		= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.sound.generic.x				= 216;
    displayOptionsInfo.sound.generic.y				= 240;
    displayOptionsInfo.sound.string					= "SOUND";
    displayOptionsInfo.sound.style					= UI_RIGHT;
    displayOptionsInfo.sound.color					= color_red;

    displayOptionsInfo.network.generic.type			= MTYPE_PTEXT;
    displayOptionsInfo.network.generic.flags		= QMF_RIGHT_JUSTIFY|QMF_PULSEIFFOCUS;
    displayOptionsInfo.network.generic.id			= ID_NETWORK;
    displayOptionsInfo.network.generic.callback		= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.network.generic.x			= 216;
    displayOptionsInfo.network.generic.y			= 240 + PROP_HEIGHT;
    displayOptionsInfo.network.string				= "NETWORK";
    displayOptionsInfo.network.style				= UI_RIGHT;
    displayOptionsInfo.network.color				= color_red;

    y = 240 - 1 * (BIGCHAR_HEIGHT+2);
    displayOptionsInfo.brightness.generic.type		= MTYPE_SLIDER;
    displayOptionsInfo.brightness.generic.name		= "Brightness:";
    displayOptionsInfo.brightness.generic.flags		= QMF_PULSEIFFOCUS|QMF_SMALLFONT;
    displayOptionsInfo.brightness.generic.callback	= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.brightness.generic.id		= ID_BRIGHTNESS;
    displayOptionsInfo.brightness.generic.x			= 400;
    displayOptionsInfo.brightness.generic.y			= y;
    displayOptionsInfo.brightness.minvalue			= 5;
    displayOptionsInfo.brightness.maxvalue			= 20;
    if( !uis.glconfig.deviceSupportsGamma ) {
        displayOptionsInfo.brightness.generic.flags |= QMF_GRAYED;
    }

    y += BIGCHAR_HEIGHT+2;
    displayOptionsInfo.screensize.generic.type		= MTYPE_SLIDER;
    displayOptionsInfo.screensize.generic.name		= "Screen Size:";
    displayOptionsInfo.screensize.generic.flags		= QMF_PULSEIFFOCUS|QMF_SMALLFONT;
    displayOptionsInfo.screensize.generic.callback	= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.screensize.generic.id		= ID_SCREENSIZE;
    displayOptionsInfo.screensize.generic.x			= 400;
    displayOptionsInfo.screensize.generic.y			= y;
    displayOptionsInfo.screensize.minvalue			= 3;
    displayOptionsInfo.screensize.maxvalue			= 10;

    displayOptionsInfo.back.generic.type		= MTYPE_BITMAP;
    displayOptionsInfo.back.generic.name		= ART_BACK0;
    displayOptionsInfo.back.generic.flags		= QMF_LEFT_JUSTIFY|QMF_PULSEIFFOCUS;
    displayOptionsInfo.back.generic.callback	= UI_DisplayOptionsMenu_Event;
    displayOptionsInfo.back.generic.id			= ID_BACK;
    displayOptionsInfo.back.generic.x			= 0;
    displayOptionsInfo.back.generic.y			= 480-64;
    displayOptionsInfo.back.width				= 128;
    displayOptionsInfo.back.height				= 64;
    displayOptionsInfo.back.focuspic			= ART_BACK1;

    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.banner );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.framel );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.framer );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.graphics );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.display );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.sound );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.network );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.brightness );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.screensize );
    Menu_AddItem( &displayOptionsInfo.menu, ( void * ) &displayOptionsInfo.back );

    displayOptionsInfo.brightness.curvalue  = trap_Cvar_VariableValue("r_gamma") * 10;
    displayOptionsInfo.screensize.curvalue  = trap_Cvar_VariableValue( "cg_viewsize")/10;
}

/*
===============
UI_DisplayOptionsMenu_Cache
===============
*/
void UI_DisplayOptionsMenu_Cache( void ) {
    trap_R_RegisterShaderNoMip( ART_FRAMEL );
    trap_R_RegisterShaderNoMip( ART_FRAMER );
    trap_R_RegisterShaderNoMip( ART_BACK0 );
    trap_R_RegisterShaderNoMip( ART_BACK1 );
}

/*
===============
UI_DisplayOptionsMenu
===============
*/
void UI_DisplayOptionsMenu( void ) {
    UI_DisplayOptionsMenu_Init();
    UI_PushMenu( &displayOptionsInfo.menu );
    Menu_SetCursorToItem( &displayOptionsInfo.menu, &displayOptionsInfo.display );
}


text:
package gtm

import "github.com/e-XpertSolutions/f5-rest-client/f5"

// MonitorOracleList holds a list of MonitorOracle configuration.
type MonitorOracleList struct {
	Items    []MonitorOracle `json:"items,omitempty"`
	Kind     string          `json:"kind,omitempty"`
	SelfLink string          `json:"selflink,omitempty"`
}

// MonitorOracle holds the configuration of a single MonitorOracle.
type MonitorOracle struct {
	Count              string `json:"count,omitempty"`
	Debug              string `json:"debug,omitempty"`
	Destination        string `json:"destination,omitempty"`
	FullPath           string `json:"fullPath,omitempty"`
	Generation         int    `json:"generation,omitempty"`
	IgnoreDownResponse string `json:"ignoreDownResponse,omitempty"`
	Interval           int    `json:"interval,omitempty"`
	Kind               string `json:"kind,omitempty"`
	Name               string `json:"name,omitempty"`
	Partition          string `json:"partition,omitempty"`
	ProbeTimeout       int    `json:"probeTimeout,omitempty"`
	SelfLink           string `json:"selfLink,omitempty"`
	Timeout            int    `json:"timeout,omitempty"`
}

// MonitorOracleEndpoint represents the REST resource for managing MonitorOracle.
const MonitorOracleEndpoint = "/monitor/oracle"

// MonitorOracleResource provides an API to manage MonitorOracle configurations.
type MonitorOracleResource struct {
	c *f5.Client
}

// ListAll  lists all the MonitorOracle configurations.
func (r *MonitorOracleResource) ListAll() (*MonitorOracleList, error) {
	var list MonitorOracleList
	if err := r.c.ReadQuery(BasePath+MonitorOracleEndpoint, &list); err != nil {
		return nil, err
	}
	return &list, nil
}

// Get a single MonitorOracle configuration identified by id.
func (r *MonitorOracleResource) Get(id string) (*MonitorOracle, error) {
	var item MonitorOracle
	if err := r.c.ReadQuery(BasePath+MonitorOracleEndpoint, &item); err != nil {
		return nil, err
	}
	return &item, nil
}

// Create a new MonitorOracle configuration.
func (r *MonitorOracleResource) Create(item MonitorOracle) error {
	if err := r.c.ModQuery("POST", BasePath+MonitorOracleEndpoint, item); err != nil {
		return err
	}
	return nil
}

// Edit a MonitorOracle configuration identified by id.
func (r *MonitorOracleResource) Edit(id string, item MonitorOracle) error {
	if err := r.c.ModQuery("PUT", BasePath+MonitorOracleEndpoint+"/"+id, item); err != nil {
		return err
	}
	return nil
}

// Delete a single MonitorOracle configuration identified by id.
func (r *MonitorOracleResource) Delete(id string) error {
	if err := r.c.ModQuery("DELETE", BasePath+MonitorOracleEndpoint+"/"+id, nil); err != nil {
		return err
	}
	return nil
}


text:
package com.hp.alm.ali.rest.client.exception;

import com.hp.alm.ali.rest.client.ResultInfo;

public class AuthenticationFailureException extends HttpClientErrorException {
    public AuthenticationFailureException(ResultInfo resultInfo) {
        super(resultInfo);
    }
}


text:
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Threading.Tasks;
using CiaranONeill.NPV.Silverlight.NpvDateServiceReference;

namespace CiaranONeill.NPV.Silverlight
{
    public class DateServiceProxy : INpvDateService
    {
        public Task<ObservableCollection<DateTime>> GetDates(RolloverType period)
        {
            var th = new TaskHelper<NpvDateServiceClient, ObservableCollection<DateTime>>(new NpvDateServiceClient());
            return th.GetTask<ObservableCollection<DateTime>>(new object[]{period});
        }
    }

    public interface INpvDateService
    {
        Task<ObservableCollection<DateTime>> GetDates(RolloverType period);
    }
}


text:
Redirecting...

This page should redirect to the most recent builds of Bub


text:
import { Component } from '@angular/core';

@Component({
    selector:'error-comp',
    templateUrl: './error.component.html'
})
export class ErrorComponent{}


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.sample.echo" >

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

    <uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"></uses-permission>
    <uses-permission android:name="android.permission.INTERNET"></uses-permission>
    <!-- debug-writing file need external storage writing -->
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
</manifest>


text:
const state = { errors: [] };
const mutations = {
  clearError (state) {
    state.errors = [];
  },
  setError (state, errors) {
    console.log('error setError mutations');
    state.errors = errors;
  }
};
const actions = {
  clearError (context) {
    context.commit('clearError');
  },
  setError (context, errors) {
    console.log('error setError actions');
    context.commit('setError', errors);
  }
};

const getters = {
  getErrors (state) {
    return state.errors;
  }
};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
};


text:
using System;
using System.Linq.Expressions;
using System.Reflection;

public static class ConstructorDelegateBuilder
{
    public static Func<object> BuildConstructorDelegate(this Type weaverType)
    {
        if (weaverType.IsNested)
        {
            throw new WeavingException($"'{weaverType.FullName}' is a nested class which is not supported.");
        }
        if (weaverType.IsAbstract || !weaverType.IsClass || !weaverType.IsPublic)
        {
            throw new WeavingException($"'{weaverType.FullName}' is not a public instance class.");
        }
        var constructorInfo = weaverType.GetConstructor(BindingFlags.Instance | BindingFlags.Public, null, new Type[] {}, null);
        if (constructorInfo == null)
        {
            var message = $"'{weaverType.FullName}' does not have a public instance constructor with no parameters.";
            throw new WeavingException(message);
        }
        return (Func<object>) Expression.Lambda(Expression.Convert(Expression.New(constructorInfo), weaverType))
                                .Compile();
    }
}


text:
package org.springframework.boot.gradle.plugin;

import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

import org.springframework.boot.gradle.junit.GradleCompatibilitySuite;
import org.springframework.boot.gradle.testkit.GradleBuild;

import static org.assertj.core.api.Assertions.assertThat;

/**
 * Integration tests for {@link MavenPluginAction}.
 *
 * @author Andy Wilkinson
 */
@RunWith(GradleCompatibilitySuite.class)
public class MavenPluginActionIntegrationTests {

	@Rule
	public GradleBuild gradleBuild;

	@Test
	public void clearsConf2ScopeMappingsOfUploadBootArchivesTask() {
		assertThat(this.gradleBuild.build("conf2ScopeMappings").getOutput())
				.contains("Conf2ScopeMappings = 0");
	}

}


text:
"""Generated message classes for sqladmin version v1beta3.

API for Cloud SQL database instance management.
"""
# NOTE: This file is autogenerated and should not be edited by hand.

from protorpc import message_types as _message_types
from protorpc import messages as _messages

package = 'sqladmin'

class BackupConfiguration(_messages.Message):
  """Database instance backup configuration.

  Fields:
    binaryLogEnabled: Whether binary log is enabled. If backup configuration
      is disabled, binary log must be disabled as well.
    enabled: Whether this configuration is enabled.
    id: Identifier for this configuration. This gets generated automatically
      when a backup configuration is created.
    kind: This is always sql#backupConfiguration.
    startTime: Start time for the daily backup configuration in UTC timezone
      in the 24 hour format - HH:MM.
  """

  binaryLogEnabled = _messages.BooleanField(1)
  enabled = _messages.BooleanField(2)
  id = _messages.StringField(3)
  kind = _messages.StringField(4, default=u'sql#backupConfiguration')
  startTime = _messages.StringField(5)

class BackupRun(_messages.Message):
  """A database instance backup run resource.

  Fields:
    backupConfiguration: Backup Configuration identifier.
    dueTime: The due time of this run in UTC timezone in RFC 3339 format, for
      example 2012-11-15T16:19:00.094Z.
    endTime: The time the backup operation completed in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    enqueuedTime: The time the run was enqueued in UTC timezone in RFC 3339
      format, for example 2012-11-15T16:19:00.094Z.
    error: Information about why the backup operation failed. This is only
      present if the run has the FAILED status.
    instance: Name of the database instance.
    kind: This is always sql#backupRun.
    startTime: The time the backup operation actually started in UTC timezone
      in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
    status: The status of this run.
  """

  backupConfiguration = _messages.StringField(1)
  dueTime = _message_types.DateTimeField(2)
  endTime = _message_types.DateTimeField(3)
  enqueuedTime = _message_types.DateTimeField(4)
  error = _messages.MessageField('OperationError', 5)
  instance = _messages.StringField(6)
  kind = _messages.StringField(7, default=u'sql#backupRun')
  startTime = _message_types.DateTimeField(8)
  status = _messages.StringField(9)

class BackupRunsListResponse(_messages.Message):
  """Backup run list results.

  Fields:
    items: A list of backup runs in reverse chronological order of the
      enqueued time.
    kind: This is always sql#backupRunsList.
    nextPageToken: The continuation token, used to page through large result
      sets. Provide this value in a subsequent request to return the next page
      of results.
  """

  items = _messages.MessageField('BackupRun', 1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#backupRunsList')
  nextPageToken = _messages.StringField(3)

class BinLogCoordinates(_messages.Message):
  """Binary log coordinates.

  Fields:
    binLogFileName: Name of the binary log file for a Cloud SQL instance.
    binLogPosition: Position (offset) within the binary log file.
    kind: This is always sql#binLogCoordinates.
  """

  binLogFileName = _messages.StringField(1)
  binLogPosition = _messages.IntegerField(2)
  kind = _messages.StringField(3, default=u'sql#binLogCoordinates')

class CloneContext(_messages.Message):
  """Database instance clone context.

  Fields:
    binLogCoordinates: Binary log coordinates, if specified, indentify the
      position up to which the source instance should be cloned. If not
      specified, the source instance is cloned up to the most recent binary
      log coordinates.
    destinationInstanceName: Name of the Cloud SQL instance to be created as a
      clone.
    kind: This is always sql#cloneContext.
    sourceInstanceName: Name of the Cloud SQL instance to be cloned.
  """

  binLogCoordinates = _messages.MessageField('BinLogCoordinates', 1)
  destinationInstanceName = _messages.StringField(2)
  kind = _messages.StringField(3, default=u'sql#cloneContext')
  sourceInstanceName = _messages.StringField(4)

class DatabaseFlags(_messages.Message):
  """MySQL flags for Cloud SQL instances.

  Fields:
    name: The name of the flag. These flags are passed at instance startup, so
      include both MySQL server options and MySQL system variables. Flags
      should be specified with underscores, not hyphens. For more information,
      see Configuring MySQL Flags in the Google Cloud SQL documentation, as
      well as the official MySQL documentation for server options and system
      variables.
    value: The value of the flag. Booleans should be set to on for true and
      off for false. This field must be omitted if the flag doesn't take a
      value.
  """

  name = _messages.StringField(1)
  value = _messages.StringField(2)

class DatabaseInstance(_messages.Message):
  """A Cloud SQL instance resource.

  Fields:
    currentDiskSize: The current disk usage of the instance in bytes.
    databaseVersion: The database engine type and version. Can be MYSQL_5_5 or
      MYSQL_5_6. Defaults to MYSQL_5_5. The databaseVersion cannot be changed
      after instance creation.
    etag: HTTP 1.1 Entity tag for the resource.
    instance: Name of the Cloud SQL instance. This does not include the
      project ID.
    instanceType: The instance type. This can be one of the following.
      CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. READ_REPLICA_INSTANCE:
      Cloud SQL instance acting as a read-replica.
    ipAddresses: The assigned IP addresses for the instance.
    ipv6Address: The IPv6 address assigned to the instance.
    kind: This is always sql#instance.
    masterInstanceName: The name of the instance which will act as master in
      the replication setup.
    maxDiskSize: The maximum disk size of the instance in bytes.
    project: The project ID of the project containing the Cloud SQL instance.
      The Google apps domain is prefixed if applicable.
    region: The geographical region. Can be us-central, asia-east1 or europe-
      west1. Defaults to us-central. The region can not be changed after
      instance creation.
    replicaNames: The replicas of the instance.
    serverCaCert: SSL configuration.
    serviceAccountEmailAddress: The service account email address assigned to
      the instance.
    settings: The user settings.
    state: The current serving state of the Cloud SQL instance. This can be
      one of the following. RUNNABLE: The instance is running, or is ready to
      run when accessed. SUSPENDED: The instance is not available, for example
      due to problems with billing. PENDING_CREATE: The instance is being
      created. MAINTENANCE: The instance is down for maintenance.
      UNKNOWN_STATE: The state of the instance is unknown.
  """

  currentDiskSize = _messages.IntegerField(1)
  databaseVersion = _messages.StringField(2)
  etag = _messages.StringField(3)
  instance = _messages.StringField(4)
  instanceType = _messages.StringField(5)
  ipAddresses = _messages.MessageField('IpMapping', 6, repeated=True)
  ipv6Address = _messages.StringField(7)
  kind = _messages.StringField(8, default=u'sql#instance')
  masterInstanceName = _messages.StringField(9)
  maxDiskSize = _messages.IntegerField(10)
  project = _messages.StringField(11)
  region = _messages.StringField(12)
  replicaNames = _messages.StringField(13, repeated=True)
  serverCaCert = _messages.MessageField('SslCert', 14)
  serviceAccountEmailAddress = _messages.StringField(15)
  settings = _messages.MessageField('Settings', 16)
  state = _messages.StringField(17)

class ExportContext(_messages.Message):
  """Database instance export context.

  Fields:
    database: Databases (for example, guestbook) from which the export is
      made. If unspecified, all databases are exported.
    kind: This is always sql#exportContext.
    table: Tables to export, or that were exported, from the specified
      database. If you specify tables, specify one and only one database.
    uri: The path to the file in Google Cloud Storage where the export will be
      stored, or where it was already stored. The URI is in the form
      gs://bucketName/fileName. If the file already exists, the operation
      fails. If the filename ends with .gz, the contents are compressed.
  """

  database = _messages.StringField(1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#exportContext')
  table = _messages.StringField(3, repeated=True)
  uri = _messages.StringField(4)

class Flag(_messages.Message):
  """A Google Cloud SQL service flag resource.

  Fields:
    allowedStringValues: For STRING flags, a list of strings that the value
      can be set to.
    appliesTo: The database version this flag applies to. Currently this can
      only be [MYSQL_5_5].
    kind: This is always sql#flag.
    maxValue: For INTEGER flags, the maximum allowed value.
    minValue: For INTEGER flags, the minimum allowed value.
    name: This is the name of the flag. Flag names always use underscores, not
      hyphens, e.g. max_allowed_packet
    type: The type of the flag. Flags are typed to being BOOLEAN, STRING,
      INTEGER or NONE. NONE is used for flags which do not take a value, such
      as skip_grant_tables.
  """

  allowedStringValues = _messages.StringField(1, repeated=True)
  appliesTo = _messages.StringField(2, repeated=True)
  kind = _messages.StringField(3, default=u'sql#flag')
  maxValue = _messages.IntegerField(4)
  minValue = _messages.IntegerField(5)
  name = _messages.StringField(6)
  type = _messages.StringField(7)

class FlagsListResponse(_messages.Message):
  """Flags list response.

  Fields:
    items: List of flags.
    kind: This is always sql#flagsList.
  """

  items = _messages.MessageField('Flag', 1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#flagsList')

class ImportContext(_messages.Message):
  """Database instance import context.

  Fields:
    database: The database (for example, guestbook) to which the import is
      made. If not set, it is assumed that the database is specified in the
      file to be imported.
    kind: This is always sql#importContext.
    uri: A path to the MySQL dump file in Google Cloud Storage from which the
      import is made. The URI is in the form gs://bucketName/fileName.
      Compressed gzip files (.gz) are also supported.
  """

  database = _messages.StringField(1)
  kind = _messages.StringField(2, default=u'sql#importContext')
  uri = _messages.StringField(3, repeated=True)

class InstanceOperation(_messages.Message):
  """An Operations resource contains information about database instance
  operations such as create, delete, and restart. Operations resources are
  created in response to operations that were initiated; you never create them
  directly.

  Fields:
    endTime: The time this operation finished in UTC timezone in RFC 3339
      format, for example 2012-11-15T16:19:00.094Z.
    enqueuedTime: The time this operation was enqueued in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    error: The error(s) encountered by this operation. Only set if the
      operation results in an error.
    exportContext: The context for export operation, if applicable.
    importContext: The context for import operation, if applicable.
    instance: Name of the database instance.
    kind: This is always sql#instanceOperation.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
    operationType: The type of the operation. Valid values are CREATE, DELETE,
      UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME.
    startTime: The time this operation actually started in UTC timezone in RFC
      3339 format, for example 2012-11-15T16:19:00.094Z.
    state: The state of an operation. Valid values are PENDING, RUNNING, DONE,
      UNKNOWN.
    userEmailAddress: The email address of the user who initiated this
      operation.
  """

  endTime = _message_types.DateTimeField(1)
  enqueuedTime = _message_types.DateTimeField(2)
  error = _messages.MessageField('OperationError', 3, repeated=True)
  exportContext = _messages.MessageField('ExportContext', 4)
  importContext = _messages.MessageField('ImportContext', 5)
  instance = _messages.StringField(6)
  kind = _messages.StringField(7, default=u'sql#instanceOperation')
  operation = _messages.StringField(8)
  operationType = _messages.StringField(9)
  startTime = _message_types.DateTimeField(10)
  state = _messages.StringField(11)
  userEmailAddress = _messages.StringField(12)

class InstanceSetRootPasswordRequest(_messages.Message):
  """Database instance set root password request.

  Fields:
    setRootPasswordContext: Set Root Password Context.
  """

  setRootPasswordContext = _messages.MessageField('SetRootPasswordContext', 1)

class InstancesCloneRequest(_messages.Message):
  """Database instance clone request.

  Fields:
    cloneContext: Contains details about the clone operation.
  """

  cloneContext = _messages.MessageField('CloneContext', 1)

class InstancesCloneResponse(_messages.Message):
  """Database instance clone response.

  Fields:
    kind: This is always sql#instancesClone.
    operation: An unique identifier for the operation associated with the
      cloned instance. You can use this identifier to retrieve the Operations
      resource, which has information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesClone')
  operation = _messages.StringField(2)

class InstancesDeleteResponse(_messages.Message):
  """Database instance delete response.

  Fields:
    kind: This is always sql#instancesDelete.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesDelete')
  operation = _messages.StringField(2)

class InstancesExportRequest(_messages.Message):
  """Database instance export request.

  Fields:
    exportContext: Contains details about the export operation.
  """

  exportContext = _messages.MessageField('ExportContext', 1)

class InstancesExportResponse(_messages.Message):
  """Database instance export response.

  Fields:
    kind: This is always sql#instancesExport.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesExport')
  operation = _messages.StringField(2)

class InstancesImportRequest(_messages.Message):
  """Database instance import request.

  Fields:
    importContext: Contains details about the import operation.
  """

  importContext = _messages.MessageField('ImportContext', 1)

class InstancesImportResponse(_messages.Message):
  """Database instance import response.

  Fields:
    kind: This is always sql#instancesImport.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesImport')
  operation = _messages.StringField(2)

class InstancesInsertResponse(_messages.Message):
  """Database instance insert response.

  Fields:
    kind: This is always sql#instancesInsert.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesInsert')
  operation = _messages.StringField(2)

class InstancesListResponse(_messages.Message):
  """Database instances list response.

  Fields:
    items: List of database instance resources.
    kind: This is always sql#instancesList.
    nextPageToken: The continuation token, used to page through large result
      sets. Provide this value in a subsequent request to return the next page
      of results.
  """

  items = _messages.MessageField('DatabaseInstance', 1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#instancesList')
  nextPageToken = _messages.StringField(3)

class InstancesPromoteReplicaResponse(_messages.Message):
  """Database promote read replica response.

  Fields:
    kind: This is always sql#instancesPromoteReplica.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesPromoteReplica')
  operation = _messages.StringField(2)

class InstancesResetSslConfigResponse(_messages.Message):
  """Database instance resetSslConfig response.

  Fields:
    kind: This is always sql#instancesResetSslConfig.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation. All ssl client certificates will be
      deleted and a new server certificate will be created. Does not take
      effect until the next instance restart.
  """

  kind = _messages.StringField(1, default=u'sql#instancesResetSslConfig')
  operation = _messages.StringField(2)

class InstancesRestartResponse(_messages.Message):
  """Database instance restart response.

  Fields:
    kind: This is always sql#instancesRestart.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesRestart')
  operation = _messages.StringField(2)

class InstancesRestoreBackupResponse(_messages.Message):
  """Database instance restore backup response.

  Fields:
    kind: This is always sql#instancesRestoreBackup.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesRestoreBackup')
  operation = _messages.StringField(2)

class InstancesSetRootPasswordResponse(_messages.Message):
  """Database instance set root password response.

  Fields:
    kind: This is always sql#instancesSetRootPassword.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesSetRootPassword')
  operation = _messages.StringField(2)

class InstancesUpdateResponse(_messages.Message):
  """Database instance update response.

  Fields:
    kind: This is always sql#instancesUpdate.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#instancesUpdate')
  operation = _messages.StringField(2)

class IpConfiguration(_messages.Message):
  """IP Management configuration.

  Fields:
    authorizedNetworks: The list of external networks that are allowed to
      connect to the instance using the IP. In CIDR notation, also known as
      'slash' notation (e.g. 192.168.100.0/24).
    enabled: Whether the instance should be assigned an IP address or not.
    kind: This is always sql#ipConfiguration.
    requireSsl: Whether the mysqld should default to 'REQUIRE X509' for users
      connecting over IP.
  """

  authorizedNetworks = _messages.StringField(1, repeated=True)
  enabled = _messages.BooleanField(2)
  kind = _messages.StringField(3, default=u'sql#ipConfiguration')
  requireSsl = _messages.BooleanField(4)

class IpMapping(_messages.Message):
  """Database instance IP Mapping.

  Fields:
    ipAddress: The IP address assigned.
    timeToRetire: The due time for this IP to be retired in RFC 3339 format,
      for example 2012-11-15T16:19:00.094Z. This field is only available when
      the IP is scheduled to be retired.
  """

  ipAddress = _messages.StringField(1)
  timeToRetire = _message_types.DateTimeField(2)

class LocationPreference(_messages.Message):
  """Preferred location. This specifies where a Cloud SQL instance should
  preferably be located, either in a specific Compute Engine zone, or co-
  located with an App Engine application. Note that if the preferred location
  is not available, the instance will be located as close as possible within
  the region. Only one location may be specified.

  Fields:
    followGaeApplication: The App Engine application to follow, it must be in
      the same region as the Cloud SQL instance.
    kind: This is always sql#locationPreference.
    zone: The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b,
      etc.).
  """

  followGaeApplication = _messages.StringField(1)
  kind = _messages.StringField(2, default=u'sql#locationPreference')
  zone = _messages.StringField(3)

class OperationError(_messages.Message):
  """Database instance operation error.

  Fields:
    code: Identifies the specific error that occurred.
    kind: This is always sql#operationError.
  """

  code = _messages.StringField(1)
  kind = _messages.StringField(2, default=u'sql#operationError')

class OperationsListResponse(_messages.Message):
  """Database instance list operations response.

  Fields:
    items: List of operation resources.
    kind: This is always sql#operationsList.
    nextPageToken: The continuation token, used to page through large result
      sets. Provide this value in a subsequent request to return the next page
      of results.
  """

  items = _messages.MessageField('InstanceOperation', 1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#operationsList')
  nextPageToken = _messages.StringField(3)

class SetRootPasswordContext(_messages.Message):
  """Database instance set root password context.

  Fields:
    kind: This is always sql#setRootUserContext.
    password: The password for the root user.
  """

  kind = _messages.StringField(1, default=u'sql#setRootUserContext')
  password = _messages.StringField(2)

class Settings(_messages.Message):
  """Database instance settings.

  Fields:
    activationPolicy: The activation policy for this instance. This specifies
      when the instance should be activated and is applicable only when the
      instance state is RUNNABLE. This can be one of the following. ALWAYS:
      The instance should always be active. NEVER: The instance should never
      be activated. ON_DEMAND: The instance is activated upon receiving
      requests.
    authorizedGaeApplications: The App Engine app IDs that can access this
      instance.
    backupConfiguration: The daily backup configuration for the instance.
    databaseFlags: The database flags passed to the instance at startup.
    databaseReplicationEnabled: Configuration specific to read replica
      instance. Indicates whether replication is enabled or not.
    ipConfiguration: The settings for IP Management. This allows to enable or
      disable the instance IP and manage which external networks can connect
      to the instance.
    kind: This is always sql#settings.
    locationPreference: The location preference settings. This allows the
      instance to be located as near as possible to either an App Engine app
      or GCE zone for better performance.
    pricingPlan: The pricing plan for this instance. This can be either
      PER_USE or PACKAGE.
    replicationType: The type of replication this instance uses. This can be
      either ASYNCHRONOUS or SYNCHRONOUS.
    settingsVersion: The version of instance settings. This is a required
      field for update method to make sure concurrent updates are handled
      properly. During update, use the most recent settingsVersion value for
      this instance and do not try to update this value.
    tier: The tier of service for this instance, for example D1, D2. For more
      information, see pricing.
  """

  activationPolicy = _messages.StringField(1)
  authorizedGaeApplications = _messages.StringField(2, repeated=True)
  backupConfiguration = _messages.MessageField('BackupConfiguration', 3, repeated=True)
  databaseFlags = _messages.MessageField('DatabaseFlags', 4, repeated=True)
  databaseReplicationEnabled = _messages.BooleanField(5)
  ipConfiguration = _messages.MessageField('IpConfiguration', 6)
  kind = _messages.StringField(7, default=u'sql#settings')
  locationPreference = _messages.MessageField('LocationPreference', 8)
  pricingPlan = _messages.StringField(9)
  replicationType = _messages.StringField(10)
  settingsVersion = _messages.IntegerField(11)
  tier = _messages.StringField(12)

class SqlBackupRunsGetRequest(_messages.Message):
  """A SqlBackupRunsGetRequest object.

  Fields:
    backupConfiguration: Identifier for the backup configuration. This gets
      generated automatically when a backup configuration is created.
    dueTime: The start time of the four-hour backup window. The backup can
      occur any time in the window. The time is in RFC 3339 format, for
      example 2012-11-15T16:19:00.094Z.
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance.
  """

  backupConfiguration = _messages.StringField(1, required=True)
  dueTime = _messages.StringField(2, required=True)
  instance = _messages.StringField(3, required=True)
  project = _messages.StringField(4, required=True)

class SqlBackupRunsListRequest(_messages.Message):
  """A SqlBackupRunsListRequest object.

  Fields:
    backupConfiguration: Identifier for the backup configuration. This gets
      generated automatically when a backup configuration is created.
    instance: Cloud SQL instance ID. This does not include the project ID.
    maxResults: Maximum number of backup runs per response.
    pageToken: A previously-returned page token representing part of the
      larger set of results to view.
    project: Project ID of the project that contains the instance.
  """

  backupConfiguration = _messages.StringField(1, required=True)
  instance = _messages.StringField(2, required=True)
  maxResults = _messages.IntegerField(3, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(4)
  project = _messages.StringField(5, required=True)

class SqlFlagsListRequest(_messages.Message):
  """A SqlFlagsListRequest object."""

class SqlInstancesCloneRequest(_messages.Message):
  """A SqlInstancesCloneRequest object.

  Fields:
    instancesCloneRequest: A InstancesCloneRequest resource to be passed as
      the request body.
    project: Project ID of the source as well as the clone Cloud SQL instance.
  """

  instancesCloneRequest = _messages.MessageField('InstancesCloneRequest', 1)
  project = _messages.StringField(2, required=True)

class SqlInstancesDeleteRequest(_messages.Message):
  """A SqlInstancesDeleteRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance to be
      deleted.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)

class SqlInstancesExportRequest(_messages.Message):
  """A SqlInstancesExportRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    instancesExportRequest: A InstancesExportRequest resource to be passed as
      the request body.
    project: Project ID of the project that contains the instance to be
      exported.
  """

  instance = _messages.StringField(1, required=True)
  instancesExportRequest = _messages.MessageField('InstancesExportRequest', 2)
  project = _messages.StringField(3, required=True)

class SqlInstancesGetRequest(_messages.Message):
  """A SqlInstancesGetRequest object.

  Fields:
    instance: Database instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)

class SqlInstancesImportRequest(_messages.Message):
  """A SqlInstancesImportRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    instancesImportRequest: A InstancesImportRequest resource to be passed as
      the request body.
    project: Project ID of the project that contains the instance.
  """

  instance = _messages.StringField(1, required=True)
  instancesImportRequest = _messages.MessageField('InstancesImportRequest', 2)
  project = _messages.StringField(3, required=True)

class SqlInstancesListRequest(_messages.Message):
  """A SqlInstancesListRequest object.

  Fields:
    maxResults: The maximum number of results to return per response.
    pageToken: A previously-returned page token representing part of the
      larger set of results to view.
    project: Project ID of the project for which to list Cloud SQL instances.
  """

  maxResults = _messages.IntegerField(1, variant=_messages.Variant.UINT32)
  pageToken = _messages.StringField(2)
  project = _messages.StringField(3, required=True)

class SqlInstancesPromoteReplicaRequest(_messages.Message):
  """A SqlInstancesPromoteReplicaRequest object.

  Fields:
    instance: Cloud SQL read replica instance name.
    project: ID of the project that contains the read replica.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)

class SqlInstancesResetSslConfigRequest(_messages.Message):
  """A SqlInstancesResetSslConfigRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)

class SqlInstancesRestartRequest(_messages.Message):
  """A SqlInstancesRestartRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance to be
      restarted.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)

class SqlInstancesRestoreBackupRequest(_messages.Message):
  """A SqlInstancesRestoreBackupRequest object.

  Fields:
    backupConfiguration: The identifier of the backup configuration. This gets
      generated automatically when a backup configuration is created.
    dueTime: The start time of the four-hour backup window. The backup can
      occur any time in the window. The time is in RFC 3339 format, for
      example 2012-11-15T16:19:00.094Z.
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance.
  """

  backupConfiguration = _messages.StringField(1, required=True)
  dueTime = _messages.StringField(2, required=True)
  instance = _messages.StringField(3, required=True)
  project = _messages.StringField(4, required=True)

class SqlInstancesSetRootPasswordRequest(_messages.Message):
  """A SqlInstancesSetRootPasswordRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    instanceSetRootPasswordRequest: A InstanceSetRootPasswordRequest resource
      to be passed as the request body.
    project: Project ID of the project that contains the instance.
  """

  instance = _messages.StringField(1, required=True)
  instanceSetRootPasswordRequest = _messages.MessageField('InstanceSetRootPasswordRequest', 2)
  project = _messages.StringField(3, required=True)

class SqlOperationsGetRequest(_messages.Message):
  """A SqlOperationsGetRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    operation: Instance operation ID.
    project: Project ID of the project that contains the instance.
  """

  instance = _messages.StringField(1, required=True)
  operation = _messages.StringField(2, required=True)
  project = _messages.StringField(3, required=True)

class SqlOperationsListRequest(_messages.Message):
  """A SqlOperationsListRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    maxResults: Maximum number of operations per response.
    pageToken: A previously-returned page token representing part of the
      larger set of results to view.
    project: Project ID of the project that contains the instance.
  """

  instance = _messages.StringField(1, required=True)
  maxResults = _messages.IntegerField(2, variant=_messages.Variant.UINT32)
  pageToken = _messages.StringField(3)
  project = _messages.StringField(4, required=True)

class SqlSslCertsDeleteRequest(_messages.Message):
  """A SqlSslCertsDeleteRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance to be
      deleted.
    sha1Fingerprint: Sha1 FingerPrint.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)
  sha1Fingerprint = _messages.StringField(3, required=True)

class SqlSslCertsGetRequest(_messages.Message):
  """A SqlSslCertsGetRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project that contains the instance.
    sha1Fingerprint: Sha1 FingerPrint.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)
  sha1Fingerprint = _messages.StringField(3, required=True)

class SqlSslCertsInsertRequest(_messages.Message):
  """A SqlSslCertsInsertRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project to which the newly created Cloud SQL
      instances should belong.
    sslCertsInsertRequest: A SslCertsInsertRequest resource to be passed as
      the request body.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)
  sslCertsInsertRequest = _messages.MessageField('SslCertsInsertRequest', 3)

class SqlSslCertsListRequest(_messages.Message):
  """A SqlSslCertsListRequest object.

  Fields:
    instance: Cloud SQL instance ID. This does not include the project ID.
    project: Project ID of the project for which to list Cloud SQL instances.
  """

  instance = _messages.StringField(1, required=True)
  project = _messages.StringField(2, required=True)

class SqlTiersListRequest(_messages.Message):
  """A SqlTiersListRequest object.

  Fields:
    project: Project ID of the project for which to list tiers.
  """

  project = _messages.StringField(1, required=True)

class SslCert(_messages.Message):
  """SslCerts Resource

  Fields:
    cert: PEM representation.
    certSerialNumber: Serial number, as extracted from the certificate.
    commonName: User supplied name. Constrained to [a-zA-Z.-_ ]+.
    createTime: Time when the certificate was created.
    expirationTime: Time when the certificate expires.
    instance: Name of the database instance.
    kind: This is always sql#sslCert.
    sha1Fingerprint: Sha1 Fingerprint.
  """

  cert = _messages.StringField(1)
  certSerialNumber = _messages.StringField(2)
  commonName = _messages.StringField(3)
  createTime = _message_types.DateTimeField(4)
  expirationTime = _message_types.DateTimeField(5)
  instance = _messages.StringField(6)
  kind = _messages.StringField(7, default=u'sql#sslCert')
  sha1Fingerprint = _messages.StringField(8)

class SslCertDetail(_messages.Message):
  """SslCertDetail.

  Fields:
    certInfo: The public information about the cert.
    certPrivateKey: The private key for the client cert, in pem format. Keep
      private in order to protect your security.
  """

  certInfo = _messages.MessageField('SslCert', 1)
  certPrivateKey = _messages.StringField(2)

class SslCertsDeleteResponse(_messages.Message):
  """SslCert delete response.

  Fields:
    kind: This is always sql#sslCertsDelete.
    operation: An identifier that uniquely identifies the operation. You can
      use this identifier to retrieve the Operations resource that has
      information about the operation.
  """

  kind = _messages.StringField(1, default=u'sql#sslCertsDelete')
  operation = _messages.StringField(2)

class SslCertsInsertRequest(_messages.Message):
  """SslCerts insert request.

  Fields:
    commonName: User supplied name. Must be a distinct name from the other
      certificates for this instance. New certificates will not be usable
      until the instance is restarted.
  """

  commonName = _messages.StringField(1)

class SslCertsInsertResponse(_messages.Message):
  """SslCert insert response.

  Fields:
    clientCert: The new client certificate and private key. The new
      certificate will not work until the instance is restarted.
    kind: This is always sql#sslCertsInsert.
    serverCaCert: The server Certificate Authority's certificate. If this is
      missing you can force a new one to be generated by calling
      resetSslConfig method on instances resource..
  """

  clientCert = _messages.MessageField('SslCertDetail', 1)
  kind = _messages.StringField(2, default=u'sql#sslCertsInsert')
  serverCaCert = _messages.MessageField('SslCert', 3)

class SslCertsListResponse(_messages.Message):
  """SslCerts list response.

  Fields:
    items: List of client certificates for the instance.
    kind: This is always sql#sslCertsList.
  """

  items = _messages.MessageField('SslCert', 1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#sslCertsList')

class StandardQueryParameters(_messages.Message):
  """Query parameters accepted by all methods.

  Enums:
    AltValueValuesEnum: Data format for the response.

  Fields:
    alt: Data format for the response.
    fields: Selector specifying which fields to include in a partial response.
    key: API key. Your API key identifies your project and provides you with
      API access, quota, and reports. Required unless you provide an OAuth 2.0
      token.
    oauth_token: OAuth 2.0 token for the current user.
    prettyPrint: Returns response with indentations and line breaks.
    quotaUser: Available to use for quota purposes for server-side
      applications. Can be any arbitrary string assigned to a user, but should
      not exceed 40 characters. Overrides userIp if both are provided.
    trace: A tracing token of the form "token:<tokenid>" or "email:<ldap>" to
      include in api requests.
    userIp: IP address of the site where the request originates. Use this if
      you want to enforce per-user limits.
  """

  class AltValueValuesEnum(_messages.Enum):
    """Data format for the response.

    Values:
      json: Responses with Content-Type of application/json
    """
    json = 0

  alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json')
  fields = _messages.StringField(2)
  key = _messages.StringField(3)
  oauth_token = _messages.StringField(4)
  prettyPrint = _messages.BooleanField(5, default=True)
  quotaUser = _messages.StringField(6)
  trace = _messages.StringField(7)
  userIp = _messages.StringField(8)

class Tier(_messages.Message):
  """A Google Cloud SQL service tier resource.

  Fields:
    DiskQuota: The maximum disk size of this tier in bytes.
    RAM: The maximum RAM usage of this tier in bytes.
    kind: This is always sql#tier.
    region: The applicable regions for this tier. Can be us-east1, europe-
      west1, or asia-east1.
    tier: An identifier for the service tier, for example D1, D2 etc. For
      related information, see Pricing.
  """

  DiskQuota = _messages.IntegerField(1)
  RAM = _messages.IntegerField(2)
  kind = _messages.StringField(3, default=u'sql#tier')
  region = _messages.StringField(4, repeated=True)
  tier = _messages.StringField(5)

class TiersListResponse(_messages.Message):
  """Tiers list response.

  Fields:
    items: List of tiers.
    kind: This is always sql#tiersList.
  """

  items = _messages.MessageField('Tier', 1, repeated=True)
  kind = _messages.StringField(2, default=u'sql#tiersList')


text:
import{a as r}from"./chunk-NCDRXM67.js";function t(e){return r(e,"player_id")}export{t as a};
//# sourceMappingURL=chunk-KGRIIBVV.js.map


text:
package com.nhnsoft.bitcoin.signers;

import com.nhnsoft.bitcoin.core.Transaction;
import com.nhnsoft.bitcoin.crypto.ChildNumber;
import com.nhnsoft.bitcoin.script.Script;
import com.nhnsoft.bitcoin.wallet.KeyBag;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 *
Implementations of this interface are intended to sign inputs of the given transaction. Given transaction may already
 * be partially signed or somehow altered by other signers.

 *
To make use of the signer, you need to add it into the wallet by
 * calling {@link com.nhnsoft.bitcoin.core.Wallet#addTransactionSigner(TransactionSigner)}. Signer will be serialized
 * along with the wallet data. In order for a wallet to recreate signer after deserialization, each signer
 * should have no-args constructor

 */

object TransactionSigner {
    /**
     * This class wraps transaction proposed to complete keeping a metadata that may be updated, used and effectively
     * shared by transaction signers.
     */
    class ProposedTransaction(val partialTx : Transaction) {

        /**
         * HD key paths used for each input to derive a signing key. It's useful for multisig inputs only.
         * The keys used to create a single P2SH address have the same derivation path, so to use a correct key each signer
         * has to know a derivation path of signing keys used by previous signers. For each input signers will use the
         * same derivation path and we need to store only one key path per input. As TransactionInput is mutable, inputs
         * are identified by their scriptPubKeys (keys in this map).
         */
        val keyPaths = new HashMap[Script, List[ChildNumber]]()
    }
}

trait TransactionSigner {

    /**
     * Returns true if this signer is ready to be used.
     */
    def isReady() : Boolean

    /**
     * Returns byte array of data representing state of this signer. It's used to serialize/deserialize this signer
     */
    def serialize() : Array[Byte]

    /**
     * Uses given byte array of data to reconstruct internal state of this signer
     */
    def deserialize(data : Array[Byte]) : Unit

    /**
     * Signs given transaction's inputs.
     * Returns true if signer is compatible with given transaction (can do something meaningful with it).
     * Otherwise this method returns false
     */
    def signInputs(propTx : TransactionSigner.ProposedTransaction, keyBag : KeyBag) : Boolean

}


text:
package com.danylo.volokh.video_player_manager.ui;

import android.content.res.AssetFileDescriptor;
import android.os.ParcelFileDescriptor;

import com.volokh.danylo.video_player_manager.Config;
import com.volokh.danylo.video_player_manager.ui.MediaPlayerWrapper;
import com.volokh.danylo.video_player_manager.utils.Logger;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;

import static junit.framework.Assert.assertEquals;

public class MediaPlayerWrapperStartTest {

    private static final String TAG = MediaPlayerWrapperStartTest.class.getSimpleName();
    private static final boolean SHOW_LOGS = Config.SHOW_LOGS;

    private MediaPlayerWrapper mMediaPlayerWrapper;
    private MediaPlayerWrapperTest.MockMediaPlayer mMediaPlayer;

    @Before
    public void setUp() throws Exception {
        if (SHOW_LOGS) Logger.v(TAG, "setUp");
        mMediaPlayer = new MediaPlayerWrapperTest.MockMediaPlayer();
        mMediaPlayerWrapper = new MediaPlayerWrapperTest.MockMediaPlayerWrapper(mMediaPlayer);
    }

    @After
    public void tearDown() throws Exception {
        if (SHOW_LOGS) Logger.v(TAG, "tearDown");
        mMediaPlayerWrapper = null;
    }

    @Test
    public void testStartIdle() throws Exception {
        assertEquals(MediaPlayerWrapper.State.IDLE, mMediaPlayerWrapper.getCurrentState());
        tryToFailStart(MediaPlayerWrapper.State.IDLE);
    }

    @Test
    public void testStartInitialized() throws Exception {
        mMediaPlayerWrapper.setDataSource(new AssetFileDescriptor(ParcelFileDescriptor.adoptFd(0), 0, 0));
        assertEquals(MediaPlayerWrapper.State.INITIALIZED, mMediaPlayerWrapper.getCurrentState());
        tryToFailStart(MediaPlayerWrapper.State.INITIALIZED);
    }

    @Test
    public void testStartPrepared() throws Exception {
        mMediaPlayerWrapper.setDataSource(new AssetFileDescriptor(ParcelFileDescriptor.adoptFd(0), 0, 0));
        mMediaPlayerWrapper.prepare();
        assertEquals(MediaPlayerWrapper.State.PREPARED, mMediaPlayerWrapper.getCurrentState());
        mMediaPlayerWrapper.start();
        assertEquals(MediaPlayerWrapper.State.STARTED, mMediaPlayerWrapper.getCurrentState());
    }

    @Test
    public void testStartStarted() throws Exception {
        mMediaPlayerWrapper.setDataSource(new AssetFileDescriptor(ParcelFileDescriptor.adoptFd(0), 0, 0));
        mMediaPlayerWrapper.prepare();
        mMediaPlayerWrapper.start();
        assertEquals(MediaPlayerWrapper.State.STARTED, mMediaPlayerWrapper.getCurrentState());
        tryToFailStart(MediaPlayerWrapper.State.STARTED);
    }

    @Test
    public void testStartPaused() throws Exception {
        mMediaPlayerWrapper.setDataSource(new AssetFileDescriptor(ParcelFileDescriptor.adoptFd(0), 0, 0));
        mMediaPlayerWrapper.prepare();
        mMediaPlayerWrapper.start();
        mMediaPlayerWrapper.pause();
        assertEquals(MediaPlayerWrapper.State.PAUSED, mMediaPlayerWrapper.getCurrentState());
        mMediaPlayerWrapper.start();
        assertEquals(MediaPlayerWrapper.State.STARTED, mMediaPlayerWrapper.getCurrentState());
    }

    @Test
    public void testStartStopped() throws Exception {
        mMediaPlayerWrapper.setDataSource(new AssetFileDescriptor(ParcelFileDescriptor.adoptFd(0), 0, 0));
        mMediaPlayerWrapper.prepare();
        mMediaPlayerWrapper.start();
        mMediaPlayerWrapper.stop();
        assertEquals(MediaPlayerWrapper.State.STOPPED, mMediaPlayerWrapper.getCurrentState());

        mMediaPlayerWrapper.start();
        assertEquals(MediaPlayerWrapper.State.STARTED, mMediaPlayerWrapper.getCurrentState());
    }

    @Test
    public void testStartPlaybackCompleted() throws Exception {
        mMediaPlayer.complete();
        assertEquals(MediaPlayerWrapper.State.PLAYBACK_COMPLETED, mMediaPlayerWrapper.getCurrentState());
        mMediaPlayerWrapper.start();
        assertEquals(MediaPlayerWrapper.State.STARTED, mMediaPlayerWrapper.getCurrentState());
    }

    @Test
    public void testStartError() throws Exception {
        mMediaPlayer.failWithError();
        assertEquals(MediaPlayerWrapper.State.ERROR, mMediaPlayerWrapper.getCurrentState());

        tryToFailStart(MediaPlayerWrapper.State.ERROR);
    }

    @Test
    public void testStartEnd() throws Exception {
        mMediaPlayerWrapper.release();
        assertEquals(MediaPlayerWrapper.State.END, mMediaPlayerWrapper.getCurrentState());

        tryToFailStart(MediaPlayerWrapper.State.END);
    }

    private void tryToFailStart(MediaPlayerWrapper.State previousState) throws IOException {
        // need this value to check if exception is thrown
        MediaPlayerWrapper.State state = null;
        try {
            mMediaPlayerWrapper.start();
        } catch (IllegalStateException e) {
            assertEquals(previousState, mMediaPlayerWrapper.getCurrentState());
            state = previousState;
        }
        assertEquals(previousState, state);
    }
}


text:
* `host`
    * The host location of the logstash server.
    * Default: `127.0.0.1`
* `port`
    * The host port to connect.
    * Default: `28777`
* `max_connect_retries`
    * Max number of attempts to reconnect to logstash before going into silence.
    * `-1` means retry forever.
    * Default: `4`
* `timeout_connect_retries`
    * The number of ms between each retry for a reconnect to logstash .
    * Default: `100`
* `ssl_enable`
    * Enable SSL transfer of logs to logstash.
    * Default: `false`
* `ssl_key`
    * Path location of client private key.
    * Only needed if SSL verify is required on logstash.
    * No default
* `ssl_cert`
    * Path location of client public certificate.
    * Only needed if SSL verify is required on logstash.
    * No default
* `ssl_passphrase`
    * Passphrase for the SSL key.
    * Only needed if the certificate has a passphrase.
    * No default
* `rejectUnauthorized`
    * If true the server will reject any connection which is not authorized with the list of supplied CAs.
    * Default true
* `strip_colors`
    * Strip colors from messages and metadata
    * Default: `false`


text:
package plugins.jprobe.gui;

import java.io.File;
import java.util.ArrayList;
import java.util.Collection;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UnsupportedLookAndFeelException;

import jprobe.services.AbstractServiceListener;
import jprobe.services.ErrorHandler;
import jprobe.services.JProbeCore;
import jprobe.services.JProbeCore.Mode;

import org.osgi.framework.Bundle;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.osgi.framework.ServiceRegistration;

import bepler.crossplatform.Platform;
import plugins.jprobe.gui.services.GUIErrorManager;
import plugins.jprobe.gui.services.JProbeGUI;

public class GUIActivator implements BundleActivator{

	private static Bundle m_Bundle = null;
	private static JProbeGUIFrame m_Gui;

	private JProbeCore m_Core;
	private GUIConfig m_GuiConfig;
	private AutosaveThread m_AutosaveThread = null;
	private GUIErrorManager m_ErrorManager = null;
	private ServiceRegistration<JProbeGUI> m_Registration = null;
	private Collection<AbstractServiceListener<?>> m_ServiceListeners = null;

	public static Bundle getBundle(){
		return m_Bundle;
	}

	public static JFrame getFrame(){
		return m_Gui;
	}

	@Override
	public void start(BundleContext context) throws Exception {
		m_Bundle = context.getBundle();
		ServiceReference<JProbeCore> ref = context.getServiceReference(JProbeCore.class);
		m_Core = context.getService(ref);
		if(m_Core.getMode() != Mode.GUI){
			return;
		}

		Platform.getInstance().initPlatformSpecificSettings();
		try {
			Platform.getInstance().usePlatformLookAndFeel();
		} catch (UnsupportedLookAndFeelException e) {
			ErrorHandler.getInstance().handleException(e, null);
		}

		File prefFile = new File(m_Core.getPreferencesDir() + File.separator + Constants.CONFIG_FILE_NAME);
		m_GuiConfig = new GUIConfig(prefFile);

		//start gui
		m_Gui = new JProbeGUIFrame(m_Core, m_Core.getName()+"-"+m_Core.getVersion(), context.getBundle(), m_GuiConfig);
		m_Gui.setVisible(true);
		m_ErrorManager = new GUIErrorManager(m_Gui);
		ErrorHandler.getInstance().addErrorManager(m_ErrorManager);
		m_Registration = context.registerService(JProbeGUI.class, m_Gui, null);
		m_ServiceListeners = initServiceListeners(m_Gui, context);

		//check autosave config and start the autosave thread
		if(m_GuiConfig.getAutosave()){
			String autosaveDir = m_Core.getUserDir() + File.separator + Constants.AUTOSAVE_DIR_NAME;
			m_AutosaveThread = new AutosaveThread(m_Core, autosaveDir, m_GuiConfig.getAutosaveFreq(), m_GuiConfig.getMaxAutosaves());
			m_AutosaveThread.start();
		}

		//check load workspace config and load the last workspace
		if(m_GuiConfig.getLoadWorkspace()){
			final File last = new File(m_GuiConfig.getLastWorkspace());
			if(last != null && last.exists() && last.canRead()){
				SwingUtilities.invokeLater(new Runnable(){

					@Override
					public void run() {
						SaveLoadUtil.load(m_Core, last);
					}

				});
			}
		}
	}

	private static Collection<AbstractServiceListener<?>> initServiceListeners(JProbeGUI gui, BundleContext context){
		Collection<AbstractServiceListener<?>> l = new ArrayList<AbstractServiceListener<?>>();
		l.add(new HelpTabListener(gui, context));
		l.add(new PreferencesTabListener(gui, context));
		l.add(new ComponentListener(gui, context));
		l.add(new MenuListener(gui, context));
		for(AbstractServiceListener<?> list : l){
			list.load();
		}
		return l;
	}

	@Override
	public void stop(BundleContext context) throws Exception {
		if(m_Registration != null){
			m_Registration.unregister();
			m_Registration = null;
		}
		if(m_ErrorManager != null){
			ErrorHandler.getInstance().removeErrorManager(m_ErrorManager);
			m_ErrorManager = null;
		}
		if(m_AutosaveThread != null){
			m_AutosaveThread.terminate();
			m_AutosaveThread = null;
		}
		if(m_Gui != null){
			if(m_GuiConfig != null){
				File lastSave = SaveLoadUtil.getLastSave();
				String path = lastSave == null ? "" : lastSave.getCanonicalPath();
				m_GuiConfig.setLastWorkspace(path);
				m_GuiConfig.save(m_Gui.getSize(), m_Gui.getExtendedState(), m_Gui.getX(), m_Gui.getY());
				m_GuiConfig = null;
			}
			m_Gui.dispose();
			m_Gui = null;
		}
		if(m_ServiceListeners != null){
			for(AbstractServiceListener<?> l : m_ServiceListeners){
				l.unload();
			}
			m_ServiceListeners = null;
		}
		BackgroundThread.getInstance().terminate();
		BackgroundThread.getInstance().join();
		m_Bundle = null;
	}

}


text:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Mar 31, 2016 1:44:36 PM by Hibernate Tools 3.2.2.GA -->
<hibernate-mapping>
    <class name="org.gobiiproject.gobiidao.entity.pojos.Dataset" table="dataset" schema="public">
        <id name="datasetId" type="int">
            <column name="dataset_id" />
            <generator class="assigned" />
        </id>
        <property name="experimentId" type="int">
            <column name="experiment_id" not-null="true" />
        </property>
        <property name="callinganalysisId" type="int">
            <column name="callinganalysis_id" not-null="true" />
        </property>
        <property name="analyses" type="serializable">
            <column name="analyses" not-null="true" />
        </property>
        <property name="dataTable" type="string">
            <column name="data_table" not-null="true" />
        </property>
        <property name="dataFile" type="string">
            <column name="data_file" not-null="true" />
        </property>
        <property name="qualityTable" type="string">
            <column name="quality_table" />
        </property>
        <property name="qualityFile" type="string">
            <column name="quality_file" />
        </property>
        <property name="scores" type="serializable">
            <column name="scores" />
        </property>
        <property name="createdBy" type="string">
            <column name="created_by" />
        </property>
        <property name="createdDate" type="date">
            <column name="created_date" length="13" />
        </property>
        <property name="modifiedBy" type="string">
            <column name="modified_by" />
        </property>
        <property name="modifiedDate" type="date">
            <column name="modified_date" length="13" />
        </property>
        <property name="status" type="java.lang.Integer">
            <column name="status" />
        </property>
    </class>
</hibernate-mapping>