text:
from openstack.compute import compute_service
from openstack import resource2

class ServerInterface(resource2.Resource):
    resource_key = 'interfaceAttachment'
    resources_key = 'interfaceAttachments'
    base_path = '/servers/%(server_id)s/os-interface'
    service = compute_service.ComputeService()

    # capabilities
    allow_create = True
    allow_get = True
    allow_update = False
    allow_delete = True
    allow_list = True

    #: Fixed IP addresses with subnet IDs.
    fixed_ips = resource2.Body('fixed_ips')
    #: The MAC address.
    mac_addr = resource2.Body('mac_addr')
    #: The network ID.
    net_id = resource2.Body('net_id')
    #: The ID of the port for which you want to create an interface.
    port_id = resource2.Body('port_id', alternate_id=True)
    #: The port state.
    port_state = resource2.Body('port_state')
    #: The ID for the server.
    server_id = resource2.URI('server_id')

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>
<Subsystem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xsi:noNamespaceSchemaLocation="../../Schemas/Subsystem.xsd"
    Name="omapabe" Type="ALSA" Endianness="Little" Mapping="Card:PandaBoardES">
    <ComponentLibrary>
        <xi:include href="Twl6040ComponentTypeSet.xml"/>
        <xi:include href="OmapAbeComponentTypeSet.xml"/>
    </ComponentLibrary>
    <InstanceDefinition>
        <Component Name="twl6040" Type="Twl6040"/>
        <Component Name="abe" Type="OmapAbe"/>
    </InstanceDefinition>
</Subsystem>


text:
package triemap;

/**
 * One can simply use NumTrieMap but this class is defined so that one can use
 * primitive arrays instead of the wrapper types.
 * @author srikalyc
 */
public class ByteTrieMap extends NumTrieMap<Byte> {
    /**
     * Used for both adding and updating. sI and eI are the number of elements
     * from key which should be considered as key. The value is added to the tail.
     * The current value is added by given "value".
     *
     * @param key
     * @param sI (start index)
     * @param eI (end index)
     * @param value
     */
    public void inc(byte[] key, int sI, int eI, int value) {
        TrieNode lastNode = root.get(key[sI]);

        if (lastNode == null) {
            lastNode = new TrieNode(key[sI], null);
            root.add(lastNode);
        }
        TrieNode curNode = lastNode;
        for (int i = sI + 1; i < eI; i++) {
            curNode = lastNode.getChild(key[i]);
            if (curNode == null) {
                curNode = lastNode.addChild(key[i], null);
                if (i == eI - 1) {
                    size++;// Only when you are adding newly increase the size.
                }
            }
            lastNode = curNode;
        }
        if (sI == eI - 1) {// Because the loop is never entered we take care of the edge case here.
            size++;// Only when you are adding newly increase the size.
        }
        curNode.value += value;
    }
    /**
     * Same as inc() method but first element is considered as prefix instead of key[sI].
     * @param key
     * @param prefix
     * @param sI
     * @param eI
     * @param value
     */
    public void inc(byte[] key, byte prefix, int sI, int eI, int value) {
        TrieNode lastNode = root.get(prefix);

        if (lastNode == null) {
            lastNode = new TrieNode(prefix, null);
            root.add(lastNode);
        }
        TrieNode curNode = lastNode;
        for (int i = sI; i < eI; i++) {
            curNode = lastNode.getChild(key[i]);
            if (curNode == null) {
                curNode = lastNode.addChild(key[i], null);
                if (i == eI - 1) {
                    size++;// Only when you are adding newly increase the size.
                }
            }
            lastNode = curNode;
        }
        if (sI == eI - 1) {// Because the loop is never entered we take care of the edge case here.
            size++;// Only when you are adding newly increase the size.
        }
        curNode.value += value;
    }

    /**
     * Used for both adding and updating. sI and eI are the number of elements
     * from key which should be considered as key. The value is added all along
     * the path until the tail(all the prefixes of the key have values set now).
     * If there are 'm' elements in key then this method is O(m) in time.
     * The current value along the path is added by given "value".
     * @param key
     * @param sI
     * @param eI
     * @param value
     */
    public void incPrefixes(byte[] key, int sI, int eI, int value) {
        TrieNode lastNode = root.get(key[sI]);

        if (lastNode == null) {
            lastNode = new TrieNode(key[sI], value);
            root.add(lastNode);
            size++;// Only when you are adding newly increase the size.
        } else {
            lastNode.value += value;
        }
        TrieNode curNode = lastNode;
        for (int i = sI + 1; i < eI; i++) {
            curNode = lastNode.getChild(key[i]);
            if (curNode == null) {
                curNode = lastNode.addChild(key[i], value);
                size++;// Only when you are adding newly increase the size.
            } else {
                curNode.value += value;
            }
            lastNode = curNode;
        }
    }
    /**
     * Used for both adding and updating. sI and eI are the number of elements
     * from key which should be considered as key. The value is added all along
     * the path until the tail(all the prefixes and suffixes of the key have
     * values set now). Each current value is added by given "value".
     * If there are 'm' elements in key then this method is O(m2) in time.
     * @param key
     * @param sI
     * @param eI
     * @param value
     */
    public void incAll(byte[] key, int sI, int eI, int value) {
        incPrefixes(key, sI, eI, value);// Add the suffixes to the path.
        for (int i = sI + 1; i < eI; i++) {
            incPrefixes(key, i, eI, value);// Add the suffixes to the path.
        }
    }
    /**
     * Element prefix is considered prefix of the whole key and added to the Trie
     * and its value is not touched(except for the very first time) and all the
     * elements key[sI to eI]'s value will be incremented.
     * @param key
     * @param prefix
     * @param sI
     * @param eI
     * @param value
     */
    public void incAll(byte[] key, byte prefix, int sI, int eI, int value) {
        TrieNode lastNode = root.get(prefix);

        if (lastNode == null) {
            lastNode = new TrieNode(prefix, value);
            root.add(lastNode);
            size++;// Only when you are adding newly increase the size.
        } else {// Prefix is not valueated.
            //lastNode.value += value;
        }

        TrieNode curNode = null;
        for (int i = sI; i < eI; i++) {
            incPrefixes(key, i, eI, value);// Add the suffixes to the path.
            curNode = lastNode.getChild(key[i]);
            if (curNode == null) {
                curNode = lastNode.addChild(key[i], value);
                size++;// Only when you are adding newly increase the size.
            } else {
                curNode.value += value;
            }
            lastNode = curNode;
        }
    }
    /**
     * Entire array is used as key.
     * @param key
     * @param value
     */
    public void inc(byte[] key, int value) {
        inc(key, 0, key.length, value);
    }
    /**
     * Entire array is used as key.
     * @param key
     * @param value
     */
    public void incPrefixes(byte[] key, int value) {
        incPrefixes(key, 0, key.length, value);
    }
    /**
     * Entire array is used as key.
     * @param key
     * @param value
     */
    public void incAll(byte[] key, int value) {
        incAll(key, 0, key.length, value);
    }

}


text:
<!--
id: 13646665381
link: http://tumblr.atmos.org/post/13646665381/gifprint-convert-animated-gifs-to-printable-flipbooks
slug: gifprint-convert-animated-gifs-to-printable-flipbooks
date: Fri Dec 02 2011 13:28:32 GMT-0800 (PST)
publish: 2011-12-02
tags:
title: Gifprint - Convert Animated Gifs to Printable Flipbooks
-->

Gifprint - Convert Animated Gifs to Printable Flipbooks
=======================================================

[http://gifprint.com/](http://gifprint.com/)


text:
using System;
using System.Threading;
using System.Threading.Tasks;

namespace VndbSharp.Extensions
{
	internal static class TaskExtensions
	{

		public static async Task TimeoutAfter(this Task task, TimeSpan timeout,
			CancellationTokenSource cancellationTokenSource = null)
		{
			if (timeout == TimeSpan.Zero)
				throw new TimeoutException();

			if (cancellationTokenSource == null)
				cancellationTokenSource = new CancellationTokenSource();

			var completedTask = await Task.WhenAny(task, Task.Delay(timeout, cancellationTokenSource.Token))
				.ConfigureAwait(false);
			cancellationTokenSource.Cancel();

			if (completedTask != task)
				throw new TimeoutException();
		}

		public static async Task<T> TimeoutAfter<T>(this Task<T> task, TimeSpan timeout,
			CancellationTokenSource cancellationTokenSource = null)
		{
			if (timeout == TimeSpan.Zero)
				throw new TimeoutException();

			if (cancellationTokenSource == null)
				cancellationTokenSource = new CancellationTokenSource();

			var completedTask = await Task.WhenAny(task, Task.Delay(timeout, cancellationTokenSource.Token))
				.ConfigureAwait(false);
			cancellationTokenSource.Cancel();

			if (completedTask != task)
				throw new TimeoutException();

			return await task;
		}

	}
}


text:
<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CommentRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'body' => 'required|min:2|max:350',
        ];
    }

    public function messages()
    {
        return [
            'required' => 'Your comment cannot be empty.',
            'min' => 'Your comment must be at least :min characters.',
            'max' => 'Your comment must not exceed :max characters',
        ];
    }

}


text:
package com.javadog.bluetoothproximitylock.test;

import android.test.ActivityInstrumentationTestCase2;

/**
 * Unit tests for {@link com.javadog.bluetoothproximitylock.SignalReaderService}
 */
public class SignalReaderServiceTest extends ActivityInstrumentationTestCase2<PlaceholderFragmentActivity> {
	public SignalReaderServiceTest() {
		super(PlaceholderFragmentActivity.class);
	}

	@Override
	public void setUp() throws Exception {
		super.setUp();
	}
}


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
  <string name="contact">Kontakt</string>
  <string name="contactLichess">Ta kontakt med Lichess</string>
  <string name="whatCanWeHelpYouWith">Kva kan vi hjelpe deg med?</string>
  <string name="visitThisPage">Gå til denne sida for å løyse problemet</string>
  <string name="iCantLogIn">Eg kan ikkje logge inn</string>
  <string name="noConfirmationEmail">Eg mottok ikkje stadfesting på epost</string>
  <string name="forgotPassword">Eg har gløymd passordet mitt</string>
  <string name="forgotUsername">Eg har gløymd brukarnamnet mitt</string>
  <string name="youCanLoginWithEmail">Du kan logge inn med den e-postadressa du registrerte deg med</string>
  <string name="lost2FA">Eg har mista tilgjenget til tofaktorautentiseringskodane mine</string>
  <string name="doPasswordReset">Nullstill passordet for å fjerne din andre faktor</string>
  <string name="accountSupport">Eg treng kontosupport</string>
  <string name="wantTitle">Eg vil gjerne at tittelen min vert synt fram på Lichess</string>
  <string name="visitTitleConfirmation">For at tittelen skal visas på Lichess-profilen, og for å delta i \"Titled Arenas\", må du gå inn på stadfestingssida</string>
  <string name="wantCloseAccount">Eg vil stenge kontoen min</string>
  <string name="closeYourAccount">Du kan lukke kontoen din på denne sida</string>
  <string name="doNotAskByEmail">Ikkje be oss om å stenge ein konto via e-post, vi vil ikkje gjera det.</string>
  <string name="wantReopen">Jeg vil opne opp kontoen min att</string>
  <string name="reopenOnThisPage">Du kan opne opp kontoen din att på denne sida. Det kan berre gjerast éin gong.</string>
  <string name="doNotAskByEmailToReopen">Ikkje be oss om å opne opp att ein konto via e-post, vi vil ikkje gjera det.</string>
  <string name="wantChangeUsername">Jeg vil gjerne endre brukarnamnet mitt</string>
  <string name="changeUsernameCase">Gå til denne sida for å endre store/små bokstavar i brukarnamnet ditt</string>
  <string name="cantChangeMore">Av tekniske årsakar er det ikkje mogleg å endre anna enn små bokstavar (minuskler) til/frå store bokstavar (majuskler). Til dømes kan brukarnamnet \"jacquematt\" endrast til \"JacqueMatt\" men ikkje til \"sjakkmatt\".</string>
  <string name="orCloseAccount">Du kan likevel stenge kontoen din og opprette ein ny.</string>
  <string name="wantClearHistory">Jeg vil slette historikken eller ratinga mi</string>
  <string name="cantClearHistory">Det er ikkje mogleg å slette historikken din for parti, taktikkøvingar eller ratingar.</string>
  <string name="wantReport">Eg vil rapportere ein spelar</string>
  <string name="toReportAPlayerUseForm">Bruk meldeskjemaet om du vil rapportera ein spelar</string>
  <string name="youCanAlsoReachReportPage">Du kan også kome til den sida ved å klikke på %s meldingsknappen på ei brukerside.</string>
  <string name="doNotReportInForum">Ikkje rapporter spelarar i forumet.</string>
  <string name="doNotSendReportEmails">Ikkje send oss epost med rapportering av spelarar.</string>
  <string name="doNotMessageModerators">Ikkje send melding direkte til moderatorar.</string>
  <string name="onlyReports">Den einaste måten å melde inn spelarar på er via rapportskjemaet.</string>
  <string name="wantReportBug">Eg vil melde frå om en feil</string>
  <string name="reportBugInForum">I Lichess sitt forum for tilbakemeldingar</string>
  <string name="reportWebsiteIssue">Som eit problem med ei Lichess-webside på GitHub</string>
  <string name="reportMobileIssue">Som eit problem med ein Lichess-app på GitHub</string>
  <string name="reportBugInDiscord">I Lichess discord-server</string>
  <string name="howToReportBug">Ver venleg og beskriv korleis problemet ter seg, kva du forventa skulle skje og dei trinna som skal til for å få fram feilen på ny.</string>
  <string name="illegalPawnCapture">Ulovleg måte å slå bonden på</string>
  <string name="calledEnPassant">Det blir kalla \"en passant\" (norsk: \"i forbifarta\") og er ein av sjakkreglane.</string>
  <string name="tryEnPassant">Prøv dette lille interaktive spelet for å lære meir om \"en passant\".</string>
  <string name="illegalCastling">Ulovleg eller umogleg rokade</string>
  <string name="castlingPrevented">Rokade blir berre hindra dersom kongen må passere eit felt som er kontrollert av motspelaren.</string>
  <string name="castlingRules">Forsikre deg om at du skjønar med rokade-reglane</string>
  <string name="tryCastling">Øv på rokade ved hjelp av dette lille interaktive spelet</string>
  <string name="castlingImported">Vær nøye med å kontrollere at rokaderettane er korrekt sett dersom partiet er importert eller starta frå ein annan stilling enn utgangsposisjonen.</string>
  <string name="insufficientMaterial">Utilstrekkeleg materiale til å setja matt</string>
  <string name="fideMate">I følge FIDEs sjakkregler §6.9, er eit parti ikkje remis dersom ein sjakkmatt er mogleg etter ein lovleg trekkrekkefølge</string>
  <string name="knightMate">Det er mogleg å setja sjakkmatt med berre éin springar eller éin løpar dersom motspelaren har fleire brikker enn kongen på brettet.</string>
  <string name="noRatingPoints">Det vart ikkje tildelt ratingpoeng</string>
  <string name="ratedGame">Forsikre deg om at partiet du spela var rangert. Uforpliktande parti påverkar ikkje ratinga til spelarane.</string>
  <string name="botRatingAbuse">Dersom det vert slått fast at ein spelar misbrukar ein bot-konto for å manipulera ratingpoeng, kan det hende det ikkje vert gjeven poeng for spelet.</string>
  <string name="errorPage">Feilside</string>
  <string name="reportErrorPage">Dersom du støtte på ei feilside kan du rapportere det:</string>
  <string name="banAppeal">Protest ved utestenging eller IP-restriksjon</string>
  <string name="engineAppeal">Merknad om juks eller bruk av sjakkcomputer</string>
  <string name="sendAppealTo">Du kan sende ein appell til %s.</string>
  <string name="falsePositives">Vi er lei for at falske positiv kan skje.</string>
  <string name="ifLegit">Dersom appellen din er legitim vil utestenginga bli oppheva så snart som mogleg.</string>
  <string name="accountLost">Men dersom det viser seg at du faktisk fekk computerhjelp, sjølv om det berre skjedde éin gong, er kontoen din diverre tapt.</string>
  <string name="doNotDeny">Ikke nekt for at du fuska. Om du ynskjer løyve til å opprette ein ny konto, må du vedgå det du gjorde og syne at du forstår at det var eit mistak.</string>
  <string name="otherRestriction">Andre avgrensingar</string>
  <string name="collaboration">Samarbeid, juridisk, kommersielt</string>
  <string name="monetizing">Tene pengar på Lichess</string>
  <string name="buyingLichess">Kjøpe Lichess</string>
  <string name="authorizationToUse">Løyve til å bruke Lichess</string>
  <string name="welcomeToUse">Du er velkomen til å bruke Lichess til dine aktivitetar, inklusive kommersielle.</string>
  <string name="videosAndBooks">Du kan synde det i videoane dine og du kan skrive ut skjermskot av Lichess i bøkene dine.</string>
  <string name="creditAppreciated">Kreditering blir verdsett, men er ikkje påkravd.</string>
  <string name="noneOfTheAbove">Ikkje noko av det ovanemnde</string>
  <string name="sendEmailAt">Send ein e-post til oss på %s.</string>
  <string name="explainYourRequest">Ver god å forklar førespurnaden din klart og tydelig. Oppgje Lichess-brukarnamnet ditt og all anna informasjon som kan hjelpe oss med å hjelpe deg.</string>
</resources>


text:
package org.nibiru.ui.android.widget;

import android.content.Context;
import android.view.View;
import android.widget.ScrollView;

import org.nibiru.ui.core.api.VerticalScrollPanel;
import org.nibiru.ui.core.api.Viewport;
import org.nibiru.ui.core.impl.BaseScrollPanel;

import javax.inject.Inject;

import static org.nibiru.ui.android.widget.WidgetUtils.dpToPx;
import static org.nibiru.ui.android.widget.WidgetUtils.pxToDp;

public class AndroidVerticalScrollPanel
        extends BaseScrollPanel<ScrollView, View>
        implements VerticalScrollPanel {
    @Inject
    public AndroidVerticalScrollPanel(Context context, Viewport viewport) {
        this(new ScrollView(context), viewport);
        WidgetUtils.bindVisible(this, control);
        control.getViewTreeObserver()
                .addOnScrollChangedListener(() ->
                        scrollPosition.set(pxToDp(Math.max(control.getScrollY(), 0), context)));
        scrollPosition.addObserver(() ->
                control.setScrollY(dpToPx(scrollPosition.get(), context)));
    }

    public AndroidVerticalScrollPanel(ScrollView control, Viewport viewport) {
        super(control, viewport);
    }

    @Override
    public void applyStyle() {
        super.applyStyle();
        WidgetUtils.applyStyle(control, getStyle());
    }

    @Override
    protected void setNativeContent(View nativeContent) {
        control.removeAllViews();
        control.addView(nativeContent);
    }

    @Override
    protected void setNativeSize(int width, int height) {
        WidgetUtils.setNativeSize(control, width, height);
    }
}


text:
RBX = Rubinius::ToolSet.current::TS

require 'lambra/version'
require 'lambra/syntax'
require 'lambra/parser'
require 'lambra/compiler'
require 'lambra/generator'
require 'lambra/bytecode_compiler'
require 'lambra/process'


text:
/* global rootDiv */
// set your custom properties

var opts = {};

// set your custom properties
// @see: https://github.com/wilzbach/biojs-vis-msa/tree/master/src/g
opts.el = rootDiv;
opts.vis = {
    conserv: false,
    overviewbox: false,
    seqlogo: true
};
opts.conf = {
    dropImport: true
};
opts.zoomer = {
    menuFontsize: "12px",
    autoResize: true
};

// init msa
var m = new msa.msa(opts);

var defaultURL = "./data/fer1.clustal";
function getURLParameter(name) {
    return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [, ""])[1].replace(/\+/g, '%20')) || null;
}

var url = getURLParameter('seq') || defaultURL;
m.u.file.importURL(url, renderMSA);

function renderMSA() {

    // the menu is independent to the MSA container
    var menuOpts = {};
    menuOpts.el = document.getElementById('div');
    menuOpts.msa = m;
    menuOpts.menu = "small";
    var defMenu = new msa.menu.defaultmenu(menuOpts);
    m.addView("menu", defMenu);

    // call render at the end to display the whole MSA
    m.render();
}

//@biojs-instance=m.g


text:
package com.hazelcast.concurrent.atomiclong.operations;

import com.hazelcast.core.IFunction;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.spi.Operation;
import com.hazelcast.spi.impl.MutatingOperation;

import java.io.IOException;

public abstract class AbstractAlterOperation extends AtomicLongBackupAwareOperation implements MutatingOperation {

    protected IFunction<Long, Long> function;
    protected long response;
    protected long backup;

    public AbstractAlterOperation() {
    }

    public AbstractAlterOperation(String name, IFunction<Long, Long> function) {
        super(name);
        this.function = function;
    }

    @Override
    public Object getResponse() {
        return response;
    }

    @Override
    public Operation getBackupOperation() {
        return new SetBackupOperation(name, backup);
    }

    @Override
    protected void writeInternal(ObjectDataOutput out) throws IOException {
        super.writeInternal(out);
        out.writeObject(function);
    }

    @Override
    protected void readInternal(ObjectDataInput in) throws IOException {
        super.readInternal(in);
        function = in.readObject();
    }
}


text:
namespace v8 {
namespace internal {

// The compilation cache keeps shared function infos for compiled
// scripts and evals. The shared function infos are looked up using
// the source string as the key. For regular expressions the
// compilation data is cached.
class CompilationCache {
 public:
  // Finds the script shared function info for a source
  // string. Returns an empty handle if the cache doesn't contain a
  // script for the given source string with the right origin.
  static Handle<SharedFunctionInfo> LookupScript(Handle<String> source,
                                                 Handle<Object> name,
                                                 int line_offset,
                                                 int column_offset);

  // Finds the shared function info for a source string for eval in a
  // given context.  Returns an empty handle if the cache doesn't
  // contain a script for the given source string.
  static Handle<SharedFunctionInfo> LookupEval(Handle<String> source,
                                               Handle<Context> context,
                                               bool is_global);

  // Returns the regexp data associated with the given regexp if it
  // is in cache, otherwise an empty handle.
  static Handle<FixedArray> LookupRegExp(Handle<String> source,
                                         JSRegExp::Flags flags);

  // Associate the (source, kind) pair to the shared function
  // info. This may overwrite an existing mapping.
  static void PutScript(Handle<String> source,
                        Handle<SharedFunctionInfo> function_info);

  // Associate the (source, context->closure()->shared(), kind) triple
  // with the shared function info. This may overwrite an existing mapping.
  static void PutEval(Handle<String> source,
                      Handle<Context> context,
                      bool is_global,
                      Handle<SharedFunctionInfo> function_info);

  // Associate the (source, flags) pair to the given regexp data.
  // This may overwrite an existing mapping.
  static void PutRegExp(Handle<String> source,
                        JSRegExp::Flags flags,
                        Handle<FixedArray> data);

  // Clear the cache - also used to initialize the cache at startup.
  static void Clear();

  static bool HasFunction(SharedFunctionInfo* function_info);

  // GC support.
  static void Iterate(ObjectVisitor* v);

  // Notify the cache that a mark-sweep garbage collection is about to
  // take place. This is used to retire entries from the cache to
  // avoid keeping them alive too long without using them.
  static void MarkCompactPrologue();

  // Enable/disable compilation cache. Used by debugger to disable compilation
  // cache during debugging to make sure new scripts are always compiled.
  static void Enable();
  static void Disable();
};

} }  // namespace v8::internal

#endif  // V8_COMPILATION_CACHE_H_


text:
using namespace std;

int main()
try {
    cout << "Try entering something..";
    string input;
    cin >> input;

    if (input != "safe") throw runtime_error("Totally not safe");

    cout << "Must have been safe!\n";
}
catch(exception& e) {
    cout << "Error: " << e.what() << '\n';
    return 1;
}
catch(...) {
    cout << "Exception: something unexpected went wrong\n";
    return 2;
}


text:
<?php

/**
 * Запрещаем напрямую через браузер обращение к этому файлу.
 */
if (!class_exists('Plugin')) {
    die('Hacking attemp!');
}

class PluginAdmintopic extends Plugin {

    public $aDelegates = array(
            'template' => array(
                'actions/ActionAdmin/admintopics.tpl' => '_actions/ActionAdmin/topics.tpl',
            )
    );

    protected $aInherits = array(
        'action' => array('ActionAdmin' => '_ActionAdminTopic'),
        'entity' => array('ModuleTopic_EntityTopic' => '_ModuleTopic_EntityTopic'),
        'mapper' => array('ModuleTopic_MapperTopic' => '_ModuleTopic_MapperTopic'),
    );
    // Активация плагина
    public function Activate() {
        return true;
    }

    // Деактивация плагина
    public function Deactivate(){
        return true;
    }
    // Инициализация плагина
    public function Init() {
        $this->Viewer_AppendStyle(Plugin::GetTemplatePath(__CLASS__)."/css/styles.css"); // Добавление своего CSS
    }
}
?>


text:
layout: default
---

<alert class="alert-danger alert-dismissible fade show" style="margin: 15px;" role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
    ×
  </button>
  Holy guacamole! You should check in on some of those fields below.
</alert>

Welcome to Seaform!

Seaform makes building UI simple! If you can think about boxes you can make any layout imaginable!

The best parts of Bootstrap built with modern  them using the CSS Grid spec.


text:
package gov.nih.nci.cagrid.gts.service;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.util.ArrayList;
import java.util.List;

public class UpdateStatement {
	private List fields;

	private List values;

	private List whereFields;

	private List whereValues;

	private List whereOperators;

	private String table;

	public UpdateStatement(String table) {
		this.table = table;
		this.fields = new ArrayList();
		this.values = new ArrayList();
		this.whereFields = new ArrayList();
		this.whereValues = new ArrayList();
		this.whereOperators = new ArrayList();
	}

	public void addField(String field, Object value) {
		this.fields.add(field);

		this.values.add(value);
	}

	public void addWhereField(String field, String operator, Object value) {
		this.whereFields.add(field);
		this.whereOperators.add(operator);
		this.whereValues.add(value);
	}

	public PreparedStatement prepareUpdateStatement(Connection c) throws Exception {
		StringBuffer sql = new StringBuffer("UPDATE " + table + " SET ");
		boolean first = true;
		for (int i = 0; i < fields.size(); i++) {
			if (!first) {
				sql.append(",");
			} else {
				first = false;
			}
			sql.append((String) fields.get(i) + " = ?");
		}
		if (whereFields.size() > 0) {
			sql.append(" WHERE ");
		}

		first = true;
		for (int i = 0; i < whereFields.size(); i++) {
			if (!first) {
				sql.append(" AND ");
			} else {
				first = false;
			}
			sql.append((String) whereFields.get(i) + " " + (String) whereOperators.get(i) + " ?");
		}

		PreparedStatement s = c.prepareStatement(sql.toString());
		for (int i = 0; i < values.size(); i++) {
			Object o = values.get(i);
			if (o instanceof String) {
				String str = (String) o;
				s.setString((i + 1), str);
			} else if (o instanceof Long) {
				s.setLong((i + 1), ((Long) o).longValue());
			} else if (o instanceof Integer) {
				s.setInt((i + 1), ((Integer) o).intValue());
			} else {
				throw new Exception("Unsupported type " + o.getClass().getName());
			}
		}

		for (int i = 0; i < whereValues.size(); i++) {
			Object o = whereValues.get(i);
			int index = values.size() + i + 1;
			if (o instanceof String) {
				s.setString((index), (String) o);
			} else if (o instanceof Long) {
				s.setLong((index), ((Long) o).longValue());
			} else if (o instanceof Integer) {
				s.setInt((index), ((Integer) o).intValue());
			} else {
				throw new Exception("Unsupported type " + o.getClass().getName());
			}
		}
		return s;
	}
}


text:
/**
 * This class is generated by jOOQ
 */
package us.fok.lenzenslijper.models.jooq.routines;

/**
 * This class is generated by jOOQ.
 */
@javax.annotation.Generated(value    = { "http://www.jooq.org", "3.3.0" },
                            comments = "This class is generated by jOOQ")
@java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class SpheroidOut extends org.jooq.impl.AbstractRoutine<java.lang.Object> {

	private static final long serialVersionUID = -774226767;

	/**
	 * The parameter public.spheroid_out.RETURN_VALUE.
	 */
	public static final org.jooq.Parameter<java.lang.Object> RETURN_VALUE = createParameter("RETURN_VALUE", org.jooq.impl.DefaultDataType.getDefaultDataType("cstring"));

	/**
	 * The parameter public.spheroid_out._1.
	 */
	public static final org.jooq.Parameter<java.lang.Object> _1 = createParameter("_1", org.jooq.impl.DefaultDataType.getDefaultDataType("USER-DEFINED"));

	/**
	 * Create a new routine call instance
	 */
	public SpheroidOut() {
		super("spheroid_out", us.fok.lenzenslijper.models.jooq.Public.PUBLIC, org.jooq.impl.DefaultDataType.getDefaultDataType("cstring"));

		setReturnParameter(RETURN_VALUE);
		addInParameter(_1);
	}

	/**
	 * Set the _1 parameter IN value to the routine
	 */
	public void set__1(java.lang.Object value) {
		setValue(us.fok.lenzenslijper.models.jooq.routines.SpheroidOut._1, value);
	}

	/**
	 * Set the _1 parameter to the function to be used with a {@link org.jooq.Select} statement
	 */
	public void set__1(org.jooq.Field<java.lang.Object> field) {
		setField(_1, field);
	}
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class UnityShip : MonoBehaviour
{
  public UnityCamera Camera;

  // Use this for initialization
  void Start()
  {

  }

  // Update is called once per frame
  void Update()
  {

  }

  bool destroyed = false;
  public bool Destroyed
  {
    get { return destroyed; }
    set
    {
      destroyed = value;
      if (destroyed)
      {
            GameObject.Destroy(gameObject);
      }
    }
  }

  public Vector3 Position
  {
    get { return gameObject.transform.position; }
    set { gameObject.transform.position = value; }

  }

  public Quaternion Rotation
  {
    get { return gameObject.transform.rotation; }
    set { gameObject.transform.rotation = value; }

  }

  public static UnityShip Instantiate()
  {
    var s = GameObject.Find("Ship") as GameObject;
    return s.GetComponent<UnityShip>();
    //return GameObject.Find("/Ship").GetComponent<UnityShip>();
  }
}


text:
import {Component} from '@angular/core'
import {HomePage} from '../home/home';
import {AboutPage} from '../about/about';
import {ContactPage} from '../contact/contact';
import {IncrementPage} from '../increment/increment';

@Component({
  templateUrl: 'build/pages/tabs/tabs.html'
})
export class TabsPage {

  private tab1Root: any;
  private tab2Root: any;
  private tab3Root: any;
  private tab4Root: any;

  constructor() {
    // this tells the tabs component which Pages
    // should be each tab's root Page
    this.tab1Root = HomePage;
    this.tab2Root = AboutPage;
    this.tab3Root = ContactPage;
    this.tab4Root = IncrementPage;
  }
}


text:
package com.cisco.axl.api._8;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;

/**
 *
Java class for RCallStateMember complex type.
 *
 *
The following schema fragment specifies the expected content contained within this class.
 *
 *

 * <complexType name="RCallStateMember">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence minOccurs="0">
 *         <element name="callStateName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="softKeys" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence minOccurs="0">
 *                   <element name="softKey" type="{http://www.cisco.com/AXL/API/8.5}RSoftKeyMember" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 *

 *
 *
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RCallStateMember", propOrder = {
    "callStateName",
    "softKeys"
})
public class RCallStateMember {

    @XmlElementRef(name = "callStateName", type = JAXBElement.class)
    protected JAXBElement<String> callStateName;
    protected RCallStateMember.SoftKeys softKeys;

    /**
     * Gets the value of the callStateName property.
     *
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public JAXBElement<String> getCallStateName() {
        return callStateName;
    }

    /**
     * Sets the value of the callStateName property.
     *
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *
     */
    public void setCallStateName(JAXBElement<String> value) {
        this.callStateName = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the softKeys property.
     *
     * @return
     *     possible object is
     *     {@link RCallStateMember.SoftKeys }
     *
     */
    public RCallStateMember.SoftKeys getSoftKeys() {
        return softKeys;
    }

    /**
     * Sets the value of the softKeys property.
     *
     * @param value
     *     allowed object is
     *     {@link RCallStateMember.SoftKeys }
     *
     */
    public void setSoftKeys(RCallStateMember.SoftKeys value) {
        this.softKeys = value;
    }

    /**
     *
Java class for anonymous complex type.
     *
     *
The following schema fragment specifies the expected content contained within this class.
     *
     *

     * <complexType>
     *   <complexContent>
     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
     *       <sequence minOccurs="0">
     *         <element name="softKey" type="{http://www.cisco.com/AXL/API/8.5}RSoftKeyMember" maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     *

     *
     *
     */
    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType(name = "", propOrder = {
        "softKey"
    })
    public static class SoftKeys {

        protected List<RSoftKeyMember> softKey;

        /**
         * Gets the value of the softKey property.
         *
         *

         * This accessor method returns a reference to the live list,
         * not a snapshot. Therefore any modification you make to the
         * returned list will be present inside the JAXB object.
         * This is why there is not a set method for the softKey property.
         *
         *

         * For example, to add a new item, do as follows:
         *

         *    getSoftKey().add(newItem);
         *

         *
         *
         *

         * Objects of the following type(s) are allowed in the list
         * {@link RSoftKeyMember }
         *
         *
         */
        public List<RSoftKeyMember> getSoftKey() {
            if (softKey == null) {
                softKey = new ArrayList<RSoftKeyMember>();
            }
            return this.softKey;
        }

    }

}


text:
<?php // content="text/plain; charset=utf-8"
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');

$datay=array(20,30,50,80);
$datay2=array(430,645,223,690);
$datazero=array(0,0,0,0);

// Create the graph.
$graph = new Graph(450,200);
$graph->title->Set('Example with 2 scale bars');

// Setup Y and Y2 scales with some "grace"
$graph->SetScale("textlin");
$graph->SetY2Scale("lin");
$graph->yaxis->scale->SetGrace(30);
$graph->y2axis->scale->SetGrace(30);

//$graph->ygrid->Show(true,true);
$graph->ygrid->SetColor('gray','lightgray@0.5');

// Setup graph colors
$graph->SetMarginColor('white');
$graph->y2axis->SetColor('darkred');

// Create the "dummy" 0 bplot
$bplotzero = new BarPlot($datazero);

// Create the "Y" axis group
$ybplot1 = new BarPlot($datay);
$ybplot1->value->Show();
$ybplot = new GroupBarPlot(array($ybplot1,$bplotzero));

// Create the "Y2" axis group
$ybplot2 = new BarPlot($datay2);
$ybplot2->value->Show();
$ybplot2->value->SetColor('darkred');
$ybplot2->SetFillColor('darkred');
$y2bplot = new GroupBarPlot(array($bplotzero,$ybplot2));

// Add the grouped bar plots to the graph
$graph->Add($ybplot);
$graph->AddY2($y2bplot);

// .. and finally stroke the image back to browser
$graph->Stroke();
?>


text:
package com.intellij.refactoring.invertBoolean;

import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Comparing;
import com.intellij.openapi.util.Ref;
import com.intellij.psi.*;
import com.intellij.refactoring.BaseRefactoringProcessor;
import com.intellij.refactoring.rename.RenameProcessor;
import com.intellij.refactoring.rename.RenameUtil;
import com.intellij.refactoring.util.MoveRenameUsageInfo;
import com.intellij.usageView.UsageInfo;
import com.intellij.usageView.UsageViewDescriptor;
import com.intellij.util.IncorrectOperationException;
import com.intellij.util.containers.HashMap;
import com.intellij.util.containers.MultiMap;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;

/**
 * @author ven
 */
public class InvertBooleanProcessor extends BaseRefactoringProcessor {
  private static final Logger LOG = Logger.getInstance("#com.intellij.refactoring.invertBoolean.InvertBooleanMethodProcessor");
  private final InvertBooleanDelegate myDelegate;

  private PsiElement myElement;
  private final String myNewName;
  private final RenameProcessor myRenameProcessor;
  private final Map<UsageInfo, SmartPsiElementPointer> myToInvert = new HashMap<UsageInfo, SmartPsiElementPointer>();
  private final SmartPointerManager mySmartPointerManager;

  public InvertBooleanProcessor(final PsiElement namedElement, final String newName) {
    super(namedElement.getProject());
    myElement = namedElement;
    myNewName = newName;
    final Project project = namedElement.getProject();
    myRenameProcessor = !(namedElement instanceof PsiNamedElement) || Comparing.equal(((PsiNamedElement)namedElement).getName(), myNewName)
                        ? null : new RenameProcessor(project, namedElement, newName, false, false);
    mySmartPointerManager = SmartPointerManager.getInstance(project);
    myDelegate = InvertBooleanDelegate.findInvertBooleanDelegate(myElement);
    LOG.assertTrue(myDelegate != null);
  }

  @Override
  @NotNull
  protected UsageViewDescriptor createUsageViewDescriptor(@NotNull UsageInfo[] usages) {
    return new InvertBooleanUsageViewDescriptor(myElement);
  }

  @Override
  protected boolean preprocessUsages(@NotNull Ref<UsageInfo[]> refUsages) {
    final MultiMap<PsiElement, String> conflicts = new MultiMap<PsiElement, String>();
    myDelegate.findConflicts(conflicts, refUsages.get());

    if (!conflicts.isEmpty())  {
      return showConflicts(conflicts, null);
    }

    if (myRenameProcessor == null || myRenameProcessor.preprocessUsages(refUsages)) {
      prepareSuccessful();
      return true;
    }
    return false;
  }

  @Override
  @NotNull
  protected UsageInfo[] findUsages() {
    final List<SmartPsiElementPointer> toInvert = new ArrayList<SmartPsiElementPointer>();

    final LinkedHashSet<PsiElement> elementsToInvert = new LinkedHashSet<PsiElement>();
    myDelegate.collectRefElements(myElement, elementsToInvert, myRenameProcessor, myNewName);
    for (PsiElement element : elementsToInvert) {
      toInvert.add(mySmartPointerManager.createSmartPsiElementPointer(element));
    }

    final UsageInfo[] renameUsages = myRenameProcessor != null ? myRenameProcessor.findUsages() : UsageInfo.EMPTY_ARRAY;

    final SmartPsiElementPointer[] usagesToInvert = toInvert.toArray(new SmartPsiElementPointer[toInvert.size()]);

    //merge rename and invert usages
    Map<PsiElement, UsageInfo> expressionsToUsages = new HashMap<PsiElement, UsageInfo>();
    List<UsageInfo> result = new ArrayList<UsageInfo>();
    for (UsageInfo renameUsage : renameUsages) {
      expressionsToUsages.put(renameUsage.getElement(), renameUsage);
      result.add(renameUsage);
    }

    for (SmartPsiElementPointer pointer : usagesToInvert) {
      final PsiElement expression = pointer.getElement();
      if (!expressionsToUsages.containsKey(expression)) {
        final UsageInfo usageInfo = new UsageInfo(expression);
        expressionsToUsages.put(expression, usageInfo);
        result.add(usageInfo); //fake UsageInfo
        myToInvert.put(usageInfo, pointer);
      } else {
        myToInvert.put(expressionsToUsages.get(expression), pointer);
      }
    }

    return result.toArray(new UsageInfo[result.size()]);
  }

  @Override
  protected void refreshElements(@NotNull PsiElement[] elements) {
    myElement = elements[0];
  }

  private static UsageInfo[] extractUsagesForElement(PsiElement element, UsageInfo[] usages) {
    final ArrayList<UsageInfo> extractedUsages = new ArrayList<UsageInfo>(usages.length);
    for (UsageInfo usage : usages) {
      if (usage instanceof MoveRenameUsageInfo) {
        MoveRenameUsageInfo usageInfo = (MoveRenameUsageInfo)usage;
        if (element.equals(usageInfo.getReferencedElement())) {
          extractedUsages.add(usageInfo);
        }
      }
    }
    return extractedUsages.toArray(new UsageInfo[extractedUsages.size()]);
  }

  @Override
  protected void performRefactoring(@NotNull UsageInfo[] usages) {
    if (myRenameProcessor != null) {
      for (final PsiElement element : myRenameProcessor.getElements()) {
        try {
          RenameUtil.doRename(element, myRenameProcessor.getNewName(element), extractUsagesForElement(element, usages), myProject, null);
        }
        catch (final IncorrectOperationException e) {
          RenameUtil.showErrorMessage(e, element, myProject);
          return;
        }
      }
    }

    for (UsageInfo usage : usages) {
      final SmartPsiElementPointer pointerToInvert = myToInvert.get(usage);
      if (pointerToInvert != null) {
        PsiElement element = pointerToInvert.getElement();
        LOG.assertTrue(element != null);
        InvertBooleanDelegate delegate = InvertBooleanDelegate.findInvertBooleanDelegate(element);
        try {
          (delegate != null ? delegate : myDelegate).replaceWithNegatedExpression(element);
        }
        catch (IncorrectOperationException e) {
          LOG.error(e);
        }
      }
    }

    myDelegate.invertDefaultElementInitializer(myElement);
  }

  @Override
  protected String getCommandName() {
    return InvertBooleanHandler.REFACTORING_NAME;
  }
}


text:
.styleSans790.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 790.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans1.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 1.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans24.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 24.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans11.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 11.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans9.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 9.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans12000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 12pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans15.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 15.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans187.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 187.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans792.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 792.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans699.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 699.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans14.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 14.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans8.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 8.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans43.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 43.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans7.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 7.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans59.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 59.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans5.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 5.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans13.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 13.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans10.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 10.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans35.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 35.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans2.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 2.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans3.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 3.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans16.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 16.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans21.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 21.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans4.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 4.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans239.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 239.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans107.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 107.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans48.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 48.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans6.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 6.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans18.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 18.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans22.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 22.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans71.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 71.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans66.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 66.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans132.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 132.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans19.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 19.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans93.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 93.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans284.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 284.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans61.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 61.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans370.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 370.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans49.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 49.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans237.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 237.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans123.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 123.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans448.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 448.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans446.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 446.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans447.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 447.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans510.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 510.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans698.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 698.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}

.styleSans44.0000<enum PANGO_WEIGHT_NORMAL of type PangoWeight><enum PANGO_STYLE_NORMAL of type PangoStyle> {
    font-family: Sans;
    font-size: 44.0pt;
    font-weight: normal;
    font-style: normal;
    text-align: 0;
    letter-spacing: 0pt;
    line-height: 0pt;
}


text:
用于校验节点属性,设定节点属性的设置方式、属性类型、可接受的属性值等,以及校验是否react内置自定义属性。

* DOMProperty.ID_ATTRIBUTE_NAME = 'data-reactid'
* DOMProperty.ROOT_ATTRIBUTE_NAME = 'data-reactroot'
* DOMProperty.ATTRIBUTE_NAME_START_CHAR、DOMProperty.ATTRIBUTE_NAME_CHAR,用于校验属性名起始字符串和属性名。
* DOMProperty.properties = {propName: {attributeName,attributeNamespace,propertyName,mutationMethod,mustUseProperty,hasBooleanValue,hasNumericValue,hasPositiveNumericValue,hasOverloadedBooleanValue}},限制节点属性的设置方式、属性类型、可接受的属性值等。
* DOMProperty._isCustomAttributeFunctions = [(propertyName)=>{...;return [true|false];}],自定义属性校验函数数组。
* DOMProperty.isCustomAttribute,校验是否react内置的自定义属性,如HTMLDOMPropertyConfig模块设定以data-或aria-起始的属性。
* DOMProperty.injection.injectDOMPropertyConfig(domPropertyConfig),通过ReactDefaultInjection模块加载节点属性配置管理对象,如ARIADOMPropertyConfig、HTMLDOMPropertyConfig、SVGDOMPropertyConfig,最终为当前模块的DOMProperty.properties、DOMProperty._isCustomAttributeFunctions注入内容。

## 源码

    'use strict';

    // reactProdInvariant(code),线上环境报错,提示facebook文档
    var _prodInvariant = require('./reactProdInvariant');

    var invariant = require('fbjs/lib/invariant');

    // 获取是否以node[propName]=value方式添加属性,或属性值处理方式
    function checkMask(value, bitmask) {
      return (value & bitmask) === bitmask;
    }

    var DOMPropertyInjection = {
      MUST_USE_PROPERTY: 0x1,// 0x 16位 以node[propName]=value方式添加属性
      HAS_BOOLEAN_VALUE: 0x4,// 过滤否值
      HAS_NUMERIC_VALUE: 0x8,// 过滤非数值型
      HAS_POSITIVE_NUMERIC_VALUE: 0x10 | 0x8,// 过滤非正数型
      HAS_OVERLOADED_BOOLEAN_VALUE: 0x20,// 过滤false

      // 加载节点属性配置管理对象,为DOMProperty.properties、DOMProperty._isCustomAttributeFunctions注入内容
      //
      // 参数domPropertyConfig,节点属性配置管理对象,含有如下属性:
      // isCustomAttribute: 函数,判断是否可接受的自定义属性,返回真值将添置节点的属性
      //    如HTMLDOMPropertyConfig模块的"data-*"、"aria-*"属性
      // Properties: 约定node[propName]属性设置方式及属性类型
      //    如Properties[propName]为MUST_USE_PROPERTY即0x1时,须以node[propName]=value方式添加属性
      //    如Properties[propName]为HAS_BOOLEAN_VALUE即0x4时,否值将不会添加为节点的属性
      // DOMAttributeNames: react约定属性名到浏览器节点属性名的映射,如{className:"class"}
      // DOMAttributeNamespaces: 约定属性命名空间
      //    如DOMAttributeNamespaces[propName]=namespace时,需用node.setAttributeNS(propName,value)方法设置属性
      // DOMPropertyNames: node[propName]=value方式设置节点属性时,用以提供propName值
      // DOMMutationMethods: 设定节点属性的方法集合,如{propName:(node,value)=>{}}
      //
      // DOMProperty.properties={propName:propertyInfo}
      // propertyInfo约定属性的类型、属性的命名空间、属性的设置方式等,含有如下属性:
      //    attributeName: 拼接字符串方式设置节点属性时,作为节点的属性名
      //    attributeNamespace: 属性的命名空间,需用node.setAttributeNS(propName,value)方法设置属性
      //    propertyName: node[propName]=value方式设置节点属性时,用以提供propName值;
      //        默认为propertyInfo.attributeName;自定义为domPropertyConfig.DOMPropertyNames[propName]
      //    mutationMethod: 设置属性值的方法,(node,value)=>{}形式,优先级最高
      //    mustUseProperty: 是否以node[propertyInfo[propertyName]]=value设置节点属性,而非setAttribute方法
      //    hasBooleanValue: 真值,不接受否值作为节点的属性
      //    hasNumericValue: 真值,只接受数值型或可转化成数值型的字符串作为节点的属性
      //    hasPositiveNumericValue: 真值,只接受正数作为节点的属性
      //    hasOverloadedBooleanValue: 真值,不接受false作为节点的属性
      // DOMProperty._isCustomAttributeFunctions=[propertyName=>[true|false]],自定义属性的校验函数数组
      injectDOMPropertyConfig: function (domPropertyConfig) {
        var Injection = DOMPropertyInjection;

        var Properties = domPropertyConfig.Properties || {};
        var DOMAttributeNamespaces = domPropertyConfig.DOMAttributeNamespaces || {};
        var DOMAttributeNames = domPropertyConfig.DOMAttributeNames || {};
        var DOMPropertyNames = domPropertyConfig.DOMPropertyNames || {};
        var DOMMutationMethods = domPropertyConfig.DOMMutationMethods || {};

        // 自定义属性校验,通过则将添加到节点的相应属性上,如HTMLDOMPropertyConfig模块的data-、aria-
        if (domPropertyConfig.isCustomAttribute) {
          DOMProperty._isCustomAttributeFunctions.push(domPropertyConfig.isCustomAttribute);
        }

        for (var propName in Properties) {
          // 同名属性不能加载两次,也即各节点属性插件的属性名不能相冲
          !!DOMProperty.properties.hasOwnProperty(propName) ?
            process.env.NODE_ENV !== 'production' ?
              invariant(false, 'injectDOMPropertyConfig(...):'
                + ' You\'re trying to inject DOM property \'%s\' which has already been injected.'
                + ' You may be accidentally injecting the same DOM property config twice,'
                + ' or you may be injecting two configs that have conflicting property names.', propName)
              : _prodInvariant('48', propName) : void 0;

          var lowerCased = propName.toLowerCase();

          var propConfig = Properties[propName];

          var propertyInfo = {
            // 拼接字符串方式添加节点属性时,作为属性名
            attributeName: lowerCased,

            // 属性的命名空间,有值时需用node.setAttributeNS(namespace,attr,value)添加属性;初始化为null
            attributeNamespace: null,

            // propertyInfo.mustUseProperty为真值时,需用node[propertyInfo[propertyName]]设置节点属性
            propertyName: propName,

            // 设置属性值的方法,(node,value)=>{}形式,最高;初始化为null
            mutationMethod: null,

            // 为真值时,以node[propertyInfo[propertyName]]设置节点的属性,而非setAttribute方法
            // 处理ie8、9setAttribute方法将属性值转化为字符串`[object]`的兼容性问题
            mustUseProperty: checkMask(propConfig, Injection.MUST_USE_PROPERTY),

            // 用于设定节点属性值的类型,如hasNumericValue属性为真值,属性值得类型即为数值型
            hasBooleanValue: checkMask(propConfig, Injection.HAS_BOOLEAN_VALUE),
            hasNumericValue: checkMask(propConfig, Injection.HAS_NUMERIC_VALUE),
            hasPositiveNumericValue: checkMask(propConfig, Injection.HAS_POSITIVE_NUMERIC_VALUE),
            hasOverloadedBooleanValue: checkMask(propConfig, Injection.HAS_OVERLOADED_BOOLEAN_VALUE)
          };

          // 属性值的类型设定相冲,如不能既是布尔型,又是数值型
          !(propertyInfo.hasBooleanValue + propertyInfo.hasNumericValue +
            propertyInfo.hasOverloadedBooleanValue <= 1) ?
              process.env.NODE_ENV !== 'production' ?
                invariant(false, 'DOMProperty: Value can be one of boolean, overloaded boolean,'
                  + ' or numeric value, but not a combination: %s', propName) :
                _prodInvariant('50', propName) :
              void 0;

          if (process.env.NODE_ENV !== 'production') {
            DOMProperty.getPossibleStandardName[lowerCased] = propName;
          }

          // 节点属性插件的DOMAttributeNames属性是react属性名到浏览器节点属性名的映射,如className映射为class
          // 以字符串形式拼接属性名及其值时使用
          if (DOMAttributeNames.hasOwnProperty(propName)) {
            var attributeName = DOMAttributeNames[propName];
            propertyInfo.attributeName = attributeName;
            if (process.env.NODE_ENV !== 'production') {
              DOMProperty.getPossibleStandardName[attributeName] = propName;
            }
          }

          // 提取节点属性插件DOMAttributeNamespaces的命名空间
          if (DOMAttributeNamespaces.hasOwnProperty(propName)) {
            propertyInfo.attributeNamespace = DOMAttributeNamespaces[propName];
          }

          // DOMPropertyNames存放propertyInfo.mustUseProperty为真值时可添加的属性名集合
          if (DOMPropertyNames.hasOwnProperty(propName)) {
            propertyInfo.propertyName = DOMPropertyNames[propName];
          }

          // propertyInfo.mutationMethod设置属性值的方法,(node,value)=>{}形式
          if (DOMMutationMethods.hasOwnProperty(propName)) {
            propertyInfo.mutationMethod = DOMMutationMethods[propName];
          }

          DOMProperty.properties[propName] = propertyInfo;
        }
      }
    };

    var ATTRIBUTE_NAME_START_CHAR = ':A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD';

    var DOMProperty = {

      ID_ATTRIBUTE_NAME: 'data-reactid',
      ROOT_ATTRIBUTE_NAME: 'data-reactroot',

      // 用于校验属性名
      ATTRIBUTE_NAME_START_CHAR: ATTRIBUTE_NAME_START_CHAR,
      ATTRIBUTE_NAME_CHAR: ATTRIBUTE_NAME_START_CHAR + '\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040',

      // {propName:propertyInfo},限制节点属性的类型、设置方式、可接受的值等
      //
      // propertyInfo包含如下属性:
      // attributeName: 拼接字符串方式设置节点属性时,作为节点的属性名
      // attributeNamespace: 属性的命名空间,需用node.setAttributeNS(propName,value)方法设置属性
      // propertyName: node[propName]=value方式设置节点属性时,用以提供propName值;
      //    默认为propertyInfo.attributeName;自定义为domPropertyConfig.DOMPropertyNames[propName]
      // mutationMethod: 设置属性值的方法,(node,value)=>{}形式,优先级最高
      // mustUseProperty: 是否以node[propertyInfo[propertyName]]=value设置节点属性,而非setAttribute方法
      // hasBooleanValue: 真值,不接受否值作为节点的属性
      // hasNumericValue: 真值,只接受数值型或可转化成数值型的字符串作为节点的属性
      // hasPositiveNumericValue: 真值,只接受正数作为节点的属性
      // hasOverloadedBooleanValue: 真值,不接受false作为节点的属性
      properties: {},

      // 存储小写形式的节点属性到react节点属性的映射,如{class:"className"}等;调试用
      getPossibleStandardName: process.env.NODE_ENV !== 'production' ? { autofocus: 'autoFocus' } : null,

      // [(propertyName)=>{...;return [true|false];}],自定义属性校验函数数组
      _isCustomAttributeFunctions: [],

      // 校验是否react内置的自定义属性,如HTMLDOMPropertyConfig模块设定以data-或aria-起始的属性
      isCustomAttribute: function (attributeName) {
        for (var i = 0; i < DOMProperty._isCustomAttributeFunctions.length; i++) {
          var isCustomAttributeFn = DOMProperty._isCustomAttributeFunctions[i];
          if (isCustomAttributeFn(attributeName)) {
            return true;
          }
        }
        return false;
      },

      // 通过ReactDefaultInjection模块加载节点属性配置管理对象,如ARIADOMPropertyConfig、HTMLDOMPropertyConfig、SVGDOMPropertyConfig
      // 最终为当前模块的DOMProperty.properties、DOMProperty._isCustomAttributeFunctions注入内容
      injection: DOMPropertyInjection
    };

    module.exports = DOMProperty;


text:
Pushd F:\Scripts\Python\Damrobot\Damrobot\Project\
echo. > log.dat


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

@Component({
  selector: "app-signin",
  templateUrl: "signin.component.html"
})

export class SignInComponent { };


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>steps_client_1</title>


text:
package org.sagebionetworks.repo.model.query;

import java.util.ArrayList;
import java.util.List;

import org.junit.Test;
import org.sagebionetworks.repo.model.annotation.Annotations;
import org.sagebionetworks.repo.model.annotation.DoubleAnnotation;
import org.sagebionetworks.repo.model.annotation.LongAnnotation;
import org.sagebionetworks.repo.model.annotation.StringAnnotation;

public class QueryToolsTest {

	@Test
	public void testAnnosToMap() {
		Annotations annos = new Annotations();
		List<StringAnnotation> stringAnnos = new ArrayList<StringAnnotation>();
		StringAnnotation sa = new StringAnnotation();
		sa.setKey("sKey"); sa.setValue("sValue"); // note we leave 'isPrivate' as null
		stringAnnos.add(sa);
		annos.setStringAnnos(stringAnnos);

		List<DoubleAnnotation> doubleAnnos = new ArrayList<DoubleAnnotation>();
		DoubleAnnotation da = new DoubleAnnotation();
		da.setKey("dKey"); da.setValue(0.0D); // note we leave 'isPrivate' as null
		doubleAnnos.add(da);
		annos.setDoubleAnnos(doubleAnnos);

		List<LongAnnotation> longAnnos = new ArrayList<LongAnnotation>();
		LongAnnotation la = new LongAnnotation();
		la.setKey("lKey"); la.setValue(0L); // note we leave 'isPrivate' as null
		longAnnos.add(la);
		annos.setLongAnnos(longAnnos);

		QueryTools.annosToMap(false, annos);
	}

}


text:
package org.apache.myfaces.flow.builder;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.el.ValueExpression;
import javax.faces.flow.builder.NavigationCaseBuilder;
import org.apache.myfaces.flow.FlowImpl;
import org.apache.myfaces.flow.NavigationCaseImpl;

/**
 *
 * @author lu4242
 */
public class NavigationCaseBuilderImpl extends NavigationCaseBuilder
{
    private FlowImpl _facesFlow;
    private FlowBuilderImpl _flowBuilder;
    private NavigationCaseImpl _navigationCaseImpl;

    public NavigationCaseBuilderImpl(FlowBuilderImpl flowBuilder, FlowImpl facesFlow)
    {
        this._flowBuilder = flowBuilder;
        this._facesFlow = facesFlow;
        this._navigationCaseImpl = new NavigationCaseImpl();
    }

    @Override
    public NavigationCaseBuilder fromViewId(String fromViewId)
    {
        // This is the best place to add the navigation case into the flow, because
        // fromViewId is required (cannot be null, and null does not mean '*')
        if (this._navigationCaseImpl.getFromViewId() != null)
        {
            this._facesFlow.removeNavigationCase(_navigationCaseImpl);
        }
        if (fromViewId != null)
        {
            this._navigationCaseImpl.setFromViewId(fromViewId);
            this._facesFlow.addNavigationCase(_navigationCaseImpl);
        }
        return this;
    }

    @Override
    public NavigationCaseBuilder fromAction(String fromAction)
    {
        this._navigationCaseImpl.setFromAction(fromAction);
        return this;
    }

    @Override
    public NavigationCaseBuilder fromOutcome(String fromOutcome)
    {
        this._navigationCaseImpl.setFromOutcome(fromOutcome);
        return this;
    }

    @Override
    public NavigationCaseBuilder toViewId(String toViewId)
    {
        this._navigationCaseImpl.setToViewId(toViewId);
        return this;
    }

    @Override
    public NavigationCaseBuilder toFlowDocumentId(String toFlowDocumentId)
    {
        this._navigationCaseImpl.setToFlowDocumentId(toFlowDocumentId);
        return this;
    }

    @Override
    public NavigationCaseBuilder condition(String condition)
    {
        this._navigationCaseImpl.setConditionExpression(null);
        this._navigationCaseImpl.setCondition(condition);
        return this;
    }

    @Override
    public NavigationCaseBuilder condition(ValueExpression condition)
    {
        this._navigationCaseImpl.setCondition(null);
        this._navigationCaseImpl.setConditionExpression(condition);
        return this;
    }

    @Override
    public RedirectBuilder redirect()
    {
        this._navigationCaseImpl.setRedirect(true);
        return new RedirectBuilderImpl();
    }

    public class RedirectBuilderImpl extends RedirectBuilder
    {

        @Override
        public RedirectBuilder parameter(String name, String value)
        {
            //_navigationCaseImpl.
            Map<String, List<String>> map = _navigationCaseImpl.getParameters();
            if (map == null)
            {
                map = new HashMap<String, List<String>>();
                _navigationCaseImpl.setParameters(map);
            }
            List<String> values = map.get(name);
            if (values == null)
            {
                values = new ArrayList<String>();
                map.put(name, values);
            }
            values.add(value);
            return this;
        }

        @Override
        public RedirectBuilder includeViewParams()
        {
            _navigationCaseImpl.setIncludeViewParams(true);
            return this;
        }

    }
}


text:
package de.tum.in.niedermr.ta.extensions.analysis.workflows.stackdistance.instrumentation;

import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.tree.ClassNode;

import de.tum.in.niedermr.ta.core.code.visitor.AbstractCommonClassVisitor;

public class AnalysisInstrumentationClassVisitor extends AbstractCommonClassVisitor {

	/** Class that records the data gathered from the instrumentation. */
	private final Class<?> m_instrumentationDataRetrieverClass;
	private final ClassReader m_cr;

	/** Constructor. */
	public AnalysisInstrumentationClassVisitor(ClassVisitor cv, ClassReader cr,
			Class<?> instrumentationDataRetrieverClass) {
		super(cv, cr.getClassName());
		m_instrumentationDataRetrieverClass = instrumentationDataRetrieverClass;
		m_cr = cr;
	}

	/** {@inheritDoc} */
	@Override
	protected MethodVisitor visitNonConstructorMethod(MethodVisitor mv, int access, String methodName, String desc) {
		ClassNode cn = new ClassNode();
		m_cr.accept(cn, 0);

		return new AnalysisInstrumentationMethodVisitor(mv, cn, getClassName(), methodName, desc,
				m_instrumentationDataRetrieverClass);
	}
}


text:
module TaxCloud #:nodoc:
  module Errors #:nodoc:
    # This error is raised when TaxCloud returns an
    # unexpected SOAP response.
    class UnexpectedSoapResponse < TaxCloudError
      # === Parameters
      # [raw] Raw data from the SOAP response.
      # [key] Expected key in the SOAP response.
      # [chain] Complete SOAP response chain in which the key could not be found.
      def initialize(raw, key, chain)
        super(compose_message('unexpected_soap_response',
                              key: key,
                              raw: raw,
                              chain: chain))
      end
    end
  end
end


text:
(function( $ ){

  $.fn.proxyRights = function( options ) {

    // Create some defaults, extending them with any options that were provided
    var settings = $.extend( { }, options);

    var $container = this;

    function addContributor(name, user_key, grantor) {
      data = {name: name, user_key: user_key}

      $.ajax({
        type: "POST",
        url: '/users/'+grantor+'/depositors',
        dataType: 'json',
        data: {grantee_id: user_key},
        success: function (data) {
          if (data.name !== undefined) {
            row = rowTemplate(data);
            $('#authorizedProxies tbody', $container).append(row);
            if (settings.afterAdd)
              settings.afterAdd(this, cloneElem);
          }
        },
        error: function (data) {
          if (data.responseJSON !== undefined) {
            errorMsg = data.responseJSON.description;
            $('#errorMsg').text(errorMsg);
            $('#proxy-deny-modal').modal('show');
            return;
          }
        }
      })
      return false;
    }

    function removeContributor(event) {
      event.preventDefault();
      $.ajax({
        url: $(this).closest('a').prop('href'),
        type: "post",
        dataType: "json",
        data: {"_method":"delete"}
      });
      $(this).closest('tr').remove();
      return false;
    }

    function rowTemplate (data) {
      return '
'+
                ''+data.name+'	'+
                ''+
                $('#delete_button_label').data('label')+''+
                '	'+
              '
'
    }

    $("#user").userSearch();
    $("#user").on("change", function() {
      // Remove the choice from the select2 widget and put it in the table.
      obj = $("#user").select2("data")
      grantor = $('#user').data('grantor')
      $("#user").select2("val", '')
      addContributor(obj.text, obj.user_key, grantor);
    });

    $('body').on('click', 'a.remove-proxy-button', removeContributor);

  };

})( jQuery );

Blacklight.onLoad(function() {
  $('.proxy-rights').proxyRights();
});


text:
package com.proteus.peach.redis.server

import com.proteus.peach.redis.manager.AbstractRedisManagerHelper
import com.proteus.peach.server.cache.ExternalCacheValidator
import com.proteus.peach.server.cache.ExternalServerCache
import org.junit.AfterClass
import org.junit.BeforeClass

object RedisExternalServerCacheIT {
  /**
   * Cache server.
   */
  lazy val CacheServer: ExternalServerCache = new RedisExternalServerCache(AbstractRedisManagerHelper.Session)

  /**
   * Init cache server.
   */
  @BeforeClass
  def beforeAll(): Unit = {
    CacheServer.init()
  }

  /**
   * Stop cache server.
   */
  @AfterClass
  def afterAll(): Unit = {
    CacheServer.stop()
  }
}

class RedisExternalServerCacheIT extends AbstractRedisManagerHelper with ExternalCacheValidator {
  /**
   * Cache server instance.
   */
  override val cacheServer: ExternalServerCache = RedisExternalServerCacheIT.CacheServer
}


text:
Volunteerism
============

JavaScript Exercise with Random Number Generator and Pairing


text:
SYNONYM

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Ber. dt. bot. Ges. 35: 249 (1917)

#### Original name
Leptopeltella pinophylla Höhn., 1917

### Remarks
null


text:
/// <reference path="APIBean.d.ts" />
/// <reference path="IServiceContentEncoding.d.ts" />
/// <reference path="ServiceHeader.d.ts" />
/// <reference path="ServiceRequestParameter.d.ts" />
/// <reference path="ServiceSession.d.ts" />
/// <reference path="ServiceToken.d.ts" />

declare module Adaptive {
    /**
       @class Adaptive.ServiceRequest
       @extends Adaptive.APIBean
       Represents a local or remote service request.

       @author Aryslan
       @since v2.0
       @version 1.0
    */
    class ServiceRequest extends APIBean {
        /**
           @property {Adaptive.IServiceContentEncoding} contentEncoding
           Encoding of the content - by default assumed to be UTF8. This may be populated by the application, the platform
populates this field with defaults for the service.
        */
        contentEncoding: IServiceContentEncoding;
        /**
           @property {Adaptive.IServiceContentEncoding} contentEncoding
           Encoding of the content - by default assumed to be UTF8. This may be populated by the application, the platform
populates this field with defaults for the service. The 'contentEncodingProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'contentEncoding'.
        */
        contentEncodingProperty: IServiceContentEncoding;
        /**
           @property {Adaptive.ServiceRequestParameter[]} bodyParameters
           Body parameters to be included in the body of the request to a service. These may be applied
during GET/POST operations. No body parameters are included if this array is null or length zero.
        */
        bodyParameters: Array<ServiceRequestParameter>;
        /**
           @property {Adaptive.ServiceRequestParameter[]} bodyParameters
           Body parameters to be included in the body of the request to a service. These may be applied
during GET/POST operations. No body parameters are included if this array is null or length zero. The 'bodyParametersProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'bodyParameters'.
        */
        bodyParametersProperty: Array<ServiceRequestParameter>;
        /**
           @property {string} content
           Request data content (plain text). This should be populated by the application. The content should be
in some well-known web format - in specific, binaries submitted should be encoded to base64 and the content
type should be set respectively by the application.
        */
        content: string;
        /**
           @property {string} content
           Request data content (plain text). This should be populated by the application. The content should be
in some well-known web format - in specific, binaries submitted should be encoded to base64 and the content
type should be set respectively by the application. The 'contentProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'content'.
        */
        contentProperty: string;
        /**
           @property {number} contentLength
           The length in bytes of the content. This may be populated by the application, the platform
calculates this length automatically if a specific contentLength is not specified.
        */
        contentLength: number;
        /**
           @property {number} contentLength
           The length in bytes of the content. This may be populated by the application, the platform
calculates this length automatically if a specific contentLength is not specified. The 'contentLengthProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'contentLength'.
        */
        contentLengthProperty: number;
        /**
           @property {string} contentType
           The request content type (MIME TYPE). This may be populated by the application, the platform
populates this field with defaults for the service.
        */
        contentType: string;
        /**
           @property {string} contentType
           The request content type (MIME TYPE). This may be populated by the application, the platform
populates this field with defaults for the service. The 'contentTypeProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'contentType'.
        */
        contentTypeProperty: string;
        /**
           @property {Adaptive.ServiceRequestParameter[]} queryParameters
           Query string parameters to be appended to the service URL when making the request. These may be applied
during GET/POST operations. No query parameters are appended if this array is null or length zero.
        */
        queryParameters: Array<ServiceRequestParameter>;
        /**
           @property {Adaptive.ServiceRequestParameter[]} queryParameters
           Query string parameters to be appended to the service URL when making the request. These may be applied
during GET/POST operations. No query parameters are appended if this array is null or length zero. The 'queryParametersProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'queryParameters'.
        */
        queryParametersProperty: Array<ServiceRequestParameter>;
        /**
           @property {string} refererHost
           This host indicates the origin host of the request. This, could be useful in case of redirected requests.
        */
        refererHost: string;
        /**
           @property {string} refererHost
           This host indicates the origin host of the request. This, could be useful in case of redirected requests. The 'refererHostProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'refererHost'.
        */
        refererHostProperty: string;
        /**
           @property {Adaptive.ServiceHeader[]} serviceHeaders
           The serviceHeaders array (name,value pairs) to be included in the request. This may be populated by the
application, the platform populates this field with defaults for the service and the previous headers.
In specific, the platform maintains request and response state automatically.
        */
        serviceHeaders: Array<ServiceHeader>;
        /**
           @property {Adaptive.ServiceHeader[]} serviceHeaders
           The serviceHeaders array (name,value pairs) to be included in the request. This may be populated by the
application, the platform populates this field with defaults for the service and the previous headers.
In specific, the platform maintains request and response state automatically. The 'serviceHeadersProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'serviceHeaders'.
        */
        serviceHeadersProperty: Array<ServiceHeader>;
        /**
           @property {Adaptive.ServiceSession} serviceSession
           Session attributes and cookies. This may be populated by the application, the platform populates
this field with defaults for the service and the previous state information. In specific, the platform
maintains request and response state automatically.
        */
        serviceSession: ServiceSession;
        /**
           @property {Adaptive.ServiceSession} serviceSession
           Session attributes and cookies. This may be populated by the application, the platform populates
this field with defaults for the service and the previous state information. In specific, the platform
maintains request and response state automatically. The 'serviceSessionProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'serviceSession'.
        */
        serviceSessionProperty: ServiceSession;
        /**
           @property {Adaptive.ServiceToken} serviceToken
           Token used for the creation of the request with the destination service, endpoint, function and method
identifiers. This should not be manipulated by the application directly.
        */
        serviceToken: ServiceToken;
        /**
           @property {Adaptive.ServiceToken} serviceToken
           Token used for the creation of the request with the destination service, endpoint, function and method
identifiers. This should not be manipulated by the application directly. The 'serviceTokenProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'serviceToken'.
        */
        serviceTokenProperty: ServiceToken;
        /**
           @property {string} userAgent
           This attribute allows for the default user-agent string to be overridden by the application.
        */
        userAgent: string;
        /**
           @property {string} userAgent
           This attribute allows for the default user-agent string to be overridden by the application. The 'userAgentProperty' is registered with the ECMAScript 5 Object.defineProperty() for the class field 'userAgent'.
        */
        userAgentProperty: string;
        /**
           @method constructor
           Convenience constructor.

           @param {string} content      Content payload.
           @param {Adaptive.ServiceToken} serviceToken ServiceToken for the request.
           @since v2.0.6
        */
        constructor(content: string, serviceToken: ServiceToken);
        /**
           @method
           Returns the content encoding

           @return {Adaptive.IServiceContentEncoding} contentEncoding
           @since v2.0
        */
        getContentEncoding(): IServiceContentEncoding;
        /**
           @method
           Set the content encoding

           @param {Adaptive.IServiceContentEncoding} contentEncoding Encoding of the binary payload - by default assumed to be UTF8.
           @since v2.0
        */
        setContentEncoding(contentEncoding: IServiceContentEncoding): void;
        /**
           @method
           Gets the body parameters of the request.

           @return {Adaptive.ServiceRequestParameter[]} ServiceRequestParameter array or null if none are specified.
           @since v2.0.6
        */
        getBodyParameters(): Array<ServiceRequestParameter>;
        /**
           @method
           Sets the body parameters of the request.

           @param {Adaptive.ServiceRequestParameter[]} bodyParameters ServiceRequestParameter array or null if none are specified.
           @since v2.0.6
        */
        setBodyParameters(bodyParameters: Array<ServiceRequestParameter>): void;
        /**
           @method
           Returns the content

           @return {string} content
           @since v2.0
        */
        getContent(): string;
        /**
           @method
           Set the content

           @param {string} content Request/Response data content (plain text)
           @since v2.0
        */
        setContent(content: string): void;
        /**
           @method
           Returns the content length

           @return {number} contentLength
           @since v2.0
        */
        getContentLength(): number;
        /**
           @method
           Set the content length

           @param {number} contentLength The length in bytes for the Content field.
           @since v2.0
        */
        setContentLength(contentLength: number): void;
        /**
           @method
           Returns the content type

           @return {string} contentType
           @since v2.0
        */
        getContentType(): string;
        /**
           @method
           Set the content type

           @param {string} contentType The request/response content type (MIME TYPE).
           @since v2.0
        */
        setContentType(contentType: string): void;
        /**
           @method
           Gets the query parameters of the request.

           @return {Adaptive.ServiceRequestParameter[]} ServiceRequestParameter array or null if none are specified.
           @since v2.0.6
        */
        getQueryParameters(): Array<ServiceRequestParameter>;
        /**
           @method
           Sets the query parameters of the request.

           @param {Adaptive.ServiceRequestParameter[]} queryParameters ServiceRequestParameter array or null if none are specified.
           @since v2.0.6
        */
        setQueryParameters(queryParameters: Array<ServiceRequestParameter>): void;
        /**
           @method
           Returns the referer host (origin) of the request.

           @return {string} Referer host of the request
           @since v2.1.4
        */
        getRefererHost(): string;
        /**
           @method
           Sets the value for the referer host of the request.

           @param {string} refererHost Referer host of the request
           @since v2.1.4
        */
        setRefererHost(refererHost: string): void;
        /**
           @method
           Returns the array of ServiceHeader

           @return {Adaptive.ServiceHeader[]} serviceHeaders
           @since v2.0
        */
        getServiceHeaders(): Array<ServiceHeader>;
        /**
           @method
           Set the array of ServiceHeader

           @param {Adaptive.ServiceHeader[]} serviceHeaders The serviceHeaders array (name,value pairs) to be included on the I/O service request.
           @since v2.0
        */
        setServiceHeaders(serviceHeaders: Array<ServiceHeader>): void;
        /**
           @method
           Getter for service session

           @return {Adaptive.ServiceSession} The element service session
           @since v2.0
        */
        getServiceSession(): ServiceSession;
        /**
           @method
           Setter for service session

           @param {Adaptive.ServiceSession} serviceSession The element service session
           @since v2.0
        */
        setServiceSession(serviceSession: ServiceSession): void;
        /**
           @method
           Gets the ServiceToken of the request.

           @return {Adaptive.ServiceToken} ServiceToken.
           @since v2.0.6
        */
        getServiceToken(): ServiceToken;
        /**
           @method
           Sets the ServiceToken of the request.

           @param {Adaptive.ServiceToken} serviceToken ServiceToken to be used for the invocation.
           @since v2.0.6
        */
        setServiceToken(serviceToken: ServiceToken): void;
        /**
           @method
           Gets the overridden user-agent string.

           @return {string} User-agent string.
           @since v2.0.6
        */
        getUserAgent(): string;
        /**
           @method
           Sets the user-agent to override the default user-agent string.

           @param {string} userAgent User-agent string.
           @since v2.0.6
        */
        setUserAgent(userAgent: string): void;
        /**
           @method
           @static
           Convert JSON parsed object to typed equivalent.
           @param {Object} object JSON parsed structure of type Adaptive.ServiceRequest.
           @return {Adaptive.ServiceRequest} Wrapped object instance.
        */
        static toObject(object: any): ServiceRequest;
        /**
           @method
           @static
           Convert JSON parsed object array to typed equivalent.
           @param {Object} object JSON parsed structure of type Adaptive.ServiceRequest[].
           @return {Adaptive.ServiceRequest[]} Wrapped object array instance.
        */
        static toObjectArray(object: any): ServiceRequest[];
    }
}


text:
class ApplicationHandler < Evnt::Handler
end