text:
layout: model
title: English XLMRobertaForTokenClassification Base Cased model (from edwardjross)
author: John Snow Labs
name: xlmroberta_ner_base_finetuned_recipe_all
date: 2022-08-14
tags: [en, open_source, xlm_roberta, ner]
task: Named Entity Recognition
language: en
edition: Spark NLP 4.1.0
spark_version: 3.0
supported: true
annotator: XlmRoBertaForTokenClassification
article_header:
  type: cover
use_language_switcher: "Python-Scala-Java"
---

## Description

Pretrained XLMRobertaForTokenClassification model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP. `xlm-roberta-base-finetuned-recipe-all` is a English model originally trained by `edwardjross`.

## Predicted Entities

`UNIT`, `DF`, `QUANTITY`, `TEMP`, `SIZE`, `NAME`, `STATE`

{:.btn-box}
<button class="button button-orange" disabled>Live Demo</button>
<button class="button button-orange" disabled>Open in Colab</button>
[Download](https://s3.amazonaws.com/auxdata.johnsnowlabs.com/public/models/xlmroberta_ner_base_finetuned_recipe_all_en_4.1.0_3.0_1660447490206.zip){:.button.button-orange.button-orange-trans.arr.button-icon}

## How to use

<div class="tabs-box" markdown="1">
{% include programmingLanguageSelectScalaPythonNLU.html %}
```python
documentAssembler = DocumentAssembler() \
    .setInputCols(["text"]) \
    .setOutputCols("document")

tokenizer = Tokenizer() \
    .setInputCols("document") \
    .setOutputCol("token")

token_classifier = XlmRoBertaForTokenClassification.pretrained("xlmroberta_ner_base_finetuned_recipe_all","en") \
    .setInputCols(["document", "token"]) \
    .setOutputCol("ner")

ner_converter = NerConverter()\
    .setInputCols(["document", "token", "ner"])\
    .setOutputCol("ner_chunk")

pipeline = Pipeline(stages=[documentAssembler, tokenizer, token_classifier, ner_converter])

data = spark.createDataFrame([["PUT YOUR STRING HERE"]]).toDF("text")

result = pipeline.fit(data).transform(data)
```
```scala
val documentAssembler = new DocumentAssembler()
      .setInputCols(Array("text"))
      .setOutputCols(Array("document"))

val tokenizer = new Tokenizer()
    .setInputCols("document")
    .setOutputCol("token")

val token_classifier = XlmRoBertaForTokenClassification.pretrained("xlmroberta_ner_base_finetuned_recipe_all","en")
    .setInputCols(Array("document", "token"))
    .setOutputCol("ner")

val ner_converter = new NerConverter()
    .setInputCols(Array("document", "token', "ner"))
    .setOutputCol("ner_chunk")

val pipeline = new Pipeline().setStages(Array(documentAssembler, tokenizer, token_classifier, ner_converter))

val data = Seq("PUT YOUR STRING HERE").toDS.toDF("text")

val result = pipeline.fit(data).transform(data)
```
</div>

{:.model-param}
## Model Information

{:.table-model}
|---|---|
|Model Name:|xlmroberta_ner_base_finetuned_recipe_all|
|Compatibility:|Spark NLP 4.1.0+|
|License:|Open Source|
|Edition:|Official|
|Input Labels:|[document, token]|
|Output Labels:|[ner]|
|Language:|en|
|Size:|835.0 MB|
|Case sensitive:|true|
|Max sentence length:|256|

## References

- https://huggingface.co/edwardjross/xlm-roberta-base-finetuned-recipe-all
- https://github.com/cosylabiiit/recipe-knowledge-mining
- https://arxiv.org/abs/2004.12184
- https://github.com/cosylabiiit/recipe-knowledge-mining
- https://www.oreilly.com/library/view/natural-language-processing/9781098103231/
- https://github.com/EdwardJRoss/nlp_transformers_exercises/blob/master/notebooks/ch4-ner-recipe-stanford-crf.ipynb


text:
using System.Collections.Generic;
using System.Threading.Tasks;
using MGR.CommandLineParser.Extensibility.ClassBased;
using MGR.CommandLineParser.Tests.Commands;
using Xunit;

namespace MGR.CommandLineParser.IntegrationTests.SpecificCommand
{
    public class EscapedTraillingArgumentTests : ConsoleLoggingTestsBase
    {
        [Fact]
        public async Task ParseWithValidArgsAnDoubleDash()
        {
            // Arrange
            IEnumerable<string> args = new[] {"--str-value:custom value", "-i", "42", "Custom argument value", "-b", "--", "firstArg", "-i", "32"};
            var expectedReturnCode = CommandParsingResultCode.Success;
            var expectedStrValue = "custom value";
            var expectedNbOfArguments = 4;
            var expectedArgumentsValue = "Custom argument value";
            var expectedIntValue = 42;

            // Act
            var actual = await CallParse<IntTestCommand>(args);

            // Assert
            Assert.True(actual.IsValid);
            Assert.Equal(expectedReturnCode, actual.ParsingResultCode);
            Assert.IsAssignableFrom<IClassBasedCommandObject>(actual.CommandObject);
            Assert.IsType<IntTestCommand>(((IClassBasedCommandObject)actual.CommandObject).Command);
            var rawCommand = (IntTestCommand)((IClassBasedCommandObject)actual.CommandObject).Command;
            Assert.Equal(expectedStrValue, rawCommand.StrValue);
            Assert.Equal(expectedIntValue, rawCommand.IntValue);
            Assert.Null(rawCommand.IntListValue);
            Assert.Equal(expectedNbOfArguments, rawCommand.Arguments.Count);
            Assert.Equal(new List<string> {expectedArgumentsValue, "firstArg", "-i", "32"}, rawCommand.Arguments);
            Assert.True(rawCommand.BoolValue);
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
package org.codegist.crest.config.annotate;

import org.codegist.crest.annotate.Path;
import org.junit.Test;

import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;

/**
 * @author Laurent Gilles (laurent.gilles@codegist.org)
 */
public class PathAnnotationHandlerTest extends DownToMethodAnnotationBaseTest<Path> {

    private final PathAnnotationHandler toTest = new PathAnnotationHandler(crestConfig);

    public PathAnnotationHandlerTest() {
        super(Path.class);
    }

    @Test
    public void handleInterfaceAnnotationShouldSetParamsPath() throws Exception {
        when(mockAnnotation.value()).thenReturn("a");
        toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder);
        verify(mockAnnotation).value();
        verify(mockInterfaceConfigBuilder).appendMethodsPath("a");
    }

    @Test
    public void handleInterfaceAnnotationShouldMergePlaceholdersAndSetParamsPath() throws Exception {
        when(mockAnnotation.value()).thenReturn(VAL_WITH_PH);
        toTest.handleInterfaceAnnotation(mockAnnotation, mockInterfaceConfigBuilder);
        verify(mockAnnotation).value();
        verify(mockInterfaceConfigBuilder).appendMethodsPath(EXPECTED_MERGE_VAL);
    }

    @Test
    public void handleMethodsAnnotationShouldSetPath() throws Exception {
        when(mockAnnotation.value()).thenReturn("a");
        toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder);
        verify(mockAnnotation).value();
        verify(mockMethodConfigBuilder).appendPath("a");
    }

    @Test
    public void handleMethodsAnnotationShouldMergePlaceholdersAndSetPath() throws Exception {
        when(mockAnnotation.value()).thenReturn(VAL_WITH_PH);
        toTest.handleMethodAnnotation(mockAnnotation, mockMethodConfigBuilder);
        verify(mockAnnotation).value();
        verify(mockMethodConfigBuilder).appendPath(EXPECTED_MERGE_VAL);
    }

    @Override
    public AnnotationHandler<Path> getToTest() {
        return toTest;
    }
}


text:
#stickyContainer.sticky-top {
  top: 0;
  position: fixed;
  background-color: white;
  border-top: 1px solid #9e9e9e;
  border-bottom: 1px solid #9e9e9e;
}
#stickyContainer.container-layout {
  width: 100%;
}


text:
#include "tcpbot.h"
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <iostream>

TcpBot::TcpBot(QObject *parent) :
    QTcpSocket(parent),
    mbWinner(false),
    msgSize(0),
    m_stream(this)
{
    connect(this, SIGNAL(readyRead()), SLOT(readyRead()));
    connect(this, SIGNAL(connected()), SLOT(connected()));
    connect(this, SIGNAL(disconnected()), SLOT(disconnected()));
    connect(this, SIGNAL(error(QAbstractSocket::SocketError)),
            SLOT(error(QAbstractSocket::SocketError)));
}

void TcpBot::Send(const QByteArray &result)
{
    //qDebug() << "<=" << result;
    //add 4 bytes of header
    QByteArray tosend;
    int size = result.length();
    tosend.reserve(size + 4);

    tosend.append(static_cast<char>(((size >> 24) & 0xFF)));
    tosend.append(static_cast<char>(((size >> 16) & 0xFF)));
    tosend.append(static_cast<char>(((size >> 8) & 0xFF)));
    tosend.append(static_cast<char>((size & 0xFF)));

    tosend.append(result);

    write(tosend);
    waitForBytesWritten();
}

void TcpBot::ParseProtocol(const QJsonDocument &doc)
{
    auto obj = doc.object();

    if (obj.contains("auth")) {
        QJsonValue auth = obj["auth"];
        QJsonObject authResponse = auth.toObject();
        if (authResponse["ok"].toBool() == false) {
            qDebug() << "Auth error: " << authResponse["error"].toString();
            return;
        } else {
            SetMyID(authResponse["id"].toInt());
            Auth();
        }
    } else if (obj.contains("bvb")) {
        QJsonValue bvb = obj["bvb"];
        QJsonObject bvbResponse = bvb.toObject();
        if (bvbResponse.contains("wait")) {
            Wait();
        } else {
            if (bvbResponse.contains("id"))
            {
                mOpponentID = bvbResponse["id"].toInt();
            }
            if (bvbResponse.contains("name"))
            {
                mOpponentName = bvbResponse["name"].toString();
            }
            if (bvbResponse.contains("ships"))
            {
                QJsonArray a = bvbResponse["ships"].toArray();
                int i = 0, j = 0;
                for (auto it = a.begin(); it!=a.end(); ++it)
                {
                    QJsonValue v(*it);
                    mPole[i][j] = v.toInt();
                    j++;
                    if (j == 10){
                        j = 0;
                        i++;
                    }
                }
                //qDebug() << mPole;
//                for (i=0;i<10;i++)
//                {
//                    for (j=0;j<10;j++)
//                    {
//                        std::cout << mPole[i][j];
//                    }
//                    std::cout << "\n";
//                }
            }
            BattleStart(mOpponentID, mOpponentName);
        }
    } else if (obj.contains("turn")) {
        QJsonObject turnObject = obj["turn"].toObject();

        if (turnObject.contains("result")) {
            TurnResult(lastTurn, turnObject["result"].toInt());
        } else if (turnObject.contains("id")) {
            if (MyID() == turnObject["id"].toInt()) {
                lastTurn = Turn();
                QJsonArray shotArray;
                shotArray.append(lastTurn.y);
                shotArray.append(lastTurn.x);
                QJsonObject shotObject;
                shotObject["shot"] = shotArray;
                QJsonObject shotObjectTurn;
                shotObjectTurn["turn"] = shotObject;
                QJsonDocument doc;
                doc.setObject(shotObjectTurn);
                QByteArray data = doc.toJson();
                Send(data);
            }
        } else if (turnObject.contains("opponent")) {
            QJsonObject opponent = turnObject["opponent"].toObject();
            QJsonArray shot = opponent["shot"].toArray();
            Point shotPoint = Point{shot[1].toInt(),shot[0].toInt()};
            EnemyTurnResult(shotPoint, opponent["result"].toInt());
        }
    } else if (obj.contains("end")) {
        QJsonObject end = obj["end"].toObject();
        BattleEnd(end["winner"].toInt() == MyID());
    } else if (obj.contains("error")) {
        qDebug() << obj["error"].toObject();
    }
}

void TcpBot::Auth()
{
    QJsonObject bvb;
    QJsonObject placeShips;
    QJsonArray ships;
    ships.append(0);
    ships.append(0);
    ships.append(0);
    ships.append(0);
    placeShips["place"] = TcpBot::Server;
    placeShips["ships"] = ships;
    bvb["bvb"] = placeShips;
    QJsonDocument doc;
    doc.setObject(bvb);
    QByteArray data = doc.toJson();
    Send(data);
}

void TcpBot::readyRead()
{
    //qDebug() << "ready read!!! ";

    if (state() == ConnectedState)
    {
        if (msgSize == 0 && bytesAvailable() < 4) {
            return;
        }
        if (msgSize == 0) {
            m_stream >> msgSize;
        }

        if (bytesAvailable() < msgSize) {
            return;
        }

        QByteArray alldata;
        unsigned char sym = 0;
        while (msgSize > 0)
        {
            m_stream >> sym;
            alldata.append(sym);
            msgSize--;
        }
        msgSize = 0;

        // *****
        // parse data
        //qDebug() << alldata;
        QJsonParseError parseError;
        auto doc = QJsonDocument::fromJson(alldata, &parseError);
        if (parseError.error != QJsonParseError::NoError)
        {
            qDebug() << parseError.errorString();
            return;
        }
        ParseProtocol(doc);
        // *****
        if (bytesAvailable() > 0)
        {
            readyRead();
        }
    }
}

void TcpBot::connected()
{
    QJsonObject auth;
    auth["Auth"] = QJsonValue(mAuthKey);
    QJsonDocument doc;
    doc.setObject(auth);

    QByteArray data = doc.toJson();
    Send(data);
}

void TcpBot::disconnected()
{
    qDebug() << "socket disconnected";

}

void TcpBot::error(QAbstractSocket::SocketError e)
{
    Q_UNUSED(e);
    deleteLater();
    //qDebug() << e;
}


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<title>TFarListDelete</title>
<meta http-equiv="Content-Type" Content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../styles/styles.css">

TFarListDelete

main |
structures |
FarListDelete

The <dfn>FarListDelete</dfn> stucture for Delphi:

TFarListDelete = packed record
  StartIndex: integer;
  Count: integer;
end;
PFarListDelete = ^TFarListDelete;


text:
"use strict";

var express = require('express'),
    router = new express.Router(),
    mongoose = require('mongoose'),
    auth = require('../config/auth'),
    controller = require('../controllers/games-controller')();

router.get('/available', auth.isAuthenticated, controller.getAvailableGamesForCurrentUser);
router.get('/create', auth.isAuthenticated, controller.loadCreateGamePage);
router.get('/started', auth.isAuthenticated, controller.loadStartedGames);
router.post('/create', controller.createGame);
router.get('/:id', auth.isAuthenticated, controller.getById);
router.get('/details/:id', auth.isAuthenticated, controller.loadDetailsForGame);
router.post('/:id', auth.isAuthenticated, controller.joinGame);
router.post('/:id/cards/czar', controller.registerCzarCards);
router.post('/:id/cards/user', controller.registerUserCards);
router.post('/:id/leave', auth.isAuthenticated, controller.leaveGame);

module.exports = function(app){
    app.use('/games', router);
};


text:
using Lucene.Net.Documents;
using Lucene.Net.Support;
using NUnit.Framework;
using System;

namespace Lucene.Net.Index
{
    using Directory = Lucene.Net.Store.Directory;
    using Document = Documents.Document;
    using Field = Field;
    using IndexSearcher = Lucene.Net.Search.IndexSearcher;
    using LuceneTestCase = Lucene.Net.Util.LuceneTestCase;

    using MockAnalyzer = Lucene.Net.Analysis.MockAnalyzer;
    using MockTokenizer = Lucene.Net.Analysis.MockTokenizer;
    using TermRangeQuery = Lucene.Net.Search.TermRangeQuery;
    using TestUtil = Lucene.Net.Util.TestUtil;

    [TestFixture]
    public class TestReaderClosed : LuceneTestCase
    {
        private IndexReader Reader;
        private Directory Dir;

        [SetUp]
        public override void SetUp()
        {
            base.SetUp();
            Dir = NewDirectory();
            RandomIndexWriter writer = new RandomIndexWriter(Random(), Dir, NewIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(Random(), MockTokenizer.KEYWORD, false)).SetMaxBufferedDocs(TestUtil.NextInt(Random(), 50, 1000)));

            Document doc = new Document();
            Field field = NewStringField("field", "", Field.Store.NO);
            doc.Add(field);

            // we generate aweful prefixes: good for testing.
            // but for preflex codec, the test can be very slow, so use less iterations.
            int num = AtLeast(10);
            for (int i = 0; i < num; i++)
            {
                field.SetStringValue(TestUtil.RandomUnicodeString(Random(), 10));
                writer.AddDocument(doc);
            }
            Reader = writer.Reader;
            writer.Dispose();
        }

        [Test]
        public virtual void Test()
        {
            Assert.IsTrue(Reader.RefCount > 0);
            IndexSearcher searcher = NewSearcher(Reader);
            TermRangeQuery query = TermRangeQuery.NewStringRange("field", "a", "z", true, true);
            searcher.Search(query, 5);
            Reader.Dispose();
            try
            {
                searcher.Search(query, 5);
            }
#pragma warning disable 168
            catch (System.ObjectDisposedException ace)
#pragma warning restore 168
            {
                // expected
            }
        }

        // LUCENE-3800
        [Test]
        public virtual void TestReaderChaining()
        {
            Assert.IsTrue(Reader.RefCount > 0);
            IndexReader wrappedReader = SlowCompositeReaderWrapper.Wrap(Reader);
            wrappedReader = new ParallelAtomicReader((AtomicReader)wrappedReader);

            IndexSearcher searcher = NewSearcher(wrappedReader);
            TermRangeQuery query = TermRangeQuery.NewStringRange("field", "a", "z", true, true);
            searcher.Search(query, 5);
            Reader.Dispose(); // close original child reader
            try
            {
                searcher.Search(query, 5);
            }
            catch (System.ObjectDisposedException ace)
            {
                //Assert.AreEqual("this IndexReader cannot be used anymore as one of its child readers was closed", ace.Message);
                // LUCENENET specific - ObjectDisposedExeption appends the type of object to the end of the message,
                // so we need to check the start of the message only.
                assertTrue(ace.Message.StartsWith("this IndexReader cannot be used anymore as one of its child readers was closed", StringComparison.Ordinal));
            }
            finally
            {
                // shutdown executor: in case of wrap-wrap-wrapping
                searcher.IndexReader.Dispose();
            }
        }

        [TearDown]
        public override void TearDown()
        {
            Dir.Dispose();
            base.TearDown();
        }
    }
}


text:
<?php
/**
 * Garp_Cli_Command_Security
 * class description
 *
 * @package Garp_Cli_Command
 * @author  Harmen Janssen <harmen@grrr.nl>
 */
class Garp_Cli_Command_Security extends Garp_Cli_Command {

    public function generateSalt() {
        $authFile = APPLICATION_PATH . '/configs/auth.ini';
        if (!file_exists($authFile)) {
            return;
        }

        $authIni = file_get_contents($authFile);

        // Update salt for cookies
        $authIni = preg_replace(
            '/auth\.salt = "(.*)"/',
            'auth.salt = "' . $this->_getRandomSalt() . '"',
            $authIni
        );

        // Update salt for passwords
        $authIni = preg_replace(
            '/auth\.adapters\.db\.salt = "(.*)"/',
            'auth.adapters.db.salt = "' . $this->_getRandomSalt() . '"',
            $authIni
        );

        file_put_contents($authFile, $authIni);
        return true;
    }

    protected function _getRandomSalt() {
        return bin2hex(openssl_random_pseudo_bytes(10));
    }
}


text:
package reactor.core.publisher;

import java.util.Objects;
import java.util.function.Function;

import org.reactivestreams.Subscription;
import reactor.core.CorePublisher;
import reactor.core.CoreSubscriber;
import reactor.core.Fuseable;
import reactor.util.annotation.Nullable;

/**
 * Maps the values of the source publisher one-on-one via a mapper function.
 *

 * This variant allows composing fuseable stages.
 *
 * @param <T> the source value type
 * @param <R> the result value type
 *
 * @see Reactive-Streams-Commons
 */
final class FluxMapFuseable<T, R> extends InternalFluxOperator<T, R> implements Fuseable {

	final Function<? super T, ? extends R> mapper;

	/**
	 * Constructs a FluxMap instance with the given source and mapper.
	 *
	 * @param source the source Publisher instance
	 * @param mapper the mapper function
	 *
	 * @throws NullPointerException if either {@code source} or {@code mapper} is null.
	 */
	FluxMapFuseable(Flux<? extends T> source,
			Function<? super T, ? extends R> mapper) {
		super(source);
		this.mapper = Objects.requireNonNull(mapper, "mapper");
	}

	@Override
	@SuppressWarnings("unchecked")
	public CoreSubscriber<? super T> subscribeOrReturn(CoreSubscriber<? super R> actual) {
		if (actual instanceof ConditionalSubscriber) {
			ConditionalSubscriber<? super R> cs = (ConditionalSubscriber<? super R>) actual;
			return new MapFuseableConditionalSubscriber<>(cs, mapper);
		}
		return new MapFuseableSubscriber<>(actual, mapper);
	}

	@Override
	public Object scanUnsafe(Attr key) {
		if (key == Attr.RUN_STYLE) return Attr.RunStyle.SYNC;
		return super.scanUnsafe(key);
	}

	static final class MapFuseableSubscriber<T, R>
			implements InnerOperator<T, R>,
			           QueueSubscription<R> {

		final CoreSubscriber<? super R>        actual;
		final Function<? super T, ? extends R> mapper;

		boolean done;

		QueueSubscription<T> s;

		int sourceMode;

		MapFuseableSubscriber(CoreSubscriber<? super R> actual,
				Function<? super T, ? extends R> mapper) {
			this.actual = actual;
			this.mapper = mapper;
		}

		@SuppressWarnings("unchecked")
		@Override
		public void onSubscribe(Subscription s) {
			if (Operators.validate(this.s, s)) {
				this.s = (QueueSubscription<T>) s;
				actual.onSubscribe(this);
			}
		}

		@Override
		public void onNext(T t) {
			if (sourceMode == ASYNC) {
				actual.onNext(null);
			}
			else {
				if (done) {
					Operators.onNextDropped(t, actual.currentContext());
					return;
				}
				R v;

				try {
					v = mapper.apply(t);
					if (v == null) {
						throw new NullPointerException("The mapper [" + mapper.getClass().getName() + "] returned a null value.");
					}
				}
				catch (Throwable e) {
					Throwable e_ = Operators.onNextError(t, e, actual.currentContext(), s);
					if (e_ != null) {
						onError(e_);
					}
					else {
						s.request(1);
					}
					return;
				}

				actual.onNext(v);
			}
		}

		@Override
		public void onError(Throwable t) {
			if (done) {
				Operators.onErrorDropped(t, actual.currentContext());
				return;
			}

			done = true;

			actual.onError(t);
		}

		@Override
		public void onComplete() {
			if (done) {
				return;
			}
			done = true;

			actual.onComplete();
		}

		@Override
		public Object scanUnsafe(Attr key) {
			if (key == Attr.PARENT) return s;
			if (key == Attr.TERMINATED) return done;
			if (key == Attr.RUN_STYLE) return Attr.RunStyle.SYNC;

			return InnerOperator.super.scanUnsafe(key);
		}

		@Override
		public CoreSubscriber<? super R> actual() {
			return actual;
		}

		@Override
		public void request(long n) {
			s.request(n);
		}

		@Override
		public void cancel() {
			s.cancel();
		}

		@Override
		@Nullable
		public R poll() {
			for(;;) {
				T v = s.poll();
				if (v != null) {
					try {
						return Objects.requireNonNull(mapper.apply(v));
					}
					catch (Throwable t) {
						RuntimeException e_ = Operators.onNextPollError(v, t, currentContext());
						if (e_ != null) {
							throw e_;
						}
						else {
							continue;
						}
					}
				}
				return null;
			}
		}

		@Override
		public boolean isEmpty() {
			return s.isEmpty();
		}

		@Override
		public void clear() {
			s.clear();
		}

		@Override
		public int requestFusion(int requestedMode) {
			int m;
			if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
				return Fuseable.NONE;
			}
			else {
				m = s.requestFusion(requestedMode);
			}
			sourceMode = m;
			return m;
		}

		@Override
		public int size() {
			return s.size();
		}
	}

	static final class MapFuseableConditionalSubscriber<T, R>
			implements ConditionalSubscriber<T>, InnerOperator<T, R>,
			           QueueSubscription<R> {

		final ConditionalSubscriber<? super R> actual;
		final Function<? super T, ? extends R> mapper;

		boolean done;

		QueueSubscription<T> s;

		int sourceMode;

		MapFuseableConditionalSubscriber(ConditionalSubscriber<? super R> actual,
				Function<? super T, ? extends R> mapper) {
			this.actual = actual;
			this.mapper = mapper;
		}

		@Override
		@Nullable
		public Object scanUnsafe(Attr key) {
			if (key == Attr.PARENT) return s;
			if (key == Attr.TERMINATED) return done;
			if (key == Attr.RUN_STYLE) return Attr.RunStyle.SYNC;

			return InnerOperator.super.scanUnsafe(key);
		}

		@SuppressWarnings("unchecked")
		@Override
		public void onSubscribe(Subscription s) {
			if (Operators.validate(this.s, s)) {
				this.s = (QueueSubscription<T>) s;
				actual.onSubscribe(this);
			}
		}

		@Override
		public void onNext(T t) {
			if (sourceMode == ASYNC) {
				actual.onNext(null);
			}
			else {
				if (done) {
					Operators.onNextDropped(t, actual.currentContext());
					return;
				}

				R v;

				try {
					v = mapper.apply(t);
					if (v == null) {
						throw new NullPointerException("The mapper [" + mapper.getClass().getName() + "] returned a null value.");
					}
				}
				catch (Throwable e) {
					Throwable e_ = Operators.onNextError(t, e, actual.currentContext(), s);
					if (e_ != null) {
						onError(e_);
					}
					else {
						s.request(1);
					}
					return;
				}

				actual.onNext(v);
			}
		}

		@Override
		public boolean tryOnNext(T t) {
			if (done) {
				Operators.onNextDropped(t, actual.currentContext());
				return true;
			}

			R v;

			try {
				v = mapper.apply(t);
				if (v == null) {
					throw new NullPointerException("The mapper [" + mapper.getClass().getName() + "] returned a null value.");
				}
				return actual.tryOnNext(v);
			}
			catch (Throwable e) {
				Throwable e_ = Operators.onNextError(t, e, actual.currentContext(), s);
				if (e_ != null) {
					onError(e_);
					return true;
				}
				else {
					return false;
				}
			}
		}

		@Override
		public void onError(Throwable t) {
			if (done) {
				Operators.onErrorDropped(t, actual.currentContext());
				return;
			}

			done = true;

			actual.onError(t);
		}

		@Override
		public void onComplete() {
			if (done) {
				return;
			}
			done = true;

			actual.onComplete();
		}

		@Override
		public CoreSubscriber<? super R> actual() {
			return actual;
		}

		@Override
		public void request(long n) {
			s.request(n);
		}

		@Override
		public void cancel() {
			s.cancel();
		}

		@Override
		@Nullable
		public R poll() {
			for(;;) {
				T v = s.poll();
				if (v != null) {
					try {
						return Objects.requireNonNull(mapper.apply(v));
					}
					catch (Throwable t) {
						RuntimeException e_ = Operators.onNextPollError(v, t, currentContext());
						if (e_ != null) {
							throw e_;
						}
						else {
							continue;
						}
					}
				}
				return null;
			}
		}

		@Override
		public boolean isEmpty() {
			return s.isEmpty();
		}

		@Override
		public void clear() {
			s.clear();
		}

		@Override
		public int requestFusion(int requestedMode) {
			int m;
			if ((requestedMode & Fuseable.THREAD_BARRIER) != 0) {
				return Fuseable.NONE;
			}
			else {
				m = s.requestFusion(requestedMode);
			}
			sourceMode = m;
			return m;
		}

		@Override
		public int size() {
			return s.size();
		}
	}
}


text:
require "fileutils"
require "daemons"
PROJECT_ROOT = File.expand_path("../..", __FILE__)

# Ensure directories
begin
  FileUtils.mkdir_p("#{PROJECT_ROOT}/log")
  FileUtils.mkdir_p("#{PROJECT_ROOT}/tmp")
rescue Errno::EPERM
  $stderr.puts "Can't create `log/' and/or `tmp/' directory. Permissons? (Errno::EPERM)"
  exit 1
end

# append argv
argv = ARGV
argv += ["--", "dispatch"] unless argv.include?("--")

# Run daemon
Daemons.run("#{PROJECT_ROOT}/lib/ts3r.rb",
  ARGV: argv,
  app_name: "ts3rd",
  dir_mode: :normal,               # use absolute path
  dir: "#{PROJECT_ROOT}/tmp",      # pid directory
  log_output: true,                # log application output
  log_dir: "#{PROJECT_ROOT}/log",  # log directory
  backtrace: true,                 # log backtrace on crash
  multiple: false,                 # allow only 1 instance
  monitor: true                    # restart app on crash
)


text:
"""Replicate tool for SCons."""

import re

def Replicate(env, target, source, **kw):
  """Replicates (copies) source files/directories to the target directory.

  Much like env.Install(), with the following differences:
     * If the source is a directory, recurses through it and calls
       env.Install() on each source file, rather than copying the entire
       directory at once.  This provides more opportunity for hard linking, and
       also makes the destination files/directories all writable.
     * Can take sources which contain env.Glob()-style wildcards.
     * Can take multiple target directories; will copy to all of them.
     * Handles duplicate requests.

  Args:
    env: Environment in which to operate.
    target: Destination(s) for copy.  Must evaluate to a directory via
        env.Dir(), or a list of directories.  If more than one directory is
        passed, the entire source list will be copied to each target
        directory.
    source: Source file(s) to copy.  May be a string, Node, or a list of
        mixed strings or Nodes.  Strings will be passed through env.Glob() to
        evaluate wildcards.  If a source evaluates to a directory, the entire
        directory will be recursively copied.

  From env:
    REPLICATE_REPLACE: A list of pairs of regex search and replacement strings.
        Each full destination path has substitution performed on each pair
        (search_regex, replacement) in order.

        env.Replicate('destdir', ['footxt.txt'], REPLICATE_REPLACE = [
            ('\\.txt', '.bar'), ('est', 'ist')])
        will copy to 'distdir/footxt.bar'

        In the example above, note the use of \\ to escape the '.' character,
        so that it doesn't act like the regexp '.' and match any character.

  Returns:
    A list of the destination nodes from the calls to env.Install().
  """
  replace_list = kw.get('REPLICATE_REPLACE', env.get('REPLICATE_REPLACE', []))

  dest_nodes = []
  for target_entry in env.Flatten(target):
    for source_entry in env.Flatten(source):
      if type(source_entry) == str:
        # Search for matches for each source entry
        source_nodes = env.Glob(source_entry)
      else:
        # Source entry is already a file or directory node; no need to glob it
        source_nodes = [source_entry]
      for s in source_nodes:
        target_name = env.Dir(target_entry).abspath + '/' + s.name
        # We need to use the following incantation rather than s.isdir() in
        # order to handle chained replicates (A -> B -> C). The isdir()
        # function is not properly defined in all of the Node type classes in
        # SCons. This change is particularly crucial if hardlinks are present,
        # in which case using isdir() can cause files to be unintentionally
        # deleted.
        # TODO: Look into fixing the innards of SCons so this isn't needed.
        if str(s.__class__) == 'SCons.Node.FS.Dir':
          # Recursively copy all files in subdir.  Since glob('*') doesn't
          # match dot files, also glob('.*').
          dest_nodes += env.Replicate(
              target_name, [s.abspath + '/*', s.abspath + '/.*'],
              REPLICATE_REPLACE=replace_list)
        else:
          # Apply replacement strings, if any
          for r in replace_list:
            target_name = re.sub(r[0], r[1], target_name)
          target = env.File(target_name)
          if (target.has_builder()
              and hasattr(target.get_builder(), 'name')
              and target.get_builder().name == 'InstallBuilder'
              and target.sources == [s]):
            # Already installed that file, so pass through the destination node
            # TODO: Is there a better way to determine if this is a duplicate
            # call to install?
            dest_nodes += [target]
          else:
            dest_nodes += env.InstallAs(target_name, s)

  # Return list of destination nodes
  return dest_nodes

def generate(env):
  # NOTE: SCons requires the use of this name, which fails gpylint.
  """SCons entry point for this tool."""

  env.AddMethod(Replicate)


text:
from lesson1 import Person

class Product(object):
    instances = {}
    # статическое свойство класса, которое мы будем использовать в качестве кэша для
    # сохранения продуктов

    def __init__(self, name, price):

        self.name = name
        self.price = price

    @classmethod
    def get_istance(cls,name,price):
        key = (name, price)
        if key not in cls.instances:
            cls.instances[key] = cls(name, price)

        return cls.instances[key]

# Статические методы можно рассматривать как
# некие функции, которые нам могут пригодиться.
# При этом тот класс, в котором мы их определяем, является для них
# контейнером (как модуль для обычных функций)

class Order(object):
    def __init__(self, person, products=None):
        self.person = person
        self.products = []
        if products is not None:
            for p in products:
                self.add_product(p)

    def add_product(self,product):  # проверяем, является ли объект наследником указанного класса
        if not isinstance(product,Product):
            raise OrderException('Это не продукт магазина!')

        self.products.append(product)

    def get_products(self):
    # возвращаем продукты
        return self.products

person3 = Person('Маша','Потеряша','+785451145')

book1 = Product.get_istance('Python book', 999.56)
book2 = Product.get_istance('Python book1', 999.56)
book3 = Product.get_istance('Совершенный код1', 375.56)

order = Order(person3, [book1, book3])
order.add_product(book2)
order.add_product(book1)

#try:
#        order.add_product(666)
#except OrderException:
#        print('Это не продукт!')

print(order.get_products())

for p in order.get_products():
        print(p.name, p.price)


text:
<?xml version="1.0"?>
<!--
  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>
    <groupId>org.apache.nifi</groupId>
    <artifactId>nar-maven-plugin</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <packaging>maven-plugin</packaging>
    <name>Apache NiFi NAR Plugin</name>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>
    <build>
        <defaultGoal>install</defaultGoal>
        <plugins>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.2</version>
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.5</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-plugin-plugin</artifactId>
                <version>3.3</version>
            </plugin>
        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
            <version>2.0.11</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-dependency-plugin</artifactId>
            <version>2.9</version>
            <type>maven-plugin</type>
        </dependency>
        <dependency>
            <!-- No code from maven-jar-plugin is actually used; it's included
            just to simplify the dependencies list.                     -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-jar-plugin</artifactId>
            <version>2.5</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugin-tools</groupId>
            <artifactId>maven-plugin-annotations</artifactId>
            <version>3.3</version>
        </dependency>
    </dependencies>
    <distributionManagement>
        <repository>
            <id>nifi-releases</id>
            <url>${nifi.repo.url}</url>
        </repository>
        <snapshotRepository>
            <id>nifi-snapshots</id>
            <url>${nifi.snapshot.repo.url}</url>
        </snapshotRepository>
    </distributionManagement>
</project>


text:
DROP VIEW IF EXISTS view_buku_penerimaan_korpri;

CREATE VIEW view_buku_penerimaan_korpri AS

SELECT
*

FROM
view_buku_penerimaan_kabupaten

WHERE
1 = 1  AND
id_skpd = 27;

GRANT ALL PRIVILEGES ON view_buku_penerimaan_korpri TO lap_korpri;
REVOKE INSERT, UPDATE, DELETE ON view_buku_penerimaan_korpri FROM lap_korpri;


text:
export default function ToolbarController($scope,$translate)
    {
        var vm = this;

        // Data
        $scope.languages = {
            en: {
                'title'      : 'English',
                'translation': 'TOOLBAR.ENGLISH',
                'code'       : 'en',
                'flag'       : 'en'
            },
            np: {
                'title'      : 'Nepalese',
                'translation': 'TOOLBAR.NEPALESE',
                'code'       : 'np',
                'flag'       : 'np'
            }
        };

        // Methods
        $scope.changeLanguage = changeLanguage;
        vm.init = init;

        // Functions
        init();

        function init()
        {
            $scope.selectedLanguage = $scope.languages[$translate.preferredLanguage()];
            $translate.use($scope.selectedLanguage.code);
        }

        function changeLanguage(lang)
        {
            $scope.selectedLanguage = lang;
            $translate.use(lang.code);
        }
    }


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#fff"
    android:orientation="vertical">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/colorPrimaryDark">

        <Button
            android:id="@+id/back_btn"
            android:layout_width="25dp"
            android:layout_height="25dp"
            android:layout_alignParentLeft="true"
            android:layout_centerVertical="true"
            android:layout_marginLeft="5dp"
            android:background="@drawable/ic_back" />

        <TextView
            android:id="@+id/title_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:textSize="25dp" />
    </RelativeLayout>

    <ListView
        android:id="@+id/list_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        />
</LinearLayout>


text:
import create from "lighty";

describe("Application", () => {
  describe("#onError", () => {
    it("returns application instance itself", () => {
      const application = create(() => {});

      expect(application.onError(() => {})).toBe(application);
    });
  });
});


text:
{% extends 'page.html' %}

{% block styles %}

{% endblock %}

{% block title %}Reset Password{% endblock %}

{% block page %}

Enter your email address below, and we'll e-mail instructions for setting a new one.

<form action="" method="post" class="form-horizontal">
{% csrf_token %}
{{ form.non_field_errors }}

    Email:

    {{ form.email }}
    {{ form.email.errors }}

    <input type="submit" class="btn btn-primary" value="Reset my password" />

</form>

{% endblock %}


text:
<action>
    <field name="string">Events</field>
    <field name="view">multi_view</field>
    <field name="model">sale.event</field>
    <field name="menu">sale_menu</field>
</action>


text:
module Workflow
  class ProcessInstanceNode < ActiveRecord::Base
    belongs_to :process_instance
    belongs_to :process_graph_node

    has_many :process_instance_successor_edges,
      class_name: Workflow::ProcessInstanceEdge,
      inverse_of: :process_instance_node

    has_many :process_instance_children_edges,
      foreign_key: :end_instance_node_id,
      class_name: Workflow::ProcessInstanceEdge,
      inverse_of: :end_instance_node

    has_many :successor_nodes,
      through: :process_instance_successor_edges,
      source: :end_instance_node

    has_many :children_nodes,
      through: :process_instance_children_edges,
      source: :process_instance_node

    delegate :owner,
      :priority,
      :when_complete_invalidate_nodes,
      :process_graph_node_requisites,
      :complete_globally?,
      to: :process_graph_node

    delegate :entity, :role, to: :process_instance, prefix: :instance

    validates :process_instance,   presence: true
    validates :process_graph_node, presence: true

    def completed?
      completed_at.present?
    end

    def complete(options = {})
      user_authorized = options[:user_authorized] || false
      return false \
        if completed? || !validate_owner ||
          !validates_conditions(user_authorized: user_authorized)

      if complete_globally?
        # only the nodes with the same definition
        instance_nodes_with_same_definition.update_all(:completed_at, DateTime.now)

      else
        update_column(:completed_at, DateTime.now)
      end
      successor_nodes.each(&:complete)
    end

    def next_nodes
      [] unless validates_preconditions
      if (self.completed? || !validate_owner)
        successor_nodes.map(&:next_nodes).flatten!
      elsif validate_owner
        [process_graph_node]
      else
        []
      end
    end

    private

    def instance_nodes_with_same_definition
      instance_entity.process_instance_nodes.where(
        process_graph_node: process_graph_node_id
      )
    end

    def validates_conditions(options = {})
      validates_requisites(
        process_graph_node_requisites.conditions,
        options
      )
    end

    def validates_preconditions(options = {})
      validates_requisites(
        process_graph_node_requisites.preconditions,
        options
      )
    end

    def validates_requisites(requsite_set, options)
      user_authorized = options[:user_authorized] || false
      result = true
      requsite_set.each do |requisite|
        result = requisite.evaluate_requisite_for(
          instance_entity,
          self,
          user_authorized: user_authorized
        )
        # If the result is false, then it goes out from the each block
        break unless result
      end
      result
    end

    def validate_owner
      res = (instance_role == owner) || (owner == :all)
    end
  end
end


text:
import React, { Component, PropTypes } from 'react';

class RegisterView extends Component {
  constructor(props, context) {
    super(props, context);
    this.props = props;
  }

  render() {
    return (

Register

        <form ref={'form'} onSubmit={this.props.onSubmit} className="form-horizontal">

            Username

              <input type="username" name="username" id="username" placeholder="Username" autofocus="autofocus" className="form-control" />

            Password

              <input type="password" name="password" id="password" placeholder="Password" className="form-control" />

            Confirm Password

              <input type="password" name="confirmPassword" id="confirmPassword" placeholder="Confirm Password" className="form-control" />

              <button type="submit" className="col-sm-3 btn btn-primary">Register</button>

        </form>

    );
  }
}

RegisterView.propTypes = {
  onSubmit: PropTypes.func
};

export default RegisterView ;


text:
package de.hub.clickwatch.model;

import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.EEnum;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;

/**
 *
 * The Package for the model.
 * It contains accessors for the meta objects to represent
 *

 *
each class,

 *
each feature of each class,

 *
each enum,

 *
and each data type

 *

 *
 * @see de.hub.clickwatch.model.ClickWatchModelFactory
 * @model kind="package"
 * @generated
 */
public interface ClickWatchModelPackage extends EPackage {
	/**
     * The package name.
     *
	 *
     * @generated
     */
	String eNAME = "model";

	/**
     * The package namespace URI.
     *
	 *
     * @generated
     */
	String eNS_URI = "http://de.hub.clickwatch.model";

	/**
     * The package namespace name.
     *
	 *
     * @generated
     */
	String eNS_PREFIX = "cwm";

	/**
     * The singleton instance of the package.
     *
	 *
     * @generated
     */
	ClickWatchModelPackage eINSTANCE = de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl.init();

	/**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.ModelElementWithStatisticsImpl Model Element With Statistics}' class.
     *
     *
     * @see de.hub.clickwatch.model.impl.ModelElementWithStatisticsImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getModelElementWithStatistics()
     * @generated
     */
    int MODEL_ELEMENT_WITH_STATISTICS = 4;

    /**
     * The feature id for the 'Statistics' containment reference.
     *
     *
     * @generated
     * @ordered
     */
    int MODEL_ELEMENT_WITH_STATISTICS__STATISTICS = 0;

    /**
     * The number of structural features of the 'Model Element With Statistics' class.
     *
     *
     * @generated
     * @ordered
     */
    int MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT = 1;

    /**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.NodeImpl Node}' class.
     *
	 *
     * @see de.hub.clickwatch.model.impl.NodeImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getNode()
     * @generated
     */
	int NODE = 0;

	/**
     * The feature id for the 'Statistics' containment reference.
     *
     *
     * @generated
     * @ordered
     */
    int NODE__STATISTICS = MODEL_ELEMENT_WITH_STATISTICS__STATISTICS;

    /**
     * The feature id for the 'INet Address' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NODE__INET_ADDRESS = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 0;

	/**
     * The feature id for the 'Port' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NODE__PORT = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 1;

	/**
     * The feature id for the 'Backbone' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NODE__BACKBONE = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 2;

	/**
     * The feature id for the 'Connection' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NODE__CONNECTION = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 3;

    /**
     * The feature id for the 'Retrieving' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int NODE__RETRIEVING = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 4;

    /**
     * The feature id for the 'Listening' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int NODE__LISTENING = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 5;

    /**
     * The feature id for the 'Recording' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int NODE__RECORDING = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 6;

    /**
     * The feature id for the 'Errors' containment reference list.
     *
     *
     * @generated
     * @ordered
     */
    int NODE__ERRORS = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 7;

    /**
     * The feature id for the 'Elements' containment reference list.
     *
	 *
     * @generated
     * @ordered
     */
	int NODE__ELEMENTS = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 8;

    /**
     * The number of structural features of the 'Node' class.
     *
	 *
     * @generated
     * @ordered
     */
	int NODE_FEATURE_COUNT = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 9;

	/**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.ElementImpl Element}' class.
     *
	 *
     * @see de.hub.clickwatch.model.impl.ElementImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getElement()
     * @generated
     */
	int ELEMENT = 1;

	/**
     * The feature id for the 'Name' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int ELEMENT__NAME = 0;

	/**
     * The feature id for the 'Handlers' containment reference list.
     *
	 *
     * @generated
     * @ordered
     */
	int ELEMENT__HANDLERS = 1;

	/**
     * The feature id for the 'Children' containment reference list.
     *
	 *
     * @generated
     * @ordered
     */
	int ELEMENT__CHILDREN = 2;

	/**
     * The number of structural features of the 'Element' class.
     *
	 *
     * @generated
     * @ordered
     */
	int ELEMENT_FEATURE_COUNT = 3;

	/**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.HandlerImpl Handler}' class.
     *
	 *
     * @see de.hub.clickwatch.model.impl.HandlerImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getHandler()
     * @generated
     */
	int HANDLER = 2;

	/**
     * The feature id for the 'Name' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__NAME = 0;

	/**
     * The feature id for the 'Can Read' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__CAN_READ = 1;

	/**
     * The feature id for the 'Can Write' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__CAN_WRITE = 2;

	/**
     * The feature id for the 'Changed' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__CHANGED = 3;

	/**
     * The feature id for the 'Mixed' attribute list.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__MIXED = 4;

	/**
     * The feature id for the 'Any' attribute list.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__ANY = 5;

	/**
     * The feature id for the 'Value' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__VALUE = 6;

	/**
     * The feature id for the 'Timestamp' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER__TIMESTAMP = 7;

	/**
     * The number of structural features of the 'Handler' class.
     *
	 *
     * @generated
     * @ordered
     */
	int HANDLER_FEATURE_COUNT = 8;

	/**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.NetworkImpl Network}' class.
     *
	 *
     * @see de.hub.clickwatch.model.impl.NetworkImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getNetwork()
     * @generated
     */
	int NETWORK = 3;

	/**
     * The feature id for the 'Statistics' containment reference.
     *
     *
     * @generated
     * @ordered
     */
    int NETWORK__STATISTICS = MODEL_ELEMENT_WITH_STATISTICS__STATISTICS;

    /**
     * The feature id for the 'Name' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NETWORK__NAME = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 0;

	/**
     * The feature id for the 'Nodes' containment reference list.
     *
	 *
     * @generated
     * @ordered
     */
	int NETWORK__NODES = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 1;

	/**
     * The feature id for the 'Element Filter' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NETWORK__ELEMENT_FILTER = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 2;

	/**
     * The feature id for the 'Handler Filter' attribute.
     *
	 *
     * @generated
     * @ordered
     */
	int NETWORK__HANDLER_FILTER = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 3;

	/**
     * The feature id for the 'Subnetworks' containment reference list.
     *
	 *
     * @generated
     * @ordered
     */
	int NETWORK__SUBNETWORKS = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 4;

	/**
     * The feature id for the 'Timestamp' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int NETWORK__TIMESTAMP = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 5;

    /**
     * The number of structural features of the 'Network' class.
     *
	 *
     * @generated
     * @ordered
     */
	int NETWORK_FEATURE_COUNT = MODEL_ELEMENT_WITH_STATISTICS_FEATURE_COUNT + 6;

	/**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.StatisticsContainerImpl Statistics Container}' class.
     *
     *
     * @see de.hub.clickwatch.model.impl.StatisticsContainerImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getStatisticsContainer()
     * @generated
     */
    int STATISTICS_CONTAINER = 5;

    /**
     * The feature id for the 'Statistics' map.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTICS_CONTAINER__STATISTICS = 0;

    /**
     * The number of structural features of the 'Statistics Container' class.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTICS_CONTAINER_FEATURE_COUNT = 1;

    /**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.EStringToStatisticMapImpl EString To Statistic Map}' class.
     *
     *
     * @see de.hub.clickwatch.model.impl.EStringToStatisticMapImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getEStringToStatisticMap()
     * @generated
     */
    int ESTRING_TO_STATISTIC_MAP = 6;

    /**
     * The feature id for the 'Key' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int ESTRING_TO_STATISTIC_MAP__KEY = 0;

    /**
     * The feature id for the 'Value' containment reference.
     *
     *
     * @generated
     * @ordered
     */
    int ESTRING_TO_STATISTIC_MAP__VALUE = 1;

    /**
     * The number of structural features of the 'EString To Statistic Map' class.
     *
     *
     * @generated
     * @ordered
     */
    int ESTRING_TO_STATISTIC_MAP_FEATURE_COUNT = 2;

    /**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.StatisticImpl Statistic}' class.
     *
     *
     * @see de.hub.clickwatch.model.impl.StatisticImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getStatistic()
     * @generated
     */
    int STATISTIC = 7;

    /**
     * The feature id for the 'Sum' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC__SUM = 0;

    /**
     * The feature id for the 'Count' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC__COUNT = 1;

    /**
     * The feature id for the 'Mean' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC__MEAN = 2;

    /**
     * The feature id for the 'Smallest' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC__SMALLEST = 3;

    /**
     * The feature id for the 'Largest' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC__LARGEST = 4;

    /**
     * The feature id for the 'Latest' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC__LATEST = 5;

    /**
     * The number of structural features of the 'Statistic' class.
     *
     *
     * @generated
     * @ordered
     */
    int STATISTIC_FEATURE_COUNT = 6;

    /**
     * The meta object id for the '{@link de.hub.clickwatch.model.impl.ClickWatchErrorImpl Click Watch Error}' class.
     *
     *
     * @see de.hub.clickwatch.model.impl.ClickWatchErrorImpl
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getClickWatchError()
     * @generated
     */
    int CLICK_WATCH_ERROR = 8;

    /**
     * The feature id for the 'Message' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int CLICK_WATCH_ERROR__MESSAGE = 0;

    /**
     * The feature id for the 'Exception' attribute.
     *
     *
     * @generated
     * @ordered
     */
    int CLICK_WATCH_ERROR__EXCEPTION = 1;

    /**
     * The number of structural features of the 'Click Watch Error' class.
     *
     *
     * @generated
     * @ordered
     */
    int CLICK_WATCH_ERROR_FEATURE_COUNT = 2;

    /**
     * The meta object id for the '{@link de.hub.clickwatch.model.BackboneType Backbone Type}' enum.
     *
	 *
     * @see de.hub.clickwatch.model.BackboneType
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getBackboneType()
     * @generated
     */
	int BACKBONE_TYPE = 9;

	/**
     * The meta object id for the 'INode Connection' data type.
     *
	 *
     * @see de.hub.clickwatch.connection.INodeConnection
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getINodeConnection()
     * @generated
     */
	int INODE_CONNECTION = 10;

	/**
     * The meta object id for the 'INode Connection Provider' data type.
     *
     *
     * @see de.hub.clickwatch.connection.INodeConnectionProvider
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getINodeConnectionProvider()
     * @generated
     */
    int INODE_CONNECTION_PROVIDER = 11;

    /**
     * The meta object id for the 'IHandler Event Listener' data type.
     *
     *
     * @see de.hub.clickwatch.connection.adapter.IHandlerEventListener
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getIHandlerEventListener()
     * @generated
     */
    int IHANDLER_EVENT_LISTENER = 12;

    /**
     * The meta object id for the 'Exception' data type.
     *
     *
     * @see java.lang.Exception
     * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getException()
     * @generated
     */
    int EXCEPTION = 13;

    /**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.Node Node}'.
     *
	 *
     * @return the meta object for class 'Node'.
     * @see de.hub.clickwatch.model.Node
     * @generated
     */
	EClass getNode();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#getINetAddress INet Address}'.
     *
	 *
     * @return the meta object for the attribute 'INet Address'.
     * @see de.hub.clickwatch.model.Node#getINetAddress()
     * @see #getNode()
     * @generated
     */
	EAttribute getNode_INetAddress();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#getPort Port}'.
     *
	 *
     * @return the meta object for the attribute 'Port'.
     * @see de.hub.clickwatch.model.Node#getPort()
     * @see #getNode()
     * @generated
     */
	EAttribute getNode_Port();

	/**
     * Returns the meta object for the containment reference list '{@link de.hub.clickwatch.model.Node#getElements Elements}'.
     *
	 *
     * @return the meta object for the containment reference list 'Elements'.
     * @see de.hub.clickwatch.model.Node#getElements()
     * @see #getNode()
     * @generated
     */
	EReference getNode_Elements();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#getConnection Connection}'.
     *
	 *
     * @return the meta object for the attribute 'Connection'.
     * @see de.hub.clickwatch.model.Node#getConnection()
     * @see #getNode()
     * @generated
     */
	EAttribute getNode_Connection();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#isRetrieving Retrieving}'.
     *
     *
     * @return the meta object for the attribute 'Retrieving'.
     * @see de.hub.clickwatch.model.Node#isRetrieving()
     * @see #getNode()
     * @generated
     */
    EAttribute getNode_Retrieving();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#isListening Listening}'.
     *
     *
     * @return the meta object for the attribute 'Listening'.
     * @see de.hub.clickwatch.model.Node#isListening()
     * @see #getNode()
     * @generated
     */
    EAttribute getNode_Listening();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#isRecording Recording}'.
     *
     *
     * @return the meta object for the attribute 'Recording'.
     * @see de.hub.clickwatch.model.Node#isRecording()
     * @see #getNode()
     * @generated
     */
    EAttribute getNode_Recording();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Node#getBackbone Backbone}'.
     *
	 *
     * @return the meta object for the attribute 'Backbone'.
     * @see de.hub.clickwatch.model.Node#getBackbone()
     * @see #getNode()
     * @generated
     */
	EAttribute getNode_Backbone();

	/**
     * Returns the meta object for the containment reference list '{@link de.hub.clickwatch.model.Node#getErrors Errors}'.
     *
     *
     * @return the meta object for the containment reference list 'Errors'.
     * @see de.hub.clickwatch.model.Node#getErrors()
     * @see #getNode()
     * @generated
     */
    EReference getNode_Errors();

    /**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.Element Element}'.
     *
	 *
     * @return the meta object for class 'Element'.
     * @see de.hub.clickwatch.model.Element
     * @generated
     */
	EClass getElement();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Element#getName Name}'.
     *
	 *
     * @return the meta object for the attribute 'Name'.
     * @see de.hub.clickwatch.model.Element#getName()
     * @see #getElement()
     * @generated
     */
	EAttribute getElement_Name();

	/**
     * Returns the meta object for the containment reference list '{@link de.hub.clickwatch.model.Element#getHandlers Handlers}'.
     *
	 *
     * @return the meta object for the containment reference list 'Handlers'.
     * @see de.hub.clickwatch.model.Element#getHandlers()
     * @see #getElement()
     * @generated
     */
	EReference getElement_Handlers();

	/**
     * Returns the meta object for the containment reference list '{@link de.hub.clickwatch.model.Element#getChildren Children}'.
     *
	 *
     * @return the meta object for the containment reference list 'Children'.
     * @see de.hub.clickwatch.model.Element#getChildren()
     * @see #getElement()
     * @generated
     */
	EReference getElement_Children();

	/**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.Handler Handler}'.
     *
	 *
     * @return the meta object for class 'Handler'.
     * @see de.hub.clickwatch.model.Handler
     * @generated
     */
	EClass getHandler();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Handler#getName Name}'.
     *
	 *
     * @return the meta object for the attribute 'Name'.
     * @see de.hub.clickwatch.model.Handler#getName()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_Name();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Handler#isCanRead Can Read}'.
     *
	 *
     * @return the meta object for the attribute 'Can Read'.
     * @see de.hub.clickwatch.model.Handler#isCanRead()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_CanRead();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Handler#isCanWrite Can Write}'.
     *
	 *
     * @return the meta object for the attribute 'Can Write'.
     * @see de.hub.clickwatch.model.Handler#isCanWrite()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_CanWrite();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Handler#isChanged Changed}'.
     *
	 *
     * @return the meta object for the attribute 'Changed'.
     * @see de.hub.clickwatch.model.Handler#isChanged()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_Changed();

	/**
     * Returns the meta object for the attribute list '{@link de.hub.clickwatch.model.Handler#getMixed Mixed}'.
     *
	 *
     * @return the meta object for the attribute list 'Mixed'.
     * @see de.hub.clickwatch.model.Handler#getMixed()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_Mixed();

	/**
     * Returns the meta object for the attribute list '{@link de.hub.clickwatch.model.Handler#getAny Any}'.
     *
	 *
     * @return the meta object for the attribute list 'Any'.
     * @see de.hub.clickwatch.model.Handler#getAny()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_Any();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Handler#getValue Value}'.
     *
	 *
     * @return the meta object for the attribute 'Value'.
     * @see de.hub.clickwatch.model.Handler#getValue()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_Value();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Handler#getTimestamp Timestamp}'.
     *
	 *
     * @return the meta object for the attribute 'Timestamp'.
     * @see de.hub.clickwatch.model.Handler#getTimestamp()
     * @see #getHandler()
     * @generated
     */
	EAttribute getHandler_Timestamp();

	/**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.Network Network}'.
     *
	 *
     * @return the meta object for class 'Network'.
     * @see de.hub.clickwatch.model.Network
     * @generated
     */
	EClass getNetwork();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Network#getName Name}'.
     *
	 *
     * @return the meta object for the attribute 'Name'.
     * @see de.hub.clickwatch.model.Network#getName()
     * @see #getNetwork()
     * @generated
     */
	EAttribute getNetwork_Name();

	/**
     * Returns the meta object for the containment reference list '{@link de.hub.clickwatch.model.Network#getNodes Nodes}'.
     *
	 *
     * @return the meta object for the containment reference list 'Nodes'.
     * @see de.hub.clickwatch.model.Network#getNodes()
     * @see #getNetwork()
     * @generated
     */
	EReference getNetwork_Nodes();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Network#getElementFilter Element Filter}'.
     *
	 *
     * @return the meta object for the attribute 'Element Filter'.
     * @see de.hub.clickwatch.model.Network#getElementFilter()
     * @see #getNetwork()
     * @generated
     */
	EAttribute getNetwork_ElementFilter();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Network#getHandlerFilter Handler Filter}'.
     *
	 *
     * @return the meta object for the attribute 'Handler Filter'.
     * @see de.hub.clickwatch.model.Network#getHandlerFilter()
     * @see #getNetwork()
     * @generated
     */
	EAttribute getNetwork_HandlerFilter();

	/**
     * Returns the meta object for the containment reference list '{@link de.hub.clickwatch.model.Network#getSubnetworks Subnetworks}'.
     *
	 *
     * @return the meta object for the containment reference list 'Subnetworks'.
     * @see de.hub.clickwatch.model.Network#getSubnetworks()
     * @see #getNetwork()
     * @generated
     */
	EReference getNetwork_Subnetworks();

	/**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Network#getTimestamp Timestamp}'.
     *
     *
     * @return the meta object for the attribute 'Timestamp'.
     * @see de.hub.clickwatch.model.Network#getTimestamp()
     * @see #getNetwork()
     * @generated
     */
    EAttribute getNetwork_Timestamp();

    /**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.StatisticsContainer Statistics Container}'.
     *
     *
     * @return the meta object for class 'Statistics Container'.
     * @see de.hub.clickwatch.model.StatisticsContainer
     * @generated
     */
    EClass getStatisticsContainer();

    /**
     * Returns the meta object for the map '{@link de.hub.clickwatch.model.StatisticsContainer#getStatistics Statistics}'.
     *
     *
     * @return the meta object for the map 'Statistics'.
     * @see de.hub.clickwatch.model.StatisticsContainer#getStatistics()
     * @see #getStatisticsContainer()
     * @generated
     */
    EReference getStatisticsContainer_Statistics();

    /**
     * Returns the meta object for class '{@link java.util.Map.Entry EString To Statistic Map}'.
     *
     *
     * @return the meta object for class 'EString To Statistic Map'.
     * @see java.util.Map.Entry
     * @model keyDataType="org.eclipse.emf.ecore.EString"
     *        valueType="de.hub.clickwatch.model.Statistic" valueContainment="true"
     * @generated
     */
    EClass getEStringToStatisticMap();

    /**
     * Returns the meta object for the attribute '{@link java.util.Map.Entry Key}'.
     *
     *
     * @return the meta object for the attribute 'Key'.
     * @see java.util.Map.Entry
     * @see #getEStringToStatisticMap()
     * @generated
     */
    EAttribute getEStringToStatisticMap_Key();

    /**
     * Returns the meta object for the containment reference '{@link java.util.Map.Entry Value}'.
     *
     *
     * @return the meta object for the containment reference 'Value'.
     * @see java.util.Map.Entry
     * @see #getEStringToStatisticMap()
     * @generated
     */
    EReference getEStringToStatisticMap_Value();

    /**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.Statistic Statistic}'.
     *
     *
     * @return the meta object for class 'Statistic'.
     * @see de.hub.clickwatch.model.Statistic
     * @generated
     */
    EClass getStatistic();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Statistic#getSum Sum}'.
     *
     *
     * @return the meta object for the attribute 'Sum'.
     * @see de.hub.clickwatch.model.Statistic#getSum()
     * @see #getStatistic()
     * @generated
     */
    EAttribute getStatistic_Sum();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Statistic#getCount Count}'.
     *
     *
     * @return the meta object for the attribute 'Count'.
     * @see de.hub.clickwatch.model.Statistic#getCount()
     * @see #getStatistic()
     * @generated
     */
    EAttribute getStatistic_Count();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Statistic#getMean Mean}'.
     *
     *
     * @return the meta object for the attribute 'Mean'.
     * @see de.hub.clickwatch.model.Statistic#getMean()
     * @see #getStatistic()
     * @generated
     */
    EAttribute getStatistic_Mean();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Statistic#getSmallest Smallest}'.
     *
     *
     * @return the meta object for the attribute 'Smallest'.
     * @see de.hub.clickwatch.model.Statistic#getSmallest()
     * @see #getStatistic()
     * @generated
     */
    EAttribute getStatistic_Smallest();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Statistic#getLargest Largest}'.
     *
     *
     * @return the meta object for the attribute 'Largest'.
     * @see de.hub.clickwatch.model.Statistic#getLargest()
     * @see #getStatistic()
     * @generated
     */
    EAttribute getStatistic_Largest();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.Statistic#getLatest Latest}'.
     *
     *
     * @return the meta object for the attribute 'Latest'.
     * @see de.hub.clickwatch.model.Statistic#getLatest()
     * @see #getStatistic()
     * @generated
     */
    EAttribute getStatistic_Latest();

    /**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.ClickWatchError Click Watch Error}'.
     *
     *
     * @return the meta object for class 'Click Watch Error'.
     * @see de.hub.clickwatch.model.ClickWatchError
     * @generated
     */
    EClass getClickWatchError();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.ClickWatchError#getMessage Message}'.
     *
     *
     * @return the meta object for the attribute 'Message'.
     * @see de.hub.clickwatch.model.ClickWatchError#getMessage()
     * @see #getClickWatchError()
     * @generated
     */
    EAttribute getClickWatchError_Message();

    /**
     * Returns the meta object for the attribute '{@link de.hub.clickwatch.model.ClickWatchError#getException Exception}'.
     *
     *
     * @return the meta object for the attribute 'Exception'.
     * @see de.hub.clickwatch.model.ClickWatchError#getException()
     * @see #getClickWatchError()
     * @generated
     */
    EAttribute getClickWatchError_Exception();

    /**
     * Returns the meta object for class '{@link de.hub.clickwatch.model.ModelElementWithStatistics Model Element With Statistics}'.
     *
     *
     * @return the meta object for class 'Model Element With Statistics'.
     * @see de.hub.clickwatch.model.ModelElementWithStatistics
     * @generated
     */
    EClass getModelElementWithStatistics();

    /**
     * Returns the meta object for the containment reference '{@link de.hub.clickwatch.model.ModelElementWithStatistics#getStatistics Statistics}'.
     *
     *
     * @return the meta object for the containment reference 'Statistics'.
     * @see de.hub.clickwatch.model.ModelElementWithStatistics#getStatistics()
     * @see #getModelElementWithStatistics()
     * @generated
     */
    EReference getModelElementWithStatistics_Statistics();

    /**
     * Returns the meta object for enum '{@link de.hub.clickwatch.model.BackboneType Backbone Type}'.
     *
	 *
     * @return the meta object for enum 'Backbone Type'.
     * @see de.hub.clickwatch.model.BackboneType
     * @generated
     */
	EEnum getBackboneType();

	/**
     * Returns the meta object for data type '{@link de.hub.clickwatch.connection.INodeConnection INode Connection}'.
     *
	 *
     * @return the meta object for data type 'INode Connection'.
     * @see de.hub.clickwatch.connection.INodeConnection
     * @model instanceClass="de.hub.clickwatch.connection.INodeConnection" serializeable="false"
     * @generated
     */
	EDataType getINodeConnection();

	/**
     * Returns the meta object for data type '{@link de.hub.clickwatch.connection.INodeConnectionProvider INode Connection Provider}'.
     *
     *
     * @return the meta object for data type 'INode Connection Provider'.
     * @see de.hub.clickwatch.connection.INodeConnectionProvider
     * @model instanceClass="de.hub.clickwatch.connection.INodeConnectionProvider" serializeable="false"
     * @generated
     */
    EDataType getINodeConnectionProvider();

    /**
     * Returns the meta object for data type '{@link de.hub.clickwatch.connection.adapter.IHandlerEventListener IHandler Event Listener}'.
     *
     *
     * @return the meta object for data type 'IHandler Event Listener'.
     * @see de.hub.clickwatch.connection.adapter.IHandlerEventListener
     * @model instanceClass="de.hub.clickwatch.connection.adapter.IHandlerEventListener" serializeable="false"
     * @generated
     */
    EDataType getIHandlerEventListener();

    /**
     * Returns the meta object for data type '{@link java.lang.Exception Exception}'.
     *
     *
     * @return the meta object for data type 'Exception'.
     * @see java.lang.Exception
     * @model instanceClass="java.lang.Exception"
     * @generated
     */
    EDataType getException();

    /**
     * Returns the factory that creates the instances of the model.
     *
	 *
     * @return the factory that creates the instances of the model.
     * @generated
     */
	ClickWatchModelFactory getClickWatchModelFactory();

	/**
     *
	 * Defines literals for the meta objects that represent
	 *

	 *
each class,

	 *
each feature of each class,

	 *
each enum,

	 *
and each data type

	 *

	 *
     * @generated
     */
	interface Literals {
		/**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.NodeImpl Node}' class.
         *
		 *
         * @see de.hub.clickwatch.model.impl.NodeImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getNode()
         * @generated
         */
		EClass NODE = eINSTANCE.getNode();

		/**
         * The meta object literal for the 'INet Address' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NODE__INET_ADDRESS = eINSTANCE.getNode_INetAddress();

		/**
         * The meta object literal for the 'Port' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NODE__PORT = eINSTANCE.getNode_Port();

		/**
         * The meta object literal for the 'Elements' containment reference list feature.
         *
		 *
         * @generated
         */
		EReference NODE__ELEMENTS = eINSTANCE.getNode_Elements();

		/**
         * The meta object literal for the 'Connection' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NODE__CONNECTION = eINSTANCE.getNode_Connection();

		/**
         * The meta object literal for the 'Retrieving' attribute feature.
         *
         *
         * @generated
         */
        EAttribute NODE__RETRIEVING = eINSTANCE.getNode_Retrieving();

        /**
         * The meta object literal for the 'Listening' attribute feature.
         *
         *
         * @generated
         */
        EAttribute NODE__LISTENING = eINSTANCE.getNode_Listening();

        /**
         * The meta object literal for the 'Recording' attribute feature.
         *
         *
         * @generated
         */
        EAttribute NODE__RECORDING = eINSTANCE.getNode_Recording();

        /**
         * The meta object literal for the 'Backbone' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NODE__BACKBONE = eINSTANCE.getNode_Backbone();

		/**
         * The meta object literal for the 'Errors' containment reference list feature.
         *
         *
         * @generated
         */
        EReference NODE__ERRORS = eINSTANCE.getNode_Errors();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.ElementImpl Element}' class.
         *
		 *
         * @see de.hub.clickwatch.model.impl.ElementImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getElement()
         * @generated
         */
		EClass ELEMENT = eINSTANCE.getElement();

		/**
         * The meta object literal for the 'Name' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute ELEMENT__NAME = eINSTANCE.getElement_Name();

		/**
         * The meta object literal for the 'Handlers' containment reference list feature.
         *
		 *
         * @generated
         */
		EReference ELEMENT__HANDLERS = eINSTANCE.getElement_Handlers();

		/**
         * The meta object literal for the 'Children' containment reference list feature.
         *
		 *
         * @generated
         */
		EReference ELEMENT__CHILDREN = eINSTANCE.getElement_Children();

		/**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.HandlerImpl Handler}' class.
         *
		 *
         * @see de.hub.clickwatch.model.impl.HandlerImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getHandler()
         * @generated
         */
		EClass HANDLER = eINSTANCE.getHandler();

		/**
         * The meta object literal for the 'Name' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__NAME = eINSTANCE.getHandler_Name();

		/**
         * The meta object literal for the 'Can Read' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__CAN_READ = eINSTANCE.getHandler_CanRead();

		/**
         * The meta object literal for the 'Can Write' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__CAN_WRITE = eINSTANCE.getHandler_CanWrite();

		/**
         * The meta object literal for the 'Changed' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__CHANGED = eINSTANCE.getHandler_Changed();

		/**
         * The meta object literal for the 'Mixed' attribute list feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__MIXED = eINSTANCE.getHandler_Mixed();

		/**
         * The meta object literal for the 'Any' attribute list feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__ANY = eINSTANCE.getHandler_Any();

		/**
         * The meta object literal for the 'Value' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__VALUE = eINSTANCE.getHandler_Value();

		/**
         * The meta object literal for the 'Timestamp' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute HANDLER__TIMESTAMP = eINSTANCE.getHandler_Timestamp();

		/**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.NetworkImpl Network}' class.
         *
		 *
         * @see de.hub.clickwatch.model.impl.NetworkImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getNetwork()
         * @generated
         */
		EClass NETWORK = eINSTANCE.getNetwork();

		/**
         * The meta object literal for the 'Name' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NETWORK__NAME = eINSTANCE.getNetwork_Name();

		/**
         * The meta object literal for the 'Nodes' containment reference list feature.
         *
		 *
         * @generated
         */
		EReference NETWORK__NODES = eINSTANCE.getNetwork_Nodes();

		/**
         * The meta object literal for the 'Element Filter' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NETWORK__ELEMENT_FILTER = eINSTANCE.getNetwork_ElementFilter();

		/**
         * The meta object literal for the 'Handler Filter' attribute feature.
         *
		 *
         * @generated
         */
		EAttribute NETWORK__HANDLER_FILTER = eINSTANCE.getNetwork_HandlerFilter();

		/**
         * The meta object literal for the 'Subnetworks' containment reference list feature.
         *
		 *
         * @generated
         */
		EReference NETWORK__SUBNETWORKS = eINSTANCE.getNetwork_Subnetworks();

		/**
         * The meta object literal for the 'Timestamp' attribute feature.
         *
         *
         * @generated
         */
        EAttribute NETWORK__TIMESTAMP = eINSTANCE.getNetwork_Timestamp();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.StatisticsContainerImpl Statistics Container}' class.
         *
         *
         * @see de.hub.clickwatch.model.impl.StatisticsContainerImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getStatisticsContainer()
         * @generated
         */
        EClass STATISTICS_CONTAINER = eINSTANCE.getStatisticsContainer();

        /**
         * The meta object literal for the 'Statistics' map feature.
         *
         *
         * @generated
         */
        EReference STATISTICS_CONTAINER__STATISTICS = eINSTANCE.getStatisticsContainer_Statistics();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.EStringToStatisticMapImpl EString To Statistic Map}' class.
         *
         *
         * @see de.hub.clickwatch.model.impl.EStringToStatisticMapImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getEStringToStatisticMap()
         * @generated
         */
        EClass ESTRING_TO_STATISTIC_MAP = eINSTANCE.getEStringToStatisticMap();

        /**
         * The meta object literal for the 'Key' attribute feature.
         *
         *
         * @generated
         */
        EAttribute ESTRING_TO_STATISTIC_MAP__KEY = eINSTANCE.getEStringToStatisticMap_Key();

        /**
         * The meta object literal for the 'Value' containment reference feature.
         *
         *
         * @generated
         */
        EReference ESTRING_TO_STATISTIC_MAP__VALUE = eINSTANCE.getEStringToStatisticMap_Value();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.StatisticImpl Statistic}' class.
         *
         *
         * @see de.hub.clickwatch.model.impl.StatisticImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getStatistic()
         * @generated
         */
        EClass STATISTIC = eINSTANCE.getStatistic();

        /**
         * The meta object literal for the 'Sum' attribute feature.
         *
         *
         * @generated
         */
        EAttribute STATISTIC__SUM = eINSTANCE.getStatistic_Sum();

        /**
         * The meta object literal for the 'Count' attribute feature.
         *
         *
         * @generated
         */
        EAttribute STATISTIC__COUNT = eINSTANCE.getStatistic_Count();

        /**
         * The meta object literal for the 'Mean' attribute feature.
         *
         *
         * @generated
         */
        EAttribute STATISTIC__MEAN = eINSTANCE.getStatistic_Mean();

        /**
         * The meta object literal for the 'Smallest' attribute feature.
         *
         *
         * @generated
         */
        EAttribute STATISTIC__SMALLEST = eINSTANCE.getStatistic_Smallest();

        /**
         * The meta object literal for the 'Largest' attribute feature.
         *
         *
         * @generated
         */
        EAttribute STATISTIC__LARGEST = eINSTANCE.getStatistic_Largest();

        /**
         * The meta object literal for the 'Latest' attribute feature.
         *
         *
         * @generated
         */
        EAttribute STATISTIC__LATEST = eINSTANCE.getStatistic_Latest();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.ClickWatchErrorImpl Click Watch Error}' class.
         *
         *
         * @see de.hub.clickwatch.model.impl.ClickWatchErrorImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getClickWatchError()
         * @generated
         */
        EClass CLICK_WATCH_ERROR = eINSTANCE.getClickWatchError();

        /**
         * The meta object literal for the 'Message' attribute feature.
         *
         *
         * @generated
         */
        EAttribute CLICK_WATCH_ERROR__MESSAGE = eINSTANCE.getClickWatchError_Message();

        /**
         * The meta object literal for the 'Exception' attribute feature.
         *
         *
         * @generated
         */
        EAttribute CLICK_WATCH_ERROR__EXCEPTION = eINSTANCE.getClickWatchError_Exception();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.impl.ModelElementWithStatisticsImpl Model Element With Statistics}' class.
         *
         *
         * @see de.hub.clickwatch.model.impl.ModelElementWithStatisticsImpl
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getModelElementWithStatistics()
         * @generated
         */
        EClass MODEL_ELEMENT_WITH_STATISTICS = eINSTANCE.getModelElementWithStatistics();

        /**
         * The meta object literal for the 'Statistics' containment reference feature.
         *
         *
         * @generated
         */
        EReference MODEL_ELEMENT_WITH_STATISTICS__STATISTICS = eINSTANCE.getModelElementWithStatistics_Statistics();

        /**
         * The meta object literal for the '{@link de.hub.clickwatch.model.BackboneType Backbone Type}' enum.
         *
		 *
         * @see de.hub.clickwatch.model.BackboneType
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getBackboneType()
         * @generated
         */
		EEnum BACKBONE_TYPE = eINSTANCE.getBackboneType();

		/**
         * The meta object literal for the 'INode Connection' data type.
         *
		 *
         * @see de.hub.clickwatch.connection.INodeConnection
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getINodeConnection()
         * @generated
         */
		EDataType INODE_CONNECTION = eINSTANCE.getINodeConnection();

        /**
         * The meta object literal for the 'INode Connection Provider' data type.
         *
         *
         * @see de.hub.clickwatch.connection.INodeConnectionProvider
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getINodeConnectionProvider()
         * @generated
         */
        EDataType INODE_CONNECTION_PROVIDER = eINSTANCE.getINodeConnectionProvider();

        /**
         * The meta object literal for the 'IHandler Event Listener' data type.
         *
         *
         * @see de.hub.clickwatch.connection.adapter.IHandlerEventListener
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getIHandlerEventListener()
         * @generated
         */
        EDataType IHANDLER_EVENT_LISTENER = eINSTANCE.getIHandlerEventListener();

        /**
         * The meta object literal for the 'Exception' data type.
         *
         *
         * @see java.lang.Exception
         * @see de.hub.clickwatch.model.impl.ClickWatchModelPackageImpl#getException()
         * @generated
         */
        EDataType EXCEPTION = eINSTANCE.getException();

	}

} //ModelPackage


text:
from a10sdk.common.A10BaseClass import A10BaseClass

class Instance(A10BaseClass):

    """Class Description::
    HTTP Basic Authentication Relay instance.

    Class instance supports CRUD Operations and inherits from `common/A10BaseClass`.
    This class is the `"PARENT"` class for this module.`

    :param domain_format: {"optional": true, "enum": ["user-principal-name", "down-level-logon-name"], "type": "string", "description": "'user-principal-name': Append domain with User Principal Name format. (e.g. user@domain); 'down-level-logon-name': Append domain with Down-Level Logon Name format. (e.g. domain\\user); ", "format": "enum"}
    :param domain: {"description": "Specify user domain, default is null", "format": "string", "minLength": 1, "optional": true, "maxLength": 64, "type": "string"}
    :param name: {"description": "Specify HTTP basic authentication relay name", "format": "string", "minLength": 1, "optional": false, "maxLength": 63, "type": "string"}
    :param uuid: {"description": "uuid of the object", "format": "string", "minLength": 1, "modify-not-allowed": 1, "optional": true, "maxLength": 64, "type": "string"}
    :param DeviceProxy: The device proxy for REST operations and session handling. Refer to `common/device_proxy.py`

    URL for this object::
    `https://<Hostname|Ip address>//axapi/v3/aam/authentication/relay/http-basic/instance/{name}`.

    """
    def __init__(self, **kwargs):
        self.ERROR_MSG = ""
        self.required = [ "name"]

        self.b_key = "instance"
        self.a10_url="/axapi/v3/aam/authentication/relay/http-basic/instance/{name}"
        self.DeviceProxy = ""
        self.domain_format = ""
        self.domain = ""
        self.name = ""
        self.uuid = ""

        for keys, value in kwargs.items():
            setattr(self,keys, value)


text:
Gomoku app written by Tristan de Nijs
Completed 4/4/2017

An Android application to play the game Gomoku with up to 2 players with various board sizes!