text:
"""
test_links_extension
----------------------------------

Tests for `docdown.links` module.
"""

from __future__ import absolute_import, unicode_literals, print_function

import markdown
import unittest

import os

class LinksExtensionTest(unittest.TestCase):
    """
    Test the LinksExtension.
    """
    MARKDOWN_EXTENSIONS = ['docdown.links']

    EXTENSION_CONFIGS = {
        'docdown.links': {
            'link_map': {'to/nowhere': 'home/localhost'}
        }
    }

    def test_link_not_in_link_map(self):
        text = '[this is a link](http://example.com)'

        html = markdown.markdown(
            text,
            extensions=self.MARKDOWN_EXTENSIONS,
            extension_configs=self.EXTENSION_CONFIGS,
            output_format='html5'
        )

        expected_output = ('
this is a link
')
        self.assertEqual(html, expected_output)

    def test_link_in_link_map(self):
        text = '[this is a link](to/nowhere)'

        html = markdown.markdown(
            text,
            extensions=self.MARKDOWN_EXTENSIONS,
            extension_configs=self.EXTENSION_CONFIGS,
            output_format='html5'
        )

        expected_output = ('
this is a link
')
        self.assertEqual(html, expected_output)

    def test_link_in_link_map_with_fragment(self):
        text = '[this is a link](to/nowhere#fragment)'

        html = markdown.markdown(
            text,
            extensions=self.MARKDOWN_EXTENSIONS,
            extension_configs=self.EXTENSION_CONFIGS,
            output_format='html5'
        )

        expected_output = ('
this is a link
')
        self.assertEqual(html, expected_output)

    def test_link_with_fragment_not_in_link_map_keeps_fragment(self):
        """
        Regression test ensuring the url fragment (a hash and then an identifier)
        is not stripped away when a link which is not found in the link map is processed.
        """
        text = '[this is a link](http://example.com#a_fragment)'

        html = markdown.markdown(
            text,
            extensions=self.MARKDOWN_EXTENSIONS,
            extension_configs=self.EXTENSION_CONFIGS,
            output_format='html5'
        )

        expected_output = ('
this is a link
')
        self.assertEqual(html, expected_output)


text:
class java::util::concurrent::CopyOnWriteArrayList : public ::java::lang::Object
{

public:
  CopyOnWriteArrayList();
  CopyOnWriteArrayList(::java::util::Collection *);
  CopyOnWriteArrayList(JArray< ::java::lang::Object * > *);
  virtual jint size();
  virtual jboolean isEmpty();
  virtual jboolean contains(::java::lang::Object *);
  virtual jboolean containsAll(::java::util::Collection *);
  virtual jint indexOf(::java::lang::Object *);
  virtual jint indexOf(::java::lang::Object *, jint);
  virtual jint lastIndexOf(::java::lang::Object *);
  virtual jint lastIndexOf(::java::lang::Object *, jint);
  virtual ::java::lang::Object * clone();
  virtual JArray< ::java::lang::Object * > * toArray();
  virtual JArray< ::java::lang::Object * > * toArray(JArray< ::java::lang::Object * > *);
  virtual ::java::lang::Object * get(jint);
  virtual ::java::lang::Object * set(jint, ::java::lang::Object *);
  virtual jboolean add(::java::lang::Object *);
  virtual void add(jint, ::java::lang::Object *);
  virtual ::java::lang::Object * remove(jint);
  virtual jboolean remove(::java::lang::Object *);
  virtual jboolean removeAll(::java::util::Collection *);
  virtual jboolean retainAll(::java::util::Collection *);
  virtual void clear();
  virtual jboolean addAll(::java::util::Collection *);
  virtual jboolean addAll(jint, ::java::util::Collection *);
  virtual jboolean addIfAbsent(::java::lang::Object *);
  virtual jint addAllAbsent(::java::util::Collection *);
  virtual ::java::lang::String * toString();
  virtual jboolean equals(::java::lang::Object *);
  virtual jint hashCode();
  virtual ::java::util::Iterator * iterator();
  virtual ::java::util::ListIterator * listIterator();
  virtual ::java::util::ListIterator * listIterator(jint);
  virtual ::java::util::List * subList(jint, jint);
private:
  void writeObject(::java::io::ObjectOutputStream *);
  void readObject(::java::io::ObjectInputStream *);
public: // actually package-private
  static jboolean equals(::java::lang::Object *, ::java::lang::Object *);
  virtual JArray< ::java::lang::Object * > * getArray();
  static JArray< ::java::lang::Object * > * access$0(::java::util::concurrent::CopyOnWriteArrayList *);
  static void access$1(::java::util::concurrent::CopyOnWriteArrayList *, JArray< ::java::lang::Object * > *);
private:
  static const jlong serialVersionUID = 8673264195747942595LL;
  JArray< ::java::lang::Object * > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) data;
public:
  static ::java::lang::Class class$;
};

#endif // __java_util_concurrent_CopyOnWriteArrayList__

redpajama_set_name: RedPajamaGithub


text:
KB.component('calendar', function (containerElement, options) {

    this.render = function () {
        var calendar = $(containerElement);

        calendar.fullCalendar({
            locale: $("body").data("js-lang"),
            editable: true,
            eventLimit: true,
            defaultView: "month",
            header: {
                left: 'prev,next today',
                center: 'title',
                right: 'month,agendaWeek,agendaDay'
            },
            eventDrop: function(event) {
                $.ajax({
                    cache: false,
                    url: options.saveUrl,
                    contentType: "application/json",
                    type: "POST",
                    processData: false,
                    data: JSON.stringify({
                        "task_id": event.id,
                        "date_due": event.start.format()
                    })
                });
            },
            viewRender: function() {
                var url = options.checkUrl;
                var params = {
                    "start": calendar.fullCalendar('getView').start.format(),
                    "end": calendar.fullCalendar('getView').end.format()
                };

                for (var key in params) {
                    url += "&" + key + "=" + params[key];
                }

                $.getJSON(url, function(events) {
                    calendar.fullCalendar('removeEvents');
                    calendar.fullCalendar('addEventSource', events);
                    calendar.fullCalendar('rerenderEvents');
                });
            }
        });
    };
});


text:
#ifndef BINDINGS_FONT_H
#define BINDINGS_FONT_H

#include "common.h"
#include "wrapper.h"
#include "book_wrapper.h"

namespace node_libxl {

class Font : public Wrapper<libxl::Font> , public BookWrapper

{
    public:

        Font(libxl::Font* font, v8::Local<v8::Value> book);

        static void Initialize(v8::Handle<v8::Object> exports);

        static Font* Unwrap(v8::Local<v8::Value> object) {
            return Wrapper<libxl::Font>::Unwrap<Font>(object);
        }

        static v8::Local<v8::Object> NewInstance(
            libxl::Font* font,
            v8::Local<v8::Value> book
        );

    protected:

        static NAN_METHOD(Size);
        static NAN_METHOD(SetSize);
        static NAN_METHOD(Italic);
        static NAN_METHOD(SetItalic);
        static NAN_METHOD(StrikeOut);
        static NAN_METHOD(SetStrikeOut);
        static NAN_METHOD(Color);
        static NAN_METHOD(SetColor);
        static NAN_METHOD(Bold);
        static NAN_METHOD(SetBold);
        static NAN_METHOD(Script);
        static NAN_METHOD(SetScript);
        static NAN_METHOD(Underline);
        static NAN_METHOD(SetUnderline);
        static NAN_METHOD(Name);
        static NAN_METHOD(SetName);

    private:

        Font(const Font&);
        const Font& operator=(const Font&);
};

}

#endif // BINDINGS_FONT_H


text:
"bootstragular" is a demonstration project using Bootstrap and AngularJS with build automation by Grunt.

## installation

```bash

    git clone git@github.com:simon-wenmouth/bootstragular.git

    cd bootstragular

    npm install

    bower install

```

### develop mode

```bash

    grunt

    node .

```

### release mode

```bash

    grunt dist

    FOLDER=dist node .

```

## howto

Please see the file [HOWTO.md](HOWTO.md).

## demonstration

Please see this [projects github pages](http://simon-wenmouth.github.io/bootstragular/).

## license

Please see the file [LICENSE.txt](LICENSE.txt)

## author

Simon Wenmouth


text:
<?php

declare(strict_types=1);

namespace Genius\HttpClient;

use Psr\Http\Message\RequestInterface;

interface RequestBuilderInterface
{
    /**
     * @param array<string, string> $headers
     */
    public function build(string $method, string $uri, array $headers = [], ?string $body = null): RequestInterface;
}


text:
package com.groupon.lex.metrics.lib;

import static com.groupon.lex.metrics.ConfigSupport.quotedString;
import com.groupon.lex.metrics.grammar.StringSubstitutionLexer;
import com.groupon.lex.metrics.grammar.StringSubstitutionParser;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import static java.util.Objects.requireNonNull;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.antlr.v4.runtime.BailErrorStrategy;
import org.antlr.v4.runtime.BaseErrorListener;
import org.antlr.v4.runtime.CharStreams;
import org.antlr.v4.runtime.RecognitionException;
import org.antlr.v4.runtime.Recognizer;
import org.antlr.v4.runtime.UnbufferedTokenStream;

/**
 *
 * @author ariane
 */
public class StringTemplate implements Function<Map<Any2<Integer, String>, String>, String> {
    public static interface Element {
        public void apply(StringBuilder out, Map<Any2<Integer, String>, String> args);

        public void keys(Consumer<Any2<Integer, String>> c);
    }

    public static class LiteralElement implements Element {
        private final String lit_;

        public LiteralElement(String lit) {
            lit_ = requireNonNull(lit);
        }

        @Override
        public void apply(StringBuilder out, Map<Any2<Integer, String>, String> args) {
            out.append(lit_);
        }

        @Override
        public String toString() {
            return lit_.replace("$", "$$");
        }

        @Override
        public void keys(Consumer<Any2<Integer, String>> c) {
        }
    }

    public static class SubstituteElement implements Element {
        private final int idx_;

        public SubstituteElement(int idx) {
            if (idx < 0) throw new IllegalArgumentException("negative index");
            idx_ = idx;
        }

        @Override
        public void apply(StringBuilder out, Map<Any2<Integer, String>, String> args) {
            out.append(args.get(Any2.<Integer, String>left(idx_)));
        }

        public int getIndex() {
            return idx_;
        }

        @Override
        public String toString() {
            return "${" + idx_ + '}';
        }

        @Override
        public void keys(Consumer<Any2<Integer, String>> c) {
            c.accept(Any2.left(getIndex()));
        }
    }

    public static class SubstituteNameElement implements Element {
        private final String name_;

        public SubstituteNameElement(String name) {
            name_ = requireNonNull(name);
            if (name.isEmpty()) throw new IllegalArgumentException();
        }

        @Override
        public void apply(StringBuilder out, Map<Any2<Integer, String>, String> args) {
            out.append(args.get(Any2.<Integer, String>right(name_)));
        }

        public String getName() {
            return name_;
        }

        @Override
        public String toString() {
            return "${" + name_ + '}';
        }

        @Override
        public void keys(Consumer<Any2<Integer, String>> c) {
            c.accept(Any2.right(getName()));
        }
    }

    private final List<Element> elements_;

    public StringTemplate(List<Element> elements) {
        elements_ = new ArrayList<>(elements);
    }

    public static StringTemplate fromString(String pattern) {
        class DescriptiveErrorListener extends BaseErrorListener {
            public List<String> errors = new ArrayList<>();

            @Override
            public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol,
                                    int line, int charPositionInLine,
                                    String msg, RecognitionException e) {
                errors.add(String.format("%d:%d: %s", line, charPositionInLine, msg));
            }
        }

        final DescriptiveErrorListener error_listener = new DescriptiveErrorListener();

        final StringSubstitutionLexer lexer = new StringSubstitutionLexer(CharStreams.fromString(pattern));
        lexer.removeErrorListeners();
        lexer.addErrorListener(error_listener);
        final StringSubstitutionParser parser = new StringSubstitutionParser(new UnbufferedTokenStream(lexer));
        parser.removeErrorListeners();
        parser.addErrorListener(error_listener);

        parser.setErrorHandler(new BailErrorStrategy());
        final StringSubstitutionParser.ExprContext result = parser.expr();
        if (result.exception != null)
            throw new IllegalArgumentException("errors during parsing: " + pattern, result.exception);
        else if (!error_listener.errors.isEmpty())
            throw new IllegalArgumentException("syntax errors during parsing:\n" + String.join("\n", error_listener.errors.stream().map(s -> "  " + s).collect(Collectors.toList())));
        return result.s;
    }

    @Override
    public String apply(Map<Any2<Integer, String>, String> args) {
        StringBuilder out = new StringBuilder();
        elements_.stream().forEach((elem) -> elem.apply(out, args));
        return out.toString();
    }

    public int indexSize() {
        return elements_.stream()
                .filter(e -> e instanceof SubstituteElement)
                .map(e -> (SubstituteElement) e)
                .map(SubstituteElement::getIndex)
                .max(Comparator.naturalOrder())
                .map(x -> x + 1)
                .orElse(0);
    }

    public StringBuilder configString() {
        return quotedString(toString());
    }

    @Override
    public String toString() {
        final StringBuilder result = new StringBuilder();
        elements_.forEach(result::append);
        return result.toString();
    }

    /**
     * Retrieve the variables used to render this string.
     *
     * @return The list of variables used to render this string.
     */
    public List<Any2<Integer, String>> getArguments() {
        final List<Any2<Integer, String>> result = new ArrayList<>();
        elements_.forEach(elem -> elem.keys(result::add));
        return result;
    }
}


text: <!doctype html>


text:
.class Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;
.super Landroid/view/IRotationWatcher$Stub;
.source "KeyguardFaceUnlockView.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

# instance fields
.field final synthetic this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

# direct methods
.method constructor <init>(Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;)V
    .locals 0
    .parameter

    .prologue
    .line 58
    iput-object p1, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;->this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

    invoke-direct {p0}, Landroid/view/IRotationWatcher$Stub;-><init>()V

    return-void
.end method

# virtual methods
.method public onRotationChanged(I)V
    .locals 2
    .parameter "rotation"

    .prologue
    .line 67
    iget-object v0, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;->this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

    #getter for: Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->mLastRotation:I
    invoke-static {v0}, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->access$000(Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;)I

    move-result v0

    sub-int v0, p1, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    .line 68
    iget-object v0, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;->this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

    #getter for: Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->mBiometricUnlock:Lcom/android/internal/policy/impl/keyguard/BiometricSensorUnlock;
    invoke-static {v0}, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->access$100(Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;)Lcom/android/internal/policy/impl/keyguard/BiometricSensorUnlock;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 69
    iget-object v0, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;->this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

    #getter for: Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->mBiometricUnlock:Lcom/android/internal/policy/impl/keyguard/BiometricSensorUnlock;
    invoke-static {v0}, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->access$100(Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;)Lcom/android/internal/policy/impl/keyguard/BiometricSensorUnlock;

    move-result-object v0

    invoke-interface {v0}, Lcom/android/internal/policy/impl/keyguard/BiometricSensorUnlock;->stop()Z

    .line 70
    iget-object v0, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;->this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

    #calls: Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->maybeStartBiometricUnlock()V
    invoke-static {v0}, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->access$200(Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;)V

    .line 73
    :cond_0
    iget-object v0, p0, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView$1;->this$0:Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;

    #setter for: Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->mLastRotation:I
    invoke-static {v0, p1}, Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;->access$002(Lcom/android/internal/policy/impl/keyguard/KeyguardFaceUnlockView;I)I

    .line 74
    return-void
.end method


text:
package org.osate.xtext.aadl2.agcl.analysis.verifiers.impl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.ecore.EClass;

import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.MinimalEObjectImpl;

import org.osate.xtext.aadl2.agcl.analysis.verifiers.ModelCheckerInput;
import org.osate.xtext.aadl2.agcl.analysis.verifiers.ModelCheckerOutput;
import org.osate.xtext.aadl2.agcl.analysis.verifiers.VerificationResult;
import org.osate.xtext.aadl2.agcl.analysis.verifiers.VerifiersPackage;

/**
 *
 * An implementation of the model object 'Model Checker Output'.
 *
 *

 * The following features are implemented:
 *

 *
{@link org.osate.xtext.aadl2.agcl.analysis.verifiers.impl.ModelCheckerOutputImpl#getResult Result}

 *
{@link org.osate.xtext.aadl2.agcl.analysis.verifiers.impl.ModelCheckerOutputImpl#getInput Input}

 *

 *

 *
 * @generated
 */
public abstract class ModelCheckerOutputImpl extends MinimalEObjectImpl.Container implements ModelCheckerOutput {
	/**
	 * The cached value of the '{@link #getResult() Result}' reference.
	 *
	 *
	 * @see #getResult()
	 * @generated
	 * @ordered
	 */
	protected VerificationResult result;
	/**
	 * The cached value of the '{@link #getInput() Input}' reference.
	 *
	 *
	 * @see #getInput()
	 * @generated
	 * @ordered
	 */
	protected ModelCheckerInput input;

	/**
	 *
	 *
	 * @generated
	 */
	protected ModelCheckerOutputImpl() {
		super();
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return VerifiersPackage.Literals.MODEL_CHECKER_OUTPUT;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public VerificationResult getResult() {
		if (result != null && result.eIsProxy()) {
			InternalEObject oldResult = (InternalEObject)result;
			result = (VerificationResult)eResolveProxy(oldResult);
			if (result != oldResult) {
				if (eNotificationRequired())
					eNotify(new ENotificationImpl(this, Notification.RESOLVE, VerifiersPackage.MODEL_CHECKER_OUTPUT__RESULT, oldResult, result));
			}
		}
		return result;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public VerificationResult basicGetResult() {
		return result;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public void setResult(VerificationResult newResult) {
		VerificationResult oldResult = result;
		result = newResult;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, VerifiersPackage.MODEL_CHECKER_OUTPUT__RESULT, oldResult, result));
	}

	/**
	 *
	 *
	 * @generated
	 */
	public ModelCheckerInput getInput() {
		if (input != null && input.eIsProxy()) {
			InternalEObject oldInput = (InternalEObject)input;
			input = (ModelCheckerInput)eResolveProxy(oldInput);
			if (input != oldInput) {
				if (eNotificationRequired())
					eNotify(new ENotificationImpl(this, Notification.RESOLVE, VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT, oldInput, input));
			}
		}
		return input;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public ModelCheckerInput basicGetInput() {
		return input;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public NotificationChain basicSetInput(ModelCheckerInput newInput, NotificationChain msgs) {
		ModelCheckerInput oldInput = input;
		input = newInput;
		if (eNotificationRequired()) {
			ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT, oldInput, newInput);
			if (msgs == null) msgs = notification; else msgs.add(notification);
		}
		return msgs;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public void setInput(ModelCheckerInput newInput) {
		if (newInput != input) {
			NotificationChain msgs = null;
			if (input != null)
				msgs = ((InternalEObject)input).eInverseRemove(this, VerifiersPackage.MODEL_CHECKER_INPUT__OUTPUT, ModelCheckerInput.class, msgs);
			if (newInput != null)
				msgs = ((InternalEObject)newInput).eInverseAdd(this, VerifiersPackage.MODEL_CHECKER_INPUT__OUTPUT, ModelCheckerInput.class, msgs);
			msgs = basicSetInput(newInput, msgs);
			if (msgs != null) msgs.dispatch();
		}
		else if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT, newInput, newInput));
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public NotificationChain eInverseAdd(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT:
				if (input != null)
					msgs = ((InternalEObject)input).eInverseRemove(this, VerifiersPackage.MODEL_CHECKER_INPUT__OUTPUT, ModelCheckerInput.class, msgs);
				return basicSetInput((ModelCheckerInput)otherEnd, msgs);
		}
		return super.eInverseAdd(otherEnd, featureID, msgs);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT:
				return basicSetInput(null, msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__RESULT:
				if (resolve) return getResult();
				return basicGetResult();
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT:
				if (resolve) return getInput();
				return basicGetInput();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__RESULT:
				setResult((VerificationResult)newValue);
				return;
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT:
				setInput((ModelCheckerInput)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__RESULT:
				setResult((VerificationResult)null);
				return;
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT:
				setInput((ModelCheckerInput)null);
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__RESULT:
				return result != null;
			case VerifiersPackage.MODEL_CHECKER_OUTPUT__INPUT:
				return input != null;
		}
		return super.eIsSet(featureID);
	}

} //ModelCheckerOutputImpl


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional information regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>org.apache</groupId>
        <artifactId>apache</artifactId>
        <version>18</version>
    </parent>

    <groupId>org.apache.storm</groupId>
    <artifactId>storm</artifactId>
    <version>2.0.0-SNAPSHOT</version>
    <packaging>pom</packaging>
    <name>Storm</name>
    <description>Distributed and fault-tolerant realtime computation</description>
    <url>http://storm.apache.org</url>
    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
        </license>
    </licenses>

    <mailingLists>
        <mailingList>
            <name>Storm user mailing list</name>
            <subscribe>user-subscribe@storm.apache.org</subscribe>
            <unsubscribe>user-unsubscribe@storm.apache.org</unsubscribe>
            <post>user@storm.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/storm-user/</archive>
        </mailingList>
        <mailingList>
            <name>Storm developer mailing list</name>
            <subscribe>dev-subscribe@storm.apache.org</subscribe>
            <unsubscribe>dev-unsubscribe@storm.apache.org</unsubscribe>
            <post>dev@storm.apache.org</post>
            <archive>http://mail-archives.apache.org/mod_mbox/storm-dev/</archive>
        </mailingList>
    </mailingLists>

    <developers>
        <developer>
            <id>nathanmarz</id>
            <name>Nathan Marz</name>
            <email>nathan@nathanmarz.com</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-8</timezone>
        </developer>
        <developer>
            <id>ptgoetz</id>
            <name>P. Taylor Goetz</name>
            <email>ptgoetz@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-5</timezone>
        </developer>
        <developer>
            <id>xumingming</id>
            <name>James Xu</name>
            <email>xumingming@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone/>
        </developer>
        <developer>
            <id>afeng</id>
            <name>Andy Feng</name>
            <email>afeng@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-8</timezone>
        </developer>
        <developer>
            <id>davidlao</id>
            <name>David Lao</name>
            <email>davidlao@microsoft.com</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-8</timezone>
        </developer>
        <developer>
            <id>mrflip</id>
            <name>Flip Kromer</name>
            <email>mrflip@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone/>
        </developer>
        <developer>
            <id>jjackson</id>
            <name>Jason Jackson</name>
            <email>jasonjckn@gmail.com</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-8</timezone>
        </developer>
        <developer>
            <id>bobby</id>
            <name>Robert Evans</name>
            <email>evans@yahoo-inc.com</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-6</timezone>
        </developer>
        <developer>
            <id>dagit</id>
            <name>Derek Dagit</name>
            <email>derekd@yahoo-inc.com</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-6</timezone>
        </developer>
        <developer>
            <id>miguno</id>
            <name>Michael G. Noll</name>
            <email>michael@michael-noll.com</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>+1</timezone>
        </developer>
        <developer>
            <id>dossett</id>
            <name>Aaron Dossett</name>
            <email>dossett@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-6</timezone>
        </developer>
        <developer>
            <id>jerrypeng</id>
            <name>Boyang Jerry Peng</name>
            <email>jerrypeng@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-6</timezone>
        </developer>
        <developer>
            <id>longda</id>
            <name>Longda Feng</name>
            <email>longda@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>+8</timezone>
        </developer>
        <developer>
            <id>abhishek</id>
            <name>Abhishek Agarwal</name>
            <email>abhishek@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>+5.5</timezone>
        </developer>
        <developer>
            <id>satishd</id>
            <name>Satish Duggana</name>
            <email>satishd@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>+5.5</timezone>
        </developer>
        <developer>
            <id>vesense</id>
            <name>Xin Wang</name>
            <email>xinwang@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>+8</timezone>
        </developer>
        <developer>
            <id>hmclouro</id>
            <name>Hugo da Cruz Louro</name>
            <email>hmclouro@apache.org</email>
            <roles>
                <role>Committer</role>
            </roles>
            <timezone>-8</timezone>
        </developer>
    </developers>

    <prerequisites>
        <maven>3.0.0</maven>
    </prerequisites>

    <scm>
        <connection>scm:git:https://git-wip-us.apache.org/repos/asf/storm.git</connection>
        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/storm.git</developerConnection>
        <tag>HEAD</tag>
        <url>https://git-wip-us.apache.org/repos/asf/storm</url>
    </scm>

    <issueManagement>
        <system>jira</system>
        <url>https://issues.apache.org/jira/browse/STORM</url>
    </issueManagement>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <test.extra.args>-Djava.net.preferIPv4Stack=true</test.extra.args>

        <!-- dependency versions -->
        <clojure.version>1.7.0</clojure.version>
        <java_jmx.version>0.3.1</java_jmx.version>
        <compojure.version>1.1.9</compojure.version>
        <hiccup.version>0.3.6</hiccup.version>
        <commons-compress.version>1.4.1</commons-compress.version>
        <commons-io.version>2.5</commons-io.version>
        <commons-lang.version>2.5</commons-lang.version>
        <commons-exec.version>1.1</commons-exec.version>
        <commons-collections.version>3.2.2</commons-collections.version>
        <commons-fileupload.version>1.3.2</commons-fileupload.version>
        <commons-codec.version>1.6</commons-codec.version>
        <commons-cli.version>1.3.1</commons-cli.version>
        <clj-time.version>0.8.0</clj-time.version>
        <curator.version>2.12.0</curator.version>
        <json-simple.version>1.1</json-simple.version>
        <ring.version>1.3.1</ring.version>
        <ring-json.version>0.3.1</ring-json.version>
        <jetty.version>7.6.13.v20130916</jetty.version>
        <clojure.tools.logging.version>0.2.3</clojure.tools.logging.version>
        <clojure.math.numeric-tower.version>0.0.1</clojure.math.numeric-tower.version>
        <carbonite.version>1.5.0</carbonite.version>
        <snakeyaml.version>1.11</snakeyaml.version>
        <httpclient.version>4.3.3</httpclient.version>
        <clojure.tools.cli.version>0.2.4</clojure.tools.cli.version>
        <disruptor.version>3.3.2</disruptor.version>
        <jgrapht.version>0.9.0</jgrapht.version>
        <guava.version>16.0.1</guava.version>
        <auto-service.version>1.0-rc3</auto-service.version>
        <netty.version>3.9.0.Final</netty.version>
        <sysout-over-slf4j.version>1.0.2</sysout-over-slf4j.version>
        <log4j-over-slf4j.version>1.6.6</log4j-over-slf4j.version>
        <log4j.version>2.8.2</log4j.version>
        <slf4j.version>1.7.21</slf4j.version>
        <metrics.version>3.1.0</metrics.version>
        <clojure.tools.nrepl.version>0.2.3</clojure.tools.nrepl.version>
        <clojure-complete.version>0.2.3</clojure-complete.version>
        <mockito.version>1.9.5</mockito.version>
        <conjure.version>2.1.3</conjure.version>
        <zookeeper.version>3.4.6</zookeeper.version>
        <clojure-data-codec.version>0.1.0</clojure-data-codec.version>
        <clojure-contrib.version>1.2.0</clojure-contrib.version>
        <hive.version>0.14.0</hive.version>
        <hadoop.version>2.6.1</hadoop.version>
        <hdfs.version>${hadoop.version}</hdfs.version>
        <hbase.version>1.1.0</hbase.version>
        <kryo.version>3.0.3</kryo.version>
        <servlet.version>2.5</servlet.version>
        <joda-time.version>2.3</joda-time.version>
        <thrift.version>0.9.3</thrift.version>
        <junit.version>4.11</junit.version>
        <metrics-clojure.version>2.5.1</metrics-clojure.version>
        <hdrhistogram.version>2.1.7</hdrhistogram.version>
        <hamcrest.version>1.3</hamcrest.version>
        <cassandra.version>2.1.7</cassandra.version>
        <druid.version>0.8.2</druid.version>
        <elasticsearch.version>5.2.2</elasticsearch.version>
        <calcite.version>1.11.0</calcite.version>
        <mongodb.version>3.2.0</mongodb.version>
        <solr.version>5.2.1</solr.version>
        <jpmml.version>1.0.22</jpmml.version>
        <jedis.version>2.9.0</jedis.version>
        <rocketmq.version>4.0.0-incubating</rocketmq.version>

        <jackson.version>2.6.3</jackson.version>
        <!-- Kafka version used by old storm-kafka spout code -->
        <storm.kafka.version>0.8.2.2</storm.kafka.version>
        <storm.kafka.artifact.id>kafka_2.10</storm.kafka.artifact.id>

        <!-- kafka version used by new storm-kafka-client spout code -->
        <storm.kafka.client.version>0.10.0.0</storm.kafka.client.version>

        <!-- Java and clojure build lifecycle test properties are defined here to avoid having to create a default profile -->
        <java.unit.test.exclude>org.apache.storm.testing.IntegrationTest</java.unit.test.exclude>
        <java.unit.test.include>**/Test*.java, **/*Test.java, **/*TestCase.java</java.unit.test.include>    <!--maven surefire plugin default test list-->
        <!-- by default the clojure test set are all clojure tests that are not integration tests. This property is overridden in the profiles -->
        <clojure.test.set>!integration.*</clojure.test.set>

        <aetherVersion>1.1.0</aetherVersion>
        <mavenVersion>3.1.0</mavenVersion>
        <wagonVersion>1.0</wagonVersion>
        <azure-eventhubs.version>0.13.1</azure-eventhubs.version>
        <jersey.version>2.24.1</jersey.version>
        <dropwizard.version>1.1.2</dropwizard.version>
        <j2html.version>1.0.0</j2html.version>
        <jool.version>0.9.12</jool.version>
        <caffeine.version>2.3.5</caffeine.version>

        <!-- see intellij profile below... This fixes an annoyance with intellij -->
        <provided.scope>provided</provided.scope>
    </properties>

    <modules>
        <module>storm-checkstyle</module>
        <module>storm-multilang/javascript</module>
        <module>storm-multilang/python</module>
        <module>storm-multilang/ruby</module>
        <module>storm-buildtools/maven-shade-clojure-transformer</module>
        <module>storm-buildtools/storm-maven-plugins</module>
        <module>storm-client</module>
        <module>storm-server</module>
        <module>storm-core</module>
        <module>storm-webapp</module>
        <module>storm-clojure</module>
        <module>storm-clojure-test</module>
        <module>storm-submit-tools</module>
        <module>flux</module>
        <module>sql</module>

        <!-- externals -->
        <module>external/storm-autocreds</module>
        <module>external/storm-kafka</module>
        <module>external/storm-hdfs</module>
        <module>external/storm-hbase</module>
        <module>external/storm-hive</module>
        <module>external/storm-jdbc</module>
        <module>external/storm-redis</module>
        <module>external/storm-eventhubs</module>
        <module>external/storm-elasticsearch</module>
        <module>external/storm-solr</module>
        <module>external/storm-metrics</module>
        <module>external/storm-cassandra</module>
        <module>external/storm-mqtt</module>
        <module>external/storm-mongodb</module>
        <module>external/storm-kafka-client</module>
        <module>external/storm-opentsdb</module>
        <module>external/storm-kafka-monitor</module>
        <module>external/storm-kinesis</module>
        <module>external/storm-druid</module>
        <module>external/storm-jms</module>
        <module>external/storm-pmml</module>
        <module>external/storm-rocketmq</module>
        <module>external/storm-blobstore-migration</module>
        <module>integration-test</module>

        <!-- examples -->
        <module>examples/storm-starter</module>
        <module>examples/storm-loadgen</module>
        <module>examples/storm-mongodb-examples</module>
        <module>examples/storm-redis-examples</module>
        <module>examples/storm-opentsdb-examples</module>
        <module>examples/storm-solr-examples</module>
        <module>examples/storm-kafka-examples</module>
        <module>examples/storm-kafka-client-examples</module>
        <module>examples/storm-jdbc-examples</module>
        <module>examples/storm-hdfs-examples</module>
        <module>examples/storm-hbase-examples</module>
        <module>examples/storm-hive-examples</module>
        <module>examples/storm-elasticsearch-examples</module>
        <module>examples/storm-mqtt-examples</module>
        <module>examples/storm-pmml-examples</module>
        <module>examples/storm-jms-examples</module>
        <module>examples/storm-rocketmq-examples</module>
        <module>examples/storm-perf</module>
    </modules>

    <dependencies>
        <!-- The JUnit dependency is required for submodules by the maven-surefire-plugin <excludedGroups> configuration -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <profiles>
        <!--
            Hack to make intellij behave.
            If you use intellij, enable this profile in your IDE.
            It should make life easier.
        -->
        <profile>
            <id>intellij</id>
            <properties>
                <provided.scope>compile</provided.scope>
            </properties>
        </profile>

        <profile>
            <id>rat</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.rat</groupId>
                        <artifactId>apache-rat-plugin</artifactId>
                        <version>0.12</version>
                        <executions>
                            <execution>
                                <phase>test</phase>
                                <goals>
                                    <goal>check</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <excludeSubProjects>false</excludeSubProjects>
                            <consoleOutput>true</consoleOutput>
                            <excludes>
                                <!-- exclude maven artifacts -->
                                <exclude>**/target/**</exclude>
                                <!-- exclude intellij projects -->
                                <exclude>**/*.iml</exclude>
                                <exclude>**/.idea/**</exclude>
                                <!-- exclude eclipse projects -->
                                <exclude>**/*.classpath</exclude>
                                <exclude>**/.project</exclude>
                                <exclude>**/.settings/**</exclude>
                                <!-- module specific testing artifacts -->
                                <exclude>**/metastore_db/**</exclude>
                                <!-- anything written into build should be ignored -->
                                <exclude>**/build/**</exclude>
                                <!-- logs generated during test -->
                                <exclude>**/logs/**</exclude>

                                <!-- exclude CHANGELOG, VERSION, AND TODO files -->
                                <exclude>**/CHANGELOG.md</exclude>
                                <exclude>**/README.md</exclude>
                                <exclude>**/README.markdown</exclude>
                                <exclude>**/DEVELOPER.md</exclude>
                                <exclude>**/BYLAWS.md</exclude>
                                <exclude>**/STORM-UI-REST-API.md</exclude>
                                <exclude>SECURITY.md</exclude>
                                <exclude>VERSION</exclude>
                                <exclude>TODO</exclude>
                                <!-- thrift-generated code -->
                                <exclude>**/src/py/**</exclude>

                                <!-- the following are in the LICENSE file -->
                                <exclude>**/src/ui/public/js/jquery.dataTables.1.10.4.min.js</exclude>
                                <exclude>**/src/ui/public/css/jquery.dataTables.1.10.4.min.css</exclude>
                                <exclude>**/src/ui/public/images/*</exclude>
                                <exclude>**/src/ui/public/js/bootstrap-3.3.1.min.js</exclude>
                                <exclude>**/src/ui/public/css/bootstrap-3.3.1.min.css</exclude>
                                <exclude>**/src/ui/public/js/dataTables.bootstrap.min.js</exclude>
                                <exclude>**/src/ui/public/css/dataTables.bootstrap.css</exclude>
                                <exclude>**/src/ui/public/js/jsonFormatter.min.js</exclude>
                                <exclude>**/src/ui/public/css/jsonFormatter.min.css</exclude>
                                <exclude>**/src/ui/public/js/jquery-1.11.1.min.js</exclude>
                                <exclude>**/src/ui/public/js/jquery.cookies.2.2.0.min.js</exclude>
                                <exclude>**/src/ui/public/js/moment.min.js</exclude>
                                <exclude>**/src/ui/public/js/jquery.blockUI.min.js</exclude>
                                <exclude>**/src/ui/public/js/url.min.js</exclude>
                                <exclude>**/src/ui/public/js/jquery.mustache.js</exclude>
                                <exclude>**/src/ui/public/js/typeahead.jquery.min.js</exclude>
                                <exclude>**/src/ui/public/js/cytoscape-dagre.js</exclude>
                                <exclude>**/src/ui/public/js/dagre.min.js</exclude>
                                <exclude>**/src/ui/public/js/esprima.min.js</exclude>
                                <exclude>**/src/ui/public/js/js-yaml.min.js</exclude>
                                <exclude>**/src/ui/public/js/vis.min.js</exclude>
                                <exclude>**/src/ui/public/css/vis.min.css</exclude>
                                <exclude>**/src/main/resources/Audit.50.csv</exclude>
                                <exclude>**/src/main/resources/KNIME_PMML_4.1_Examples_single_audit_logreg.xml</exclude>
                                <exclude>**/src/main/sampledata/**</exclude>

                                <!-- generated by shade plugin -->
                                <exclude>**/dependency-reduced-pom.xml</exclude>

                                <exclude>**/docs/**</exclude>
                                <exclude>**/.git/**</exclude>
                                <exclude>**/derby.log</exclude>
                                <exclude>**/src/dev/**</exclude>

                                <!-- webapp test resources -->
                                <exclude>**/src/test/resources/test-3072.log.test</exclude>
                                <exclude>**/src/test/resources/small-worker.log.test</exclude>
                                <exclude>**/src/test/resources/test-worker.log.test</exclude>
                                <exclude>**/src/test/resources/logviewer-search-context-tests.log.test</exclude>

                                <!-- StormSQL -->
                                <exclude>**/src/codegen/config.fmpp</exclude>
                                <exclude>**/src/codegen/data/Parser.tdd</exclude>

                                <!-- Avro Serializer Test Resource -->
                                <exclude>**/src/test/resources/FixedAvroSerializer.config</exclude>

                                <!-- Vagrant related files -->
                                <exclude>integration-test/config/.vagrant/**</exclude>

                            </excludes>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>sign</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>dist</id>
            <modules>
                <module>storm-dist/binary</module>
                <module>storm-dist/source</module>
            </modules>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <configuration>
                            <outputDirectory>${project.build.directory}/javadoc</outputDirectory>
                            <reportOutputDirectory>./docs/javadoc</reportOutputDirectory>
                        </configuration>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>aggregate</id>
                                <goals>
                                    <goal>aggregate</goal>
                                </goals>
                                <phase>site</phase>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jar-plugin</artifactId>
                        <configuration>
                            <archive>
                                <manifest>
                                    <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                                    <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                                </manifest>
                            </archive>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>all-tests</id>
            <properties>
                <java.integration.test.include>**/*.java</java.integration.test.include>
                <java.integration.test.group>org.apache.storm.testing.IntegrationTest</java.integration.test.group>
                <clojure.test.set>*.*</clojure.test.set>
            </properties>
        </profile>
        <profile>
            <id>integration-tests-only</id>
            <properties>
                <!--Java-->
                <java.unit.test.include>no.unit.tests</java.unit.test.include>
                <java.integration.test.include>**/*.java</java.integration.test.include>
                <java.integration.test.group>org.apache.storm.testing.IntegrationTest</java.integration.test.group>
                <!--Clojure-->
                <clojure.test.set>integration.*</clojure.test.set>
                <clojure.test.declared.namespace.only>true</clojure.test.declared.namespace.only>
            </properties>
        </profile>
    </profiles>

    <distributionManagement>
        <site>
            <id>storm.maven.website</id>
            <name>Storm Website</name>
            <url>file:///tmp/site</url>
        </site>
    </distributionManagement>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.glassfish.jersey.core</groupId>
                <artifactId>jersey-server</artifactId>
                <version>${jersey.version}</version>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.containers</groupId>
                <artifactId>jersey-container-servlet-core</artifactId>
                <version>${jersey.version}</version>
            </dependency>
            <dependency>
                <groupId>org.glassfish.jersey.containers</groupId>
                <artifactId>jersey-container-jetty-http</artifactId>
                <version>${jersey.version}</version>
            </dependency>
            <dependency>
                <groupId>org.hdrhistogram</groupId>
                <artifactId>HdrHistogram</artifactId>
                <version>${hdrhistogram.version}</version>
            </dependency>
            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>clojure</artifactId>
                <version>${clojure.version}</version>
            </dependency>
            <dependency>
                <groupId>com.esotericsoftware</groupId>
                <artifactId>kryo</artifactId>
                <version>${kryo.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-cli</groupId>
                <artifactId>commons-cli</artifactId>
                <version>${commons-cli.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-io</groupId>
                <artifactId>commons-io</artifactId>
                <version>${commons-io.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-compress</artifactId>
                <version>${commons-compress.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-exec</artifactId>
                <version>${commons-exec.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-collections</groupId>
                <artifactId>commons-collections</artifactId>
                <version>${commons-collections.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${commons-lang.version}</version>
            </dependency>
            <dependency>
                <groupId>clj-time</groupId>
                <artifactId>clj-time</artifactId>
                <version>${clj-time.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.zookeeper</groupId>
                <artifactId>zookeeper</artifactId>
                <version>${zookeeper.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>com.sun.jmx</groupId>
                        <artifactId>jmxri</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.sun.jdmk</groupId>
                        <artifactId>jmxtools</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>javax.jms</groupId>
                        <artifactId>jms</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-api</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>servlet-api</artifactId>
                <version>${servlet.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>${joda-time.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-smile</artifactId>
                <version>${jackson.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-fileupload</groupId>
                <artifactId>commons-fileupload</artifactId>
                <version>${commons-fileupload.version}</version>
            </dependency>
            <dependency>
                <groupId>commons-codec</groupId>
                <artifactId>commons-codec</artifactId>
                <version>${commons-codec.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.curator</groupId>
                <artifactId>curator-framework</artifactId>
                <version>${curator.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.jboss.netty</groupId>
                        <artifactId>netty</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.curator</groupId>
                <artifactId>curator-recipes</artifactId>
                <version>${curator.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.curator</groupId>
                <artifactId>curator-client</artifactId>
                <version>${curator.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.curator</groupId>
                <artifactId>curator-test</artifactId>
                <version>${curator.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>com.googlecode.json-simple</groupId>
                <artifactId>json-simple</artifactId>
                <version>${json-simple.version}</version>
            </dependency>
            <dependency>
                <groupId>compojure</groupId>
                <artifactId>compojure</artifactId>
                <version>${compojure.version}</version>
            </dependency>
            <dependency>
                <groupId>hiccup</groupId>
                <artifactId>hiccup</artifactId>
                <version>${hiccup.version}</version>
            </dependency>
            <dependency>
                <groupId>ring</groupId>
                <artifactId>ring-core</artifactId>
                <version>${ring.version}</version>
            </dependency>
            <dependency>
                <groupId>ring</groupId>
                <artifactId>ring-devel</artifactId>
                <version>${ring.version}</version>
            </dependency>
            <dependency>
                <groupId>ring</groupId>
                <artifactId>ring-jetty-adapter</artifactId>
                <version>${ring.version}</version>
            </dependency>
            <dependency>
                <groupId>ring</groupId>
                <artifactId>ring-json</artifactId>
                <version>${ring-json.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-servlet</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-servlets</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-server</artifactId>
                <version>${jetty.version}</version>
            </dependency>
            <dependency>
                <groupId>org.eclipse.jetty</groupId>
                <artifactId>jetty-util</artifactId>
                <version>${jetty.version}</version>
            </dependency>

            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>tools.logging</artifactId>
                <version>${clojure.tools.logging.version}</version>
            </dependency>
            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>math.numeric-tower</artifactId>
                <version>${clojure.math.numeric-tower.version}</version>
            </dependency>
            <dependency>
                <groupId>com.twitter</groupId>
                <artifactId>carbonite</artifactId>
                <version>${carbonite.version}</version>
            </dependency>
            <dependency>
                <groupId>org.yaml</groupId>
                <artifactId>snakeyaml</artifactId>
                <version>${snakeyaml.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.httpcomponents</groupId>
                <artifactId>httpclient</artifactId>
                <version>${httpclient.version}</version>
            </dependency>
            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>tools.cli</artifactId>
                <version>${clojure.tools.cli.version}</version>
            </dependency>
            <dependency>
                <groupId>com.lmax</groupId>
                <artifactId>disruptor</artifactId>
                <version>${disruptor.version}</version>
            </dependency>
            <dependency>
                <groupId>org.jgrapht</groupId>
                <artifactId>jgrapht-core</artifactId>
                <version>${jgrapht.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${guava.version}</version>
            </dependency>
                <dependency>
                    <groupId>com.google.auto.service</groupId>
                    <artifactId>auto-service</artifactId>
                    <version>${auto-service.version}</version>
                    <optional>true</optional>
                </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-api</artifactId>
                <version>${log4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-slf4j-impl</artifactId>
                <version>${log4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.logging.log4j</groupId>
                <artifactId>log4j-core</artifactId>
                <version>${log4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-log4j12</artifactId>
                <version>${log4j-over-slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>log4j-over-slf4j</artifactId>
                <version>${log4j-over-slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>io.netty</groupId>
                <artifactId>netty</artifactId>
                <version>${netty.version}</version>
            </dependency>
            <dependency>
                <groupId>io.dropwizard.metrics</groupId>
                <artifactId>metrics-core</artifactId>
                <version>${metrics.version}</version>
            </dependency>
            <dependency>
                <groupId>metrics-clojure</groupId>
                <artifactId>metrics-clojure</artifactId>
                <version>${metrics-clojure.version}</version>
            </dependency>
            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>clojure-contrib</artifactId>
                <version>${clojure-contrib.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>data.codec</artifactId>
                <version>${clojure-data-codec.version}</version>
            </dependency>
            <dependency>
                <groupId>org.clojure</groupId>
                <artifactId>tools.nrepl</artifactId>
                <version>${clojure.tools.nrepl.version}</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>clojure</artifactId>
                        <groupId>org.clojure</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>clojure-complete</groupId>
                <artifactId>clojure-complete</artifactId>
                <version>${clojure-complete.version}</version>
                <scope>test</scope>
                <exclusions>
                    <exclusion>
                        <artifactId>clojure</artifactId>
                        <groupId>org.clojure</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-core</artifactId>
                <version>${mockito.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-core</artifactId>
                <version>${hamcrest.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.hamcrest</groupId>
                <artifactId>hamcrest-library</artifactId>
                <version>${hamcrest.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.mockito</groupId>
                <artifactId>mockito-all</artifactId>
                <version>${mockito.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.clojars.runa</groupId>
                <artifactId>conjure</artifactId>
                <version>${conjure.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.thrift</groupId>
                <artifactId>libthrift</artifactId>
                <version>${thrift.version}</version>
                <scope>compile</scope>
            </dependency>
            <!-- used by examples/storm-starter -->
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>${junit.version}</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.apache.calcite</groupId>
                <artifactId>calcite-core</artifactId>
                <version>${calcite.version}</version>
            </dependency>
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${jackson.version}</version>
            </dependency>

            <!-- kafka artifact dependency needed for storm-kafka -->
            <dependency>
                <groupId>org.apache.kafka</groupId>
                <artifactId>${storm.kafka.artifact.id}</artifactId>
                <version>${storm.kafka.version}</version>
                <scope>provided</scope>
                <exclusions>
                    <exclusion>
                        <groupId>org.apache.zookeeper</groupId>
                        <artifactId>zookeeper</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>log4j</groupId>
                        <artifactId>log4j</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.slf4j</groupId>
                        <artifactId>slf4j-log4j12</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.apache.kafka</groupId>
                <artifactId>kafka-clients</artifactId>
                <version>${storm.kafka.client.version}</version>
                <scope>provided</scope>
            </dependency>
            <dependency>
                <groupId>uk.org.lidalia</groupId>
                <artifactId>sysout-over-slf4j</artifactId>
                <version>${sysout-over-slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>com.github.ben-manes.caffeine</groupId>
                <artifactId>caffeine</artifactId>
                <version>${caffeine.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <repositories>
        <repository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>central</id>
            <url>http://repo1.maven.org/maven2/</url>
        </repository>
        <repository>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>clojars</id>
            <url>https://clojars.org/repo/</url>
        </repository>
    </repositories>

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${surefire.version}</version>
                    <configuration>
                        <redirectTestOutputToFile>true</redirectTestOutputToFile>
                        <excludedGroups>${java.unit.test.exclude}</excludedGroups>
                        <includes>
                            <include>${java.unit.test.include}</include>
                        </includes>
                        <argLine>-Xmx1536m</argLine>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-failsafe-plugin</artifactId>
                    <version>${surefire.version}</version>
                    <configuration>
                        <includes>
                            <include>${java.integration.test.include}</include>
                        </includes>
                        <groups>${java.integration.test.group}</groups>  <!--set in integration-test the profile-->
                        <argLine>-Xmx1536m</argLine>
                    </configuration>
                    <executions>
                        <execution>
                            <goals>
                                <goal>integration-test</goal>
                                <goal>verify</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <!--To support checkstyle goals. For example: "mvn checkstyle:checkstyle"-->
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-checkstyle-plugin</artifactId>
                    <version>2.17</version>
                    <dependencies>
                        <dependency>
                            <groupId>org.apache.storm</groupId>
                            <artifactId>storm-checkstyle</artifactId>
                            <version>${project.version}</version>
                        </dependency>
                        <dependency>
                            <groupId>com.puppycrawl.tools</groupId>
                            <artifactId>checkstyle</artifactId>
                            <!-- If you change this, you should also update the storm_checkstyle.xml file to be
                            based on the google_checks.xml from the version of checkstyle you are choosing. -->
                            <version>8.2</version>
                        </dependency>
                    </dependencies>
                    <executions>
                        <execution>
                            <id>validate</id>
                            <phase>validate</phase>
                            <configuration>
                                <configLocation>storm/storm_checkstyle.xml</configLocation>
                                <encoding>UTF-8</encoding>
                                <failOnViolation>true</failOnViolation>
                                <logViolationsToConsole>false</logViolationsToConsole>
                                <outputFile>target/checkstyle-violation.xml</outputFile>
                                <violationSeverity>warning</violationSeverity>
                            </configuration>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>2.5</version>
                    <executions>
                        <execution>
                            <id>cleanup</id>
                            <phase>clean</phase>
                            <goals>
                                <goal>clean</goal>
                            </goals>
                            <configuration>
                                <excludeDefaultDirectories>true</excludeDefaultDirectories>
                                <filesets>
                                    <fileset>
                                        <directory>./logs/</directory>
                                    </fileset>
                                </filesets>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>com.theoryinpractise</groupId>
                    <artifactId>clojure-maven-plugin</artifactId>
                    <version>1.7.1</version>
                    <extensions>true</extensions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>2.4.1</version>
                </plugin>
            </plugins>
        </pluginManagement>

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.8</source>
                    <target>1.8</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <autoVersionSubmodules>true</autoVersionSubmodules>
                    <tagNameFormat>v@{project.version}</tagNameFormat>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.theoryinpractise</groupId>
                <artifactId>clojure-maven-plugin</artifactId>
                <extensions>true</extensions>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <doclet>ch.raffael.doclets.pegdown.PegdownDoclet</doclet>
                    <docletArtifact>
                        <groupId>ch.raffael.pegdown-doclet</groupId>
                        <artifactId>pegdown-doclet</artifactId>
                        <version>1.1</version>
                    </docletArtifact>
                    <useStandardDocletOptions>true</useStandardDocletOptions>
                </configuration>
            </plugin>
        </plugins>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.17</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>checkstyle</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>3.0.1</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.10.4</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.19.1</version>
                <configuration>
                    <reportsDirectories>
                        <file>${project.build.directory}/test-reports</file>
                        <file>${project.build.directory}/surefire-reports</file>
                    </reportsDirectories>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <tagListOptions>
                        <tagClasses>
                            <tagClass>
                                <displayName>Todo Work</displayName>
                                <tags>
                                    <tag>
                                        <matchString>TODO</matchString>
                                        <matchType>exact</matchType>
                                    </tag>
                                    <tag>
                                        <matchString>FIXME</matchString>
                                        <matchType>exact</matchType>
                                    </tag>
                                </tags>
                            </tagClass>
                        </tagClasses>
                    </tagListOptions>
                </configuration>
            </plugin>
        </plugins>
    </reporting>
</project>


text:
package asyncj;

import asyncj.ActiveObject;
import asyncj.AsyncCallback;
import asyncj.AsyncResult;
import asyncj.impl.TaskExecutor;

import java.lang.reflect.Array;

/**
 * Represents test active object.
 */
final class ArrayOperations extends ActiveObject {
    public ArrayOperations() {
        this(TaskExecutor.newSingleThreadExecutor());
    }

    public ArrayOperations(final TaskScheduler executor){
        super(executor);
    }

    @SuppressWarnings("unchecked")
    private <T> T[] reverseArraySync(final T[] array){
        if(array == null) throw new NullPointerException("array is null.");
        final T[] result = (T[])Array.newInstance(array.getClass().getComponentType(), array.length);
        for(int i = 0; i < array.length; i++)
            result[i] = array[array.length - i - 1];
        return result;
    }

    private <T> T[] reverseArraySyncLongTime(final T[] array) throws InterruptedException{
        if(array == null) throw new NullPointerException("array is null.");
        final T[] result = (T[])Array.newInstance(array.getClass().getComponentType(), array.length);
        for(int i = 0; i < array.length; i++) {
            result[i] = array[array.length - i - 1];
            Thread.sleep(500);
        }
        return result;
    }

    public <T> AsyncResult<T[]> reverseArray(final T[] array){
        return submit(() -> reverseArraySync(array));
    }

    public <T> void reverseArray(final T[] array, final AsyncCallback<T[]> callback){
        reverseArray(array).onCompleted(callback);
    }

    public <T> AsyncResult<T[]> reverseArrayLongTime(final T[] array) {
        return submit(() -> reverseArraySyncLongTime(array));
    }

    public <T> void reverseArrayLongTime(final T[] array, final AsyncCallback<T[]> callback) {
        reverseArrayLongTime(array).onCompleted(callback);
    }
}


text:
#import <iTunesStoreUI/SUGridTableViewCell.h>

@class UIButton, UIGestureRecognizer, UIImageView, UISlider;

@interface SUDownloadCell : SUGridTableViewCell
{
    UIButton *_accessoryButton;
    UISlider *_progressBar;
    UIImageView *_editView;
    UIGestureRecognizer *_tapRecognizer;
}

- (id)_parentGridView;
- (void)_reloadEditView;
- (void)_reloadProgressBar;
- (void)_reloadAccessoryButton;
- (_Bool)_isDownloadResumable:(id)arg1;
- (void)_tapGesture:(id)arg1;
- (_Bool)handleTap;
- (void)_accessoryButtonAction:(id)arg1;
- (void)setSelected:(_Bool)arg1 animated:(_Bool)arg2;
- (void)setHighlighted:(_Bool)arg1 animated:(_Bool)arg2;
- (void)setConfiguration:(id)arg1;
- (void)layoutSubviews;
- (void)setEditState:(long long)arg1;
- (void)reloadForStatusChange;
- (void)dealloc;

@end


text:
using namespace std;

class ArduinoSerialInterface
{
public:
	ArduinoSerialInterface(LPCWSTR port);
	~ArduinoSerialInterface();
	bool openComPort();
	bool readComPort(int cvState);
	bool writeComPort(unsigned char *message, int length);
	bool sendDefendCommand(float xT1, float yT1, float tT1);
	bool sendAttackCommand(float xP2, float yP2, float tT2);
	bool sendRecenterCommand(bool centerHomeY);
	bool sendDefendAttackCommand(float xD, float yD, float tD, float xA, float yA, float tA, float aA);
	bool defenseCmdAcked, attackCmdAcked, defAttCmdAcked, recenterCmdAcked;
private:
	void arrayCopy(unsigned char *destArray, int destIndex, unsigned char *srcArray, int length);
	HANDLE serialPort;
	LPCWSTR portSpecifier;	//LPCWSTR: pointer to string of 2-byte chars
	unsigned int startDefenseCmd;	//command header telling arduino to defend a point
	unsigned int startAttackCmd;	//command header telling arduino to attack a point
	unsigned int defendAttackCmd;	//command header for packet containing defense and attack point
	unsigned int recenterCmd;		//command telling arduino to recenter paddle -- command to (4,18)
};


text:
module.exports = grunt => {
  grunt.registerTask('update-bower-version', () => {
    let pkg = grunt.config('pkg');
    let filename = grunt.config('bowerFile');
    let file = grunt.file.readJSON(filename);

    file.version = pkg.version;
    grunt.file.write(filename, JSON.stringify(file, null, '  '));
  });
};


text:
<!doctype html>

    <meta charset="utf-8">
    <title></title>

Hello world! This is HTML5 Boilerplate.


text:
using System;
using UnityEngine;

[Serializable]
public struct PivotPosition
{
    public enum Pivot { Order, Middle }
    public Pivot pivot;
    public Vector3 size;

    public PivotPosition(Pivot pivot) : this()
    {
        this.pivot = pivot;
    }

    public PivotPosition(Pivot pivot, Vector3 size) : this(pivot)
    {
        this.size = size;
    }

    public Vector3 GetPosition(int length, int index)
    {
#if DEBUG
        if (length <= 0)
            throw new InvalidOperationException("\'length\' cannot be zero or below.");
        if (index < 0)
            throw new InvalidOperationException("\'index\' cannot below from zero.");
#endif
        switch (pivot)
        {
            case Pivot.Order: return size * index;
            case Pivot.Middle: return size * index - (size / 2.0f) * (length - 1);
            default: return Vector3.zero;
        }
    }
}


text:
var fs = require('fs');
var path = require('path');
var util = require('util');
var _ = require('underscore');
var assert = require('assert');
var log = require('fh-mbaas-middleware').logger();

/**
 * First step to creating common error codes.
 *
 * TODO: Make A Module..
 * @param err
 * @param msg
 * @param code
 * @returns {{error: string}}
 */
function buildErrorObject(params){
  params = params || {};

  //If the userDetail is already set, not building the error object again.
  if(params.err && params.err.userDetail){
    return params;
  }

  var err = params.err || {message: "Unexpected Error"};
  var msg = params.msg || params.err.message || "Unexpected Error";
  var httpCode = params.httpCode || 500;
  //Custom Error Code
  var code = params.code || "FH-MBAAS-ERROR";

  var response = {
    errorFields: {
      userDetail: msg,
      systemDetail: msg + ' - ' + util.inspect(err),
      code: code
    },
    httpCode: httpCode
  };
  if (params.explain) {
    response.errorFields.explain = params.explain;
  }

  return response;
}

function make_passwd(n,a) {
  var index = (Math.random() * (a.length - 1)).toFixed(0);
  return n > 0 ? a[index] + make_passwd(n - 1, a) : '';
}

// set default response headers
function setResponseHeaders(res) {
  if(res.setHeader) {
    var contentType = res.getHeader('content-type');
    if (!contentType) {
      res.setHeader('Content-Type', 'application/json');
    }
  }
}

// get version from package.json (note this is softly cached)
var pkg;
function getVersion(cb) {
  if (pkg) return cb(null, pkg.version);

  fs.readFile(path.join(__dirname, '../../package.json'), function(err, data){
    if (err) {
      return cb(err, null);
    }
    pkg = JSON.parse(data);
    return cb(null, pkg.version);
  });
}

function logError(err, msg, code, req) {
  var e = err;
  if (typeof err === 'object') e = util.inspect(err);
  log.logger.error({err: e, code: code, req: req}, msg);
}

// generic error handler
function handleError(err, msg, code, req, res){
  logError(err, msg, code, req);

  var response = buildErrorObject({
    err: err,
    msg: msg,
    httpCode: code
  });

  res.statusCode = response.httpCode;
  res.end(JSON.stringify(response.errorFields));
}

function getIPAddress(req){
  var ipAddress =  "nonset"; // default value

  if (req.headers && req.headers['x-forwarded-for']) {
    ipAddress = req.headers['x-forwarded-for'];  // this may be a comma seperated list of addresses added by proxies and load balancers
  } else if (req.connection && req.connection.remoteAddress) {
    ipAddress = req.connection.remoteAddress;
  }

  return ipAddress;
}

// converts an object with arbitrary keys into an array sorted by keys
function sortObject(obj) {
  assert.ok(_.isObject(obj), 'Parameter should be an object! - ' + util.inspect(obj));
  assert.ok(!_.isArray(obj), 'Parameter should be an object, got array: ' + util.inspect(obj));

  var sortedKeys = _.keys(obj).sort();
  var sortedObjs = [];

  _.each(sortedKeys, function(key) {
    var val = {};
    val[key] = obj[key];
    sortedObjs.push(val);
  });

  return sortedObjs;
}

function randomPassword() {
  var n = 13;
  var a = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890';
  return make_passwd(n,a);
}

function randomUser() {
  var n = 12;
  var a = 'qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890';
  var randomStr = make_passwd(n, a);
  return 'u' + randomStr;
}

function checkDbConf(db){
  assert.ok(null != db.host, 'db host is null'); //jshint ignore:line
  assert.ok(null != db.port, 'db port is null'); //jshint ignore:line
  assert.ok(null != db.name, 'db name is null'); //jshint ignore:line
  assert.ok(null != db.user, 'db user is null'); //jshint ignore:line
  assert.ok(null != db.pass, 'db pass is null'); //jshint ignore:line
}

function formatDbUri(dbConf){
  return util.format('mongodb://%s:%s@%s:%s/%s', dbConf.user, dbConf.pass, dbConf.host, dbConf.port, dbConf.name);
}

exports.setResponseHeaders = setResponseHeaders;
exports.getVersion = getVersion;
exports.handleError = handleError;
exports.buildErrorObject = buildErrorObject;
exports.logError = logError;
exports.getIPAddress = getIPAddress;
exports.sortObject = sortObject;
exports.randomPassword = randomPassword;
exports.randomUser = randomUser;
exports.checkDbConf = checkDbConf;
exports.formatDbUri = formatDbUri;
exports.make_passwd = make_passwd;


text:
package uo.ri.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity public class Repuesto {

	@Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id;
	private String codigo;
	private String descripcion;
	private double precio;
	@OneToMany(mappedBy = "repuesto") private Set<Sustitucion> sustituciones = new HashSet<>();

	/**
	 * Allocates a replacement object and initializes it so that it represents.
	 */
	Repuesto() {}

	/**
	 * Allocates a replacement object and initializes it so that it represents.
	 *
	 * @param codigo is the code of the
	 */
	public Repuesto( String codigo ) {
		super();
		this.codigo = codigo;
	}

	/**
	 * Allocates a replacement object and initializes it so that it represents.
	 *
	 * @param codigo of the replacement.
	 * @param descripcion of the replacement.
	 * @param precio of the replacement.
	 */
	public Repuesto( String codigo, String descripcion, double precio ) {
		this( codigo );
		this.descripcion = descripcion;
		this.precio = precio;
	}

	/**
	 * @return the unique id of the object. JPA.
	 */
	public long getId() {
		return this.id;
	}

	/**
	 * @return the code of the replacement.
	 */
	public String getCodigo() {
		return codigo;
	}

	/**
	 * @return the description of the replacement.
	 */
	public String getDescripcion() {
		return descripcion;
	}

	/**
	 * Changes the description of the replacement.
	 *
	 * @param descripcion to set.
	 */
	public void setDescripcion( String descripcion ) {
		this.descripcion = descripcion;
	}

	/**
	 * @return the price of the replacement.
	 */
	public double getPrecio() {
		return precio;
	}

	/**
	 * Changes the price of the replacement.
	 *
	 * @param precio to set.
	 */
	public void setPrecio( double precio ) {
		this.precio = precio;
	}

	/**
	 * @return a copy of the original set of replacements.
	 */
	public Set<Sustitucion> getSustituciones() {
		return new HashSet<Sustitucion>( sustituciones );
	}

	/**
	 * @return the original set of replacements.
	 */
	Set<Sustitucion> _getSustituciones() {
		return sustituciones;
	}

	@Override public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ( ( codigo == null ) ? 0 : codigo.hashCode() );
		return result;
	}

	@Override public boolean equals( Object obj ) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Repuesto other = (Repuesto) obj;
		if (codigo == null) {
			if (other.codigo != null)
				return false;
		} else if (!codigo.equals( other.codigo ))
			return false;
		return true;
	}

}