text:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;

namespace AXFSoftware.Security.Cryptography.Turing
{
    public class ReferenceTuring : Turing
    {
        protected override ICryptoTransform CreateTransform(byte[] rgbKey, byte[] rgbIV)
        {
            return new ReferenceTuringTransform(rgbKey, rgbIV, Padding);
        }
    }

    public partial class ReferenceTuringTransform : TuringTransform
    {
        protected const int RegisterLength = 17;

        bool _disposed = false;
        protected uint[] _key;
        protected uint[] _register = new uint[RegisterLength];

        public ReferenceTuringTransform(byte[] key, byte[] iv, PaddingMode paddingMode)
            : base(key, iv, paddingMode)
        {
        }

        protected override void Dispose(bool disposing)
        {
            if (!_disposed)
            {
                if (disposing)
                {
                    // Dispose managed state (managed objects).
                }

                // Free unmanaged resources (unmanaged objects)

                // Set large fields to null.
                _key = null;
                _register = null;

                _disposed = true;
            }

            base.Dispose(disposing);
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        protected static uint ConvertBytesToWord(byte[] data, int offset)
        {
            uint word = data[offset++];
            word <<= 8;
            word |= data[offset++];
            word <<= 8;
            word |= data[offset++];
            word <<= 8;
            word |= data[offset++];
            return word;
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        protected static void ConvertWordToBytes(uint word, byte[] data, int offset)
        {
            var b3 = (byte)word;
            word >>= 8;
            var b2 = (byte)word;
            word >>= 8;
            var b1 = (byte)word;
            word >>= 8;

            data[offset++] = (byte)word;
            data[offset++] = b1;
            data[offset++] = b2;
            data[offset  ] = b3;
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        protected static byte GetByteFromWord(uint word, int position)
        {
            return (byte)((word >> (24 - 8 * position)) & 0xFF);
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        protected static uint RotateLeft(uint word, int rotation)
        {
            return (word << rotation) | ((word >> ~rotation) >> 1);
        }

        protected void StepRegister()
        {
            uint w;
            w = _register[15] ^
                 _register[4] ^
                (_register[0] << 8) ^
                MultiplicationTable[(_register[0] >> 24) & 0xFF];

            for (int i = 1; i < RegisterLength; i++)
                _register[i - 1] = _register[i];
            _register[RegisterLength - 1] = w;
        }

        /// <summary>
        /// This does a reversible transformation of a word based on the
        /// S-boxes.
        /// </summary>
        /// <param name="w"></param>
        /// <returns></returns>
        /// <remarks>
        /// The reversibility isn't used, but it guarantees no loss of
        /// information, and hence no equivalent keys or IVs.
        /// </remarks>
        protected uint FixedS(uint w)
        {
            uint b;
            b = SBox[GetByteFromWord(w, 0)];    w = ((w ^            QBox[b]     ) & 0x00FFFFFF) | (b << 24);
            b = SBox[GetByteFromWord(w, 1)];    w = ((w ^ RotateLeft(QBox[b],  8)) & 0xFF00FFFF) | (b << 16);
            b = SBox[GetByteFromWord(w, 2)];    w = ((w ^ RotateLeft(QBox[b], 16)) & 0xFFFF00FF) | (b << 8);
            b = SBox[GetByteFromWord(w, 3)];    w = ((w ^ RotateLeft(QBox[b], 24)) & 0xFFFFFF00) |  b;
            return w;
        }

        /// <summary>
        /// Push a word through the keyed S-boxes.
        /// </summary>
        /// <param name="w">word to push through S-boxes</param>
        /// <param name="rotation">initial rotation</param>
        /// <returns></returns>
        /// <remarks>
        /// <para>
        /// As the bytes bounce around the permutation table, they are used
        /// to build up words from the Qbox entries. Then the byte position
        /// corresponding to the input byte is replaced with the result of
        /// the S-box, which is a permutation of the input and guarantees
        /// a balanced function.
        /// </para>
        /// <para>
        /// Also added a rotation of the input word, to combat a differential
        /// trail allowed by the PHT.
        /// </para>
        /// </remarks>
        protected virtual uint KeyedS(uint w, int rotation)
        {
            w = RotateLeft(w, rotation);

            byte[] b = new byte[4];
            ConvertWordToBytes(w, b, 0);

            uint[] ws = new uint[4];
            ws[0] = 0;
            ws[1] = 0;
            ws[2] = 0;
            ws[3] = 0;

            for (int i = 0; i < _key.Length; i++)
            {
                b[0] = SBox[GetByteFromWord(_key[i], 0) ^ b[0]]; ws[0] ^= RotateLeft(QBox[b[0]], i +  0);
                b[1] = SBox[GetByteFromWord(_key[i], 1) ^ b[1]]; ws[1] ^= RotateLeft(QBox[b[1]], i +  8);
                b[2] = SBox[GetByteFromWord(_key[i], 2) ^ b[2]]; ws[2] ^= RotateLeft(QBox[b[2]], i + 16);
                b[3] = SBox[GetByteFromWord(_key[i], 3) ^ b[3]]; ws[3] ^= RotateLeft(QBox[b[3]], i + 24);
            }

            w  = (ws[0] & 0x00FFFFFF) | ((uint)b[0] << 24);
            w ^= (ws[1] & 0xFF00FFFF) | ((uint)b[1] << 16);
            w ^= (ws[2] & 0xFFFF00FF) | ((uint)b[2] << 8);
            w ^= (ws[3] & 0xFFFFFF00) |        b[3];

            return w;
        }

        [MethodImpl(MethodImplOptions.AggressiveInlining)]
        protected static void PseudoHadamardTransform(uint[] words)
        {
            int lastIndex = words.Length - 1;
            uint sum = 0;

            for (int i = 0; i < lastIndex; i++)
                sum += words[i];
            words[lastIndex] += sum;
            sum = words[lastIndex];
            for (int i = 0; i < lastIndex; i++)
                words[i] += sum;
        }

        protected override void SetKey(byte[] key)
        {
            Debug.Assert(key.Length % 4 == 0);

            _key = new uint[key.Length / 4];
            int j = 0;
            for (int i = 0; i < key.Length; i += 4)
                _key[j++] = FixedS(ConvertBytesToWord(key, i));

            PseudoHadamardTransform(_key);
        }

        protected override void SetIV(byte[] iv)
        {
            int i = 0;

            for (int j = 0; j < iv.Length; j += 4)
                _register[i++] = FixedS(ConvertBytesToWord(iv, j));

            _key.CopyTo(_register, i);
            i += _key.Length;

            uint lengthDependentWord = (uint)_key.Length << 4;
            lengthDependentWord |= (uint)iv.Length >> 2;
            lengthDependentWord |= 0x01020300;
            _register[i++] = lengthDependentWord;

            for (int j = 0; i < RegisterLength; i++, j++)
                _register[i] = KeyedS(_register[j] + _register[i - 1], 0);

            PseudoHadamardTransform(_register);
        }

        protected override ArraySegment<byte> GetNextRound()
        {
            Block block;

            StepRegister();
            block.A = _register[16];
                block.B = _register[13];
                    block.C = _register[6];
                        block.D = _register[1];
                            block.E = _register[0];
            block.PseudoHadamardTransform();
            block.A = KeyedS(block.A, 0);
                block.B = KeyedS(block.B, 8);
                    block.C = KeyedS(block.C, 16);
                        block.D = KeyedS(block.D, 24);
                            block.E = KeyedS(block.E, 0);
            block.PseudoHadamardTransform();
            StepRegister();
            StepRegister();
            StepRegister();
            block.A += _register[14];
                block.B += _register[12];
                    block.C += _register[8];
                        block.D += _register[1];
                            block.E += _register[0];
            StepRegister();

            byte[] buffer = new byte[BlockSizeBytes];
            block.CopyTo(buffer, 0);
            return new ArraySegment<byte>(buffer);
        }
    }
}


text:
package VMOMI::ArrayOfDVSVmVnicNetworkResourcePool;
use parent 'VMOMI::ComplexType';

use strict;
use warnings;

our @class_ancestors = ( );

our @class_members = (
    ['DVSVmVnicNetworkResourcePool', 'DVSVmVnicNetworkResourcePool', 1, 1],
);

sub get_class_ancestors {
    return @class_ancestors;
}

sub get_class_members {
    my $class = shift;
    my @super_members = $class->SUPER::get_class_members();
    return (@super_members, @class_members);
}

1;

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Opis\Colibri\Templates;

use Opis\Colibri\Stream\Content;

class CallbackTemplateHandler implements TemplateStreamHandler
{
    /**
     * @inheritDoc
     */
    public function handle(string $id, string $extension): ?Content
    {
        if (!is_callable($id)) {
            return null;
        }
        return new CallbackContent($id, $extension);
    }
}


text:
package com.example.android.sunshine;

import android.content.Context;
import android.util.Log;

/**
 * Created by administrator on 1/14/17.
 */

public class SunshineWearUtil {

    private static final String LOG_TAG = SunshineWearUtil.class.getSimpleName();

    public static int getSmallArtResourceIdForWeatherCondition(int weatherId) {

        /*
         * Based on weather code data for Open Weather Map.
         */
        if (weatherId >= 200 && weatherId <= 232) {
            return R.drawable.ic_storm;
        } else if (weatherId >= 300 && weatherId <= 321) {
            return R.drawable.ic_light_rain;
        } else if (weatherId >= 500 && weatherId <= 504) {
            return R.drawable.ic_rain;
        } else if (weatherId == 511) {
            return R.drawable.ic_snow;
        } else if (weatherId >= 520 && weatherId <= 531) {
            return R.drawable.ic_rain;
        } else if (weatherId >= 600 && weatherId <= 622) {
            return R.drawable.ic_snow;
        } else if (weatherId >= 701 && weatherId <= 761) {
            return R.drawable.ic_fog;
        } else if (weatherId == 761 || weatherId == 771 || weatherId == 781) {
            return R.drawable.ic_storm;
        } else if (weatherId == 800) {
            return R.drawable.ic_clear;
        } else if (weatherId == 801) {
            return R.drawable.ic_light_clouds;
        } else if (weatherId >= 802 && weatherId <= 804) {
            return R.drawable.ic_cloudy;
        } else if (weatherId >= 900 && weatherId <= 906) {
            return R.drawable.ic_storm;
        } else if (weatherId >= 958 && weatherId <= 962) {
            return R.drawable.ic_storm;
        } else if (weatherId >= 951 && weatherId <= 957) {
            return R.drawable.ic_clear;
        }

        Log.e(LOG_TAG, "Unknown Weather: " + weatherId);
        return R.drawable.ic_storm;
    }

    public static String getStringForWeatherCondition(Context context, int weatherId) {
        int stringId;
        if (weatherId >= 200 && weatherId <= 232) {
            stringId = R.string.condition_2xx;
        } else if (weatherId >= 300 && weatherId <= 321) {
            stringId = R.string.condition_3xx;
        } else switch (weatherId) {
            case 500:
                stringId = R.string.condition_500;
                break;
            case 501:
                stringId = R.string.condition_501;
                break;
            case 502:
                stringId = R.string.condition_502;
                break;
            case 503:
                stringId = R.string.condition_503;
                break;
            case 504:
                stringId = R.string.condition_504;
                break;
            case 511:
                stringId = R.string.condition_511;
                break;
            case 520:
                stringId = R.string.condition_520;
                break;
            case 531:
                stringId = R.string.condition_531;
                break;
            case 600:
                stringId = R.string.condition_600;
                break;
            case 601:
                stringId = R.string.condition_601;
                break;
            case 602:
                stringId = R.string.condition_602;
                break;
            case 611:
                stringId = R.string.condition_611;
                break;
            case 612:
                stringId = R.string.condition_612;
                break;
            case 615:
                stringId = R.string.condition_615;
                break;
            case 616:
                stringId = R.string.condition_616;
                break;
            case 620:
                stringId = R.string.condition_620;
                break;
            case 621:
                stringId = R.string.condition_621;
                break;
            case 622:
                stringId = R.string.condition_622;
                break;
            case 701:
                stringId = R.string.condition_701;
                break;
            case 711:
                stringId = R.string.condition_711;
                break;
            case 721:
                stringId = R.string.condition_721;
                break;
            case 731:
                stringId = R.string.condition_731;
                break;
            case 741:
                stringId = R.string.condition_741;
                break;
            case 751:
                stringId = R.string.condition_751;
                break;
            case 761:
                stringId = R.string.condition_761;
                break;
            case 762:
                stringId = R.string.condition_762;
                break;
            case 771:
                stringId = R.string.condition_771;
                break;
            case 781:
                stringId = R.string.condition_781;
                break;
            case 800:
                stringId = R.string.condition_800;
                break;
            case 801:
                stringId = R.string.condition_801;
                break;
            case 802:
                stringId = R.string.condition_802;
                break;
            case 803:
                stringId = R.string.condition_803;
                break;
            case 804:
                stringId = R.string.condition_804;
                break;
            case 900:
                stringId = R.string.condition_900;
                break;
            case 901:
                stringId = R.string.condition_901;
                break;
            case 902:
                stringId = R.string.condition_902;
                break;
            case 903:
                stringId = R.string.condition_903;
                break;
            case 904:
                stringId = R.string.condition_904;
                break;
            case 905:
                stringId = R.string.condition_905;
                break;
            case 906:
                stringId = R.string.condition_906;
                break;
            case 951:
                stringId = R.string.condition_951;
                break;
            case 952:
                stringId = R.string.condition_952;
                break;
            case 953:
                stringId = R.string.condition_953;
                break;
            case 954:
                stringId = R.string.condition_954;
                break;
            case 955:
                stringId = R.string.condition_955;
                break;
            case 956:
                stringId = R.string.condition_956;
                break;
            case 957:
                stringId = R.string.condition_957;
                break;
            case 958:
                stringId = R.string.condition_958;
                break;
            case 959:
                stringId = R.string.condition_959;
                break;
            case 960:
                stringId = R.string.condition_960;
                break;
            case 961:
                stringId = R.string.condition_961;
                break;
            case 962:
                stringId = R.string.condition_962;
                break;
            default:
                return context.getString(R.string.condition_unknown);
        }

        return context.getString(stringId);
    }
}


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="ff63514e-a8c1-4e58-8a41-d411af23d46b" name="Default" comment="" />
    <ignored path="midtermExam.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path="$PROJECT_DIR$/out/" />
    <ignored path="$PROJECT_DIR$/target/" />
    <ignored path=".idea/dataSources.local.xml" />
    <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="midtermExam" />
  </component>
  <component name="FileColors">
    <fileColor scope="Project Files" color="000000" />
  </component>
  <component name="FileEditorManager">
    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
      <file leaf-file-name="TerminalCommander.java" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/src/main/java/app/commander/TerminalCommander.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="551">
              <caret line="339" column="9" selection-start-line="339" selection-start-column="9" selection-end-line="339" selection-end-column="9" />
              <folding>
                <element signature="imports" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="Interface" />
        <option value="Class" />
        <option value="package-info" />
      </list>
    </option>
  </component>
  <component name="GradleLocalSettings">
    <option name="externalProjectsViewState">
      <projects_view />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/src/main/resources/files/input/json/anomaly-victims.json" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/dto/PersonImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/AnomaliesVictims.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/repositories/AnomaliesVictimsRepository.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/services/AnomaliesVictimsService.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/servicesImpl/AnomaliesVictimsServiceImpl.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomaliesVictimsImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyVictimsImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyImportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyXMLImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/services/PlanetService.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/servicesImpl/PlanetServiceImpl.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/repositories/PlanetRepository.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/planets/Planet.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/planets/dto/PlanetExportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/services/PersonService.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/servicesImpl/PersonServiceImpl.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/Person.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/repositories/PersonRepository.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/Anomaly.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyWithVictimExportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/repositories/AnomalyRepository.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/services/AnomalyService.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/servicesImpl/AnomalyServiceImpl.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/JaxbList.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/dto/VictimImportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/VictimExportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyWithVictimImportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyExportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyExportListDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/AnomalyExportListXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/exports/AnomalyExportListXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/imports/AnomalyImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/imports/AnomalyImportJSONDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/imports/AnomalyVictimsImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/imports/AnomalyXMLImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/imports/json/AnomalyVictimsImportJSONdto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/imports/xml/AnomalyXMLImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/exports/xml/VictimExportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/exports/json/AnomalyWithVictimExportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/anomalies/dto/exports/xml/AnomalyWithVictimImportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/dto/PersonExportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/dto/exports/json/PersonExportJSONdto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/dto/imports/json/PersonImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/persons/dto/imports/xml/VictimImportXMLDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/planets/dto/exports/json/PlanetExportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/planets/dto/imports/json/PlanetImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/solarSystems/dto/imports/json/SolarSystemImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/entities/stars/dto/imports/json/StarImportDto.java" />
        <option value="$PROJECT_DIR$/src/main/java/app/commander/TerminalCommander.java" />
      </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="MavenImportPreferences">
    <option name="generalSettings">
      <MavenGeneralSettings>
        <option name="mavenHome" value="Bundled (Maven 3)" />
      </MavenGeneralSettings>
    </option>
    <option name="importingSettings">
      <MavenImportingSettings>
        <option name="importAutomatically" value="true" />
      </MavenImportingSettings>
    </option>
  </component>
  <component name="ProjectFrameBounds">
    <option name="y" value="-1" />
    <option name="width" value="1366" />
    <option name="height" value="732" />
  </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 proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages ProjectPane="false" />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
      <manualOrder />
      <foldersAlwaysOnTop value="true" />
    </navigator>
    <panes />
  </component>
  <component name="PropertiesComponent">
    <property name="project.structure.last.edited" value="Modules" />
    <property name="project.structure.proportion" value="0.0" />
    <property name="project.structure.side.proportion" value="0.2" />
    <property name="aspect.path.notification.shown" value="true" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="settings.editor.selected.configurable" value="reference.settings.ide.settings.file-colors" />
    <property name="settings.editor.splitter.proportion" value="0.2" />
    <property name="extract.method.default.visibility" value="private" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$/../../09.JSON Processing/people" />
  </component>
  <component name="RecentsManager">
    <key name="CreateClassDialog.RecentsKey">
      <recent name="app.entities.anomalies.dto" />
    </key>
  </component>
  <component name="RunManager" selected="Spring Boot.MainApplication">
    <configuration default="false" name="MainApplication" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="app.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="SPRING_BOOT_MAIN_CLASS" value="app.MainApplication" />
      <module name="midtermExam" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
      <module name="" />
      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
      <option name="PROGRAM_PARAMETERS" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidRunConfigurationType" factoryName="Android Application">
      <module name="" />
      <option name="DEPLOY" value="true" />
      <option name="ARTIFACT_NAME" value="" />
      <option name="PM_INSTALL_OPTIONS" value="" />
      <option name="ACTIVITY_EXTRA_FLAGS" value="" />
      <option name="MODE" value="default_activity" />
      <option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
      <option name="PREFERRED_AVD" value="" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
      <option name="FORCE_STOP_RUNNING_APP" value="true" />
      <option name="DEBUGGER_TYPE" value="Java" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <Java />
      <Profilers>
        <option name="GAPID_DISABLE_PCS" value="false" />
      </Profilers>
      <option name="DEEP_LINK" value="" />
      <option name="ACTIVITY_CLASS" value="" />
      <method />
    </configuration>
    <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
      <module name="" />
      <option name="TESTING_TYPE" value="0" />
      <option name="INSTRUMENTATION_RUNNER_CLASS" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="PACKAGE_NAME" value="" />
      <option name="EXTRA_OPTIONS" value="" />
      <option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
      <option name="PREFERRED_AVD" value="" />
      <option name="CLEAR_LOGCAT" value="false" />
      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="true" />
      <option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
      <option name="FORCE_STOP_RUNNING_APP" value="true" />
      <option name="DEBUGGER_TYPE" value="Java" />
      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
      <option name="PREFERRED_AVD" value="" />
      <Java />
      <Profilers>
        <option name="GAPID_DISABLE_PCS" value="false" />
      </Profilers>
      <method />
    </configuration>
    <configuration default="true" type="Applet" factoryName="Applet">
      <option name="HTML_USED" value="false" />
      <option name="WIDTH" value="400" />
      <option name="HEIGHT" value="300" />
      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
      <module />
      <method />
    </configuration>
    <configuration default="true" type="Application" factoryName="Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="ArquillianJUnit" factoryName="">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="arquillianRunConfiguration">
        <value>
          <option name="containerStateName" value="" />
        </value>
      </option>
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="ArquillianTestNG" factoryName="">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="arquillianRunConfiguration">
        <value>
          <option name="containerStateName" value="" />
        </value>
      </option>
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
    <configuration default="true" type="Cold Fusion runner description" factoryName="Cold Fusion" custom_browser="" web_path="">
      <method />
    </configuration>
    <configuration default="true" type="CucumberJavaRunConfigurationType" factoryName="Cucumber java">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="myFilePath" />
      <option name="GLUE" />
      <option name="myNameFilter" />
      <option name="myGeneratedName" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="FlashRunConfigurationType" factoryName="Flash App">
      <option name="BCName" value="" />
      <option name="IOSSimulatorSdkPath" value="" />
      <option name="adlOptions" value="" />
      <option name="airProgramParameters" value="" />
      <option name="appDescriptorForEmulator" value="Android" />
      <option name="debugTransport" value="USB" />
      <option name="debuggerSdkRaw" value="BC SDK" />
      <option name="emulator" value="NexusOne" />
      <option name="emulatorAdlOptions" value="" />
      <option name="fastPackaging" value="true" />
      <option name="fullScreenHeight" value="0" />
      <option name="fullScreenWidth" value="0" />
      <option name="launchUrl" value="false" />
      <option name="launcherParameters">
        <LauncherParameters>
          <option name="browser" value="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" />
          <option name="launcherType" value="OSDefault" />
          <option name="newPlayerInstance" value="false" />
          <option name="playerPath" value="/usr/bin/flashplayerdebugger" />
        </LauncherParameters>
      </option>
      <option name="mobileRunTarget" value="Emulator" />
      <option name="moduleName" value="" />
      <option name="overriddenMainClass" value="" />
      <option name="overriddenOutputFileName" value="" />
      <option name="overrideMainClass" value="false" />
      <option name="runTrusted" value="true" />
      <option name="screenDpi" value="0" />
      <option name="screenHeight" value="0" />
      <option name="screenWidth" value="0" />
      <option name="url" value="http://" />
      <option name="usbDebugPort" value="7936" />
      <method />
    </configuration>
    <configuration default="true" type="FlexUnitRunConfigurationType" factoryName="FlexUnit" appDescriptorForEmulator="Android" class_name="" emulatorAdlOptions="" method_name="" package_name="" scope="Class">
      <option name="BCName" value="" />
      <option name="launcherParameters">
        <LauncherParameters>
          <option name="browser" value="a7bb68e0-33c0-4d6f-a81a-aac1fdb870c8" />
          <option name="launcherType" value="OSDefault" />
          <option name="newPlayerInstance" value="false" />
          <option name="playerPath" value="/usr/bin/flashplayerdebugger" />
        </LauncherParameters>
      </option>
      <option name="moduleName" value="" />
      <option name="trusted" value="true" />
      <method />
    </configuration>
    <configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
      <ExternalSystemSettings>
        <option name="executionName" />
        <option name="externalProjectPath" />
        <option name="externalSystemIdString" value="GRADLE" />
        <option name="scriptParameters" />
        <option name="taskDescriptions">
          <list />
        </option>
        <option name="taskNames">
          <list />
        </option>
        <option name="vmOptions" />
      </ExternalSystemSettings>
      <method />
    </configuration>
    <configuration default="true" type="GrailsRunConfigurationType" factoryName="Grails">
      <setting name="vmparams" value="" />
      <setting name="cmdLine" value="run-app" />
      <setting name="passParentEnv" value="true" />
      <setting name="launchBrowser" value="true" />
      <setting name="depsClasspath" value="false" />
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <method />
    </configuration>
    <configuration default="true" type="JUnit" factoryName="JUnit">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="JUnitTestDiscovery" factoryName="JUnit Test Discovery" changeList="All">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="TEST_OBJECT" value="class" />
      <option name="VM_PARAMETERS" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <envs />
      <patterns />
      <method />
    </configuration>
    <configuration default="true" type="JarApplication" factoryName="JAR Application">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="Java Scratch" factoryName="Java Scratch">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="SCRATCH_FILE_ID" value="0" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="ENABLE_SWING_INSPECTOR" value="false" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="MAIN_CLASS_NAME" />
      <option name="VM_PARAMETERS" />
      <option name="PROGRAM_PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <module name="midtermExam" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="KotlinStandaloneScriptRunConfigurationType" factoryName="Kotlin script">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <option name="filePath" />
      <option name="vmParameters" />
      <option name="alternativeJrePath" />
      <option name="programParameters" />
      <option name="passParentEnvs" value="true" />
      <option name="workingDirectory" />
      <option name="isAlternativeJrePathEnabled" value="false" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="Remote" factoryName="Remote">
      <option name="USE_SOCKET_TRANSPORT" value="true" />
      <option name="SERVER_MODE" value="false" />
      <option name="SHMEM_ADDRESS" value="javadebug" />
      <option name="HOST" value="localhost" />
      <option name="PORT" value="5005" />
      <method />
    </configuration>
    <configuration default="true" type="SpringBootApplicationConfigurationType" factoryName="Spring Boot">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="TestNG" factoryName="TestNG">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" value="-ea" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
    <configuration default="true" type="TestNGTestDiscovery" factoryName="TestNG Test Discovery" changeList="All">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
      <module name="" />
      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
      <option name="ALTERNATIVE_JRE_PATH" />
      <option name="SUITE_NAME" />
      <option name="PACKAGE_NAME" />
      <option name="MAIN_CLASS_NAME" />
      <option name="METHOD_NAME" />
      <option name="GROUP_NAME" />
      <option name="TEST_OBJECT" value="CLASS" />
      <option name="VM_PARAMETERS" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" />
      <option name="OUTPUT_DIRECTORY" />
      <option name="ANNOTATION_TYPE" />
      <option name="ENV_VARIABLES" />
      <option name="PASS_PARENT_ENVS" value="true" />
      <option name="TEST_SEARCH_SCOPE">
        <value defaultName="singleModule" />
      </option>
      <option name="USE_DEFAULT_REPORTERS" value="false" />
      <option name="PROPERTIES_FILE" />
      <envs />
      <properties />
      <listeners />
      <method />
    </configuration>
    <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="osgi.bnd.run" factoryName="Run Launcher">
      <method />
    </configuration>
    <configuration default="true" type="osgi.bnd.run" factoryName="Test Launcher (JUnit)">
      <method />
    </configuration>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="Spring Boot.MainApplication" />
    </list>
    <recent_temporary>
      <list size="1">
        <item index="0" class="java.lang.String" itemvalue="Spring Boot.MainApplication" />
      </list>
    </recent_temporary>
  </component>
  <component name="ShelveChangesManager" show_recycled="false">
    <option name="remove_strategy" value="false" />
  </component>
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="ff63514e-a8c1-4e58-8a41-d411af23d46b" name="Default" comment="" />
      <created>1479541258598</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1479541258598</updated>
      <workItem from="1479541264182" duration="24218000" />
      <workItem from="1479627957906" duration="593000" />
      <workItem from="1479716157478" duration="17665000" />
      <workItem from="1479811684372" duration="9113000" />
    </task>
    <servers />
  </component>
  <component name="TimeTrackingManager">
    <option name="totallyTimeSpent" value="51589000" />
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="-1" width="1366" height="732" extended-state="6" />
    <editor active="true" />
    <layout>
      <window_info id="Persistence" 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="Designer" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Palette	" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.44794953" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.44353518" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="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="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="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="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="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="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3289689" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Java Enterprise" 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="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="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="Spring" 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="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.27348486" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3289689" sideWeight="0.5" order="1" 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" />
    </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>
      <option name="time" value="26" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="antWorkspaceConfiguration">
    <option name="IS_AUTOSCROLL_TO_SOURCE" value="false" />
    <option name="FILTER_TARGETS" value="false" />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/src/main/java/app/commander/TerminalCommander.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="551">
          <caret line="339" column="9" selection-start-line="339" selection-start-column="9" selection-end-line="339" selection-end-column="9" />
          <folding>
            <element signature="imports" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
  </component>
  <component name="masterDetails">
    <states>
      <state key="ArtifactsStructureConfigurable.UI">
        <settings>
          <artifact-editor />
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="FacetStructureConfigurable.UI">
        <settings>
          <last-edited>No facets are configured</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="GlobalLibrariesConfigurable.UI">
        <settings>
          <last-edited>nTest</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="JdkListConfigurable.UI">
        <settings>
          <last-edited>1.8</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ModuleStructureConfigurable.UI">
        <settings>
          <last-edited>JPA|midtermExam</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <last-edited>Maven: antlr:antlr:2.7.7</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>


text:
from __future__ import unicode_literals

from django.db import models, migrations

class Migration(migrations.Migration):

    dependencies = [
        ('topology', '0004_auto_20150222_1614'),
    ]

    operations = [
        migrations.AddField(
            model_name='machine',
            name='slug',
            field=models.SlugField(default='', unique=True),
            preserve_default=False,
        ),
    ]


text:
<!--TOC-->

- [Python Antipatterns](#python-antipatterns)
  - [Redundant type checking](#redundant-type-checking)
  - [Restricting version in setup.py dependencies](#restricting-version-in-setuppy-dependencies)
  - [Unwieldy if... else instead of dict](#unwieldy-if-else-instead-of-dict)
  - [Overreliance on kwargs](#overreliance-on-kwargs)
  - [Overreliance on list/dict comprehensions](#overreliance-on-listdict-comprehensions)
  - [Mutable default arguments](#mutable-default-arguments)
  - [Using `is` to compare objects](#using-is-to-compare-objects)
  - [Instantiating exception with a dict](#instantiating-exception-with-a-dict)
  - [Not strictly pinning all packages](#not-strictly-pinning-all-packages)
  - [Looping over something and appending](#looping-over-something-and-appending)
  - [Too long variable names](#too-long-variable-names)
  - [Reference](#reference)

<!--TOC-->

## Redundant type checking

Bad:

```python
def toast(bread):
    if bread is None:
        raise TypeError("Need bread to toast.")
    if bread.is_toastable:
        toaster.toast(bread)
```

In this case, checking against `None` is totally useless because in the next
line, `bread.is_toastable` would raise `AttributeError: 'NoneType' object has no attribute 'is_toastable'`. This is not a general rule, but in this case
I would definitely argue that adding the type checks hurts readability and adds
very little value to the function.

Good:

```python
def toast(bread):
    if bread.is_toastable:
        toaster.toast(bread)
```

## Restricting version in setup.py dependencies

Read those articles first:

- [setup.py vs. requirements.txt](https://caremad.io/2013/07/setup-vs-requirement/)
- [Pin Your Packages](http://nvie.com/posts/pin-your-packages/)
- [Better Package Management](http://nvie.com/posts/better-package-management/)

**Summary: The main point is that `setup.py` should not specify explicit version
requirements (good: `flask`, bad: `flask==1.1.1`).**

In a few words, if library `lib1` requires `flask==1.1.1` and library `lib2`
requires `flask==1.1.2`, then you'll have a conflict and won't be able to use
them both in application `app`.

Yet in 99.999% of the cases, you don't need a specific version of flask, so:

- `lib1` should just require `flask` in `setup.py` (no version specified, not
  even with inequality operators: `flask<=2` is bad for instance)
- `lib2` should just require `flask` in `setup.py` (same)

`app` will be happy using `lib1` and `lib2` with whatever version of `flask` it
wants.

`app`'s `requirements.txt` should be as specific as possible, ideally
strictly pinning (`==`) every single dependency. This way the app's stability
will be very predictable, because always the same packages version will be
installed.

Usually apps only use `requirements.txt`, not `setup.py`, because `pip install -r requirements.txt` is used when deploying.

The only exception for pinning a dependency in a library is in case of a known
incompatibility, but again this should be a very temporary move, because that
will prevent people from upgrading.

Ruby has a pretty similar dichotomy with [Gemspec and
gemfile](http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/).

## Unwieldy if... else instead of dict

Bad:

```python
import operator as op

def get_operator(value):
    """Return operator function based on string.

    e.g. ``get_operator('+')`` returns a function which takes two arguments
    and return the sum of them.
    """
    if value == "+":
        return op.add
    elif value == "-":
        return op.sub
    elif value == "*":
        return op.mul
    elif value == "/":
        return op.div
    else:
        raise ValueError("Unknown operator %s" % value)
```

Note: the operator module is a standard library modules that defines base
operator functions. For instance `operator.add(1, 1) == 2`.

This huge switch-like expression will soon become really difficult to read and
maintain. A more pythonic way is to use a dict to store the mapping.

Another reason is that to get 100% line and branch coverage, you will have to
create as many tests as you have mappings. Yet you could consider that the
value to operator mapping is part of the codebase's configuration, not its
behavior, and thus shouldn't be tested.

Good:

```python
import operator as op

OPERATORS = {
    "+": op.add,
    "-": op.sub,
    "*": op.mul,
    "/": op.div,
}

def get_operator(value):
    """Return operator function based on string."""
    operator = OPERATORS.get(value)
    if operator:
        return operator
    else:
        raise ValueError("Unknown operator %s" % value)
```

## Overreliance on kwargs

TODO

## Overreliance on list/dict comprehensions

TODO

## Mutable default arguments

TODO

## Using `is` to compare objects

TODO

[Why you should almost never use "is" in
Python](http://blog.lerner.co.il/why-you-should-almost-never-use-is-in-python/)

## Instantiating exception with a dict

Example:

```python
def main():
    raise Exception({"msg": "This is not a toaster", "level": "error"})
```

Why is this an antipattern? Exception are meant to be read by human beings.
Thus, their first argument should be a human-readable error message, like this:

```python
class NotAToasterException(Exception):
    pass

def main():
    raise NotAToasterException("This is not a toaster")
```

Most tools expect this, most importantly
[Sentry](https://getsentry.com/welcome/) which is a tool used to get alerts
when exception are raised in production. An `Exception`'s message should be
short so that it can be displayed on a single line.

If you need to attach custom metadata to an exception, the proper way is to
have a custom constructor:

```python
class NotAToasterException(Exception):
    def __init__(self, message, level):
        super(NotAToasterException, self).__init__(message)
        self.message = message
        self.level = level

def main():
    raise NotAToasterException("This is not a toaster", "error")
```

## Not strictly pinning all packages

Example of bad `requirements.txt` file:

```
sqlalchemy
flask
```

Another example of a bad `requirements.txt` file:

```
sqlalchemy>=0.9
flask>0.10
```

Good:

```
Flask==0.10.1
Jinja2==2.8
MarkupSafe==0.23
SQLAlchemy==1.0.12
Werkzeug==0.11.4
itsdangerous==0.24
```

This ensures that there's absolutely no ambiguity as to which package will be installed on production. If you forget to mention even a single package, you will perhaps have a different version on your testing/dev environment, and in your production environment.

The proper way to update a package and its dependency is to use another tool, for instance [pip-tools](https://github.com/nvie/pip-tools). If you have multiple applications and you want to mass update a package, then you'll have to write a script to do so. Keep things simple and explicit, then use scripts on top of it to instrument your processes.

**Reference**

- [Pin Your Packages](http://nvie.com/posts/pin-your-packages/)

## Looping over something and appending

❌ don't do this:

```python
def get_list(foo: list[int]) -> list[int]:
    returned = []

    for i in foo:
        if ...:
            stuff = ...
            returned.append(stuff)
        else:
            other_stuff = ...
            returned.append(other_stuff)

    return returned

get_list([1, 2, 3])
```

Why?

- 👎 Testing each branch of the `if... else...` is tricky.
- 👎 It's not immediately obvious that `get_list` returns the same number of items than its input `foo`.
- 👎 There are three levels of indentation (a good measure for complexity).
- 👎 As the `for` loop body gets bigger, the amount of cognitive load increases very rapidly.

This has clearer guarantees:

```python
def get_list(foo: list[int]) -> list[int]:
    # or return list(map(get_item, foo))
    return [get_item(i) for i in foo]

def get_item(item: int) -> int:
    if ...:
        stuff = ...
        return stuff

    other_stuff = ...
    return other_stuff

c = [get_stuff(i) for i in ...]
```

- 👍 You can now very easily test `get_item`
- 👍 No more `else`
- 👍 Usage of list comprehension in `get_list` makes immediately clear that it returns the same number of items.
- 👍 Enables usage of `map` and other functional patterns for added benefits (e.g. return a generator instead of instantiating the whole list).

## Too long variable names

Variable names that are too long:

- 👎 Create unnecessary extra typing.
- 👎 Induce cognitive load.

This is too long:

- ❌ `api.lib.encryption:verify_encryption_key_is_valid`
  - 👎 `verify` implies `is_valid`.
  - 👎 `encryption` is redundant given the module name. `key` is pretty clear in this context.
  - 👎 we could want to verify more things than "validity" e.g. key length. The function name is unnecessarily coupled with the current implementation.
  - ✅ `api.lib.encryption:verify_key` should be preferred
  - ✅ `api.lib.encryption:check_key` is even shorter.

## Reference

- [Pythonic Pitfalls](http://nafiulis.me/potential-pythonic-pitfalls.html)
- [Python Patterns](https://github.com/faif/python-patterns)
- [The Little Book of Python Anti-Patterns](http://docs.quantifiedcode.com/python-anti-patterns/)
- [How to make mistakes in Python](http://www.oreilly.com/programming/free/files/how-to-make-mistakes-in-python.pdf)


text:
"""A module containing TensorFlow ops whose API may change in the future."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

# pylint: disable=wildcard-import
from tensorflow.contrib.framework.python.framework import decorator_utils
from tensorflow.contrib.framework.python.framework.checkpoint_utils import *
from tensorflow.contrib.framework.python.framework.deprecation import deprecated
from tensorflow.contrib.framework.python.framework.deprecation import deprecated_arg_values
from tensorflow.contrib.framework.python.framework.deprecation import deprecated_args
from tensorflow.contrib.framework.python.framework.experimental import experimental
from tensorflow.contrib.framework.python.framework.tensor_util import *


text:
package org.scaladebugger.api.profiles.java.requests.watchpoints

import java.util.concurrent.atomic.AtomicBoolean

import org.scaladebugger.api.profiles.java.JavaDebugProfile
import org.scaladebugger.api.utils.JDITools
import org.scaladebugger.api.virtualmachines.DummyScalaVirtualMachine
import org.scaladebugger.test.helpers.ParallelMockFunSpec
import test.{ApiTestUtilities, VirtualMachineFixtures}

class JavaModificationWatchpointRequestIntegrationSpec extends ParallelMockFunSpec
  with VirtualMachineFixtures
  with ApiTestUtilities
{
  describe("JavaModificationWatchpointRequest") {
    it("should be able to detect modification to a field") {
      val testClass = "org.scaladebugger.test.watchpoints.ModificationWatchpoint"
      val testFile = JDITools.scalaClassStringToFileString(testClass)

      val className = "org.scaladebugger.test.watchpoints.SomeModificationClass"
      val fieldName = "field"

      val detectedModificationWatchpoint = new AtomicBoolean(false)

      val s = DummyScalaVirtualMachine.newInstance()

      // Listen for modification watchpoint events for specific variable
      s.withProfile(JavaDebugProfile.Name)
        .getOrCreateModificationWatchpointRequest(className, fieldName)
        .filter(_.field.declaringType.name == className)
        .filter(_.field.name == fieldName)
        .foreach(_ => detectedModificationWatchpoint.set(true))

      withVirtualMachine(testClass, pendingScalaVirtualMachines = Seq(s)) { (s) =>
        logTimeTaken(eventually {
          assert(detectedModificationWatchpoint.get(), s"$fieldName never modified!")
        })
      }
    }
  }
}


text:
package de.tu_berlin.dima.bdapro.cli.command

import java.io.PrintWriter
import java.lang.{System => Sys}
import java.nio.charset.StandardCharsets
import java.nio.file.{Files, Paths, StandardOpenOption}
import java.time.Instant

import anorm.SqlParser._
import anorm.{~, _}
import net.sourceforge.argparse4j.inf.{Namespace, Subparser}
import org.peelframework.core.cli.command.Command
import org.peelframework.core.config.loadConfig
import org.peelframework.core.results.DB
import org.peelframework.core.util.console._
import org.peelframework.core.util.shell
import org.springframework.context.ApplicationContext
import org.springframework.stereotype.Service
import resource._

import scala.language.postfixOps

/** Query the database for the CPU performance of a particular experiment. */
@Service("dstat:plot:io")
class DstatPlotIO extends Command {

  override val help = "query the database for the CPU performance of a particular experiment."

  override def register(parser: Subparser) = {
    // options
    parser.addArgument("--connection")
      .`type`(classOf[String])
      .dest("app.db.connection")
      .metavar("ID")
      .help("database config name (default: h2)")
    // arguments
    parser.addArgument("suite")
      .`type`(classOf[String])
      .dest("app.suite.name")
      .metavar("SUITE")
      .help("experiments suite cpu performance to plot")
    parser.addArgument("experiment")
      .`type`(classOf[String])
      .dest("app.experiment.name")
      .metavar("EXP")
      .help("name of the experiment")
    parser.addArgument("run")
      .`type`(classOf[Int])
      .dest("app.experiment.run")
      .metavar("RUN")
      .help("run of the experiment")

    // option defaults
    parser.setDefault("app.db.connection", "h2")
  }

  override def configure(ns: Namespace) = {
    // set ns options and arguments to system properties
    Sys.setProperty("app.db.connection", ns.getString("app.db.connection"))
    Sys.setProperty("app.suite.name", ns.getString("app.suite.name"))
    Sys.setProperty("app.experiment.name", ns.getString("app.experiment.name"))
    Sys.setProperty("app.experiment.run", ns.getString("app.experiment.run"))

  }

  override def run(context: ApplicationContext) = {
    logger.info(s"Plotting CPU usage for suite '${Sys.getProperty("app.suite.name")}' from '${Sys.getProperty("app.db.connection")}'")

    // load application configuration
    implicit val config = loadConfig()

    // create database connection
    val connName = Sys.getProperty("app.db.connection")
    implicit val conn = DB.getConnection(connName)

    val suite = config.getString("app.suite.name")
    val experiment = config.getString("app.experiment.name")
    val run = config.getInt("app.experiment.run")

    try {

      logger.info(s"Querying min and max timestamps for ($suite, $experiment, $run)")
      // Querying min and max timestamp associated with the plotted points for the selected experiment
      val (tMin, tMax) = SQL(
        """
          |SELECT    min(ee.v_timestamp) AS t_min,
          |          max(ee.v_timestamp) AS t_max
          |FROM      experiment          AS ex,
          |          experiment_run      AS er,
          |          experiment_event    AS ee
          |WHERE     ex.id               =  er.experiment_id
          |AND       er.id               =  ee.experiment_run_id
          |AND       er.run              =  {run}
          |AND       ex.name             =  {experiment}
          |AND       ex.suite            =  {suite}
          |AND       ee.name             =  'dstat_dsk_total:read'
        """.stripMargin.trim
      ).on(
        "run" -> run,
        "experiment" -> experiment,
        "suite" -> suite
      ).as(
        {
          get[Instant]("t_min") ~ get[Instant]("t_max") map {
            case t_min ~ t_max => (t_min.toEpochMilli, t_max.toEpochMilli)
          }
        } *
      ).head

      logger.info(s"Querying Data IO measurements for ($suite, $experiment, $run)")
      // Querying all relevant Dstat measurement data in format: (host, time, sys, usr)
      val data = {
        val stmt = conn.prepareStatement(
          """
            |SELECT   d1.host                   AS host,
            |         d1.v_timestamp            AS time,
            |         d1.v_double               AS r,
            |         d2.v_double               AS w
            |FROM     experiment                AS ex,
            |         experiment_run            AS er,
            |         experiment_event          AS d1,
            |         experiment_event          AS d2
            |WHERE    ex.id                     = er.experiment_id
            |AND      er.id                     = d1.experiment_run_id
            |AND      er.id                     = d2.experiment_run_id
            |AND      d1.v_timestamp            = d2.v_timestamp
            |AND      d1.host                   = d2.host
            |AND      er.run                    = ?
            |AND      ex.name                   = ?
            |AND      ex.suite                  = ?
            |AND      d1.name                   = 'dstat_dsk_total:read'
            |AND      d2.name                   = 'dstat_dsk_total:writ'
            |ORDER BY host, time;
          """.stripMargin
        )

        stmt.setInt(1, run)
        stmt.setString(2, experiment)
        stmt.setString(3, suite)

        val rslt = stmt.executeQuery()

        val bldr = List.newBuilder[(String, Long, Double, Double)]

        while (rslt.next()) bldr += ((
          rslt.getString("host"),
          rslt.getTimestamp("time").toInstant.toEpochMilli,
          rslt.getDouble("r"),
          rslt.getDouble("w")))

        bldr.result()
      }

      // Querying total_cpu_usage data
      val gplsPath = Paths.get(config.getString("app.path.utils"), "gpl")
      val basePath = Paths.get(config.getString("app.path.results"), suite, "plots")
      val dataPath = basePath.resolve(s"$suite-$experiment-$run-io_performance.dat")

      // ensure base folder exists
      shell.ensureFolderIsWritable(basePath)

      // write data file
      logger.info(s"Writing Total IO performance results into path '$dataPath'")

      for {
        bwriter <- managed(Files.newBufferedWriter(dataPath, StandardCharsets.UTF_8, StandardOpenOption.CREATE))
        pwriter <- managed(new PrintWriter(bwriter))
      } {

        // Saving data to disk
        for (((host, time, read, write), i) <- data.zipWithIndex) {
          //@formatter:off
          pwriter.println(Seq(
            s"$host"                            padTo(30, ' '),
            f"${(time - tMin)/1000.0}%1.3f"     padTo(10, ' '),
            f"$read%1.3f"                       padTo(15, ' '),
            f"$write%1.3f"                      padTo(15, ' ')
          ) mkString "")
          //@formatter:on
        }
      }

      // unique hosts
      val hosts = data.map(_._1).distinct.mkString(" ")

      // execute gnuplot scripts
      logger.info(s"Plotting IO performance results using Gnuplot")

      // plot CPU performance for all hosts for each run
      shell !(
        cmd =
          raw"""
             |gnuplot -e "gplsPath='$gplsPath'" \
             |        -e "basePath='$basePath'" \
             |        -e "dataPath='$dataPath'" \
             |        -e "suite='$suite'" \
             |        -e "experiment='$experiment'" \
             |        -e "run='$run'" \
             |        -e "hosts='$hosts'" \
             |        $gplsPath/DstatPlotIO.gpl
             |        """.stripMargin.trim,
        errorMsg =
          "Cannot plot 'DstatPlotIO.gpl' with Gnuplot")
    }
    catch {
      case e: Throwable =>
        logger.error(s"Error while plotting IO performance results for suite '$suite'".red)
        throw e
    } finally {
      logger.info(s"Closing connection to database '$connName'")
      conn.close()
      logger.info("#" * 60)
    }
  }

}


text:
namespace Humidifier.Config
{
    using System.Collections.Generic;
    using DeliveryChannelTypes;

    public class DeliveryChannel : Humidifier.Resource
    {
        public override string AWSTypeName
        {
            get
            {
                return @"AWS::Config::DeliveryChannel";
            }
        }

        /// <summary>
        /// ConfigSnapshotDeliveryProperties
        /// http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-configsnapshotdeliveryproperties
        /// Required: False
        /// UpdateType: Mutable
        /// Type: ConfigSnapshotDeliveryProperties
        /// </summary>
        public ConfigSnapshotDeliveryProperties ConfigSnapshotDeliveryProperties
        {
            get;
            set;
        }

        /// <summary>
        /// Name
        /// http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-name
        /// Required: False
        /// UpdateType: Immutable
        /// PrimitiveType: String
        /// </summary>
        public dynamic Name
        {
            get;
            set;
        }

        /// <summary>
        /// S3BucketName
        /// http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3bucketname
        /// Required: True
        /// UpdateType: Mutable
        /// PrimitiveType: String
        /// </summary>
        public dynamic S3BucketName
        {
            get;
            set;
        }

        /// <summary>
        /// S3KeyPrefix
        /// http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-s3keyprefix
        /// Required: False
        /// UpdateType: Mutable
        /// PrimitiveType: String
        /// </summary>
        public dynamic S3KeyPrefix
        {
            get;
            set;
        }

        /// <summary>
        /// SnsTopicARN
        /// http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-config-deliverychannel.html#cfn-config-deliverychannel-snstopicarn
        /// Required: False
        /// UpdateType: Mutable
        /// PrimitiveType: String
        /// </summary>
        public dynamic SnsTopicARN
        {
            get;
            set;
        }
    }

    namespace DeliveryChannelTypes
    {
        public class ConfigSnapshotDeliveryProperties
        {
            /// <summary>
            /// DeliveryFrequency
            /// http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-config-deliverychannel-configsnapshotdeliveryproperties.html#cfn-config-deliverychannel-configsnapshotdeliveryproperties-deliveryfrequency
            /// Required: False
            /// UpdateType: Mutable
            /// PrimitiveType: String
            /// </summary>
            public dynamic DeliveryFrequency
            {
                get;
                set;
            }
        }
    }
}


text:
(function () {
  var EventEmitter2 = require('eventemitter2').EventEmitter2;
  var CockpitMessaging = function (io, opts) {
    var listeners = [];
    var sockets = [];
    var ignoreEvents = [
        'newListener',
        'removeListener'
      ];
    this.volatile = {
      emit: function () {
        if (ignoreEvents.includes(arguments[0])) {
          return;
        }
        var args = new Array(arguments.length);
        for (var i = 0; i < args.length; ++i) {
          //i is always valid index in the arguments object
          args[i] = arguments[i];
        }
        if (args[0] == [args[1]]) {
          args.shift();  //After an upgrade of eventemitter, it appears the arguments now include the event type.
        }
        sockets.forEach(function (socket) {
          socket.volatile.emit.apply(socket, args);
        });
      }
    };
    this.onAny(function () {
      if (ignoreEvents.includes(arguments[0])) {
        return;
      }
      var event = this.event;
      var args = new Array(arguments.length);
      for (var i = 0; i < args.length; ++i) {
        //i is always valid index in the arguments object
        args[i] = arguments[i];
      }
      if (args[0] == [args[1]]) {
        args.shift();  //After an upgrade of eventemitter, it appears the arguments now include the event type.
      }
      sockets.forEach(function (socket) {
        socket.emit.apply(socket, args);
      });
    });
    this.on('newListener', function (aType, aListener) {
      if (aType !== 'newListener') {
        listeners.push({
          type: aType,
          fn: aListener
        });
      }
    });
    io.on('connection', function (socket) {
      sockets.push(socket);
      listeners.forEach(function (listener) {
        socket.on(listener.type, listener.fn);
      });
      socket.on('disconnect', function () {
        var i = sockets.indexOf(socket);
        delete sockets[i];
      });
    });
  };
  CockpitMessaging.prototype = new EventEmitter2({
    wildcard: true,
    newListener: true
  });
  CockpitMessaging.prototype.constructor = CockpitMessaging;
  module.exports = CockpitMessaging;
}());


text:
using ReMi.Common.WebApi;
using ReMi.Queries.ReleasePlan;
using System;
using System.Web.Http;

namespace ReMi.Api.Controllers
{
    [RoutePrefix("checkList")]
    public class CheckListController : ApiController
    {
        public IImplementQueryAction<GetCheckListRequest, GetCheckListResponse> GetCheckListAction { get; set; }
        public IImplementQueryAction<CheckListAdditionalQuestionRequest, CheckListAdditionalQuestionResponse> GetAdditionalQuestionAction { get; set; }

        [HttpGet]
        [Route("{releaseWindowId:Guid}")]
        public GetCheckListResponse GetCheckList(Guid releaseWindowId)
        {
            var request = new GetCheckListRequest
            {
                ReleaseWindowId = releaseWindowId
            };

            return GetCheckListAction.Handle(ActionContext, request);
        }

        [HttpGet]
        [Route("additionalQuestions/{releaseWindowId:Guid}")]
        public CheckListAdditionalQuestionResponse GetAdditionalQuestions(Guid releaseWindowId)
        {
            var request = new CheckListAdditionalQuestionRequest
            {
                ReleaseWindowId = releaseWindowId
            };

            return GetAdditionalQuestionAction.Handle(ActionContext, request);
        }
    }
}


text:
package org.apache.ivory.entity.parser;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.Path;
import org.apache.ivory.entity.ClusterHelper;
import org.apache.ivory.entity.store.StoreAccessException;
import org.apache.ivory.entity.v0.EntityType;
import org.apache.ivory.entity.v0.cluster.Cluster;
import org.apache.log4j.Logger;

public class ClusterEntityParser extends EntityParser<Cluster> {

    private static final Logger LOG = Logger.getLogger(ProcessEntityParser.class);

    public ClusterEntityParser() {
        super(EntityType.CLUSTER);
    }

    @Override
	public void validate(Cluster cluster) throws StoreAccessException,
			ValidationException {
		if (new Path(ClusterHelper.getStorageUrl(cluster)).toUri().getScheme()==null) {
			throw new ValidationException(
					"Cannot get valid scheme for namenode from write interface of cluster: "
							+ cluster.getName());
		}
		try {
			Configuration conf = new Configuration();
			conf.set("fs.default.name", ClusterHelper.getStorageUrl(cluster));
			conf.setInt("ipc.client.connect.max.retries", 10);
			FileSystem.get(conf);
		} catch (Exception e) {
			throw new ValidationException("Invalid HDFS server or port:"
					+ ClusterHelper.getStorageUrl(cluster), e);
		}
	}

}