text:
// BSD License (http://www.galagosearch.org/license)
package org.lemurproject.galago.contrib.retrieval.traversal;

import org.lemurproject.galago.core.index.stats.FieldStatistics;
import org.lemurproject.galago.core.index.stats.NodeStatistics;
import org.lemurproject.galago.core.retrieval.Retrieval;
import org.lemurproject.galago.core.retrieval.ann.ImplementsOperator;
import org.lemurproject.galago.core.retrieval.query.Node;
import org.lemurproject.galago.core.retrieval.query.NodeParameters;
import org.lemurproject.galago.core.retrieval.traversal.Traversal;
import org.lemurproject.galago.core.util.TextPartAssigner;
import org.lemurproject.galago.utility.Parameters;

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

/**
 * Transforms a #bm25f operator into a full expansion of the BM25F model. That
 * means:
 *
 * Given `meg ryan war`, the output should be like:
 *
 * #bm25fcomb:K=0.5( #combine:0=0.407:1=0.382:2=0.187 (
 * #feature:bm25f:b=0.1(meg.cast) #feature:bm25f:b=0.2(meg.team)
 * #feature:bm25f:b=0.3(meg.title) ) #idf(meg) #combine:0=0.407:1=0.382:2=0.187
 * ( #feature:bm25f:b=0.1(ryan.cast) #feature:bm25f:b=0.2(ryan.team)
 * #feature:bm25f:b=0.3(ryan.title) ) #idf(ryan)
 * #combine:0=0.407:1=0.382:2=0.187 ( #feature:bm25f:b=0.1(war.cast)
 * #feature:bm25f:b=0.2(war.team) #feature:bm25f:b=0.3(war.title) ) #idf(war) )
 *
 * Except the weights involved should be tuned and not made up. Weights are:
 *
 * - b_f : A 'b' that is tuned for that field. It is NOT dependent to a query -
 * only to the field. (attached to feature nodes) - W_f : A weight for each
 * field, that is multiplied against every term for that field, making the total
 * term weight. - K : A field/query independent tunable parameter. Used for
 * smoothing term scores.
 *
 *
 * @author irmarc
 */
@ImplementsOperator("bm25f")
public class BM25FTraversal extends Traversal {

  List<String> fieldList;
  Parameters availableFields, weights;
  Retrieval retrieval;

  public BM25FTraversal(Retrieval retrieval) {
    this.retrieval = retrieval;
    Parameters globals = retrieval.getGlobalParameters();
    weights = globals.containsKey("bm25f") ? globals.getMap("bm25f") : Parameters.create();
    fieldList = globals.getAsList("fields", String.class);
    try {
      availableFields = retrieval.getAvailableParts();
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }

  public void beforeNode(Node original, Parameters queryParams) throws Exception {
  }

  public Node afterNode(Node original, Parameters queryParams) throws Exception {
    if (original.getOperator().equals("bm25f")) {
      // Create the replacing root
      NodeParameters rootP = new NodeParameters();
      rootP.set("K", weights.get("K", queryParams.get("K", 0.5)));
      Parameters cumulativeWeights = weights.get("weights", Parameters.create());
      Parameters smoothing = weights.get("smoothing", Parameters.create());
      Node newRoot = new Node("bm25fcomb", rootP);
      newRoot.getNodeParameters().set("norm", false);
      // Now generate the field-based subtrees for all extent/count nodes
      // NOTE : THIS IS BROKEN. IT WON'T RECOGNIZE WINDOW COUNT NODES, BUT IT SHOULD
      List<Node> children = original.getInternalNodes();
      queryParams.set("numPotentials", children.size());
      for (int i = 0; i < children.size(); i++) {
        Node termNode = children.get(i);
        double idf = getIDF(termNode);
        Node termCombiner = createFieldsOfTerm(termNode, smoothing, cumulativeWeights, i, weights.get("K", 0.5),
                idf, queryParams);
        newRoot.addChild(termCombiner);
        newRoot.getNodeParameters().set("idf" + i, idf);
      }
      return newRoot;
    } else {
      return original;
    }
  }

  private double getIDF(Node termNode) throws Exception {
    // get the global document count:
    FieldStatistics cs = retrieval.getCollectionStatistics("#lengths:part=lengths()");
    double documentCount = cs.documentCount;

    // get the number of documents this term occurs in:
    termNode.getNodeParameters().set("queryType", "count");
    termNode = retrieval.transformQuery(termNode, Parameters.create());
    NodeStatistics ns = retrieval.getNodeStatistics(termNode.toString());
    long df = ns.nodeDocumentCount;

    // compute idf and return
    return Math.log(documentCount / (df + 0.5));
  }

  private Node createFieldsOfTerm(Node termNode, Parameters smoothingWeights,
          Parameters cumulativeWeights, int pos, double K, double idf, Parameters queryParams) throws Exception {
    String term = termNode.getDefaultParameter();

    // Use a straight weighting - no weight normalization
    Node combiner = new Node("combine", new ArrayList<Node>());
    combiner.getNodeParameters().set("norm", false);

    for (String field : fieldList) {
      // Actual count node
      NodeParameters np = new NodeParameters();
      np.set("default", term);
      Node fieldTermNode = new Node("extents", np);
      fieldTermNode = TextPartAssigner.assignFieldPart(fieldTermNode, availableFields, field);

      // Now wrap it in the scorer
      np = new NodeParameters();
      np.set("b", smoothingWeights.get(field, queryParams.get("smoothing_" + field, weights.get("smoothing_default", 0.5))));
      np.set("lengths", field);
      np.set("pIdx", pos);
      np.set("K", K);
      np.set("idf", idf);
      np.set("w", cumulativeWeights.get(field, queryParams.get("weight_" + field, weights.get("weight_default", 0.5))));
      Node fieldScoreNode = new Node("bm25field", np);
      fieldScoreNode.addChild(fieldTermNode);
      combiner.getNodeParameters().set(Integer.toString(combiner.getInternalNodes().size()),
              cumulativeWeights.get(field, queryParams.get("weight_" + field, weights.get("weight_default", 0.5))));
      combiner.addChild(fieldScoreNode);
    }

    return combiner;
  }
}


text:
import React from 'react';
import Footer from '../../src/Footer';

class PageFooter extends React.Component {
  render() {
    let links = (

          GitHub

    );
    let moreLinks = Code licensed under MIT;

    return (

Join the Discussion

          We have a Gitter chat room set up where you can talk directly with us. Come in and discuss new features, future goals, general problems or questions, or anything else you can think of.

    );
  }
}

export default PageFooter;

redpajama_set_name: RedPajamaGithub


text:
/**
* CRUD messages
*/

function created (model) {
  model = model || 'Content';
  return model + ' was successfully created.';
}

function deleted (model) {
  model = model || 'Content';
  return model + ' was successfully deleted.';
}

function read (model) {
  model = model || 'Content';
  return model + ' was successfully read.';
}

function updated (model) {
  model = model || 'Content';
  return model + ' was successfully updated.';
}

exports.crud = {

  // Model-level CRUD messages

  message: {
    created: function (name) {
      name = name ? ', ' + name : '';
      return 'Thank you' + name + '! Your message has been sent.';
    },
  },

  // Unbound CRUD messages

  created: created(),
  deleted: deleted(),
  read: read(),
  updated: updated()
};

/**
 * Validation messages
 */

function email (field) {
  field = field || 'Field';
  return field + ' must be a valid email address.';
}

function required (field) {
  field = field || 'Field';
  return field + ' cannot be empty.';
}

exports.validation = {

  // Model-level validation messages

  message: {
    body: {
      required: required('Comments')
    },
    email: {
      email: email('Email')
    }
  },

  // Field-level validation messages

  gRecaptchaResponse: {
    required: 'Please confirm that you are not a robot.',
    unknown: 'I\'m sorry, there was an error related to the reCAPTCHA field. Please try again.'
  },

  // Unbound validation messages

  required: required(),
  email: email()
};


text:
namespace ofp {

// GoogleTest printer uses an ostream, but we support llvm::raw_ostream.
inline void PrintTo(const ByteRange &value, std::ostream *os) {
  *os << detail::ToString(value);
}

inline void PrintTo(const ByteList &value, std::ostream *os) {
  *os << detail::ToString(value);
}

inline void PrintTo(const OXMRange &value, std::ostream *os) {
  *os << detail::ToString(value);
}

}  // namespace ofp

inline std::string hexclean(const char *data) {
  std::string s = ofp::HexToRawData(data);
  return ofp::RawDataToHex(s.data(), s.size());
}

#define EXPECT_HEX(hexstr, data, length)                   \
  {                                                        \
    auto hex_tmp__ = hexclean(hexstr);                     \
    EXPECT_EQ(hex_tmp__, ofp::RawDataToHex(data, length)); \
  }

#define EXPECT_ASCII(ascii_str, data, length)    \
  {                                              \
    std::string tmp__{ascii_str};                \
    EXPECT_EQ(tmp__, std::string(data, length)); \
  }

#endif  // OFP_UNITTEST_H_


text:
package edu.mit.spacenet.scenario;

import java.text.DecimalFormat;

import edu.mit.spacenet.domain.element.I_Element;
import edu.mit.spacenet.domain.element.PartApplication;
import edu.mit.spacenet.domain.resource.Demand;

/**
 * This class represents the repair of an item during simulation.
 *
 * @author Paul Grogan
 */
public class RepairItem implements Comparable<RepairItem> {
	private Demand demand;
	private I_Element element;

	/**
	 * The constructor takes the demand that was eliminated by repair, and the
	 * element that received the repair.
	 *
	 * @param demand the demand that was eliminated
	 * @param element the element receiving repair
	 */
	public RepairItem(Demand demand, I_Element element) {
		this.demand = demand;
		this.element = element;
	}

	/**
	 * Gets the demand eliminated by repair.
	 *
	 * @return the demand
	 */
	public Demand getDemand() {
		return demand;
	}

	/**
	 * Gets the element repaired.
	 *
	 * @return the repaired element
	 */
	public I_Element getElement() {
		return element;
	}

	/**
	 * Gets the unit mean repair time of the repair.
	 *
	 * @return the unit mean repair time (hours per unit)
	 */
	public double getUnitMeanRepairTime() {
		for(PartApplication application : element.getParts()) {
			if(application.getPart().equals(demand.getResource())) {
				return application.getMeanTimeToRepair();
			}
		}
		return Double.MAX_VALUE;
	}

	/**
	 * Gets the mean repair time of the repair.
	 *
	 * @return the repair time (hours)
	 */
	public double getMeanRepairTime() {
		return getUnitMeanRepairTime()*demand.getAmount();
	}

	/**
	 * Gets the unit amount of mass require for repair.
	 *
	 * @return the amount of additional mass (kilograms per unit)
	 */
	public double getUnitMassToRepair() {
		for(PartApplication application : element.getParts()) {
			if(application.getPart().equals(demand.getResource())) {
				return application.getMassToRepair();
			}
		}
		return 0;
	}

	/**
	 * Gets the amount of mass required to perform the repair.
	 *
	 * @return the amount of mass (kilograms)
	 */
	public double getMassToRepair() {
		return getUnitMassToRepair()*demand.getAmount();
	}

	/**
	 * Gets the value of the repair.
	 *
	 * @return the repair value (hours used per kilogram saved)
	 */
	public double getRepairValue() {
		return getUnitMeanRepairTime()/(demand.getResource().getUnitMass() - getUnitMassToRepair());
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		DecimalFormat format = new DecimalFormat("0.000");
		return demand + " (" + format.format(getMassToRepair()) + " kg, " + format.format(getMeanRepairTime()) + " hr)";
	}

	/* (non-Javadoc)
	 * @see java.lang.Comparable#compareTo(java.lang.Object)
	 */
	public int compareTo(RepairItem repairItem) {
		return new Double(getRepairValue()).compareTo(repairItem.getRepairValue());
	}
}


text:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="parent-module-suite" parent-module="test.guice.GuiceParentModule">
  <test name="Guice">
    <classes>
      <class name="test.guice.GuiceParentModuleTest" />
    </classes>
  </test>
</suite>


text:
SYNONYM

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

#### Published in
Rumphia 2:128. 1843

#### Original name
null

### Remarks
null


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Fertilisphaera Descals

### Remarks
null


text:
package pump.uno.service.impl

import pump.uno.service.LoginServiceComponent
import pump.util.Loggable
import spray.client.pipelining._
import spray.http.HttpHeaders.`Set-Cookie`
import spray.http.{FormData, HttpCookie, HttpRequest, HttpResponse}

import scala.concurrent.Future

trait SprayLoginServiceComponent extends LoginServiceComponent with SprayServiceComponent with Loggable {

  override val loginService = new SprayLoginService

  class SprayLoginService extends LoginService {

    def login(): Future[HttpCookie] = {
      log.info("login...")
      val params = FormData(Seq(
        "login_username" -> settings.username,
        "login_password" -> settings.password,
        "login" -> "%C2%F5%EE%E4"
      ))

      val extractCookie: HttpResponse => HttpCookie =
        it => it.headers.collect { case `Set-Cookie`(hc) => hc}.head

      val pipeline: HttpRequest => Future[HttpCookie] =
        sendReceive ~> extractCookie

      pipeline(Post(settings.login, params))
    }
  }

}


text:
using System;
using CavemanTools.Infrastructure;
using DomainBus;
using DomainBus.Audit;
using DomainBus.Processing;
using DomainBus.Processing.Internals;
using DomainBus.Repositories;
using FluentAssertions;
using NSubstitute;
using NSubstitute.ExceptionExtensions;
using Xunit;

namespace Tests.Processing
{
    public class HandlerTypeInvokerTests
    {
        private HandlerTypeInvoker _sut;
        private IContainerScope _di;
        private IFailedMessagesQueue _err;
        private MyHandler _handler;

        public HandlerTypeInvokerTests()
        {
            _di = Substitute.For<IContainerScope>();
            _err = Substitute.For<IFailedMessagesQueue>();
            _di.BeginLifetimeScope().Returns(_di);
            _handler=new MyHandler();
            _di.Resolve(typeof (MyHandler)).Returns(_handler);
            _sut =new HandlerTypeInvoker(typeof(MyHandler),_di,new BusAuditor(NullStorage.Instance), _err);
        }

       public class MyHandler
        {
            public bool Handled;

           public void Handle(MyEvent ev)
           {
               Handled = true;
           }

           public void Execute(MyCommand ev)
            {
                Handled = true;
            }

           public void Handle(ThrowEvent ev)
           {
               throw new Exception();
           }
        }

        public class ThrowEvent:AbstractEvent
        {

        }

        [Fact]
        public void normal_usage()
        {
            _sut.HandlerType.Should().Be<MyHandler>();
            _handler.Handled.Should().BeFalse();
            _sut.Handle(new MyEvent(), "");
            _handler.Handled.Should().BeTrue();

            _handler.Handled = false;
            _sut.Handle(new MyCommand(), "");
            _handler.Handled.Should().BeTrue();
        }

        [Fact]
        public void when_type_doesnt_exist_in_container_it_throws()
        {
            _di.Resolve(typeof (MyHandler)).Throws(new Exception());
            _sut.Invoking(d=>d.Handle(new MyEvent(), "")).ShouldThrow<DiContainerException>();
        }

        [Fact]
        public void when_handling_fails_it_gets_sent_to_err_queue()
        {
            var msg = new ThrowEvent();
            _sut.Handle(msg,"");
            _err.Received(1).MessageHandlingFailed(msg,Arg.Any<HandledMessageException>());
        }
    }
}


text:
<!--
Copyright 2016 Goldman Sachs.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

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

Unless required by applicable law or agreed to in writing,
software distributed under 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.
-->
<FlatFileParserConfig
        delimiter="|"
        inflatedObject="com.gs.fw.para.domain.qaje.position.implementation.VopogidAwutaVenogOviJulilezaHabu"
        columns="20"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="../../xsd/parserconfig.xsd">
	<Header required="true" identifier="NASAVU:" simpleFormat="NASAVU:[hojakinipo]*FUZASINADU:[hojakinipo][yyyy/WE/dd]"/>
	<Trailer required="true" identifier="KABANAS:" simpleFormat="KABANAS:[hojakinipo][count]*"/>

    <Mapping attribute="hehaqarAfi" position="1" nullable="false"/>
    <Mapping attribute="qacahatoYibEsi" position="2" nullable="false"/>
    <Mapping attribute="qabufomatEnoja" position="3" nullable="false"/>
    <Mapping attribute="puzacimOha" position="4" nullable="false"/>
    <Mapping attribute="pirozaxUmek" position="7" nullable="false" />
    <Mapping attribute="nosujabiTesi" position="8" nullable="false"/>
    <Mapping attribute="nejapulageDavo" position="9" nullable="false"/>
    <Mapping attribute="cayuteraRujowog" position="10" nullable="true"/>
    <Mapping attribute="pohOkejode" position="11" nullable="true"/>
    <Mapping attribute="kiwIzam" position="12" nullable="true"/>
    <Mapping attribute="moCeze" position="13" nullable="true"/>
    <Mapping attribute="dinimEyOziz" position="14" nullable="false"/>
    <Mapping attribute="wutuhagiDelataJale" position="15" nullable="true"/>
    <Mapping attribute="qazebaguPegi" position="16" nullable="false"/>
    <Mapping attribute="vawIdah" position="17" nullable="false"/>
    <Mapping attribute="xakude" position="18" nullable="true"/>
    <Mapping attribute="dogujAbus" position="19" nullable="true"/>
    <Mapping attribute="wahaluweJosey" position="20" nullable="true"/>

    <MapWithKey method="jiyApirumAguxebi" key="suxaVinatez" position="5" keyFactory="com.gs.fw.para.domain.qeyubaxi.KaxigoceNuvolAxanaxunib"/>
    <MapWithKey method="jiyApirumAguxebi" key="ziretoyowoXuXodowisaLawekateri" position="6" keyFactory="com.gs.fw.para.domain.qeyubaxi.KaxigoceNuvolAxanaxunib"/>

</FlatFileParserConfig>


text:
#include <pangolin/python/pyinterpreter.h>
#include <pangolin/utils/file_utils.h>
#include <pangolin/var/varextra.h>
#include <pangolin/factory/factory_registry.h>

#include <pybind11/embed.h>
namespace py = pybind11;

#include "pypangolin/pypangoio.h"

namespace pangolin
{

void  PyInterpreter::NewVarCallback(const pangolin::VarState::Event& e)
{
    if(e.action == VarState::Event::Action::Added) {
        const std::string name = e.var->Meta().full_name;
        const size_t dot = name.find_first_of('.');
        if(dot != std::string::npos) {
            const std::string base_prefix = name.substr(0,dot);
            if( base_prefixes.find(base_prefix) == base_prefixes.end() ) {
                base_prefixes.insert(base_prefix);
                std::string cmd =
                    base_prefix + std::string(" = pypangolin.Var('") +
                    base_prefix + std::string("')\n");
                PyRun_SimpleString(cmd.c_str());
            }
        }
    }
}

PyInterpreter::PyInterpreter()
{
    using namespace py_pangolin;
    auto pypangolin = py::module_::import("pypangolin");

    auto sys = py::module_::import("sys");
    if(sys) {
        // TODO: What is the lifetime of PyPangoIO?
        PyPangoIO* wrap_stdout = new PyPangoIO(line_queue, ConsoleLineTypeStdout);
        PyPangoIO* wrap_stderr = new PyPangoIO(line_queue, ConsoleLineTypeStderr);
        sys.add_object("stdout", py::cast(wrap_stdout), true);
        sys.add_object("stderr", py::cast(wrap_stderr), true);
     } else {
         pango_print_error("Couldn't import module sys.\n");
     }

     // Attempt to setup readline completion
    py::exec(
         "import pypangolin\n"
         "try:\n"
         "   import readline\n"
         "except ImportError:\n"
         "   import pyreadline as readline\n"
         "\n"
         "import rlcompleter\n"
         "pypangolin.completer = rlcompleter.Completer()\n"
     );
     CheckPrintClearError();

     // Get reference to rlcompleter.Completer() for tab-completion
     pycompleter = pypangolin.attr("completer");
     pycomplete  = pycompleter.attr("complete");

     // Register for notifications on var additions
     var_added_connection = VarState::I().RegisterForVarEvents(
         std::bind(&PyInterpreter::NewVarCallback,this,std::placeholders::_1),
         true
     );

     CheckPrintClearError();

     // TODO: For some reason the completion will crash when the command contains '.'
     // unless we have executed anything that returns a value...
     // We probably have a PyRef issue, maybe?
     py::eval<py::eval_single_statement>("import sys");
     py::eval<py::eval_single_statement>("sys.version");
}

PyInterpreter::~PyInterpreter()
{
}

std::string PyInterpreter::ToString(const py::object& py)
{
    auto pystr = py::repr(py);
    return std::string(PyUnicode_AsUTF8(pystr.ptr()));
}

void PyInterpreter::CheckPrintClearError()
{
    if(PyErr_Occurred()) {
        PyErr_Print();
        PyErr_Clear();
    }
}

py::object PyInterpreter::EvalExec(const std::string& cmd)
{
    py::object ret = py::none();

    if(!cmd.empty()) {
        try {
            ret = py::eval(cmd);
        }  catch (const pybind11::error_already_set& e) {
            line_queue.push(
                InterpreterLine(e.what(), ConsoleLineTypeStderr)
            );
        }
        CheckPrintClearError();
    }

    return ret;
}

std::vector<std::string> PyInterpreter::Complete(const std::string& cmd, int max_options)
{
    // TODO: When there is exactly 1 completion and it is smaller than our current string, we must invoke again with the prefix removed.

    std::vector<std::string> ret;
    PyErr_Clear();

    if(pycomplete) {
        for(int i=0; i < max_options; ++i) {
            auto args = PyTuple_Pack( 2, PyUnicode_FromString(cmd.c_str()), PyLong_FromSize_t(i) );
            auto result = PyObject_CallObject(pycomplete.ptr(), args);

            if (result && PyUnicode_Check(result)) {
                std::string res_str(PyUnicode_AsUTF8(result));
                ret.push_back( res_str );
                Py_DecRef(args);
                Py_DecRef(result);
            }else{
                Py_DecRef(args);
                Py_DecRef(result);
                break;
            }
        }
    }

    return ret;
}

void PyInterpreter::PushCommand(const std::string& cmd)
{
    if(!cmd.empty()) {
        try {
            py::eval<py::eval_single_statement>(cmd);
        }  catch (const pybind11::error_already_set& e) {
            line_queue.push(
                InterpreterLine(e.what(), ConsoleLineTypeStderr)
            );
        }
    }
}

bool PyInterpreter::PullLine(InterpreterLine& line)
{
    if(line_queue.size()) {
        line = line_queue.front();
        line_queue.pop();
        return true;
    }else{
        return false;
    }
}

PANGOLIN_REGISTER_FACTORY_WITH_STATIC_INITIALIZER(PyInterpreter)
{
    struct PyInterpreterFactory final : public TypedFactoryInterface<InterpreterInterface> {
        std::map<std::string,Precedence> Schemes() const override
        {
            return {{"python",10}};
        }
        const char* Description() const override
        {
            return "Python line interpreter.";
        }
        ParamSet Params() const override
        {
            return {{}};
        }
        std::unique_ptr<InterpreterInterface> Open(const Uri& /*uri*/) override {
            return std::unique_ptr<InterpreterInterface>(new PyInterpreter());
        }
    };

    return FactoryRegistry::I()->RegisterFactory<InterpreterInterface>(std::make_shared<PyInterpreterFactory>());
}

}


text:
#include "CastExpression.h"
#include "../types/Type.h"

#include "ModelBase/src/nodes/TypedList.hpp"
template class Model::TypedList<OOModel::CastExpression>;

namespace OOModel {

DEFINE_COMPOSITE_EMPTY_CONSTRUCTORS(CastExpression)
DEFINE_COMPOSITE_TYPE_REGISTRATION_METHODS(CastExpression)

DEFINE_ATTRIBUTE(CastExpression, castType, Expression, false, false, true)
DEFINE_ATTRIBUTE(CastExpression, expr, Expression, false, false, true)
DEFINE_ATTRIBUTE(CastExpression, cKind, Integer, false, false, true)

std::unique_ptr<Type> CastExpression::type()
{
	auto t = castType()->type();
	t->setValueType(true);
	return t;
}

CastExpression::CastExpression(CastKind castKind)
: Super{nullptr, CastExpression::getMetaData()}
{
	setCastKind(castKind);
}

}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="7fd14c1f-7e31-4cb2-93b2-1467f544fa8e" name="Default" comment="" />
    <ignored path="$PROJECT_DIR$/out/" />
    <ignored path="$PROJECT_DIR$/target/" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FileEditorManager">
    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
      <file leaf-file-name="ExampleCommand.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/ExampleCommand.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="570">
              <caret line="32" column="22" lean-forward="true" selection-start-line="32" selection-start-column="22" selection-end-line="32" selection-end-column="22" />
              <folding>
                <element signature="imports" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="CommandHandler.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandHandler.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="262">
              <caret line="23" column="0" lean-forward="true" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
              <folding>
                <element signature="imports" expanded="true" />
                <element signature="e#2334#2335#0" expanded="true" />
                <element signature="e#2373#2374#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="plugin.yml" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/main/resources/plugin.yml">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="38">
              <caret line="2" column="40" lean-forward="false" selection-start-line="2" selection-start-column="40" selection-end-line="2" selection-end-column="40" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="CommandAPI.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/CommandAPI.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="247">
              <caret line="13" column="63" lean-forward="false" selection-start-line="13" selection-start-column="63" selection-end-line="13" selection-end-column="63" />
              <folding>
                <element signature="imports" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="CommandInfo.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInfo.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="285">
              <caret line="15" column="30" lean-forward="false" selection-start-line="15" selection-start-column="30" selection-end-line="15" selection-end-column="30" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="CommandParser.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandParser.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="209">
              <caret line="23" column="49" lean-forward="true" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" />
              <folding>
                <element signature="imports" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/pom.xml">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="399">
              <caret line="33" column="26" lean-forward="true" selection-start-line="33" selection-start-column="26" selection-end-line="33" selection-end-column="26" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="Enum" />
        <option value="Interface" />
        <option value="Singleton" />
        <option value="Class" />
      </list>
    </option>
  </component>
  <component name="GradleLocalSettings">
    <option name="externalProjectsViewState">
      <projects_view />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialPlugin.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/AbstractCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/DefaultCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandPermission.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/ErrorReason.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandAPI.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/Command.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialListener.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandInfo.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandInterface.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandListener.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandHandler.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/ExampleCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandParser.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/APIUtils/CommandInfo.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/APIUtils/CommandInterface.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/APIUtils/ExampleCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/APIUtils/CommandParser.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/APIUtils/CommandHandler.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/ExampleCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/plugin.yml" />
        <option value="$PROJECT_DIR$/pom.xml" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/ExampleCommand.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/CommandAPI.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandHandler.java" />
        <option value="$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandParser.java" />
      </list>
    </option>
  </component>
  <component name="MavenImportPreferences">
    <option name="importingSettings">
      <MavenImportingSettings>
        <option name="importAutomatically" value="true" />
      </MavenImportingSettings>
    </option>
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="-8" />
    <option name="y" value="-8" />
    <option name="width" value="1932" />
    <option name="height" value="1056" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
      <manualOrder />
      <foldersAlwaysOnTop value="true" />
    </navigator>
    <panes>
      <pane id="Scratches" />
      <pane id="PackagesPane" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="target" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="target" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="classes" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="target" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="classes" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="com" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="fauxseal" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="commandapi" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="main" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="resources" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="main" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="java" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="commandapi" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="PluginTutorial" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="src" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="main" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="java" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="commandapi" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="APIUtils" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scope" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="project.structure.last.edited" value="Modules" />
    <property name="project.structure.proportion" value="0.15" />
    <property name="project.structure.side.proportion" value="0.2" />
    <property name="last_opened_file_path" value="E:/Minecraft_/Bukkit_/Server_1102/plugins" />
    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
  </component>
  <component name="RecentsManager">
    <key name="CopyFile.RECENT_KEYS">
      <recent name="E:\IntelliJ\PluginTutorial\target\classes\com" />
    </key>
    <key name="MoveFile.RECENT_KEYS">
      <recent name="E:\IntelliJ\PluginTutorial\src\main\resources" />
      <recent name="E:\IntelliJ\PluginTutorial\src\main\java" />
      <recent name="E:\IntelliJ\PluginTutorial\target\classes" />
      <recent name="E:\IntelliJ\PluginTutorial\src\main\java\com\fauxseal\commandapi" />
    </key>
  </component>
  <component name="RunManager">
    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
      <module name="" />
      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
      <option name="PROGRAM_PARAMETERS" />
      <predefined_log_file id="idea.log" enabled="true" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidRunConfigurationType" factoryName="Android App">
      <module name="" />
      <option name="DEPLOY" value="true" />
      <option name="ARTIFACT_NAME" value="" />
      <option name="PM_INSTALL_OPTIONS" value="" />
      <option name="ACTIVITY_EXTRA_FLAGS" value="" />
      <option name="MODE" value="default_activity" />
      <option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
      <option name="PREFERRED_AVD" value="" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
      <option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
      <option name="FORCE_STOP_RUNNING_APP" value="true" />
      <option name="DEBUGGER_TYPE" value="Java" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <Java />
      <Profilers>
        <option name="ENABLE_ADVANCED_PROFILING" value="true" />
        <option name="GAPID_ENABLED" value="false" />
        <option name="GAPID_DISABLE_PCS" value="false" />
        <option name="SUPPORT_LIB_ENABLED" value="true" />
        <option name="INSTRUMENTATION_ENABLED" value="true" />
      </Profilers>
      <option name="DEEP_LINK" value="" />
      <option name="ACTIVITY_CLASS" value="" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
      <module name="" />
      <option name="TESTING_TYPE" value="0" />
      <option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="PACKAGE_NAME" value="" />
      <option name="EXTRA_OPTIONS" value="" />
      <option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
      <option name="PREFERRED_AVD" value="" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
      <option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
      <option name="FORCE_STOP_RUNNING_APP" value="true" />
      <option name="DEBUGGER_TYPE" value="Java" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <Java />
      <Profilers>
        <option name="ENABLE_ADVANCED_PROFILING" value="true" />
        <option name="GAPID_ENABLED" value="false" />
        <option name="GAPID_DISABLE_PCS" value="false" />
        <option name="SUPPORT_LIB_ENABLED" value="true" />
        <option name="INSTRUMENTATION_ENABLED" value="true" />
      </Profilers>
      <method />
    </configuration>
    <configuration default="true" type="Applet" factoryName="Applet">
      <option name="HTML_USED" value="false" />
      <option name="WIDTH" value="400" />
      <option name="HEIGHT" value="300" />
      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
      <module />
      <method />
    </configuration>
    <configuration default="true" type="Application" factoryName="Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
      <ExternalSystemSettings>
        <option name="executionName" />
        <option name="externalProjectPath" />
        <option name="externalSystemIdString" value="GRADLE" />
        <option name="scriptParameters" />
        <option name="taskDescriptions">
          <list />
        </option>
        <option name="taskNames">
          <list />
        </option>
        <option name="vmOptions" />
      </ExternalSystemSettings>
      <method />
    </configuration>
    <configuration default="true" type="JUnit" factoryName="JUnit">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="JarApplication" factoryName="JAR Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="Java Scratch" factoryName="Java Scratch">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="SCRATCH_FILE_ID" value="0" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="PluginTutorial" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="KotlinStandaloneScriptRunConfigurationType" factoryName="Kotlin script">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="filePath" />
      <option name="vmParameters" />
      <option name="alternativeJrePath" />
      <option name="programParameters" />
      <option name="passParentEnvs" value="true" />
      <option name="workingDirectory" />
      <option name="isAlternativeJrePathEnabled" value="false" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="Remote" factoryName="Remote">
      <option name="USE_SOCKET_TRANSPORT" value="true" />
      <option name="SERVER_MODE" value="false" />
      <option name="SHMEM_ADDRESS" value="javadebug" />
      <option name="HOST" value="localhost" />
      <option name="PORT" value="5005" />
      <method />
    </configuration>
    <configuration default="true" type="TestNG" factoryName="TestNG">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
  </component>
  <component name="ShelveChangesManager" show_recycled="false">
    <option name="remove_strategy" value="false" />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="7fd14c1f-7e31-4cb2-93b2-1467f544fa8e" name="Default" comment="" />
      <created>1481711758512</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1481711758512</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="-8" width="1932" height="1056" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Nl-Palette" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32875264" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Palette	" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.21346556" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32980973" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="antWorkspaceConfiguration">
    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
    <option name="FILTER_TARGETS" value="false" />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/ExampleCommand.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="171">
          <caret line="9" column="126" lean-forward="false" selection-start-line="9" selection-start-column="126" selection-end-line="9" selection-end-column="126" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandHandler.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="228">
          <caret line="14" column="0" lean-forward="false" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="e#2334#2335#0" expanded="true" />
            <element signature="e#2373#2374#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/CommandAPI.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="209">
          <caret line="13" column="36" lean-forward="false" selection-start-line="13" selection-start-column="36" selection-end-line="13" selection-end-column="36" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInfo.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="285">
          <caret line="15" column="30" lean-forward="false" selection-start-line="15" selection-start-column="30" selection-end-line="15" selection-end-column="30" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandParser.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInterface.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="190">
          <caret line="10" column="52" lean-forward="true" selection-start-line="10" selection-start-column="52" selection-end-line="10" selection-end-column="52" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialPlugin.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/ExampleCommand.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="266">
          <caret line="16" column="0" lean-forward="false" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialListener.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandHandler.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="e#2334#2335#0" expanded="true" />
            <element signature="e#2373#2374#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandParser.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="171">
          <caret line="9" column="0" lean-forward="false" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInfo.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="285">
          <caret line="20" column="38" lean-forward="true" selection-start-line="20" selection-start-column="38" selection-end-line="20" selection-end-column="38" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInterface.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="228">
          <caret line="14" column="54" lean-forward="false" selection-start-line="14" selection-start-column="54" selection-end-line="14" selection-end-column="54" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/AbstractCommand.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/DefaultCommand.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/CommandPermission.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/CommandAPI/ErrorReason.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandParser.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="114">
          <caret line="6" column="26" lean-forward="false" selection-start-line="6" selection-start-column="26" selection-end-line="6" selection-end-column="26" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialPlugin.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/plugintutorial/TutorialListener.java" />
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandListener.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="266">
          <caret line="14" column="0" lean-forward="false" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/command/CommandMap.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="228">
          <caret line="19" column="0" lean-forward="true" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/plugin/PluginManager.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="114">
          <caret line="21" column="32" lean-forward="true" selection-start-line="21" selection-start-column="32" selection-end-line="21" selection-end-column="32" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/command/SimpleCommandMap.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="209">
          <caret line="40" column="44" lean-forward="true" selection-start-line="40" selection-start-column="44" selection-end-line="40" selection-end-column="44" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/plugin/SimplePluginManager.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="304">
          <caret line="66" column="65" lean-forward="false" selection-start-line="66" selection-start-column="65" selection-end-line="66" selection-end-column="65" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/command/CommandExecutor.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="114">
          <caret line="10" column="17" lean-forward="false" selection-start-line="10" selection-start-column="17" selection-end-line="10" selection-end-column="17" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/command/TabCompleter.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="133">
          <caret line="12" column="93" lean-forward="true" selection-start-line="12" selection-start-column="93" selection-end-line="12" selection-end-column="93" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/command/TabExecutor.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="114">
          <caret line="10" column="42" lean-forward="true" selection-start-line="10" selection-start-column="42" selection-end-line="10" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInterface.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="171">
          <caret line="9" column="48" lean-forward="false" selection-start-line="9" selection-start-column="48" selection-end-line="9" selection-end-column="48" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/target/classes/plugin.yml">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="38">
          <caret line="2" column="13" lean-forward="false" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161214.034101-104.jar!/org/bukkit/command/PluginCommand.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="741">
          <caret line="42" column="48" lean-forward="false" selection-start-line="42" selection-start-column="48" selection-end-line="42" selection-end-column="48" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/out/production/CommandAPI/com/fauxseal/commandapi/APIUtils/CommandParser.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="-1020">
          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="e#0#5480#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/resources/log4j2.properties">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/target/classes/com/fauxseal/commandapi/APIUtils/CommandParser.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="-798">
          <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/target/classes/com/fauxseal/commandapi/APIUtils/CommandHandler.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="367">
          <caret line="35" column="40" lean-forward="false" selection-start-line="35" selection-start-column="40" selection-end-line="35" selection-end-column="40" />
          <folding>
            <element signature="e#0#2538#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161217.032904-108.jar!/org/bukkit/command/PluginCommand.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="171">
          <caret line="20" column="35" lean-forward="true" selection-start-line="20" selection-start-column="35" selection-end-line="20" selection-end-column="35" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="jar://$MAVEN_REPOSITORY$/org/spigotmc/spigot-api/1.11-R0.1-SNAPSHOT/spigot-api-1.11-R0.1-20161217.032904-108.jar!/org/bukkit/plugin/SimplePluginManager.class">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="399">
          <caret line="68" column="37" lean-forward="true" selection-start-line="68" selection-start-column="37" selection-end-line="68" selection-end-column="37" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandHandler.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="262">
          <caret line="23" column="0" lean-forward="true" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
          <folding>
            <element signature="imports" expanded="true" />
            <element signature="e#2334#2335#0" expanded="true" />
            <element signature="e#2373#2374#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandParser.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="209">
          <caret line="23" column="49" lean-forward="true" selection-start-line="23" selection-start-column="49" selection-end-line="23" selection-end-column="49" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/resources/plugin.yml">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="38">
          <caret line="2" column="40" lean-forward="false" selection-start-line="2" selection-start-column="40" selection-end-line="2" selection-end-column="40" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/CommandAPI.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="247">
          <caret line="13" column="63" lean-forward="false" selection-start-line="13" selection-start-column="63" selection-end-line="13" selection-end-column="63" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/APIUtils/CommandInfo.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="285">
          <caret line="15" column="30" lean-forward="false" selection-start-line="15" selection-start-column="30" selection-end-line="15" selection-end-column="30" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/main/java/com/fauxseal/commandapi/ExampleCommand.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="570">
          <caret line="32" column="22" lean-forward="true" selection-start-line="32" selection-start-column="22" selection-end-line="32" selection-end-column="22" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/pom.xml">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="399">
          <caret line="33" column="26" lean-forward="true" selection-start-line="33" selection-start-column="26" selection-end-line="33" selection-end-column="26" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
  <component name="masterDetails">
    <states>
      <state key="ArtifactsStructureConfigurable.UI">
        <settings>
          <artifact-editor />
          <last-edited>CommandAPI</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
                <option value="0.5" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="FacetStructureConfigurable.UI">
        <settings>
          <last-edited>No facets are configured</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="GlobalLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="JdkListConfigurable.UI">
        <settings>
          <last-edited>1.8</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ModuleStructureConfigurable.UI">
        <settings>
          <last-edited>CommandAPI</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
                <option value="0.6" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectJDKs.UI">
        <settings>
          <last-edited>1.8</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <last-edited>Maven: com.google.code.gson:gson:2.2.4</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>


text:
<tt>#!/bin/sh
# Emacs like specification -*- Tcl script -*-
# the next line restarts using wish \
exec wish "$0" "$@"

# hello -- example
# Simple Tk script to create a button that prints "Hello, world".
# Click on the button to terminate the program.
#
# The first line below creates the button, and the second line
# asks the packer to shrink-wrap the application's main window
# around the button.

button .hello -text "Hello, world" -command {
    puts stdout "Hello, world"; destroy .
}
pack .hello

$myvar

# Local Variables:
# mode: tcl
# End:
</tt>


text:
require 'jimson/router/map'
require 'forwardable'

module Jimson
  class Router
    extend Forwardable

    def_delegators :@map, :handler_for_method,
                          :root,
                          :namespace,
                          :jimson_methods,
                          :strip_method_namespace

    def initialize(opts = {})
      @map = Map.new(opts)
    end

    def draw(&block)
      @map.instance_eval &block
      self
    end

  end
end


text:
shared_examples 'invalid problem' do
  it 'raises a RenderError' do
    expect { Spirit::Render::Problem.parse(input).render }
      .to raise_error Spirit::Render::RenderError
  end
end


text: MEMEX QPR Winter 2017


text:
<!DOCTYPE HTML>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>Basemap Toggle Dijit</title>
    <link rel="stylesheet" type="text/css" href="http://jsdev.arcgis.com/3.13/esri/css/esri.css">
    <link rel="stylesheet" type="text/css" href="http://jsdev.arcgis.com/3.13/dijit/themes/claro/claro.css">
    <link rel="stylesheet" type="text/css" href="css/BasemapToggle.css">

All options


text:
<?php

namespace Anticom\KennzeichenBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class BundeslandType extends AbstractType
{
        /**
     * @param FormBuilderInterface $builder
     * @param array $options
     */
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add(
                'name',
                'text',
                array(
                    'label' => 'Name',
                    'attr'  => array(
                        'class' => 'form-control'
                    )
                )
            )
            ->add(
                'submit',
                'submit',
                array(
                    'label' => 'speichern',
                    'attr'  => array(
                        'class' => 'btn btn-primary'
                    )
                )
            )
        ;
    }

    /**
     * @param OptionsResolverInterface $resolver
     */
    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Anticom\KennzeichenBundle\Entity\Bundesland'
        ));
    }

    /**
     * @return string
     */
    public function getName()
    {
        return 'anticom_kennzeichenbundle_bundesland';
    }
}


text:
#ifndef TNT_FILAMENT_BACKEND_PRIVATE_DRIVERAPIFORWARD_H
#define TNT_FILAMENT_BACKEND_PRIVATE_DRIVERAPIFORWARD_H

namespace filament::backend {

class CommandStream;

using DriverApi = CommandStream;

} // namespace filament::backend

#endif // TNT_FILAMENT_BACKEND_PRIVATE_DRIVERAPIFORWARD_H


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

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

		<form id="frmUpload" action="" target="frmUploadWorker" method="post" enctype="multipart/form-data" onsubmit="return OnSubmit();">

						Upload a new file in this folder

								<input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file">
								 <input id="btnUpload" type="submit" value="Upload">

		</form>


text:
/*!
\ingroup PkgPolynomialConcepts
\cgalConcept

This `AdaptableBinaryFunction` computes the quotient of the
<I>pseudo division</I> of two polynomials \f$ f\f$ and \f$ g\f$.

Given \f$ f\f$ and \f$ g \neq 0\f$ one can compute quotient \f$ q\f$ and remainder \f$ r\f$
such that \f$ D \cdot f = g \cdot q + r\f$ and \f$ degree(r) < degree(g)\f$,
where \f$ D = leading\_coefficient(g)^{max(0, degree(f)-degree(g)+1)}\f$

This functor computes \f$ q\f$.

\cgalRefines `AdaptableBinaryFunction`
\cgalRefines `CopyConstructible`
\cgalRefines `DefaultConstructible`

\sa `Polynomial_d`
\sa `PolynomialTraits_d`
\sa `PolynomialTraits_d::PseudoDivision`
\sa `PolynomialTraits_d::PseudoDivisionRemainder`
\sa `PolynomialTraits_d::PseudoDivisionQuotient`

*/

class PolynomialTraits_d::PseudoDivisionQuotient {
public:

/// \name Types
/// @{

/*!

*/
typedef PolynomialTraits_d::Polynomial_d result_type;

/*!

*/
typedef PolynomialTraits_d::Polynomial_d first_argument_type;

/*!

*/
typedef PolynomialTraits_d::Polynomial_d second_argument_type;

/// @}

/// \name Operations
/// @{

/*!

Returns the quotient \f$ q\f$ of the pseudo division of \f$ f\f$ and \f$ g\f$ with
respect to the outermost variable \f$ x_{d-1}\f$.
*/
result_type operator()(first_argument_type f,
second_argument_type g);

/// @}

}; /* end PolynomialTraits_d::PseudoDivisionQuotient */


text:
/* */
import Ember from 'ember';
import signupDetailsSchema from '../../schemas/signup-details';
import signupSchema from '../../schemas/signup';

export default Ember.Controller.extend({
  needs: ['application'],
  user: Ember.computed.alias('controllers.application.user'),
  signupDetailsSchema: signupDetailsSchema,
  signupSchema: signupSchema,

  details: Ember.Object.create({
    email: '',
    name: '',
    birthDate: new Date(),
    password: ''
  }),

  showDetails: false,
  message: null,

  clear: function() {
    this.set('signinDetails', Ember.Object.create({
      loginEmail: '',
      password: '',
      loginPassword: ''
    }));
  },
  loading: false,
  actions: {
    next: function(data) {
      this.set('details.email', data.email);
      this.set('showDetails', true);
    },
    signup: function(data) {
      var self = this;
      self.set('loading', true);
      var user = {
        '@type': 'http://meta.invend.eu/classes/User',
        eMail: data.email,
        password: data.password,
        name: data.name,
        birthDate: data.birthDate
      };
      user = this.get('api').res.createResource('/users/', user, this.errorHandling.getApiParams());
      user.setName();
      self.set('loginError', false);
      user.post('/users/').then(function(res) {
        self.set('showDetails', false);
        Ember.run.next(self, function() {
          self.set('loading', false);
          self.set('message', 'You user account is created. Please check your email to activate your account.');
          self.set('loginError', false);
        });
      }, function(err) {
        self.set('loading', false);
        self.set('message', err.response.description);
      });
    }
  }
});


text:
import $ from 'jquery';
import _ from 'underscore';
import axios from '~/lib/utils/axios_utils';
import flash from '~/flash';
import { __ } from '~/locale';
import { textColorForBackground } from '~/lib/utils/color_utils';

export default () => {
  const $broadcastMessageColor = $('input#broadcast_message_color');
  const $broadcastMessagePreview = $('div.broadcast-message-preview');
  $broadcastMessageColor.on('input', function onMessageColorInput() {
    const previewColor = $(this).val();
    $broadcastMessagePreview.css('background-color', previewColor);
  });

  $('input#broadcast_message_font').on('input', function onMessageFontInput() {
    const previewColor = $(this).val();
    $broadcastMessagePreview.css('color', previewColor);
  });

  const $broadcastMessage = $('textarea#broadcast_message_message');
  const previewPath = $broadcastMessage.data('previewPath');
  const $jsBroadcastMessagePreview = $('.js-broadcast-message-preview');

  $broadcastMessage.on(
    'input',
    _.debounce(function onMessageInput() {
      const message = $(this).val();
      if (message === '') {
        $jsBroadcastMessagePreview.text(__('Your message here'));
      } else {
        axios
          .post(previewPath, {
            broadcast_message: {
              message,
            },
          })
          .then(({ data }) => {
            $jsBroadcastMessagePreview.html(data.message);
          })
          .catch(() => flash(__('An error occurred while rendering preview broadcast message')));
      }
    }, 250),
  );

  const updateColorPreview = () => {
    const selectedBackgroundColor = $broadcastMessageColor.val();
    const contrastTextColor = textColorForBackground(selectedBackgroundColor);

    // save contrastTextColor to hidden input field
    $('input.text-font-color').val(contrastTextColor);

    // Updates the preview color with the hex-color input
    const selectedColorStyle = {
      backgroundColor: selectedBackgroundColor,
      color: contrastTextColor,
    };

    $('.label-color-preview').css(selectedColorStyle);

    return $broadcastMessagePreview.css(selectedColorStyle);
  };

  const setSuggestedColor = e => {
    const color = $(e.currentTarget).data('color');
    $broadcastMessageColor
      .val(color)
      // Notify the form, that color has changed
      .trigger('input');
    updateColorPreview();
    return e.preventDefault();
  };

  $(document).on('click', '.suggest-colors a', setSuggestedColor);
};


text:
import { QueryStack } from "../stack";
import { StackValue, InstResult, AsyncInstResult, SType } from "../types";

/**
 * <else> <then> <condition> iif
 *
 */
export async function onCondition(stack: QueryStack, [, op]: StackValue): AsyncInstResult {
    const isIfElse = op !== 'if';
    const condVal = stack.pop();
    const ifVal = stack.pop();
    const elseVal = isIfElse ? stack.pop() : undefined;
    const condition = condVal[1];

    // console.log('[onCondition]', condVal, ifVal, elseVal );

    // if( condition ){
    //     console.log('[onCondition]', 'result', ifVal );
    // } else {
    //     console.log('[onCondition]', 'result', elseVal );
    // }

    if( isIfElse ){
        // await stack.push( condition ? ifVal : elseVal );
        await pushValue( stack, condition ? ifVal : elseVal );
    } else if( condition ) {
        // console.log('[onCondition]', ifVal );
        // console.log('[onCondition]', op, stack.toString() );
        // await stack.push( ifVal );
        await pushValue( stack, ifVal );
        // console.log('[onCondition]', 'post', op, stack.toString() );
    }

    return undefined;
}

async function pushValue( stack:QueryStack, value:StackValue ){
    if( value[0] === SType.List ){
        await stack.pushValues(value[1]);
    } else {
        return stack.push(value);
    }
}

export async function onLogicalOp(stack:QueryStack, [,op]:StackValue ): AsyncInstResult {
    const left = stack.popValue();
    const right = stack.popValue();

    if( op === 'and' ){
        return [SType.Value, left && right];
    }
    if( op === 'or' ){
        return [SType.Value, left || right];
    }
    if( op === '??' ){
        return [SType.Value, left ?? right];
    }

    return undefined;
}


text:
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace NekoKun.UI
{
    public class LynnTextbox : TextBox
    {
        internal NativeWindow native, native2;

        public LynnTextbox()
        {
            this.ImeMode = ImeMode.On;

            if (UIManager.Enabled)
            {
                this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
                native2 = new NativeBorder(this, 0xf /* WM_PAINT */, true, false);
                native = new NativeBorder(this, 0x85 /* WM_NCPAINT */);
            }
        }

    }
}


text:
Lastify
=======

Convert Last.fm exports to spotify playlist.

-------

If you have been using Last.fm for a while, you probably tagged a lot of songs. And if you are not lucky enough to still have Last.fm streaming in your country, you may end up with a lot of useless playlists that you can't listen to. This piece of code lets you take an export file from Last.fm and look for the songs on spotify so that you can enjoy your great playlist again.

You can give it a try on [lastify.audio](http://www.lastify.audio).