text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="c89e3a4e-869e-422e-9dc5-cea41f18b6b2" name="Default" comment="" />
    <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="FileEditorManager">
    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
      <file leaf-file-name="exercises1" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/exercises/exercises1">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="861">
              <caret line="41" column="4" lean-forward="false" selection-start-line="41" selection-start-column="4" selection-end-line="41" selection-end-column="31" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="SmallestStepNim.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/samples/SmallestStepNim.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="1092">
              <caret line="58" column="0" lean-forward="false" selection-start-line="58" selection-start-column="0" selection-end-line="58" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="Ex5Methods.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/exercises/Ex5Methods.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="1050">
              <caret line="55" column="21" lean-forward="false" selection-start-line="55" selection-start-column="21" selection-end-line="55" selection-end-column="21" />
              <folding>
                <element signature="e#1121#1122#0" expanded="true" />
                <element signature="e#1169#1170#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="Ex6Classes.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/exercises/Ex6Classes.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="567">
              <caret line="32" column="16" lean-forward="false" selection-start-line="32" selection-start-column="16" selection-end-line="32" selection-end-column="16" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="Ex7SmallestStepRPS.java" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/src/exercises/Ex7SmallestStepRPS.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="105">
              <caret line="34" column="51" lean-forward="true" selection-start-line="34" selection-start-column="51" selection-end-line="34" selection-end-column="51" />
              <folding>
                <element signature="imports" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="Ex8FuncDecompDayNumber.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/exercises/Ex8FuncDecompDayNumber.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="798">
              <caret line="44" column="0" lean-forward="false" selection-start-line="44" selection-start-column="0" selection-end-line="44" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="FuncDecompLCR.java" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/src/samples/FuncDecompLCR.java">
          <provider selected="true" editor-type-id="text-editor">
            <state relative-caret-position="1512">
              <caret line="78" column="62" lean-forward="false" selection-start-line="78" selection-start-column="62" selection-end-line="78" selection-end-column="62" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FindInProjectRecents">
    <findStrings>
      <find>for</find>
    </findStrings>
  </component>
  <component name="GradleLocalSettings">
    <option name="externalProjectsViewState">
      <projects_view />
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/src/samples/PrimitiveVariables.java" />
        <option value="$PROJECT_DIR$/src/samples/Loops.java" />
        <option value="$PROJECT_DIR$/src/samples/Arithmetic.java" />
        <option value="$PROJECT_DIR$/src/samples/LoopAndAHalf.java" />
        <option value="$PROJECT_DIR$/src/samples/Methods.java" />
        <option value="$PROJECT_DIR$/src/samples/FuncDecompLCR2.java" />
        <option value="$PROJECT_DIR$/src/samples/unused/FuncDecompLCR.java" />
        <option value="$PROJECT_DIR$/src/samples/FuncDecompLCR.java" />
        <option value="$PROJECT_DIR$/src/samples/LogicAndRelationsOps.java" />
        <option value="$PROJECT_DIR$/src/tmp/MyProgram.java" />
        <option value="$PROJECT_DIR$/src/tmp/Temp.java" />
        <option value="$PROJECT_DIR$/src/tmp/BigOfThree.java" />
        <option value="$PROJECT_DIR$/src/exercises/exercises1" />
        <option value="$PROJECT_DIR$/src/exercises/Ex6Classes.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex8FuncDecompDayNumber.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex9FuncDecompTicTacToe.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex1BMI.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex2EasterDay.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex3SumAvg.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex4Arrays.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex5Methods.java" />
        <option value="$PROJECT_DIR$/src/exercises/Ex7SmallestStepRPS.java" />
      </list>
    </option>
  </component>
  <component name="ProjectFrameBounds" extendedState="6">
    <option name="x" value="267" />
    <option name="y" value="23" />
    <option name="width" value="1283" />
    <option name="height" value="1005" />
  </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="AndroidView" />
      <pane id="PackagesPane" />
      <pane id="Scope" />
      <pane id="Scratches" />
      <pane id="ProjectPane">
        <subPane>
          <expand>
            <path>
              <item name="week1" type="b2602c69:ProjectViewProjectNode" />
              <item name="week1" type="462c0819:PsiDirectoryNode" />
            </path>
            <path>
              <item name="week1" type="b2602c69:ProjectViewProjectNode" />
              <item name="week1" type="462c0819:PsiDirectoryNode" />
              <item name="src" type="462c0819:PsiDirectoryNode" />
            </path>
            <path>
              <item name="week1" type="b2602c69:ProjectViewProjectNode" />
              <item name="week1" type="462c0819:PsiDirectoryNode" />
              <item name="src" type="462c0819:PsiDirectoryNode" />
              <item name="exercises" type="462c0819:PsiDirectoryNode" />
            </path>
            <path>
              <item name="week1" type="b2602c69:ProjectViewProjectNode" />
              <item name="week1" type="462c0819:PsiDirectoryNode" />
              <item name="src" type="462c0819:PsiDirectoryNode" />
              <item name="samples" type="462c0819:PsiDirectoryNode" />
            </path>
          </expand>
          <select />
        </subPane>
      </pane>
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="project.structure.last.edited" value="Project" />
    <property name="project.structure.proportion" value="0.0" />
    <property name="project.structure.side.proportion" value="0.2" />
    <property name="settings.editor.selected.configurable" value="preferences.keymap" />
  </component>
  <component name="RecentsManager">
    <key name="CopyClassDialog.RECENTS_KEY">
      <recent name="samples" />
    </key>
  </component>
  <component name="RunDashboard">
    <option name="ruleStates">
      <list>
        <RuleState>
          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
        </RuleState>
        <RuleState>
          <option name="name" value="StatusDashboardGroupingRule" />
        </RuleState>
      </list>
    </option>
  </component>
  <component name="RunManager" selected="Application.Ex7SmallestStepRPS">
    <configuration name="Ex2EasterDay" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="exercises.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="MAIN_CLASS_NAME" value="exercises.Ex2EasterDay" />
      <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="week1" />
      <envs />
    </configuration>
    <configuration name="Ex3SumAvg" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="exercises.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="MAIN_CLASS_NAME" value="exercises.Ex3SumAvg" />
      <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="week1" />
      <envs />
    </configuration>
    <configuration name="Ex4Arrays" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="exercises.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="MAIN_CLASS_NAME" value="exercises.Ex4Arrays" />
      <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="week1" />
      <envs />
    </configuration>
    <configuration name="Ex5Methods" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="exercises.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="MAIN_CLASS_NAME" value="exercises.Ex5Methods" />
      <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="week1" />
      <envs />
    </configuration>
    <configuration name="Ex7SmallestStepRPS" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea">
        <pattern>
          <option name="PATTERN" value="exercises.*" />
          <option name="ENABLED" value="true" />
        </pattern>
      </extension>
      <option name="MAIN_CLASS_NAME" value="exercises.Ex7SmallestStepRPS" />
      <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="week1" />
      <envs />
    </configuration>
    <configuration default="true" type="Applet" factoryName="Applet">
      <option name="WIDTH" value="400" />
      <option name="HEIGHT" value="300" />
      <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
      <module />
    </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 />
    </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 />
    </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" />
      <predefined_log_file id="idea.log" enabled="true" />
    </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" />
    </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 />
    </configuration>
    <list size="5">
      <item index="0" class="java.lang.String" itemvalue="Application.Ex2EasterDay" />
      <item index="1" class="java.lang.String" itemvalue="Application.Ex3SumAvg" />
      <item index="2" class="java.lang.String" itemvalue="Application.Ex4Arrays" />
      <item index="3" class="java.lang.String" itemvalue="Application.Ex5Methods" />
      <item index="4" class="java.lang.String" itemvalue="Application.Ex7SmallestStepRPS" />
    </list>
    <recent_temporary>
      <list size="5">
        <item index="0" class="java.lang.String" itemvalue="Application.Ex7SmallestStepRPS" />
        <item index="1" class="java.lang.String" itemvalue="Application.Ex5Methods" />
        <item index="2" class="java.lang.String" itemvalue="Application.Ex4Arrays" />
        <item index="3" class="java.lang.String" itemvalue="Application.Ex3SumAvg" />
        <item index="4" class="java.lang.String" itemvalue="Application.Ex2EasterDay" />
      </list>
    </recent_temporary>
  </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="c89e3a4e-869e-422e-9dc5-cea41f18b6b2" name="Default" comment="" />
      <created>1502092086794</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1502092086794</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-9" y="-9" width="1938" height="1048" extended-state="6" />
    <layout>
      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32894737" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Palette	" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.22258772" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.18072917" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="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="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <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" />
    </layout>
  </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$/src/samples/FuncDecompLCR.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="3045">
          <caret line="213" column="33" lean-forward="false" selection-start-line="213" selection-start-column="33" selection-end-line="213" selection-end-column="33" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/ClassBasics.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="11" column="13" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/F2C.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="180">
          <caret line="15" column="13" lean-forward="false" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/Loops.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="870">
          <caret line="60" column="51" lean-forward="false" selection-start-line="60" selection-start-column="51" selection-end-line="60" selection-end-column="51" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/ArrayBasics.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="375">
          <caret line="29" column="13" lean-forward="false" selection-start-line="29" selection-start-column="13" selection-end-line="29" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/LoopAndAHalf.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="270">
          <caret line="22" column="16" lean-forward="false" selection-start-line="22" selection-start-column="16" selection-end-line="22" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/Arithmetic.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="660">
          <caret line="48" column="18" lean-forward="false" selection-start-line="48" selection-start-column="18" selection-end-line="48" selection-end-column="18" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/LogicAndRelationsOps.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="540">
          <caret line="41" column="85" lean-forward="false" selection-start-line="41" selection-start-column="85" selection-end-line="41" selection-end-column="85" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/SmallestStepNim.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="270">
          <caret line="22" column="13" lean-forward="false" selection-start-line="22" selection-start-column="13" selection-end-line="22" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/PrimitiveVariables.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="435">
          <caret line="31" column="5" lean-forward="true" selection-start-line="29" selection-start-column="4" selection-end-line="31" selection-end-column="5" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/FuncDecompLCR.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="3045">
          <caret line="213" column="33" lean-forward="false" selection-start-line="213" selection-start-column="33" selection-end-line="213" selection-end-column="33" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/ClassBasics.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="11" column="13" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/F2C.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="180">
          <caret line="15" column="13" lean-forward="false" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex4Arrays.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="15" column="13" lean-forward="false" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/Arithmetic.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="660">
          <caret line="48" column="18" lean-forward="false" selection-start-line="48" selection-start-column="18" selection-end-line="48" selection-end-column="18" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex3SumAvg.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="180">
          <caret line="14" column="13" lean-forward="false" selection-start-line="14" selection-start-column="13" selection-end-line="14" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/IO.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="480">
          <caret line="36" column="36" lean-forward="true" selection-start-line="36" selection-start-column="36" selection-end-line="36" selection-end-column="36" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/exercises1">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="405">
          <caret line="27" column="19" lean-forward="false" selection-start-line="27" selection-start-column="19" selection-end-line="27" selection-end-column="19" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/Methods.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1020">
          <caret line="77" column="40" lean-forward="true" selection-start-line="77" selection-start-column="40" selection-end-line="77" selection-end-column="40" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex7SmallestStepRPS.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="525">
          <caret line="41" column="0" lean-forward="true" selection-start-line="41" selection-start-column="0" selection-end-line="41" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex8FuncDecompDayNumber.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="195">
          <caret line="17" column="13" lean-forward="false" selection-start-line="17" selection-start-column="13" selection-end-line="17" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/ClassBasics.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="11" column="13" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex1BMI.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="405">
          <caret line="32" column="27" lean-forward="true" selection-start-line="32" selection-start-column="27" selection-end-line="32" selection-end-column="27" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/unused/FuncDecompLCR.java" />
    <entry file="file://$PROJECT_DIR$/out/production/week1/exercises/Ex1BMI.class" />
    <entry file="file://$PROJECT_DIR$/src/samples/IfStatement.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="60">
          <caret line="7" column="13" lean-forward="false" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/ClassBasics.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="11" column="13" lean-forward="false" selection-start-line="11" selection-start-column="13" selection-end-line="11" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/Loops.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="870">
          <caret line="60" column="51" lean-forward="false" selection-start-line="60" selection-start-column="51" selection-end-line="60" selection-end-column="51" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/LogicAndRelationsOps.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="315">
          <caret line="29" column="51" lean-forward="true" selection-start-line="29" selection-start-column="51" selection-end-line="29" selection-end-column="51" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/IO.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="344">
          <caret line="36" column="36" lean-forward="false" selection-start-line="36" selection-start-column="36" selection-end-line="36" selection-end-column="36" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/tmp/Temp.java" />
    <entry file="file://$PROJECT_DIR$/src/tmp/RPS.java" />
    <entry file="file://$PROJECT_DIR$/src/samples/LoopAndAHalf.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="270">
          <caret line="22" column="16" lean-forward="false" selection-start-line="22" selection-start-column="16" selection-end-line="22" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/PrimitiveVariables.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="435">
          <caret line="31" column="5" lean-forward="false" selection-start-line="29" selection-start-column="4" selection-end-line="31" selection-end-column="5" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/tmp/BigOfThree.java" />
    <entry file="file://$PROJECT_DIR$/src/samples/Arithmetic.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="660">
          <caret line="48" column="18" lean-forward="false" selection-start-line="48" selection-start-column="18" selection-end-line="48" selection-end-column="18" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/F2C.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="180">
          <caret line="15" column="13" lean-forward="false" selection-start-line="15" selection-start-column="13" selection-end-line="15" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/ArrayBasics.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="375">
          <caret line="29" column="13" lean-forward="false" selection-start-line="29" selection-start-column="13" selection-end-line="29" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex9FuncDecompTicTacToe.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1037">
          <caret line="68" column="28" lean-forward="false" selection-start-line="68" selection-start-column="28" selection-end-line="68" selection-end-column="28" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex2EasterDay.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="416">
          <caret line="73" column="29" lean-forward="false" selection-start-line="73" selection-start-column="29" selection-end-line="73" selection-end-column="29" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex3SumAvg.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="382">
          <caret line="42" column="42" lean-forward="false" selection-start-line="42" selection-start-column="42" selection-end-line="42" selection-end-column="42" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex1BMI.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="338">
          <caret line="42" column="31" lean-forward="false" selection-start-line="42" selection-start-column="31" selection-end-line="42" selection-end-column="31" />
          <folding>
            <element signature="imports" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex4Arrays.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="314">
          <caret line="26" column="39" lean-forward="false" selection-start-line="26" selection-start-column="39" selection-end-line="26" selection-end-column="39" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/Methods.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="140">
          <caret line="83" column="30" lean-forward="false" selection-start-line="83" selection-start-column="30" selection-end-line="83" selection-end-column="30" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex5Methods.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1050">
          <caret line="55" column="21" lean-forward="false" selection-start-line="55" selection-start-column="21" selection-end-line="55" selection-end-column="21" />
          <folding>
            <element signature="e#1121#1122#0" expanded="true" />
            <element signature="e#1169#1170#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/exercises1">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="861">
          <caret line="41" column="4" lean-forward="false" selection-start-line="41" selection-start-column="4" selection-end-line="41" selection-end-column="31" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/SmallestStepNim.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1092">
          <caret line="58" column="0" lean-forward="false" selection-start-line="58" selection-start-column="0" selection-end-line="58" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex6Classes.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="567">
          <caret line="32" column="16" lean-forward="false" selection-start-line="32" selection-start-column="16" selection-end-line="32" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex8FuncDecompDayNumber.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="798">
          <caret line="44" column="0" lean-forward="false" selection-start-line="44" selection-start-column="0" selection-end-line="44" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/samples/FuncDecompLCR.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1512">
          <caret line="78" column="62" lean-forward="false" selection-start-line="78" selection-start-column="62" selection-end-line="78" selection-end-column="62" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/src/exercises/Ex7SmallestStepRPS.java">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="105">
          <caret line="34" column="51" lean-forward="true" selection-start-line="34" selection-start-column="51" selection-end-line="34" selection-end-column="51" />
          <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>
          <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>week1</last-edited>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
                <option value="0.6" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
      <state key="ProjectLibrariesConfigurable.UI">
        <settings>
          <splitter-proportions>
            <option name="proportions">
              <list>
                <option value="0.2" />
              </list>
            </option>
          </splitter-proportions>
        </settings>
      </state>
    </states>
  </component>
</project>


text:
import Component from 'can/component/';
import Map from 'can/map/';
import List from 'can/list/';
import template from './question.stache!';
import { answerConnection, Answer } from '../models/answer';

import 'can/map/define/';
import './question.less!';

export const ViewModel = Map.extend({
  define: {
    questionNumber: {
      type: 'number',
      set(val) {
        this.attr('providedAnswer', '');
        this.attr('answer', '');
        return val;
      }
    },
    providedAnswer: {
      type: 'string',
      value: ''
    },
    potentialAnswers: {
      get(lastSetVal, resolve) {
        const t = this.attr('providedAnswer');

        if (!t) {
          resolve(new List([]));
          return;
        }

        answerConnection
          .getList({ t })
          .then(resolve);
      }
    },
    answer: {
      get(lastSetVal) {
        let bestAnswer = new Map({ answer: undefined, certainty: 0.3 });
        const options = this.attr('options');

        if (lastSetVal) {
          return lastSetVal;
        }

        this.attr('potentialAnswers')
          .forEach((answer) => {
            if (answer.attr('certainty') >= bestAnswer.attr('certainty') && options.indexOf(answer.attr('answer')) >= 0) {
              bestAnswer = answer;
            }
          });

          return bestAnswer.attr('answer');
      }
    }
  },
  createAnswer: function(t, answer) {
    const vm = this;
    const ans = new Answer({ t, answer });

    return answerConnection
      .save( ans )
      .then((ans) => {
        vm.attr('answer', ans.attr('answer'));
        return ans;
      });
  }
});

export default Component.extend({
  tag: 'vgi-question',
  viewModel: ViewModel,
  template
});

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<title></title>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="search.css"/>

Loading...

  buildAllSDS
  SDDistributed

  buildBoundaryMap
  Domain

  buildGeometry
  Geometry

  buildRecvMap
  SDDistributed

  buildSendMap
  SDDistributed

  buildSubDomainsMPI
  Domain

  buildThreads
  Domain

Searching...

No Matches


text:
package org.nigajuan.springloaded.service.deps;

/**
 * Created by nigajuan on 13/02/14.
 */
public interface Deps {
    String STEP1 = Deps.class.getCanonicalName() + "_STEP1";
    String STEP2 = Deps.class.getCanonicalName() + "_STEP2";

}


text:
=begin
# 1. Initial Solution
def mode(array)
  # go through all the numbers in the array
  hash_1 = Hash.new
  #with each object in the array, store the object in the hash and count them
  array.each do |hash_1, key| hash_1[key] == value += 1
  end

  array.delete_if {|k, v| v < 2}

 # hash_1.max_by {|key| key.store}
 # if hash_1 > key
  #  return hash_1.key
 # else
  #  return hash_1
  #end

  Couldn't figure out, used my pairs work:
=end

def mode(array)
 counter = Hash.new(0)
 array.each do |i|
   counter[i] += 1
 end
 mode_list = []
 counter.each do |k, v|
   if v == counter.values.max
   mode_list << k
   end
 end
 mode_list
end

  # keep the same numbers in one pile
  # name the hash, the key will hold the object, the value will hold the occurences hash_1["key"] = "value"
  # go through each value
  # get the value with the highest number
  # return array stating the key with the value of the highest number

end

# 3. Refactored Solution

# 4. Reflection

=begin
Which data structure did you and your pair decide to implement and why?

I tried to help figure things out with my pair but he seemed to know more of what was going on, and had sorted it out himself. I tried doing it on my own to understand how to write it, but as you can see, I couldn't figure it out. I will keep working on this but for now, heres my submission.

Were you more successful breaking this problem down into implementable pseudocode than the last with a pair?

I guess my pseudocode was better this round only because I was really sure of what I wanted to accomplish.

What issues/successes did you run into when translating your pseudocode to code?

I wasn't able to translate that pseudocode as well as the previous pairing session.

What methods did you use to iterate through the content? Did you find any good ones when you were refactoring? Were they difficult to implement?

Used .each.

=end


text:
module.exports = function platformScriptPath(path) {
  const os = require('os');
  return /^win/.test(os.platform()) ? `${path}.cmd` : path;
};


text:
package hudson.lifecycle;

import hudson.Extension;

import org.kohsuke.accmod.Restricted;
import org.kohsuke.accmod.restrictions.NoExternalUse;

import java.util.logging.Level;
import java.util.logging.Logger;

import jenkins.model.Configuration;
import jenkins.model.Jenkins;

/**
 * {@link Lifecycle} that delegates the responsibility to restart Jenkins to an external
 * watchdog such as SystemD or OpenRC.
 *
 * <p>
 * Restart by exit with specific code.
 *
 * @author Alon Bar-Lev
 */
@Restricted(NoExternalUse.class)
@Extension
public class ExitLifecycle extends Lifecycle {

    private static final Logger LOGGER = Logger.getLogger(ExitLifecycle.class.getName());

    private static final String EXIT_CODE_ON_RESTART = "exitCodeOnRestart";
    private static final String DEFAULT_EXIT_CODE = "5";

    private Integer exitOnRestart;

    public ExitLifecycle() {
        exitOnRestart = Integer.parseInt(Configuration.getStringConfigParameter(EXIT_CODE_ON_RESTART, DEFAULT_EXIT_CODE));
    }

    @Override
    public void restart() {
        Jenkins jenkins = Jenkins.getInstanceOrNull(); // guard against repeated concurrent calls to restart

        try {
            if (jenkins != null) {
                jenkins.cleanUp();
            }
        } catch (Exception e) {
            LOGGER.log(Level.SEVERE, "Failed to clean up. Restart will continue.", e);
        }

        System.exit(exitOnRestart);
    }
}


text:
import { GlobalProvider } from './../../providers/global/global';
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams, AlertController, ToastController } from 'ionic-angular';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
import { PacientesProvider } from './../../providers/pacientes/pacientes';
import { ParentesProvider } from '../../providers/parentes/parentes';

/**
  Aba de parentes (lista): (nome parente e
    parentesco).
 */

@IonicPage()
@Component({
  selector: 'page-parentes',
  templateUrl: 'parentes.html',
})
export class ParentesPage {

  buscarParentes: any;
  private parentesForm: FormGroup;
  private parentes: Array<{ nome: string, parentesco: string }>;
  private parentSegment: string;
  private checkStatus: boolean = false;
  private uid: string;

  constructor(
    public navCtrl: NavController,
    public navParams: NavParams,
    public alertCtrl: AlertController,
    private formBuilder: FormBuilder,
    private global: GlobalProvider,
    private pacientes: PacientesProvider,
    private parentesPv: ParentesProvider,
    public toastCtrl: ToastController) {

    this.parentSegment = 'lista';
    this.parentesForm = this.formBuilder.group({
      cpf: ['', Validators.required],
      parentesco: ['', Validators.required]
    });
    this.parentes = [];

    this.verificaCanGoBack();

    if(typeof this.navParams.get("user") == 'undefined'){

      this.global.getCurrentUser().then((user) => {
        if (user) {
          this.uid = user.uid;
          this.buscarParentes = this.parentesPv.select(user.uid).snapshotChanges().subscribe(actions => {
            var data = [];
            actions.forEach(action => {
              var parentes = action.payload.val();
              parentes.key = action.key;
              data.push(parentes);
            });
            this.parentes = data;
          });

        } else {
          this.navCtrl.setRoot('HomePage');
        }
      });

    } else {
      var user = this.navParams.get('user');

      this.buscarParentes = this.parentesPv.select(user.uid).snapshotChanges().subscribe(actions => {
        var data = [];
        actions.forEach(action => {
          var parentes = action.payload.val();
          parentes.key = action.key;
          data.push(parentes);
        });
        this.parentes = data;
      });
    }

  }

  /**
  * O método canGoBack nativo do Ionic não estava funcionando, mesmo colocado no WillEnter, quando a
  * aplicação terminou completamente de carregar ele retornava que havia uma página anterior.
  * Só funciona no click e é terrível sumir com o botão só quando o usuário clicar.
  */
  verificaCanGoBack(){
    console.log(this.navParams);
    if(typeof this.navParams.get("canGoBack") == 'undefined'){
      this.checkStatus = true;
    }
  }

  ngOnDestroy() {
    this.buscarParentes.unsubscribe();
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ParentesPage');
  }

  deleteItem(list, index) {
    this.parentesPv.delete(list[index].key);
  }

  addParentes() {
    let cpf = this.parentesForm.value.cpf;

    this.pacientes.selectByCPF(cpf).snapshotChanges().subscribe(actions => {

      if (actions.length > 0) {

        actions.forEach(action => {
          var dadosUsuario = action.payload.val();

          this.parentesPv.update({
            uid: this.uid,
            uidParente: dadosUsuario.uid,
            nome: dadosUsuario.nome,
            parentesco: this.parentesForm.value.parentesco
          });

          this.showMessage("Registro salvo com sucesso.");
          this.parentesForm.reset();
        });

      } else {
        this.showMessage("CPF não existe na base de dados.");
      }

    });

  }

  showMessage(m) {
    let toast = this.toastCtrl.create({
      message: m,
      showCloseButton: true,
      closeButtonText: 'Ok',
      duration: 3000
    });
    toast.present();
  }

  proxPagina(){
    this.navCtrl.push('AlergiasPage', {
      user: this.navParams.get('user'),
      canGoBack: true
    });
  }

  anterior(){
    console.log(this.navCtrl.canGoBack());
    if(this.navCtrl.canGoBack()){
      this.navCtrl.pop();
    }
  }
}


text:
A Game Engine built on top of LWJGL

## Features
- __SLF4J Integration__:

- __JOML Integration__:


text:
$(".flp label").each(function(){
	var sop = ''; //span opening
	var scl = ''; //span closing
	//split the label into single letters and inject span tags around them
	$(this).html(sop + $(this).html().split("").join(scl+sop) + scl);
	//to prevent space-only spans from collapsing
	$(".ch:contains(' ')").html(" ");
})

var d;
//animation time
$(".flp input").focus(function(){
	//calculate movement for .ch = half of input height
	var tm = $(this).outerHeight()/2 *-1 + "px";
	//label = next sibling of input
	//to prevent multiple animation trigger by mistake we will use .stop() before animating any character and clear any animation queued by .delay()
	$(this).next().addClass("focussed").children().stop(true).each(function(i){
		d = i*50;//delay
		$(this).delay(d).animate({top: tm}, 200, 'easeOutBack');
	})
})
$(".flp input").blur(function(){
	//animate the label down if content of the input is empty
	if($(this).val() == "")
	{
		$(this).next().removeClass("focussed").children().stop(true).each(function(i){
			d = i*50;
			$(this).delay(d).animate({top: 0}, 500, 'easeInOutBack');
		})
	}
})


text:
using System;

using Foundation;
using UIKit;
using Wires.Sample.ViewModel;

namespace Wires.Sample.iOS
{
	public partial class PostTableCell : UITableViewCell, IView
	{
		public static readonly NSString Key = new NSString(nameof(PostTableCell));

		public static readonly UINib Nib;

		static PostTableCell()
		{
			Nib = UINib.FromName(nameof(PostTableCell), NSBundle.MainBundle);
		}

		protected PostTableCell(IntPtr handle) : base(handle)
		{
			// Note: this .ctor should not contain any initialization logic.
		}

		private RedditViewModel.ItemViewModel viewModel;

		public RedditViewModel.ItemViewModel ViewModel
		{
			get { return this.viewModel; }
			set
			{
				if (this.viewModel != value)
				{
					this.ViewModel?.Unbind(this.title, this.author, this.illustration);

					this.viewModel = value;

					value
						.Bind(title)
							.Text(vm => vm.Title)
						.Bind(author)
							.Text(vm => vm.Author)
						.Bind(date)
							.Text(vm => vm.Datetime)
						.Bind(illustration)
							.ImageAsync(vm => vm.Thumbnail); //, PlatformConverters.AsyncStringToCachedImage(TimeSpan.FromHours(1))
				}
			}
		}

		object IView.ViewModel
		{
			get { return this.ViewModel; }
			set { this.ViewModel = value as RedditViewModel.ItemViewModel; }
		}
	}
}


text:
<?php namespace Indikator\News\ReportWidgets;

use Backend\Classes\ReportWidgetBase;
use Exception;
use Indikator\News\Models\Posts as Post;

class NewPosts extends ReportWidgetBase
{
    public function render()
    {
        try {
            $this->loadData();
        }
        catch (Exception $ex) {
            $this->vars['error'] = $ex->getMessage();
        }

        return $this->makePartial('widget');
    }

    public function defineProperties()
    {
        return [
            'title' => [
                'title'             => 'backend::lang.dashboard.widget_title_label',
                'default'           => 'indikator.news::lang.widget.newposts',
                'type'              => 'string',
                'validationPattern' => '^.+$',
                'validationMessage' => 'backend::lang.dashboard.widget_title_error'
            ],
            'piece' => [
                'title'   => 'indikator.news::lang.widget.show_piece',
                'default' => 5,
                'type'    => 'dropdown',
                'options' => [3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12]
            ],
            'date' => [
                'title'   => 'indikator.news::lang.widget.show_date',
                'default' => true,
                'type'    => 'checkbox'
            ],
            'rank' => [
                'title'   => 'indikator.news::lang.widget.show_rank',
                'default' => false,
                'type'    => 'checkbox'
            ]
        ];
    }

    protected function loadData()
    {
        $this->vars['posts'] = Post::where('status', 1)->orderBy('published_at', 'desc')->take($this->property('piece'))->get()->all();
    }
}


text:
package org.homunculus.android.component;

import android.annotation.TargetApi;
import android.graphics.Bitmap;
import android.graphics.Bitmap.Config;
import android.os.Build.VERSION;
import android.os.Build.VERSION_CODES;
import android.os.Handler;
import android.os.Looper;

import androidx.annotation.Nullable;

import org.homunculusframework.lang.Panic;
import org.slf4j.LoggerFactory;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Iterator;
import java.util.LinkedList;

/**
 * A factory implementation
 *
 * @author Torben Schinke
 * @since 1.0
 */
public class BitmapPoolFactory {

    private final static NoPool sNoPool = new NoPool();
    private final static BitmapPool sPool;
    private static boolean sPoolingEnabled = true;
    private static ByteBuffer sTmp = ByteBuffer.allocate(1024 * 1024 * 1);

    static {
        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
            sPool = new KitKat19AndroidPool();
        } else {
            sPool = new SimpleAndroidPool();
        }
    }

    public synchronized static BitmapPool getDefaultPool() {
        if (!sPoolingEnabled) return sNoPool;
        //large heap
        if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB)
            return sPool;
        else
            return sNoPool;
    }

    /**
     * Tries to recycle a pooled bitmap and reads raw pixels into the bitmap. Internally always reuses
     * a (potentially) big buffer to update the texture. The buffer grows to the largest size when needed and
     * is never shrunk, so be careful what you read, e.g. a fullhd frame will take more than 8 MiB. However to
     * lower the pressure to the stupid Android GC we sacrifice throughput by synchronizing globally, so NEVER
     * call this method from the UI thread.
     *

     * The format is:
     *

     *     bool available   1 byte
     *     int width        4 byte
     *     int height       4 byte
     *     int type         1 byte, [2 = ARGB_8888]
     *

     *
     * @param in the source
     * @return the instance or null if not available
     * @throws IOException
     */
    @Nullable
    public static Bitmap readPixel(DataInput in) throws IOException {
        boolean available = in.readBoolean();
        if (!available) {
            return null;
        }
        int width = in.readInt();
        int height = in.readInt();
        int type = in.readUnsignedByte();
        if (type != Config.ARGB_8888.ordinal()) {
            throw new Panic("format not implemented " + type);
        }
        int bytes = width * height * 4;
        Bitmap bmp = getDefaultPool().borrowBitmap(width, height, Config.ARGB_8888);
        synchronized (BitmapPoolFactory.class) {
            if (sTmp.capacity() < bytes) {
                sTmp = ByteBuffer.allocate(bytes);
            }
            sTmp.clear();
            in.readFully(sTmp.array(), 0, bytes);
            sTmp.limit(bytes);
            bmp.copyPixelsFromBuffer(sTmp);
        }
        return bmp;
    }

    /**
     * The reverse function of {@link #readPixel(DataInput)}
     *
     * @param src the bitmap
     * @param dst the sink
     * @throws IOException
     */
    public static void writePixel(@Nullable Bitmap src, DataOutput dst) throws IOException {
        if (src != null && src.getConfig() != Config.ARGB_8888) {
            throw new Panic("only bitmaps of the type ARGB_8888 are supported");
        }
        dst.writeBoolean(src != null);
        if (src == null) {
            return;
        }
        dst.writeInt(src.getWidth());
        dst.writeInt(src.getHeight());
        int bytes = src.getWidth() * src.getHeight() * 4;
        dst.writeByte(src.getConfig().ordinal());
        synchronized (BitmapPoolFactory.class) {
            if (sTmp.capacity() < bytes) {
                sTmp = ByteBuffer.allocate(bytes);
            }
            sTmp.clear();
            sTmp.limit(bytes);
            src.copyPixelsToBuffer(sTmp);
            dst.write(sTmp.array(), 0, bytes);
        }
    }

    public static boolean isPoolingEnabled() {
        return sPoolingEnabled;
    }

    public synchronized static void disablePooling() {
        sPoolingEnabled = false;
        sPool.clear();
    }

    public static void enablePooling() {
        sPoolingEnabled = true;
    }

    public static BitmapPool getNoPool() {
        return sNoPool;
    }

    /**
     * All android pool implementations derive from this
     */
    public static abstract class AbsAndroidPool implements BitmapPool {
        public abstract void setDebug(boolean b);
    }

    public static class NoPool extends AbsAndroidPool {
        @Override
        public Bitmap borrowBitmap(int width, int height, Config config) {
            return Bitmap.createBitmap(width, height, config);
        }

        @Override
        public void returnBitmap(Bitmap bmp) {
            if (bmp != null && !bmp.isRecycled()) {
                Handler h = new Handler(Looper.getMainLooper());
                h.post(() -> {
                    h.post(() -> {
                        bmp.recycle();
                    });
                });
            }
        }

        @Override
        public void destroy() {

        }

        @Override
        public void clear() {

        }

        @Override
        public void setDebug(boolean b) {

        }

        @Override
        public int countBitmaps(int width, int height, Config config) {
            return 0;
        }
    }

    public static class SimpleAndroidPool extends AbsAndroidPool {
        /*
        around 8mb is an entire fullhd screen, we will cache just two screens at once, this is not sufficient for 4k which needs at least 32mb
         */
        private int mCapacity = 1024 * 1024 * 8 * 2;
        private LinkedList<Bitmap> mCache = new LinkedList<Bitmap>();
        private boolean mDebug;

        public void setDebug(boolean b) {
            mDebug = b;
        }

        @Override
        public Bitmap borrowBitmap(int width, int height, Config config) {
            synchronized (mCache) {
                Iterator<Bitmap> it = mCache.iterator();
                while (it.hasNext()) {
                    Bitmap bmp = it.next();
                    if (bmp.isRecycled()) {
                        it.remove();
                        if (mDebug)
                            LoggerFactory.getLogger(getClass()).debug("found already recycled bitmap {}", bmp);
                        continue;
                    }
                    if (bmp.getWidth() == width && bmp.getHeight() == height && bmp.getConfig() == config) {
                        it.remove();
                        if (mDebug)
                            LoggerFactory.getLogger(getClass()).debug("found bitmap {}x{}@{}, having {} entries", width, height, config, mCache.size());
                        if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1) {
                            if (!bmp.hasAlpha()) {
                                bmp.setHasAlpha(true);
                            }
                        }
                        //important to clear, otherwise we would violate our "create" contract
                        bmp.eraseColor(0);
                        return bmp;
                    }
                }
            }

            Bitmap bmp = Bitmap.createBitmap(width, height, config);
            if (mDebug) {
                LoggerFactory.getLogger(getClass()).debug("cache miss {}x{}@{}, having {} entries", width, height, config, mCache.size());
                LoggerFactory.getLogger(getClass()).debug("created {}", bmp);
            }
            return bmp;
        }

        @Override
        public void clear() {
            synchronized (mCache) {
                for (Bitmap b : mCache) {
                    b.recycle();
                }
                mCache.clear();
            }
        }

        @Override
        public int countBitmaps(int width, int height, Config config) {
            int c = 0;
            synchronized (mCache) {
                Iterator<Bitmap> it = mCache.iterator();
                while (it.hasNext()) {
                    Bitmap bmp = it.next();
                    if (bmp.isRecycled()) {
                        it.remove();
                        continue;
                    }
                    if (bmp.getWidth() == width && bmp.getHeight() == height && bmp.getConfig() == config) {
                        c++;
                    }
                }
            }
            return c;
        }

        @Override
        public void returnBitmap(Bitmap bmp) {
            if (bmp == null || bmp.isRecycled())
                return;
            Handler h = new Handler(Looper.getMainLooper());
            h.post(() -> h.post(() -> {
                if (!bmp.isMutable()) {
                    LoggerFactory.getLogger(getClass()).warn("do not return immutable bitmaps!");
                    bmp.recycle();
                    return;
                }
                synchronized (mCache) {
                    if (mDebug)
                        checkIfAlreayIn(bmp);
                    int currentSize = getCurrentSize();
                    int additionalSize = bmp.getWidth() * bmp.getHeight() * 4;
                    if (additionalSize > 0.7f * mCapacity) {
                        if (mDebug)
                            LoggerFactory.getLogger(getClass()).debug("bitmap is larger than pool capacity {}", bmp);
                        bmp.recycle();
                        return;
                    }

                    while (additionalSize + currentSize > mCapacity && mCache.size() > 0) {
                        Bitmap toDel = mCache.remove();
                        additionalSize -= toDel.getWidth() * toDel.getHeight() * 4;
                        toDel.recycle();
                        if (mDebug)
                            LoggerFactory.getLogger(getClass()).debug("exceeding limit - free bitmap for {}x{}@{} {}", toDel.getWidth(), toDel.getHeight(), toDel.getConfig(), toDel);
                    }
                    if (mDebug)
                        LoggerFactory.getLogger(getClass()).debug("added to cache {}x{}@{} {}", bmp.getWidth(), bmp.getHeight(), bmp.getConfig(), bmp);
                    mCache.add(bmp);
                }
            }));
        }

        private void checkIfAlreayIn(Bitmap bmp) {
            for (Bitmap b : mCache)
                if (b == bmp)
                    throw new IllegalArgumentException("you cannot return bitmaps multiple times " + bmp);
        }

        private int getCurrentSize() {
            int size = 0;
            for (Bitmap bmp : mCache) {
                size += bmp.getWidth() * bmp.getHeight() * 4;
            }
            return size;
        }

        @Override
        public void destroy() {
            synchronized (mCache) {
                for (Bitmap bmp : mCache)
                    if (!bmp.isRecycled())
                        bmp.recycle();
                mCache.clear();
            }
        }
    }

    @TargetApi(VERSION_CODES.KITKAT)
    public static class KitKat19AndroidPool extends AbsAndroidPool {
        /*
        around 8mb is an entire fullhd screen, we will cache just two screens at once, this is not sufficient for 4k which needs at least 32mb
         */
        private int mCapacity = 1024 * 1024 * 8 * 2;
        private LinkedList<Bitmap> mCache = new LinkedList<Bitmap>();
        private boolean mDebug;

        private float mAcceptableMaxTrash = 1000;

        public void setDebug(boolean b) {
            mDebug = b;
        }

        @Override
        public Bitmap borrowBitmap(int width, int height, Config config) {
            if (config != Config.ARGB_8888) {
                throw new Panic("only argb8888 images are supported");
            }
            int expectedBytes = (width * height * 32) / 8;
            Bitmap bestMatch = null;
            int capacityDelta = Integer.MAX_VALUE;
            float trashPercent;
            synchronized (mCache) {
                Iterator<Bitmap> it = mCache.iterator();

                while (it.hasNext()) {
                    Bitmap bmp = it.next();
                    if (bmp.isRecycled()) {
                        it.remove();
                        if (mDebug)
                            LoggerFactory.getLogger(getClass()).debug("found already recycled bitmap {}", bmp);
                        continue;
                    }
                    int bytes = bmp.getAllocationByteCount();
                    if (bytes < expectedBytes) {
                        continue;
                    }
                    if (bestMatch == null || bytes - expectedBytes < capacityDelta) {
                        bestMatch = bmp;
                        capacityDelta = bytes - expectedBytes;
                    }
                }
                trashPercent = (capacityDelta / (float) expectedBytes) * 100;
                if (trashPercent < mAcceptableMaxTrash) {
                    mCache.remove(bestMatch);
                } else {
                    if (mDebug)
                        LoggerFactory.getLogger(getClass()).debug("Best bitmap is to inefficient: {}x{}@{}, having {} entries. Trash: {}%", width, height, config, mCache.size(), trashPercent);
                    bestMatch = null;
                }
            }

            if (bestMatch != null) {
                if (mDebug)
                    LoggerFactory.getLogger(getClass()).debug("found bitmap to reconfigure {}x{}@{}, having {} entries. Trash: {}%", width, height, config, mCache.size(), trashPercent);

                bestMatch.reconfigure(width, height, config);
                bestMatch.setHasAlpha(true);
                if (VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1) {
                    if (!bestMatch.hasAlpha()) {
                        bestMatch.setHasAlpha(true);
                    }
                }
                //important to clear, otherwise we would violate our "create" contract
                bestMatch.eraseColor(0);
                return bestMatch;
            }

            Bitmap bmp = Bitmap.createBitmap(width, height, config);
            bmp.setHasAlpha(true);
            if (mDebug) {
                LoggerFactory.getLogger(getClass()).debug("cache miss {}x{}@{}, having {} entries", width, height, config, mCache.size());
                LoggerFactory.getLogger(getClass()).debug("created {}", bmp);
            }
            return bmp;
        }

        @Override
        public void clear() {
            synchronized (mCache) {
                for (Bitmap b : mCache) {
                    b.recycle();
                }
                mCache.clear();
            }
        }

        @Override
        public int countBitmaps(int width, int height, Config config) {
            int c = 0;
            synchronized (mCache) {
                Iterator<Bitmap> it = mCache.iterator();
                while (it.hasNext()) {
                    Bitmap bmp = it.next();
                    if (bmp.isRecycled()) {
                        it.remove();
                        continue;
                    }
                    if (bmp.getWidth() == width && bmp.getHeight() == height && bmp.getConfig() == config) {
                        c++;
                    }
                }
            }
            return c;
        }

        @Override
        public void returnBitmap(Bitmap bmp) {
            if (bmp == null || bmp.isRecycled())
                return;
            final Handler h = new Handler(Looper.getMainLooper());
            h.post(() -> h.post(() -> {
                if (!bmp.isMutable()) {
                    LoggerFactory.getLogger(getClass()).warn("do not return immutable bitmaps!");
                    bmp.recycle();
                    return;
                }
                synchronized (mCache) {
                    if (mDebug)
                        checkIfAlreayIn(bmp);
                    int currentSize = getCurrentSize();
                    int additionalSize = bmp.getAllocationByteCount();
                    if (additionalSize > 0.7f * mCapacity) {
                        if (mDebug) {
                            LoggerFactory.getLogger(getClass()).debug("bitmap is larger than pool capacity {}", bmp);
                        }
                        bmp.recycle();
                        return;
                    }

                    while (additionalSize + currentSize > mCapacity && mCache.size() > 0) {
                        Bitmap toDel = mCache.remove();
                        additionalSize -= toDel.getWidth() * toDel.getHeight() * 4;
                        toDel.recycle();
                        if (mDebug)
                            LoggerFactory.getLogger(getClass()).debug("exceeding limit - free bitmap for {}x{}@{} {}", toDel.getWidth(), toDel.getHeight(), toDel.getConfig(), toDel);
                    }
                    if (mDebug)
                        LoggerFactory.getLogger(getClass()).debug("added to cache {}bytes {}", bmp.getAllocationByteCount(), bmp);
                    mCache.add(bmp);
                }
            }));
        }

        private void checkIfAlreayIn(Bitmap bmp) {
            for (Bitmap b : mCache)
                if (b == bmp)
                    throw new IllegalArgumentException("you cannot return bitmaps multiple times " + bmp);
        }

        private int getCurrentSize() {
            int size = 0;
            for (Bitmap bmp : mCache) {
                size += bmp.getWidth() * bmp.getHeight() * 4;
            }
            return size;
        }

        @Override
        public void destroy() {
            synchronized (mCache) {
                for (Bitmap bmp : mCache)
                    if (!bmp.isRecycled())
                        bmp.recycle();
                mCache.clear();
            }
        }
    }
}


text:
<?php

class PHPFacebookMessenger
{

    private $access_token;
    private $verify_token;

    private $hubMode;
    private $hubChallenge;
    private $hubVerifyToken;

    private $api_url_messenger;
    private $request;

    public function __construct($access_token, $verify_token, $request = null)
    {

        $this->access_token = $access_token;
        $this->verify_token = $verify_token;
        $this->api_url_messenger = "https://graph.facebook.com/v2.6/me/messages";

        if (!$request) {
            $this->request = $_REQUEST;
        }else{
            $this->request = $request;
        }

    }

    public function listen()
    {

        if (isset($this->request['hub_mode']) && isset($this->request['hub_verify_token']) && isset($this->request['hub_challenge'])) {
            $this->hubMode = trim($this->request['hub_mode']);
            $this->hubVerifyToken = trim($this->request['hub_verify_token']);
            $this->hubChallenge = trim($this->request['hub_challenge']);
            echo $this->hubChallenge;
            exit();
        }

        if (file_get_contents('php://input')) {
            return json_decode(file_get_contents('php://input'));
        }

        return null;

    }

    public function sendMessage($recipientId, $message)
    {
        $dataToSend = [
            'recipient' => [
                'id' => $recipientId
            ],
            'message' => $message
        ];
        return $this->curlRequest($dataToSend);
    }

    private function curlRequest($data)
    {
        $data['access_token'] = $this->access_token;
        $ch = curl_init($this->api_url_messenger);
        $headers = [
            'Content-Type: application/json'
        ];
        curl_setopt($ch, CURLOPT_POST, true);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
        return curl_exec($ch);
    }

}


text:
/* */
#Firebug div, #Firebug h3, #Firebug span, #Firebug input, #Firebug textarea, #Firebug select, #Firebug option, #Firebug a, #Firebug strong, #Firebug em, #Firebug label, #Firebug center {
	position:static; float:none; width:auto; height:auto; text-align:left; border:0; overflow:visible; background:transparent none repeat left top; color:#111; font-size:1em; font-weight:normal; font-style:normal; font-family:sans-serif; margin:0; padding:0;  min-height:0;
}
#Firebug input, #Firebug select, #Firebug textarea { background:#fff; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; border:1px outset #aaa; padding:2px }
#Firebug center { text-align:center; }
#Firebug strong { font-weight:bold; }
#Firebug em { font-style:italic; }
/* */

#FirebugIFrame { position:fixed !important; position:absolute; z-index:99999998; left:0; bottom:0; width:100%; height:295px; background:#fff; border-width:0px; }

#Firebug { position:fixed !important; position:absolute; z-index:99999999; left:0; bottom:0; width:100%; height:295px; background:#fff; overflow:hidden; }
#Firebug .Resizer { position:absolute; top:0; width:100%; height:5px; background:transparent; *background:url(/windmill-serv/img/spacer.gif); cursor:n-resize; -moz-user-select:none; }
#Firebug .Header { height:38px; background:#ccc url(/windmill-serv/img/firebug.gif) 0 -85px; }
#Firebug .Left, #Firebug > .Right { background:#fff; height:257px;}
#Firebug .Left { float:left; width:100%; }
#Firebug .Right { float:left; display:none; width:30%; overflow:hidden; }
#Firebug .Right .Container { height:100%; border-left:1px solid #ccc; }

/*
 * buttonset
 */

#Firebug .ButtonContainer { padding:8px 0 5px 10px; *margin-top:-3px; _margin-top:0; }
#Firebug .ButtonContainer .Button { cursor:pointer; font:12px "MS Sans Serif", Geneva, sans-serif; color:#000; margin-right:5px; padding:4px 4px 4px 4px; border:1px solid transparent !important; border-color:#ccc; text-decoration:none; }
#Firebug .ButtonContainer .Button:hover {  border:1px outset #aaa !important; }
#Firebug .ButtonContainer .Button:active { border-style:inset !important; background-color:#ccc; }
#Firebug .ButtonContainer .Enabled { border:1px outset #aaa !important; }
#Firebug .ButtonContainer .Logo { text-decoration:none; padding-left:24px; background:url(/windmill-serv/img/firebug.gif) no-repeat 5px 3px; border:0 !important; opacity:0.7; filter:Alpha(Opacity=70); }
#Firebug .ButtonContainer .Logo:hover, #Firebug .ButtonContainer .Logo:active { border:0 !important; background-color:transparent; opacity:1; filter:Alpha(Opacity=100); }
#Firebug .ButtonContainer .Maximize, #Firebug .ButtonContainer .Minimize, #Firebug .ButtonContainer .NewWindow, #Firebug .ButtonContainer .Dock, #Firebug .ButtonContainer .Close { position:absolute; right:0; top:12px; padding:6px 8px 8px 8px; background:url(/windmill-serv/img/firebug.gif) no-repeat -3px -48px; border:0 !important; opacity:0.7; filter:Alpha(Opacity:80); *padding:0px 7px 1px 7px; }
#Firebug .ButtonContainer .Maximize:hover, #Firebug .ButtonContainer .Maximize:active, #Firebug .ButtonContainer .NewWindow:hover, #Firebug .ButtonContainer .NewWindow:active,  #Firebug .ButtonContainer .Dock:hover, #Firebug .ButtonContainer .Dock:active, #Firebug .ButtonContainer .Minimize:hover, #Firebug .ButtonContainer .Minimize:active, #Firebug .ButtonContainer .Close:hover, #Firebug .ButtonContainer .Close:active { border:0 !important; background-color:transparent; opacity:1; filter:Alpha(Opacity:100); }
#Firebug .ButtonContainer .Minimize { background-position:-3px -20px; right:40px; }
#Firebug .ButtonContainer .Maximize { display:none; background-position:-3px -34px; right:40px; }
#Firebug .ButtonContainer .NewWindow { background-position:-3px -123px; right:20px; }
#Firebug .ButtonContainer .Dock { background-position:-3px -137px; }
#Firebug .ButtonContainer .ButtonSet { border-left:1px solid #ccc; padding:0 0 0 3px; display:inline; }

/*
 * navigation
 */

#Firebug .Nav { height:23px; background:url(/windmill-serv/img/firebug.gif) repeat-x 0 -62px; padding-left:10px; }
#Firebug .Nav .Tab { display:block; width:auto; float:left; padding:3px 6px 2px 6px; cursor:pointer; border:1px outset transparent !important; border:0; font:bold 11px Arial, Helvetica, sans-serif; color:#666; }
#Firebug .Nav .Tab:hover, #Firebug .Nav .Selected { border:1px outset #ccc !important; border-top-color:transparent !important;  }
#Firebug .Nav .Selected { color:#111; cursor:default; background-color:#f2f2f2; }
#Firebug .Nav .Settings { float:right; }

/*
 * inspector
 */

#FirebugBorderInspector { display:none; z-index:99999998; position:absolute; top:0; left:0; border:2px solid #0000ff; background:transparent; *background:url(/windmill-serv/img/spacer.gif); opacity:0.5; filter:Alpha(Opacity=50); padding:0; margin:0; }
#FirebugBGInspector { display:none; z-index:99999998; position:absolute; top:0; left:0; background:rgb(0,150,255); opacity:0.5; filter:Alpha(Opacity=50); padding:0; margin:0; }

/*
 * dom
 */

#Firebug .DOMRow { width:100% !important; width:90%; }
#Firebug .DOMRow .DOMRowLeft { float:left; width:30%; overflow:hidden; }
#Firebug .DOMRow .DOMRowLeft a { padding-left:15px; }
#Firebug .DOMRow .DOMRowRight { float:left; width:60%; *width:60%; _overflow:hidden; white-space:nowrap; }
#Firebug .DOMRow .DOMRowLeft .Object {  background:url(/windmill-serv/img/tree_open.gif) no-repeat left center;  cursor:pointer;  }
#Firebug .DOMRow .DOMRowLeft .Object:hover { text-decoration:underline; color:#0000ff; }
#Firebug .DOMRow .DOMRowLeft .Opened {  background-image:url(/windmill-serv/img/tree_close.gif) }
#Firebug .DOMRow .DOMRowSubContainer { display:none; padding-left:25px; }

/*
 * console
 */
#Firebug .Left .Console { overflow:hidden; }
#Firebug .Left .Console .Monitor { height:210px; border-bottom:1px solid #ccc; overflow:scroll; overflow-x:hidden; }
#Firebug .Left .Console .Monitor .Error { background:#ffeff1; color:#ff0000; }
#Firebug .Left .Console .Monitor .Error strong { color:#ff0000; }
#Firebug .Left .Console .Monitor .Row { padding:2px 5px 2px 5px; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; overflow:hidden; border-bottom:1px solid #e5e5e5; }
#Firebug .Left .Console .Monitor .Arrow { color:rgb(0,0,255); white-space:nowrap; }

#Firebug .Left .Console .InputArrow { position:absolute; left:0px; width:20px; font:12px Verdana, Geneva, Arial, Helvetica, sans-serif; color:#0000ff; padding:2px 4px 0 4px; }
#Firebug .Left .Console .InputContainer { margin-left:35px; margin-right:5px; }
#Firebug .Left .Console .Input { width:100% !important; margin-top:2px; width:98%; overflow:hidden; border:0; font:12px  Verdana, Geneva, Arial, Helvetica, sans-serif; }
#Firebug .Console .MLButton { cursor:pointer; position:absolute; top:276px; right:-22px; width:20px; padding:4px 10px 10px 10px; font-size:1px; *padding:2px 10px 10px 10px; background:url(/windmill-serv/img/firebug.gif) no-repeat -3px -34px; opacity:0.8; filter:Alpha(Opacity:80); }
#Firebug .Console .MLButton:hover { opacity:1; filter:Alpha(Opacity:100); }
#Firebug .Console .CloseML { background-position:-3px -20px; }

#Firebug .Right .Console { background:#eee; }
#Firebug .Right .Console .Input { width:100%; _width:98%; height:228px; font:12px Verdana, Geneva, Arial, Helvetica, sans-serif; background:#fff; border:0; border-bottom:1px solid #ccc; margin-bottom:2px; *overflow:scroll; }
#Firebug .Right .Console .Button { cursor:pointer; font:12px Verdana, Geneva, Arial, Helvetica, sans-serif; padding:1px 4px 1px 4px; margin:0 4px 0 4px; background:#eee; border:1px solid #eee;  text-decoration:none; *display:block; *width:auto; *float:left; *margin-top:-1px; }
#Firebug .Right .Console .Button:hover { border:1px outset #ccc; background:#fff; }
#Firebug .Right .Console .Button:active { border:1px inset #ccc; background:#ccc; }

#Firebug .Left .Console .Monitor .Warn { background:url(/windmill-serv/img/warningIcon.png) #00FFFF no-repeat 2px center; padding-left:20px; }
#Firebug .Left .Console .Monitor .Info { background:url(/windmill-serv/img/infoIcon.png) #fff no-repeat 2px center; padding-left:20px; }
#Firebug .Left .Console .Monitor .Error { background:url(/windmill-serv/img/errorIcon.png) #FFFFE0 no-repeat 2px center; padding-left:20px; }

/*
 * html
 */

#Firebug .Left .HTML { display:none; height:250px; overflow:scroll; padding:0 10px 2px 10px; }
#Firebug .Left .HTML .Block { padding:0 0 0 0px; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif;  }
#Firebug .Left .HTML .Block .Spacer { cursor:default; padding:2px 2px 2px 15px; }
#Firebug .Left .HTML .Block .Link { display:block; color:#333; padding:2px 2px 2px 0; }
#Firebug .Left .HTML .Block .Link .Content { padding:2px 2px 2px 2px; }
#Firebug .Left .HTML .Block .Link .TagName { cursor:pointer; }
#Firebug .Left .HTML .Block .Parent { font-weight:bold; color:#111; text-decoration:none; }
#Firebug .Left .HTML .Block .Parent .Spacer { background:#fff center no-repeat; }
#Firebug .Left .HTML .Block .Parent .Spacer { background-image:url(/windmill-serv/img/tree_open.gif); }
#Firebug .Left .HTML .Block .Open .Spacer { background-image:url(/windmill-serv/img/tree_close.gif) }
#Firebug .Left .HTML .Block .Selected { background-color:#4473c4; }
#Firebug .Left .HTML .Block .Selected * { color:#fff; }
#Firebug .Left .HTML .Block .SubContainer { padding-left:20px; height:0; font-size:0px; }
#Firebug .Left .HTML .Block .OpenSubContainer { height:auto; }
#Firebug .Left .HTML .Unvisible { opacity:0.5; filter:Alpha(Opacity=50); }

#Firebug .Right .HTML { display:none; }
#Firebug .Right .HTML .Content { overflow:scroll; height:235px; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; }
#Firebug .Right .HTML .Content .CSSItem { padding:5px; color:#333; height:6px }
#Firebug .Right .HTML .Content .CSSProperty { width:45%; float:left; overflow:hidden; }
#Firebug .Right .HTML .Content .CSSValue { width:55%; float:left; white-space:nowrap; overflow:visible !important;  overflow:hidden;  }
#Firebug .Right .HTML .Content .CSSValue input { font:11px ArArial, Helvetica, sans-serif; color:#333; 3px 0 0 -3px; }
#Firebug .Right .HTML .Content .CSSItem center { color:rgb(0,150,0); padding:0 0 3px 0; font:bold 12px Arial, Helvetica, sans-serif; }
#Firebug .ButtonContainer .HTML { display:none; }

/*
 * CSS
 */

#Firebug .Left .CSS { display:none; padding:5px; height:225px; overflow:scroll; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; }
#Firebug .Right .CSS { display:none; }
#Firebug .Left .CSS .Selector { margin-top:10px }
#Firebug .Left .CSS .CSSText { padding-left:20px; }
#Firebug .Left .CSS .CSSProperty { color:#005500; margin-top:10px; }
#Firebug .Left .CSS .CSSValue { padding-left:5px; color:#000088; }
#Firebug .ButtonContainer .CSS { display:none; }

#Firebug .Right .CSS { background:#eee; }
#Firebug .Right .CSS .Input { width:100%; _width:98%; height:205px; font:12px Verdana, Geneva, Arial, Helvetica, sans-serif; background:#fff; border:0; border-bottom:1px solid #ccc; margin-bottom:2px; *overflow:scroll; }
#Firebug .Right .CSS .Button { cursor:pointer; font:12px Verdana, Geneva, Arial, Helvetica, sans-serif; padding:1px 4px 1px 4px; margin:0 4px 0 4px; background:#eee; border:1px solid #eee;  text-decoration:none; *display:block; *width:auto; *float:left; *margin-top:-1px; }
#Firebug .Right .CSS .Button:hover { border:1px outset #ccc; background:#fff; }
#Firebug .Right .CSS .Button:active { border:1px inset #ccc; background:#ccc; }

/*
 * Scripts
 */

#Firebug .Left .Scripts { display:none; height:225px; *height:235px; overflow:scroll; font:12px Verdana, Geneva, Arial, Helvetica, sans-serif; }
#Firebug .Left .Scripts .LineNumber { float:left; width:30px; height:20px; padding:0 2px 0 0; background:#eee; color:#666; font-family:Courier; text-align:right; border-right:1px solid #ccc; }
#Firebug .Left .Scripts .CodeContainer { padding:5px; }
#Firebug .Left .Scripts .Code { height:20px; }
#Firebug .Left .Scripts .CodeContainer, #Firebug .Left .Scripts .Code { word-wrap:normal; white-space:pre; }
#Firebug .Right .Scripts { display:none; }
#Firebug .ButtonContainer .Scripts { display:none; }

/*
 * DOM
 */

#Firebug .Left .DOM { display:none; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; padding:5px; overflow:scroll; height:225px; }
#Firebug .Left .DOM .Object { font-weight:bold; }
#Firebug .Right .DOM { display:none; overflow:scroll; }
#Firebug .ButtonContainer .DOM { display:none; }
#Firebug .ButtonContainer .DOM label { font:11px Verdana, Geneva, Arial, Helvetica, sans-serif;  }

/*
 * XHR
 */

#Firebug .Left .XHR { display:none; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; padding:5px; overflow:scroll; height:225px; }
#Firebug .Left .XHR .Block { float:left; width:30%; }
#Firebug .Left .XHR .BlockContent { padding:3px; border-right:1px dotted #aaa; }
#Firebug .Left .XHR .Block strong { display:block; text-align:center; padding:3px; background:rgb(200,225,255); color:rgb(50,50,50); }
#Firebug .Left .XHR .Block span { display:block; text-align:center; overflow:hidden; }
#Firebug .Left .XHR .Block span a { cursor:pointer; color:rgb(0,0,200); }
#Firebug .Right .XHR { display:none; overflow:scroll; }
#Firebug .ButtonContainer .XHR { display:none; }
#Firebug .ButtonContainer .XHR label { font:11px Verdana, Geneva, Arial, Helvetica, sans-serif;  }

#Firebug .Left .STR { display:none; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; padding:5px; overflow:scroll; height:225px; }

/*
 * settings
 */
#Firebug .SettingsDiv {position:absolute;width:190px;top:60px;border:1px outset #000;-x-system-font:none;color:#000;font-family:"MS Sans Serif",Geneva,sans-serif;font-size:12px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-variant:normal;font-weight:normal;line-height:normal;display:none;background-color:#FFF;}
#Firebug .SettingsDiv .Header {background:#CCC url(/windmill-serv/img/firebug.gif) repeat scroll 0 -85px;height:30px;border-bottom:1px inset #000;}
#Firebug .SettingsDiv .Header .Title {padding-top:10px;text-align:center;}
#Firebug .SettingsDiv .Content {padding:5px;}
#Firebug .SettingsDiv .Content .SettingsCBX{position:relative;top:2px;margin: 4px 5px 0 0; border:0 !important; padding:0 !important; height: 15px !important;}
#Firebug .SettingsDiv .Content .ButtonsLeft {float:left;padding:10px 0px 5px 0px;}
#Firebug .SettingsDiv .Content .ButtonsRight {float:right;padding:10px 0px 5px 0px;}
#Firebug .SettingsDiv .Content .ProgressDiv {background-color:#FFF;width:100%;height:100%;position:absolute;left:0;top:0;z-index:1;opacity:.8;filter:alpha(opacity=80);display:none;}
#Firebug .SettingsDiv .Content .Progress {background-image:url(/windmill-serv/img/progress.gif);width:66px;height:66px;position:absolute;top:50%;left:50%;margin-left:-33px;margin-top:-33px;}

/*
 * element highlighting
 */
#Firebug .Italic { font-style:italic; }
#Firebug .Strong { font-weight:bold; }
#Firebug .NormalWeight { font-weight:normal; }
#Firebug .Green { color:#008800; }
#Firebug .Gray { color:#666; }
#Firebug .Blue { color:#0000ee; }
#Firebug .DarkBlue { color:#000099; }
#Firebug .Red { color:#ee0000; }
#Firebug .Maroon { color:#800000; font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; }
#Firebug .Null { font:11px Verdana, Geneva, Arial, Helvetica, sans-serif; color:#fff; padding:0 2px 0 2px; background:#999; border:1px solid #666; }
#Firebug .ObjectLink, #Firebug .ObjectLinkHover { cursor:pointer; }
#Firebug .ObjectLinkHover { border-bottom:1px solid #008800; }

#Firebug .Clear { clear:both; height:0px; font-size:0px; }

#firebugIconDiv {width:38px;height:38px;right:15pt;bottom:5pt;border:2px solid #000;display:none;position:fixed;background-image:url(/windmill-serv/img/firebug_logo.png);text-decoration:underline;cursor:pointer;filter:alpha(opacity:60);opacity:.6;z-index:99999998;}


text:
<?php

namespace test\Mockery\Fixtures;

class MethodWithIterableTypeHints
{
    public function foo(iterable $bar): iterable
    {
    }
}


text:
'use strict'

const os = require('os')
const platform = os.platform() + '_' + os.arch()

const { autoUpdater } = require('electron')

module.exports = function update (options) {
  if (!options.url) {
    console.info('Automatic updates disabled')
    return
  }

  var updaterFeedUrl = options.url + platform + '/' + options.version
  if (os.platform() === 'win32') {
    updaterFeedUrl += '/RELEASES'
  }

  console.info('Running version %s on platform %s', options.version, platform)

  try {
    // Don't try to update on development
    if (!process.execPath.match(/[\\]electron-prebuilt/)) {
      console.info('Checking for updates at %s', updaterFeedUrl)
      autoUpdater.setFeedURL(updaterFeedUrl)
      autoUpdater.checkForUpdates()
    }
  } catch (e) {
    console.error(e.message)
    throw e
  }

  autoUpdater.on('error', (e) => {
    console.error(e.message)
  })

  autoUpdater.on('checking-for-update', () => {
    console.info('Checking for update...')
  })

  autoUpdater.on('update-available', () => {
    console.info('Found available update!')
  })

  autoUpdater.on('update-not-available', () => {
    console.info('There are no updates available.')
  })

  autoUpdater.on('update-downloaded', () => {
    console.info('Update package downloaded')
    require('electron').ipcMain.emit('update-downloaded', autoUpdater)
  })
}