text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="d9dfad6f-2efc-4b9e-ab6e-f91fd0b65930" name="Default" comment="">
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
    </list>
    <ignored path="JavaScript Advanced.iws" />
    <ignored path=".idea/workspace.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="JavaScript Advanced" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="test.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/test.js">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="340" column="10" selection-start-line="340" selection-start-column="10" selection-end-line="340" selection-end-column="10" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="VehiclePark.html" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.7458678">
              <caret line="59" column="4" selection-start-line="59" selection-start-column="4" selection-end-line="59" selection-end-column="4" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="VehiclePark-Skeleton.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark-Skeleton.js">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="147" column="13" selection-start-line="147" selection-start-column="13" selection-end-line="147" selection-end-column="13" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="Html5" />
        <option value="JavaScript File" />
        <option value="CSS File" />
      </list>
    </option>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/01. Functions and function expressions/01-02.functionArguments-call-apply.js" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/03.testValueOfThis.js" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/04.addingNumbers.js" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/05.functionComposition.js" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/06.DOM Traversal/domTraversal.js" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/08.consoleModule.js" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/06.DOM Traversal/index.html" />
        <option value="$PROJECT_DIR$/01. Functions and function expressions/07.domManipulations.js" />
        <option value="$PROJECT_DIR$/02.Simulating OOP In JS/01.bugFix.js" />
        <option value="$PROJECT_DIR$/02.Simulating OOP In JS/02.bugFixLevel2.js" />
        <option value="$PROJECT_DIR$/02.Simulating OOP In JS/03.arrayFlattening.js" />
        <option value="$PROJECT_DIR$/02.Simulating OOP In JS/04.usefulStringMethods.js" />
        <option value="$PROJECT_DIR$/03. Prototype chain and inheritance/02.geometryStructure-prototypal.js" />
        <option value="$PROJECT_DIR$/03. Prototype chain and inheritance/01.2DGeometryStructure – Pseudo-ClassicalModel.js" />
        <option value="$PROJECT_DIR$/04.Design patterns/style.css" />
        <option value="$PROJECT_DIR$/04.Design patterns/index.html" />
        <option value="$PROJECT_DIR$/04.Design patterns/todoList.js" />
        <option value="$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark-Skeleton.js" />
      </list>
    </option>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="NamedScopeManager">
    <order />
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="7" />
    <option name="y" value="122" />
    <option name="width" value="1163" />
    <option name="height" value="920" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="2" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
    </navigator>
    <panes />
  </component>
  <component name="PropertiesComponent">
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="recentsLimit" value="5" />
    <property name="FullScreen" value="false" />
    <property name="HbShouldOpenHtmlAsHb" value="" />
    <property name="DefaultHtmlFileTemplate" value="Html5" />
    <property name="list.type.of.created.stylesheet" value="CSS" />
  </component>
  <component name="RecentsManager">
    <key name="MoveFile.RECENT_KEYS">
      <recent name="D:\GitHubWorkFiles\Algo\SortingAlgorithmsDemo\JavaScript Advanced\Exam\Exam-2015-01-20" />
    </key>
  </component>
  <component name="RunManager" selected="Node.js.VehiclePark-Skeleton.js">
    <configuration default="false" name="03.arrayFlattening.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="03.arrayFlattening.js" working-dir="$PROJECT_DIR$/02.Simulating OOP In JS">
      <method />
    </configuration>
    <configuration default="false" name="04.usefulStringMethods.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="04.usefulStringMethods.js" working-dir="$PROJECT_DIR$/02.Simulating OOP In JS">
      <method />
    </configuration>
    <configuration default="false" name="01.2DGeometryStructure – Pseudo-ClassicalModel.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="01.2DGeometryStructure – Pseudo-ClassicalModel.js" working-dir="$PROJECT_DIR$/03. Prototype chain and inheritance">
      <method />
    </configuration>
    <configuration default="false" name="todoList.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="todoList.js" working-dir="$PROJECT_DIR$/04.Design patterns">
      <method />
    </configuration>
    <configuration default="false" name="VehiclePark-Skeleton.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="VehiclePark-Skeleton.js" working-dir="$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton">
      <method />
    </configuration>
    <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
      <method />
    </configuration>
    <configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
      <method />
    </configuration>
    <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="JsTestDriver-test-runner" factoryName="JsTestDriver">
      <setting name="configLocationType" value="CONFIG_FILE" />
      <setting name="settingsFile" value="" />
      <setting name="serverType" value="INTERNAL" />
      <setting name="preferredDebugBrowser" value="Chrome" />
      <method />
    </configuration>
    <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
      <method />
    </configuration>
    <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
      <option name="cucumberJsArguments" value="" />
      <option name="executablePath" />
      <option name="filePath" />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-options />
      <gulpfile />
      <tasks />
      <arguments />
      <pass-parent-envs>true</pass-parent-envs>
      <envs />
      <method />
    </configuration>
    <list size="5">
      <item index="0" class="java.lang.String" itemvalue="Node.js.03.arrayFlattening.js" />
      <item index="1" class="java.lang.String" itemvalue="Node.js.04.usefulStringMethods.js" />
      <item index="2" class="java.lang.String" itemvalue="Node.js.01.2DGeometryStructure – Pseudo-ClassicalModel.js" />
      <item index="3" class="java.lang.String" itemvalue="Node.js.todoList.js" />
      <item index="4" class="java.lang.String" itemvalue="Node.js.VehiclePark-Skeleton.js" />
    </list>
    <recent_temporary>
      <list size="5">
        <item index="0" class="java.lang.String" itemvalue="Node.js.VehiclePark-Skeleton.js" />
        <item index="1" class="java.lang.String" itemvalue="Node.js.todoList.js" />
        <item index="2" class="java.lang.String" itemvalue="Node.js.01.2DGeometryStructure – Pseudo-ClassicalModel.js" />
        <item index="3" class="java.lang.String" itemvalue="Node.js.04.usefulStringMethods.js" />
        <item index="4" class="java.lang.String" itemvalue="Node.js.03.arrayFlattening.js" />
      </list>
    </recent_temporary>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="d9dfad6f-2efc-4b9e-ab6e-f91fd0b65930" name="Default" comment="" />
      <created>1445006236299</created>
      <option name="number" value="Default" />
      <updated>1445006236299</updated>
    </task>
    <task id="LOCAL-00001" summary="Update">
      <created>1445067402719</created>
      <option name="number" value="00001" />
      <option name="project" value="LOCAL" />
      <updated>1445067402719</updated>
    </task>
    <task id="LOCAL-00002" summary="Update">
      <created>1445080326203</created>
      <option name="number" value="00002" />
      <option name="project" value="LOCAL" />
      <updated>1445080326204</updated>
    </task>
    <task id="LOCAL-00003" summary="Update">
      <created>1445179190029</created>
      <option name="number" value="00003" />
      <option name="project" value="LOCAL" />
      <updated>1445179190029</updated>
    </task>
    <task id="LOCAL-00004" summary="Update">
      <created>1445245022562</created>
      <option name="number" value="00004" />
      <option name="project" value="LOCAL" />
      <updated>1445245022563</updated>
    </task>
    <task id="LOCAL-00005" summary="Update">
      <created>1445263789495</created>
      <option name="number" value="00005" />
      <option name="project" value="LOCAL" />
      <updated>1445263789495</updated>
    </task>
    <task id="LOCAL-00006" summary="Update">
      <created>1445273689400</created>
      <option name="number" value="00006" />
      <option name="project" value="LOCAL" />
      <updated>1445273689400</updated>
    </task>
    <task id="LOCAL-00007" summary="Update">
      <created>1445358621138</created>
      <option name="number" value="00007" />
      <option name="project" value="LOCAL" />
      <updated>1445358621138</updated>
    </task>
    <task id="LOCAL-00008" summary="Update">
      <created>1445446513575</created>
      <option name="number" value="00008" />
      <option name="project" value="LOCAL" />
      <updated>1445446513575</updated>
    </task>
    <option name="localTasksCounter" value="9" />
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="7" y="122" width="1163" height="920" extended-state="0" />
    <editor active="true" />
    <layout>
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.262511" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5028386" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32917705" sideWeight="0.4971614" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" 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" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917705" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" 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="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32917705" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="VcsManagerConfiguration">
    <MESSAGE value="Update" />
    <option name="LAST_COMMIT_MESSAGE" value="Update" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager>
      <option name="time" value="1" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/test.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="340" column="10" selection-start-line="340" selection-start-column="10" selection-end-line="340" selection-end-column="10" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark-Skeleton.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/test.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="340" column="10" selection-start-line="340" selection-start-column="10" selection-end-line="340" selection-end-column="10" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark-Skeleton.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/04.Design patterns/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="34" selection-start-line="5" selection-start-column="30" selection-end-line="5" selection-end-column="34" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/04.Design patterns/todoList.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/04.Design patterns/style.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="8" column="20" selection-start-line="8" selection-start-column="20" selection-end-line="8" selection-end-column="20" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/03. Prototype chain and inheritance/01.2DGeometryStructure – Pseudo-ClassicalModel.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="47" column="44" selection-start-line="47" selection-start-column="44" selection-end-line="47" selection-end-column="44" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/03. Prototype chain and inheritance/02.geometryStructure-prototypal.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/01.bugFix.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="8" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/02.bugFixLevel2.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="14" column="1" selection-start-line="14" selection-start-column="1" selection-end-line="14" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/03.arrayFlattening.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="13" column="9" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/04.usefulStringMethods.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/01.bugFix.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="8" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/02.bugFixLevel2.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/01.bugFix.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/05.functionComposition.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/06.DOM Traversal/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="55" selection-start-line="5" selection-start-column="55" selection-end-line="5" selection-end-column="55" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/06.DOM Traversal/domTraversal.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="8" column="34" selection-start-line="8" selection-start-column="34" selection-end-line="8" selection-end-column="34" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/07.domManipulations.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/08.consoleModule.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="21" column="31" selection-start-line="21" selection-start-column="31" selection-end-line="21" selection-end-column="31" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/01-02.functionArguments-call-apply.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/03.testValueOfThis.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="4" column="1" selection-start-line="4" selection-start-column="1" selection-end-line="4" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/04.addingNumbers.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/05.functionComposition.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/01-02.functionArguments-call-apply.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/03.testValueOfThis.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="4" column="1" selection-start-line="4" selection-start-column="1" selection-end-line="4" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/04.addingNumbers.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/01-02.functionArguments-call-apply.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/03.testValueOfThis.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="4" column="1" selection-start-line="4" selection-start-column="1" selection-end-line="4" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="jar://$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/lib/JavaScriptLanguage.jar!/com/intellij/lang/javascript/index/predefined/EcmaScript.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.33267716">
          <caret line="96" column="0" selection-start-line="96" selection-start-column="0" selection-end-line="96" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/04.addingNumbers.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/05.functionComposition.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="11" column="17" selection-start-line="11" selection-start-column="17" selection-end-line="11" selection-end-column="17" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/06.DOM Traversal/domTraversal.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="8" column="34" selection-start-line="8" selection-start-column="34" selection-end-line="8" selection-end-column="34" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/06.DOM Traversal/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="55" selection-start-line="5" selection-start-column="55" selection-end-line="5" selection-end-column="55" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/07.domManipulations.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="23" column="8" selection-start-line="23" selection-start-column="8" selection-end-line="23" selection-end-column="8" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/01. Functions and function expressions/08.consoleModule.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.53333336">
          <caret line="21" column="31" selection-start-line="21" selection-start-column="31" selection-end-line="21" selection-end-column="31" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/01.bugFix.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="8" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/02.bugFixLevel2.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.30749354">
          <caret line="14" column="1" selection-start-line="14" selection-start-column="1" selection-end-line="14" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/03.arrayFlattening.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.2855297">
          <caret line="13" column="9" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/02.Simulating OOP In JS/04.usefulStringMethods.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="17" column="47" selection-start-line="17" selection-start-column="47" selection-end-line="17" selection-end-column="47" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/03. Prototype chain and inheritance/01.2DGeometryStructure – Pseudo-ClassicalModel.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="47" column="44" selection-start-line="47" selection-start-column="44" selection-end-line="47" selection-end-column="44" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/03. Prototype chain and inheritance/02.geometryStructure-prototypal.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="73" column="33" selection-start-line="73" selection-start-column="33" selection-end-line="73" selection-end-column="33" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/04.Design patterns/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="34" selection-start-line="5" selection-start-column="30" selection-end-line="5" selection-end-column="34" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/04.Design patterns/style.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="8" column="20" selection-start-line="8" selection-start-column="20" selection-end-line="8" selection-end-column="20" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/04.Design patterns/todoList.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="110" column="35" selection-start-line="110" selection-start-column="35" selection-end-line="110" selection-end-column="35" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/test.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="340" column="10" selection-start-line="340" selection-start-column="10" selection-end-line="340" selection-end-column="10" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark-Skeleton.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="147" column="13" selection-start-line="147" selection-start-column="13" selection-end-line="147" selection-end-column="13" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Exam/Exam-2015-01-20/VehiclePark-Skeleton/VehiclePark.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.7458678">
          <caret line="59" column="4" selection-start-line="59" selection-start-column="4" selection-end-line="59" selection-end-column="4" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
package org.hawkular.inventory.api.model;

import java.util.Collections;
import java.util.Map;
import java.util.Set;

import org.hawkular.inventory.paths.CanonicalPath;
import org.hawkular.inventory.paths.SegmentType;

import io.swagger.annotations.ApiModel;

/**
 * Type of a resource. A resource type is versioned and currently just defines the types of metrics that should be
 * present in the resources of this type.
 *
 * @author Lukas Krejci
 */
public final class ResourceType extends IdentityHashedEntity<ResourceType.Blueprint, ResourceType.Update> {

    public static final SegmentType SEGMENT_TYPE = SegmentType.rt;

    /**
     * Jackson support
     */
    @SuppressWarnings("unused")
    private ResourceType() {
    }

    public ResourceType(CanonicalPath path, String identityHash) {
        this(path, identityHash, null);
    }

    public ResourceType(String name, CanonicalPath path, String identityHash) {
        super(name, path, identityHash);
    }

    public ResourceType(CanonicalPath path, String identityHash, Map<String, Object> properties) {
        super(path, identityHash, properties);
    }

    public ResourceType(String name, CanonicalPath path, String identityHash, Map<String, Object> properties) {
        super(name, path, identityHash, properties);
    }

    @Override
    public Updater<Update, ResourceType> update() {
        return new Updater<>((u) -> new ResourceType(u.getName(), getPath(), getIdentityHash(), u.getProperties()));
    }

    @Override
    public <R, P> R accept(ElementVisitor<R, P> visitor, P parameter) {
        return visitor.visitResourceType(this, parameter);
    }

    /**
     * Data required to create a resource type.
     *
     * <p>Note that tenantId, etc., are not needed here because they are provided by the context in which the
     * {@link org.hawkular.inventory.api.WriteInterface#create(org.hawkular.inventory.api.model.Blueprint)} method is
     * called.
     */
    @ApiModel("ResourceTypeBlueprint")
    public static final class Blueprint extends Entity.Blueprint {

        public static Builder builder() {
            return new Builder();
        }

        //JAXB support
        @SuppressWarnings("unused")
        private Blueprint() {
        }

        public Blueprint(String id) {
            this(id, Collections.emptyMap());
        }

        public Blueprint(String id, Map<String, Object> properties) {
            super(id, properties);
        }

        public Blueprint(String id, Map<String, Object> properties,
                         Map<String, Set<CanonicalPath>> outgoing,
                         Map<String, Set<CanonicalPath>> incoming) {
            super(id, properties, outgoing, incoming);
        }

        public Blueprint(String id, String name, Map<String, Object> properties,
                         Map<String, Set<CanonicalPath>> outgoing,
                         Map<String, Set<CanonicalPath>> incoming) {
            super(id, name, properties, outgoing, incoming);
        }

        @Override
        public <R, P> R accept(ElementBlueprintVisitor<R, P> visitor, P parameter) {
            return visitor.visitResourceType(this, parameter);
        }

        public static final class Builder extends Entity.Blueprint.Builder<Blueprint, Builder> {

            @Override
            public Blueprint build() {
                return new Blueprint(id, name, properties, outgoing, incoming);
            }
        }
    }

    @ApiModel("ResourceTypeUpdate")
    public static final class Update extends Entity.Update {

        public static Builder builder() {
            return new Builder();
        }

        //JAXB support
        @SuppressWarnings("unused")
        private Update() {
            this(null);
        }

        public Update(Map<String, Object> properties) {
            super(null, properties);
        }

        public Update(String name, Map<String, Object> properties) {
            super(name, properties);
        }

        @Override
        public <R, P> R accept(ElementUpdateVisitor<R, P> visitor, P parameter) {
            return visitor.visitResourceType(this, parameter);
        }

        public static final class Builder extends Entity.Update.Builder<Update, Builder> {

            @Override
            public Update build() {
                return new Update(name, properties);
            }
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
<?php

namespace Maghead\Runtime;

use Magsql\Driver\BaseDriver;
use Magsql\Driver\PDOMySQLDriver;
use DateTime;

/**
 * Deflate object value into database.
 */
class Deflator
{
    public static function deflate($value, $isa, BaseDriver $driver = null)
    {
        switch ($isa) {
        case 'int':
            return (int) $value;
        case 'str':
            return (string) $value;
        case 'double':
            return (double) $value;
        case 'float':
            return floatval($value);
        case 'json':
            return json_encode($value);
        case 'bool':
            // Convert string into bool
            if (is_string($value)) {
                if ($value === '' || $value === '0' || strncasecmp($value, 'false', 5) == 0) {
                    $value = false;
                } elseif ($value === '1' ||  strncasecmp($value, 'true', 4) == 0) {
                    $value = true;
                }
            }
            if ($driver) {
                return $driver->deflate($value);
            }

            return (boolean) $value ? 1 : 0;
        }
        if ($value instanceof DateTime) {
            if ($driver instanceof PDOMySQLDriver) {
                return $value->format('Y-m-d H:i:s');
            }

            return $value->format(DateTime::ATOM);
        }

        /* respect the data type to inflate value */
        return $value;
    }
}


text:
* Only display JSON on CI. This can be set via either an environment variable or
  node attribute.

## v1.0.0

* Initial release! Core reporting structure is in place, more useful data later.


text:
namespace TestAspNetSpa.Areas.HelpPage.ModelDescriptions
{
    public class CollectionModelDescription : ModelDescription
    {
        public ModelDescription ElementDescription { get; set; }
    }
}


text:
using UnityEngine;
using System.Collections;

public class ScaleTweenProperty : AbstractVector3TweenProperty
{
	public ScaleTweenProperty( Vector3 endValue, bool isRelative = false ) : base( endValue, isRelative )
	{}

	#region Object overrides

	public override int GetHashCode()
	{
		return base.GetHashCode();
	}

	public override bool Equals( object obj )
	{
		// if base already determined that we are equal no need to check further
		if( base.Equals( obj ) )
			return true;

		// we can be equal if the other object is a ScalePathTweenProperty
		return obj.GetType() == typeof( ScalePathTweenProperty );
	}

	#endregion

	public override void prepareForUse()
	{
		_target = _ownerTween.target as Transform;

		_endValue = _originalEndValue;

		// if this is a from tween we need to swap the start and end values
		if( _ownerTween.isFrom )
		{
			_startValue = _endValue;
			_endValue = _target.localScale;
		}
		else
		{
			_startValue = _target.localScale;
		}

		base.prepareForUse();
	}

	public override void tick( float totalElapsedTime )
	{
		var easedTime = _easeFunction( totalElapsedTime, 0, 1, _ownerTween.duration );
		_target.localScale = GoTweenUtils.unclampedVector3Lerp( _startValue, _diffValue, easedTime );
	}

}


text:
package org.robolectric.bytecode.testing;

import org.robolectric.internal.Instrument;

@SuppressWarnings("UnusedDeclaration")
@Instrument
public class AClassThatRefersToAForgettableClassInMethodCallsReturningPrimitive {
    byte byteMethod() {
        return AClassToForget.byteReturningMethod();
    }

    byte[] byteArrayMethod() {
        return AClassToForget.byteArrayReturningMethod();
    }

    int intMethod() {
        return AClassToForget.intReturningMethod();
    }

    int[] intArrayMethod() {
        return AClassToForget.intArrayReturningMethod();
    }

    long longMethod() {
        return AClassToForget.longReturningMethod();
    }

    long[] longArrayMethod() {
        return AClassToForget.longArrayReturningMethod();
    }
}


text:
void test_grok_capture_get_by_id(void) {
  INIT;

  grok_capture src;
  const grok_capture *dst;
  grok_capture_init(&grok, &src);

  src.id = 9;
  src.name = "Test";
  src.name_len = strlen(src.name);
  src.pcre_capture_number = 15;
  grok_capture_add(&grok, &src);
  dst = grok_capture_get_by_id(&grok, src.id);

  CU_ASSERT(src.id == dst->id);
  CU_ASSERT(src.pcre_capture_number == dst->pcre_capture_number);
  CU_ASSERT(!strcmp(src.name, dst->name));
  CLEANUP;
}

void test_grok_capture_get_by_name(void) {
  INIT;
  int ret;

  grok_capture src;
  const grok_capture *dst;
  grok_capture_init(&grok, &src);

  src.id = 9;
  src.name = "Test";
  src.name_len = strlen(src.name);
  src.pcre_capture_number = 15;
  grok_capture_add(&grok, &src);
  dst = grok_capture_get_by_name(&grok, src.name);
  CU_ASSERT(dst != NULL);
  CU_ASSERT(src.id == dst->id);
  CU_ASSERT(src.pcre_capture_number == dst->pcre_capture_number);
  CU_ASSERT(!strcmp(src.name, dst->name));

  src.pcre_capture_number = 30;
  grok_capture_add(&grok, &src);
  dst = grok_capture_get_by_name(&grok, src.name);
  CU_ASSERT(dst != NULL);
  CU_ASSERT(src.id == dst->id);
  CU_ASSERT(src.pcre_capture_number == dst->pcre_capture_number);
  CU_ASSERT(!strcmp(src.name, dst->name));
  CLEANUP;
}

void test_grok_capture_get_by_capture_number(void) {
  INIT;

  grok_capture src;
  const grok_capture *dst;
  grok_capture_init(&grok, &src);

  src.id = 0;
  src.name = strdup("Test");
  src.pcre_capture_number = 15;
  grok_capture_add(&grok, &src);
  dst = grok_capture_get_by_capture_number(&grok, src.pcre_capture_number);

  CU_ASSERT(dst != NULL);
  CU_ASSERT(src.id == dst->id);
  CU_ASSERT(src.pcre_capture_number == dst->pcre_capture_number);
  CU_ASSERT(!strcmp(src.name, dst->name));
  free(src.name);
}


text: <!DOCTYPE html>


text:
<?php
/**
 * Created by PhpStorm.
 * User: Nomad_Mystic
 * Date: 11/17/2015
 * Time: 7:15 PM
 */

const HOME_PAGE = 'http://www.nomadmystic.com/wordpress/wp-content/themes/nomadmystic/fileSystem/school-projects/production/computerinformationsystemscis195php/fivecarddrawpoker/index.php';
const LOGIN_PAGE = 'http://www.nomadmystic.com/wordpress/wp-content/themes/nomadmystic/fileSystem/school-projects/production/computerinformationsystemscis195php/fivecarddrawpoker/login.php';
const LOGOUT_PAGE = 'http://www.nomadmystic.com/wordpress/wp-content/themes/nomadmystic/fileSystem/school-projects/production/computerinformationsystemscis195php/fivecarddrawpoker/logout.php';


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Jumbotron Template for Bootstrap</title>

	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

    <link href="jumbotron.css" rel="stylesheet">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            Toggle navigation

          </button>
          Polling Place Finder

          <form class="navbar-form navbar-right">

          </form>

Hello Voter

Use this handy dandy tool to find your nearest polling location, so you can awesome your vote!

Find polling locations »

Polling location

© 2016 Company, Inc.


text:
#include "consolereader.h"

std::string ReadValueStr(std::string prompt /*= std::string()*/, std::istream& in /*= std::cin*/, std::ostream* out /*= &std::cout*/)
{
    if (out)
        (*out) << prompt;

    std::string input;
    bool success = false;

    while (!success)
    {
        std::getline(in, input);

        if (in.fail())
        {
            if (in.eof())
            {
                in.clear();
                throw EOFCharacterValue();
            }
            else
            {
                in.clear();
                if (out)
                    (*out) << "Invalid value. Please try again." << std::endl;
                else
                    throw InvalidValue("ReadValue: Invalid value found with no out stream.");
                continue;
            }
        }
        success = true;
    }

    return input;
}


text:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Ethereum.Utilities;
using System.Text;

namespace Ethereum.Test.Utilities
{
    [TestClass]
    public class RLPEncoderTest
    {
        [TestMethod]
        [ExpectedException(typeof(ArgumentNullException), "The input is null")]
        public void TestEncodeNull()
        {
            byte[] result = RLPEncoder.Encode(null);
        }

        [TestMethod]
        public void TestEncodeSingleCharacter()
        {
            string test = "d";
            string expected = "64";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeSingleString()
        {
            string test = "dog";
            string expected = "83646f67";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeEmptyString()
        {
            string test = "";
            string expected = "80";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeArrayOfEmptyStrings()
        {
            string[] test = new string[] { };
            string expected = "c0";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeZero()
        {
            int test = 0;
            string expected = "80";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeLowInteger()
        {
            int test = 15;
            string expected = "0f";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeMediumInteger()
        {
            int test = 1024;
            string expected = "820400";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeBigInteger()
        {
            UInt64 test = 18446744073709551615;
            string expected = "88ffffffffffffffff";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeLongString()
        {
            string test = "Lorem ipsum dolor sit amet, consectetur adipisicing elit";
            string expected = "b8384c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e7365637465747572206164697069736963696e6720656c6974";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeEmptyStringList()
        {
            string[] test = new string[0];
            string expected = "c0";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeShortStringList()
        {
            string[] test = new string[] { "dog", "god", "cat" };
            string expected = "cc83646f6783676f6483636174";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeLongStringList()
        {
            string[] test = new string[] { "cat", "Lorem ipsum dolor sit amet, consectetur adipisicing elit" };
            string expected = "f83e83636174b8384c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e7365637465747572206164697069736963696e6720656c6974";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeMultiList()
        {
            Object[] test = new Object[] { 1, new Object[] { "cat" }, "dog", new Object[] { 2 } };
            string expected = "cc01c48363617483646f67c102";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeListOfEmptyLists()
        {
            Object[] test = new Object[] { new Object[] { new Object[] { }, new Object[] { } }, new Object[] { } };
            string expected = "c4c2c0c0c0";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeTwoListsOfEmptyLists()
        {
            Object[] test = new Object[] { new Object[] { }, new Object[] { new Object[] { } }, new Object[] { new Object[] { }, new Object[] { new Object[] { } } } };
            string expected = "c7c0c1c0c3c0c1c0";
            string result = RLPEncoder.Encode(test).ToHex();
            Assert.AreEqual(result, expected);
        }

        [TestMethod]
        public void TestEncodeLengthLowerThan56()
        {
            int Length = 1;
            int Offset = 128;
            byte[] expected = new byte[] { (byte)0x81 };
            byte[] EncodedLength = RLPEncoder.EncodeLength(Length, Offset);
            Assert.AreEqual(expected.ToHex(), EncodedLength.ToHex());
        }

        [TestMethod]
        public void TestEncodeLengthHigherThan55()
        {
            int Length = 56;
            int Offset = 192;
            byte[] expected = new byte[] { 0xf8, 0x38 };
            byte[] EncodedLength = RLPEncoder.EncodeLength(Length, Offset);
            Assert.AreEqual(expected.ToHex(), EncodedLength.ToHex());
        }
    }
}


text:
/**
 * @component PlaceholderText
 * @version 0.11.9
 * @description 有占位元素的文本显示组件
 * @instructions {instruInfo: ./PlaceholderText.md}
 */
import React, {
  PropTypes,
  Component,
} from 'react';
import {
  View,
  Text,
  TouchableWithoutFeedback,
} from 'react-native';

import styles from './styles';

const NOOP = () => {};

class PlaceholderText extends Component {
  constructor(props) {
    super(props);
    props.collectValidate(this.validate.bind(this));
  }

  validate() {
    const value = this.props.value;
    const res = {
      name: this.props.name,
      value,
    };

    if (this.props.required) {
      if (value === '') {
        return {
          ...res,
          err: 1,
          errType: 'NO_EMPTY',
          msg: `${this.props.readableName}不能为空`,
        };
      }
    }

    return {
      ...res,
      err: 0,
      errType: '',
      msg: '成功',
    };
  }

  makePlaceholder() {
    let placeholder = this.props.placeholder;
    if (typeof placeholder === 'string') {
      placeholder = (
        <Text
          style={[styles.placeholder, this.props.placeholderStyle]}
          numberOfLines={1}
        >
          {this.props.placeholder}
        </Text>
      );
    }
    return placeholder;
  }

  render() {
    const placeholder = this.makePlaceholder();
    const placeholderContainerStyle = [styles.placeholderContainer];

    if (this.props.value) {
      placeholderContainerStyle.push(styles.placeholderContainerHide);
    }

    return (
      <TouchableWithoutFeedback
        onPress={this.props.onPress}
      >
        <View style={[styles.all, this.props.style]}>
          <Text style={[styles.value, this.props.valueStyle]} numberOfLines={1}>
            {this.props.value}
          </Text>
          <View style={placeholderContainerStyle}>
            {placeholder}
          </View>
        </View>
      </TouchableWithoutFeedback>
    );
  }
}

PlaceholderText.propTypes = {
  /**
   * @property value
   * @type String
   * @default ''
   * @description 值
   */
  value: PropTypes.string,
  /**
   * @property valueStyle
   * @type Object
   * @default null
   * @description 值自定义样式
   */
  valueStyle: Text.propTypes.style,
  /**
   * @property style
   * @type Object
   * @default null
   * @description 自定义样式
   */
  style: View.propTypes.style,
  /**
   * @property placeholder
   * @type String Element
   * @default ''
   * @description 占位元素
   */
  placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
  /**
   * @property placeholderStyle
   * @type Object
   * @default null
   * @description 占位元素样式(placeholder 为字符串时才生效)
   */
  placeholderStyle: Text.propTypes.style,
  /**
   * @property onPress
   * @type Function
   * @default NOOP
   * @description 点击回调
   */
  onPress: PropTypes.func,
  /**
   * @property name
   * @type String
   * @default ''
   * @description 用来在校验器中做标识
   */
  name: PropTypes.string,
  /**
   * @property readablename
   * @type String
   * @default ''
   * @description 用来在校验器中组成错误信息
   */
  readableName: PropTypes.string,
  /**
   * @property collectValidate
   * @type String
   * @default ''
   * @description 校验器接口
   */
  collectValidate: PropTypes.func,
  /**
   * @property required
   * @type Boolean
   * @default false
   * @description 是否必要
   */
  required: PropTypes.bool,
};
PlaceholderText.defaultProps = {
  value: '',
  valueStyle: null,
  style: null,
  placeholder: '',
  placeholderStyle: null,
  onPress: NOOP,
  name: '',
  readableName: '',
  collectValidate: NOOP,
  required: false,
};

export default PlaceholderText;


text:
package bftsmart.demo.ycsb;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Set;

/**
 *
 * @author Marcel Santos
 *
 */
public class YCSBMessage implements Serializable {

	private static final long	serialVersionUID	= 6198684730704708506L;

	public enum Type {
		CREATE, READ, SCAN, UPDATE, DELETE, SIZE, ERROR
	};

	public enum Entity {
		TABLE, RECORD, FIELD
	};

	private Type	type;
	private Entity	entity;
	private String	table;
	private String	key;
	private Set<String> fields;
	private HashMap<String, byte[]> values;
	private int result = -1;
	private HashMap<String, byte[]> results;
	private String errorMsg;

	private YCSBMessage() {
		super();
		result = -1;
	}

	public static YCSBMessage newInsertRequest(String table, String key, HashMap<String, byte[]> values) {
		YCSBMessage message = new YCSBMessage();
		message.type = Type.CREATE;
		message.entity = Entity.RECORD;
		message.table = table;
		message.key = key;
		message.values = values;
		return message;
	}

	public static YCSBMessage newUpdateRequest(String table, String key, HashMap<String, byte[]> values) {
		YCSBMessage message = new YCSBMessage();
		message.type = Type.UPDATE;
		message.entity = Entity.RECORD;
		message.table = table;
		message.key = key;
		message.values = values;
		return message;
	}

	public static YCSBMessage newReadRequest(String table, String key, Set<String> fields, HashMap<String, byte[]> results) {
		YCSBMessage message = new YCSBMessage();
		message.type = Type.READ;
		message.entity = Entity.RECORD;
		message.table = table;
		message.key = key;
		message.fields = fields;
		message.results = results;
		return message;
	}

	public static YCSBMessage newInsertResponse(int result) {
		YCSBMessage message = new YCSBMessage();
		message.result = result;
		return message;
	}

	public static YCSBMessage newUpdateResponse(int result) {
		YCSBMessage message = new YCSBMessage();
		message.result = result;
		return message;
	}

	public static YCSBMessage newReadResponse(HashMap<String, byte[]> results, int result) {
		YCSBMessage message = new YCSBMessage();
		message.result = result;
		message.results = results;
		return message;
	}

	public static YCSBMessage newErrorMessage(String errorMsg) {
		YCSBMessage message = new YCSBMessage();
		message.errorMsg = errorMsg;
		return message;
	}

	public byte[] getBytes() {
		try {
			byte[] aArray = null;
			ByteArrayOutputStream aBaos = new ByteArrayOutputStream();
			ObjectOutputStream aOos = new ObjectOutputStream(aBaos);
			aOos.writeObject(this);
			aOos.flush();
			aBaos.flush();
			aArray = aBaos.toByteArray();
			aOos.close();
			aBaos.close();
			return aArray;
		} catch (IOException ex) {
			ex.printStackTrace();
			return null;
		}
	}

	public static YCSBMessage getObject(byte[] theBytes) {
		try {
			ByteArrayInputStream aBais = new ByteArrayInputStream(theBytes);
			ObjectInputStream aOis = new ObjectInputStream(aBais);
			YCSBMessage aMessage = (YCSBMessage) aOis.readObject();
			aOis.close();
			aBais.close();
			return aMessage;
		} catch (ClassNotFoundException ex) {
			return null;
		} catch (IOException e) {
			return null;
		}
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("(").append(type).append(",").append(entity).append(",");
		sb.append(table).append(",").append(key).append(",").append(values).append(")");
		return sb.toString();
	}

	public int getResult() {
		return result;
	}
	public HashMap<String, byte[]> getResults() {
		return results;
	}

	public Type getType() {
		return type;
	}

	public Entity getEntity() {
		return entity;
	}

	public String getTable() {
		return table;
	}

	public String getKey() {
		return key;
	}

	public Set<String> getFields() {
		return fields;
	}

	public HashMap<String, byte[]> getValues() {
		return values;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

}


text:
if [[ ! "$INSTALL_XCODE_CLI_TOOLS" =~ ^(true|yes|on|1|TRUE|YES|ON])$ ]]; then
    exit
fi

# Get and install Xcode CLI tools
OSX_VERS=$(sw_vers -productVersion | awk -F "." '{print $2}')

# on 10.9+, we can leverage SUS to get the latest CLI tools
if [ "$OSX_VERS" -ge 15 ]; then
    # create the placeholder file that's checked by CLI updates' .dist code
    # in Apple's SUS catalog
    touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
    # find the CLI Tools update
    PROD=$(softwareupdate -l | grep "\*.*Label: Command Line Tools" | tail -n 1 | awk -F"*" '{print $2}' | sed -e 's/^.*Label:.*Command/Command/' | tr -d '\n')
    # install it
    softwareupdate -i "$PROD" --verbose
else
    echo "This version is no longer supported via this script, please install manually and update"
    exit 1
fi


text:
package com.nopcommerce.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.nopcommerce.json.JsonConstants;
import lombok.Data;

import java.util.HashMap;
import java.util.Set;

@Data
public class WebHook
{
    @JsonProperty(value = JsonConstants.WEBHOOK_ID)
    private String id;

    @JsonProperty(value = JsonConstants.DESCRIPTION)
    private String description;

    @JsonProperty(value = JsonConstants.FILTERS)
    private Set<String> filters;

    @JsonProperty(value = JsonConstants.IS_PAUSED)
    private boolean isPaused;

    @JsonProperty(value = JsonConstants.HEADERS)
    private HashMap<String, String> headers;

    @JsonProperty(value = JsonConstants.PROPERTIES)
    private HashMap<String, Object> properties;

    @JsonProperty(value = JsonConstants.SECRET)
    private String secret;

    @JsonProperty(value = JsonConstants.WEB_HOOK_UIR)
    private String webHookUri;
}


text:
<bill session="110" type="h" number="3945" updated="2009-01-09T01:06:30-05:00">
	<status><introduced date="1193112000" datetime="2007-10-23"/></status>

	<introduced date="1193112000" datetime="2007-10-23"/>
	<titles>
		<title type="short" as="introduced">Clean Energy Partnership Act of 2007</title>
		<title type="official" as="introduced">To provide for the establishment by the Secretary of Energy of a program of Federal support for local governments and school districts to implement clean energy projects.</title>
	</titles>
	<sponsor id="400195"/>
	<cosponsors>

	</cosponsors>
	<actions>
		<action date="1193112000" datetime="2007-10-23"><text>Referred to the House Committee on Education and Labor.</text></action>
		<action date="1200978000" datetime="2008-01-22"><text>Referred to the Subcommittee on Early Childhood, Elementary, and Secondary Education.</text></action>
	</actions>
	<committees>

	</committees>
	<relatedbills>

	</relatedbills>
	<subjects>

	</subjects>
	<amendments>

	</amendments>

	10/23/2007--Introduced.
Clean Energy Partnership Act of 2007 - Directs the Secretary of Energy to provide grants to local educational agencies covering up to 50% of their costs in implementing clean energy projects that include measures to conserve energy and equip school buildings for renewable power sources.

</bill>


text:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="(C) Copyright 2005" />
<meta name="DC.rights.owner" content="(C) Copyright 2005" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="concept" name="DC.Type" />
<meta name="DC.Title" content="Persistence of properties" />
<meta name="abstract" content="A database-wide property always has persistence. That is, its value is stored in the database." />
<meta name="description" content="A database-wide property always has persistence. That is, its value is stored in the database." />
<meta content="Properties, persistence of" name="DC.subject" />
<meta content="Properties, persistence of" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="cdevsetprop11108.html" />
<meta scheme="URI" name="DC.Relation" content="cdevsetprop824451.html" />
<meta scheme="URI" name="DC.Relation" content="cdevsetprop23308.html" />
<meta scheme="URI" name="DC.Relation" content="cdevsetprop824615.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="cdevsetprop824500" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="commonltr.css" type="text/css" rel="stylesheet" />
<title>Persistence of properties</title>

Persistence of properties

A database-wide property always has persistence. That is, its value
is stored in the database.

Typically, a database-wide property is in effect until you explicitly change
the property or until you set a system-wide property with precedence over
database-wide properties (see
Precedence of properties).

To disable or turn off a database-wide property setting, set its value to
null. This has the effect of removing the property from the list of database
properties and restoring the system property setting, if there is one (and if
derby.database.propertiesOnly has not been set; see
Protection of database-wide properties).

A system-wide property might have persistence, depending on how you set
it. If you set it programmatically, it persists only for the duration of the
JVM of the application that set it. If you set it in the
derby.properties file, a property persists until:

That value is changed and the system is rebooted

The file is removed from the system and the system is rebooted

The database is booted outside of that system

Parent topic: Properties overview

Related concepts

Scope of properties

Precedence of properties

Dynamic versus static properties


text:
from donkeycar.management import base
from tempfile import tempdir

def get_test_tub_path():
    tempdir()

def test_tubcheck():
    tc = base.TubCheck()


text:
"""The tests for the MQTT component embedded server."""
from unittest.mock import MagicMock, Mock, patch

import homeassistant.components.mqtt as mqtt
from homeassistant.const import CONF_PASSWORD
from homeassistant.setup import setup_component

from tests.common import get_test_home_assistant, mock_coro

class TestMQTT:
    """Test the MQTT component."""

    def setup_method(self, method):
        """Set up things to be run when tests are started."""
        self.hass = get_test_home_assistant()

    def teardown_method(self, method):
        """Stop everything that was started."""
        self.hass.stop()

    @patch('passlib.apps.custom_app_context', Mock(return_value=''))
    @patch('tempfile.NamedTemporaryFile', Mock(return_value=MagicMock()))
    @patch('hbmqtt.broker.Broker', Mock(return_value=MagicMock()))
    @patch('hbmqtt.broker.Broker.start', Mock(return_value=mock_coro()))
    @patch('homeassistant.components.mqtt.MQTT')
    def test_creating_config_with_pass_and_no_http_pass(self, mock_mqtt):
        """Test if the MQTT server gets started with password.

        Since 0.77, MQTT server has to set up its own password.
        """
        mock_mqtt().async_connect.return_value = mock_coro(True)
        self.hass.bus.listen_once = MagicMock()
        password = 'mqtt_secret'

        assert setup_component(self.hass, mqtt.DOMAIN, {
            mqtt.DOMAIN: {CONF_PASSWORD: password},
        })
        self.hass.block_till_done()
        assert mock_mqtt.called
        assert mock_mqtt.mock_calls[1][2]['username'] == 'homeassistant'
        assert mock_mqtt.mock_calls[1][2]['password'] == password

    @patch('passlib.apps.custom_app_context', Mock(return_value=''))
    @patch('tempfile.NamedTemporaryFile', Mock(return_value=MagicMock()))
    @patch('hbmqtt.broker.Broker', Mock(return_value=MagicMock()))
    @patch('hbmqtt.broker.Broker.start', Mock(return_value=mock_coro()))
    @patch('homeassistant.components.mqtt.MQTT')
    def test_creating_config_with_pass_and_http_pass(self, mock_mqtt):
        """Test if the MQTT server gets started with password.

        Since 0.77, MQTT server has to set up its own password.
        """
        mock_mqtt().async_connect.return_value = mock_coro(True)
        self.hass.bus.listen_once = MagicMock()
        password = 'mqtt_secret'

        self.hass.config.api = MagicMock(api_password='api_password')
        assert setup_component(self.hass, mqtt.DOMAIN, {
            'http': {'api_password': 'http_secret'},
            mqtt.DOMAIN: {CONF_PASSWORD: password},
        })
        self.hass.block_till_done()
        assert mock_mqtt.called
        assert mock_mqtt.mock_calls[1][2]['username'] == 'homeassistant'
        assert mock_mqtt.mock_calls[1][2]['password'] == password

    @patch('tempfile.NamedTemporaryFile', Mock(return_value=MagicMock()))
    @patch('hbmqtt.broker.Broker.start', return_value=mock_coro())
    def test_broker_config_fails(self, mock_run):
        """Test if the MQTT component fails if server fails."""
        from hbmqtt.broker import BrokerException

        mock_run.side_effect = BrokerException

        self.hass.config.api = MagicMock(api_password=None)

        assert not setup_component(self.hass, mqtt.DOMAIN, {
            mqtt.DOMAIN: {mqtt.CONF_EMBEDDED: {}}
        })


text:
namespace dbus {
class Bus;
class Response;
}

namespace chromeos {

// Enum describing types of mount used by cros-disks.
enum MountType {
  MOUNT_TYPE_INVALID,
  MOUNT_TYPE_DEVICE,
  MOUNT_TYPE_ARCHIVE,
  MOUNT_TYPE_GDATA,
  MOUNT_TYPE_NETWORK_STORAGE,
};

// Type of device.
enum DeviceType {
  DEVICE_TYPE_UNKNOWN,
  DEVICE_TYPE_USB,  // USB stick.
  DEVICE_TYPE_SD,  // SD card.
  DEVICE_TYPE_OPTICAL_DISC,  // e.g. Optical disc excluding DVD.
  DEVICE_TYPE_MOBILE,  // Storage on a mobile device (e.g. Android).
  DEVICE_TYPE_DVD,  // DVD.
};

// Mount error code used by cros-disks.
enum MountError {
  MOUNT_ERROR_NONE = 0,
  MOUNT_ERROR_UNKNOWN = 1,
  MOUNT_ERROR_INTERNAL = 2,
  MOUNT_ERROR_UNKNOWN_FILESYSTEM = 101,
  MOUNT_ERROR_UNSUPPORTED_FILESYSTEM = 102,
  MOUNT_ERROR_INVALID_ARCHIVE = 201,
  MOUNT_ERROR_NOT_AUTHENTICATED = 601,
  MOUNT_ERROR_PATH_UNMOUNTED = 901,
  // TODO(tbarzic): Add more error codes as they get added to cros-disks and
  // consider doing explicit translation from cros-disks error_types.
};

// Event type each corresponding to a signal sent from cros-disks.
enum MountEventType {
  DISK_ADDED,
  DISK_REMOVED,
  DISK_CHANGED,
  DEVICE_ADDED,
  DEVICE_REMOVED,
  DEVICE_SCANNED,
  FORMATTING_FINISHED,
};

// A class to represent information about a disk sent from cros-disks.
class DiskInfo {
 public:
  DiskInfo(const std::string& device_path, dbus::Response* response);
  ~DiskInfo();

  // Device path. (e.g. /sys/devices/pci0000:00/.../8:0:0:0/block/sdb/sdb1)
  std::string device_path() const { return device_path_; }

  // Disk mount path. (e.g. /media/removable/VOLUME)
  std::string mount_path() const { return mount_path_; }

  // Disk system path given by udev.
  // (e.g. /sys/devices/pci0000:00/.../8:0:0:0/block/sdb/sdb1)
  std::string system_path() const { return system_path_; }

  // Is a drive or not. (i.e. true with /dev/sdb, false with /dev/sdb1)
  bool is_drive() const { return is_drive_; }

  // Does the disk have media content.
  bool has_media() const { return has_media_; }

  // Is the disk on deveice we booted the machine from.
  bool on_boot_device() const { return on_boot_device_; }

  // Disk file path (e.g. /dev/sdb).
  std::string file_path() const { return file_path_; }

  // Disk label.
  std::string label() const { return label_; }

  // Disk model. (e.g. "TransMemory")
  std::string drive_label() const { return drive_model_; }

  // Device type. Not working well, yet.
  DeviceType device_type() const { return device_type_; }

  // Total size of the disk in bytes.
  uint64 total_size_in_bytes() const { return total_size_in_bytes_; }

  // Is the device read-only.
  bool is_read_only() const { return is_read_only_; }

  // Returns true if the device should be hidden from the file browser.
  bool is_hidden() const { return is_hidden_; }

 private:
  void InitializeFromResponse(dbus::Response* response);

  std::string device_path_;
  std::string mount_path_;
  std::string system_path_;
  bool is_drive_;
  bool has_media_;
  bool on_boot_device_;

  std::string file_path_;
  std::string label_;
  std::string drive_model_;
  DeviceType device_type_;
  uint64 total_size_in_bytes_;
  bool is_read_only_;
  bool is_hidden_;
};

// A class to make the actual DBus calls for cros-disks service.
// This class only makes calls, result/error handling should be done
// by callbacks.
class CHROMEOS_EXPORT CrosDisksClient {
 public:
  // A callback to be called when DBus method call fails.
  typedef base::Callback<void()> ErrorCallback;

  // A callback to handle the result of Mount.
  typedef base::Callback<void()> MountCallback;

  // A callback to handle the result of Unmount.
  // The argument is the device path.
  typedef base::Callback<void(const std::string&)> UnmountCallback;

  // A callback to handle the result of EnumerateAutoMountableDevices.
  // The argument is the enumerated device paths.
  typedef base::Callback<void(const std::vector<std::string>&)
                         > EnumerateAutoMountableDevicesCallback;

  // A callback to handle the result of FormatDevice.
  // The first argument is the device path.
  // The second argument is true when formatting succeeded, false otherwise.
  typedef base::Callback<void(const std::string&, bool)> FormatDeviceCallback;

  // A callback to handle the result of GetDeviceProperties.
  // The argument is the information about the specified device.
  typedef base::Callback<void(const DiskInfo&)> GetDevicePropertiesCallback;

  // A callback to handle MountCompleted signal.
  // The first argument is the error code.
  // The second argument is the source path.
  // The third argument is the mount type.
  // The fourth argument is the mount path.
  typedef base::Callback<void(MountError, const std::string&, MountType,
                              const std::string&)> MountCompletedHandler;

  // A callback to handle mount events.
  // The first argument is the event type.
  // The second argument is the device path.
  typedef base::Callback<void(MountEventType, const std::string&)
                         > MountEventHandler;

  virtual ~CrosDisksClient();

  // Calls Mount method.  |callback| is called after the method call succeeds,
  // otherwise, |error_callback| is called.
  // When mounting an archive, caller may set two optional arguments:
  // - The |source_format| argument passes the file extension (with the leading
  //   dot, for example ".zip"). If |source_format| is empty then the source
  //   format is auto-detected.
  // - The |mount_label| argument passes an optional mount label to be used as
  //   the directory name of the mount point. If |mount_label| is empty, the
  //   mount label will be based on the |source_path|.
  virtual void Mount(const std::string& source_path,
                     const std::string& source_format,
                     const std::string& mount_label,
                     MountType type,
                     const MountCallback& callback,
                     const ErrorCallback& error_callback) = 0;

  // Calls Unmount method.  |callback| is called after the method call succeeds,
  // otherwise, |error_callback| is called.
  virtual void Unmount(const std::string& device_path,
                       const UnmountCallback& callback,
                       const ErrorCallback& error_callback) = 0;

  // Calls EnumerateAutoMountableDevices method.  |callback| is called after the
  // method call succeeds, otherwise, |error_callback| is called.
  virtual void EnumerateAutoMountableDevices(
      const EnumerateAutoMountableDevicesCallback& callback,
      const ErrorCallback& error_callback) = 0;

  // Calls FormatDevice method.  |callback| is called after the method call
  // succeeds, otherwise, |error_callback| is called.
  virtual void FormatDevice(const std::string& device_path,
                            const std::string& filesystem,
                            const FormatDeviceCallback& callback,
                            const ErrorCallback& error_callback) = 0;

  // Calls GetDeviceProperties method.  |callback| is called after the method
  // call succeeds, otherwise, |error_callback| is called.
  virtual void GetDeviceProperties(const std::string& device_path,
                                   const GetDevicePropertiesCallback& callback,
                                   const ErrorCallback& error_callback) = 0;

  // Registers given callback for events.
  // |mount_event_handler| is called when mount event signal is received.
  // |mount_completed_handler| is called when MountCompleted signal is received.
  virtual void SetUpConnections(
      const MountEventHandler& mount_event_handler,
      const MountCompletedHandler& mount_completed_handler) = 0;

  // Factory function, creates a new instance and returns ownership.
  // For normal usage, access the singleton via DBusThreadManager::Get().
  static CrosDisksClient* Create(DBusClientImplementationType type,
                                 dbus::Bus* bus);

 protected:
  // Create() should be used instead.
  CrosDisksClient();

 private:
  DISALLOW_COPY_AND_ASSIGN(CrosDisksClient);
};

}  // namespace chromeos

#endif  // CHROMEOS_DBUS_CROS_DISKS_CLIENT_H_


text:
jQuery(document).ready(function(){

    jQuery("body").on("click", "#wpgmza_signup_newsletter_btn", function() {

        var a_email = jQuery("#wpgmza_signup_newsletter").val();
        jQuery(".wpgmza_sub_div").hide("fast");
        jQuery("#wpgmza_signup_newsletter").hide('slow');
        jQuery("#wpgmza_signup_newsletter_btn").hide('slow');
        jQuery("#wpgmza_subscribe_div").html("Thank you!");
        var data = {
            action: 'wpgmza_subscribe',
            prod: 'wpgmza',
            a_email: a_email

        };
        jQuery.post('//ccplugins.co/newsletter-subscription/index.php', data, function(response) {
            returned_data = JSON.parse(response);

        });

        var data = {
            action: 'wpgmza_subscribe',
            security: wpgmza_sub_nonce

        };
        jQuery.post(ajaxurl, data, function(response) {

        });

    });
    jQuery("body").on("click", "#wpgmza_signup_newsletter_hide", function() {

        jQuery(".wpgmza_sub_div").hide("fast");
        jQuery("#wpgmza_signup_newsletter").hide('slow');
        jQuery("#wpgmza_signup_newsletter_btn").hide('slow');
        jQuery("#wpgmza_signup_newsletter_hide").hide('slow');

        var data = {
            action: 'wpgmza_subscribe_hide',
            security: wpgmza_sub_nonce
        };

        jQuery.post(ajaxurl, data, function(response) {

        });

    });
});


text:
                <form style="width: 100%;" method="POST" action="<?php echo site_url('/detalle/lis') ?>">

                            Calidad

                            <input type="number" class="form-control" name="idDetalle" value="<?php echo $cal->idCalidad; ?>">

                            Defecto

                            <input type="number" class="form-control" name="idDetalle" value="<?php echo $cal->idDetalle; ?>">

                            Calidad

                            <input type="number" class="form-control" name="idDetalle" value="<?php echo $cal->idCalidad; ?>">

                        <button type="submit" class="btn btn-default glyphicon glyphicon-remove"></button>

                            <img src="<?php echo base_url() . "/media/img/warning.png"; ?>" width="30%" height="30%">

                </form>
                 ¡¡Está seguro de eliminar el defecto de calidad!! Esto ocasionara que se pierdan los <?php echo $cal->idDetalle;?>
                        datos.

                ¿Desea continuar ?
                            <form style="width: 80%;" method="POST" action="<?php echo site_url('/detalle/delete/' . $cal->idDetalle) ?>">

                                            Calidad

                                            <input type="number" class="form-control" name="idDetalle" value="<?php echo $cal->idCalidad; ?>">

                                <button type="submit" class="btn btn-danger">Sí</button>

                        </form>

                            <form style="width: 100%;" method="POST" action="<?php echo site_url('/detalle/lis') ?>">

                                        Calidad

                                        <input type="number" class="form-control" name="idDetalle" value="<?php echo $cal->idCalidad; ?>">

                                    <button type="submit" class="btn btn-success">No</button>

                            </form>


text:
var typer = require('./helpers/typer');

var addReturnToTypes = function(tagData, returns){
	if(tagData && tagData.types){
		for(var i =0; i< tagData.types.length; i++ ){
			if(tagData.types[i].type === "function"){
				tagData.types[i].returns = returns;
				return returns;
			}
		}
	}
};

	/**
	 * @constructor documentjs.tags.return @return
	 * @parent documentjs.tags
	 *
	 * Describes a function's return value.
	 *
	 * @signature `@return {TYPE} DESCRIPTION`
	 *
	 * @codestart javascript
	 * /**
	 *  * Capitalizes a string
	 *  * @@param {String} s the string to be lowercased.
	 *  * @@return {String} a string with the first character capitalized,
	 *  * and everything else lowercased
	 *  *|
	 * capitalize: function( s ) { ... }
	 * @codeend
	 *
	 * @param {documentjs.typeExpression} [TYPE] The type of
	 * return value.
	 *
	 * @param {String} [DESCRIPTION] The description of the
	 * return value.
	 */
module.exports = {
	add: function( line, tagData ) {

		var printError = function(){
			console.warn("LINE: \n" + line + "\n does not match @return {TYPE} DESCRIPTION");
		};

		// start processing
		var children = typer.tree(line);

		// check the format
		if(!children.length >= 2 || !children[1] || !children[1].children) {
			printError();
			return;
		}

		var returns = typer.process(children[1].children, {});
		returns.description = line.substr(children[1].end).replace(/^\s+/,"");

		var parts = line.match(/\s*@\w+\s+(?:\{([^\}]+)\})?\s*(.*)?/);

		if (!parts ) {
			return;
		}

		// check tagData first
		var rets = tagData !== this && addReturnToTypes(tagData, returns);
		if(rets) {
			return rets;
		} else if(this.signatures){
			this.signatures[this.signatures.length-1].returns = returns;
		} else {
			// check types (created by typedef) for a function type
			rets = addReturnToTypes(this, returns);
			if(rets) {
				this._curReturn = returns;
				return rets;
			}

			this.returns = returns;
		}

		this._curReturn = returns;

		return returns;
	},
	addMore: function( line, ret ) {
		ret.description += "\n" + line;
	},
	done : function(){
		delete this._curReturn;
	}
};


text:
**doxy-coverage** is a source code documentation coverage measurement tool. Its primary use case is to gate on the percentage of API and structures documented on software projects.

***

## How it works

First, Doxygen must be run on your project's source code to generate some XML documentation files. Doxy-coverage consumes those files and reports the documentation coverage.

A non-zero exit code will be returned if the source code documentation is below certain treshold, which allows to integrate this script with CI systems seamlessly.

## Getting Started
First create a doxygen.conf file. If you have one already, make sure `GENERATE_XML` is set to `YES`. If not, create it with the following lines:

```
GENERATE_XML=YES
GENERATE_HTML=NO
GENERATE_LATEX=NO
```

Then, execute `doxygen -w doxygen.conf` in your source directory. It will generate an `xml` directory with the files that doxy-coverage consumes.

Lastly, execute doxy-coverage with the path to the `xml` directory:

```
doxy-coverage.py /path/to/xml
```

## Example

The [libhpack](https://github.com/alobbs/libhpack) library [CI](https://travis-ci.org/alobbs/libhpack) system uses doxy-coverage to ensure the its documentation level is high enough and it doesn't suffer regressions over the time.

--
Alvaro Lopez Ortega
[alvaro@gnu.org](mail:alvaro@gnu.org)


text:
package org.scalatest

import matchers.{AMatcher, AnMatcher}
import exceptions.TestFailedException
import SharedHelpers.serializeRoundtrip
import org.scalatest.matchers.{BePropertyMatchResult, BePropertyMatcher}
import org.scalatest.funspec.AnyFunSpec
import org.scalatest.matchers.should.Matchers

class MatchersSerializableSpec extends AnyFunSpec {

  import Matchers._

  describe("Matchers") {

    it("'a should be a AMatcher' syntax should produce Serializable TestFailedException") {
      val positiveNumber = AMatcher[Int]("positive number") { _ > 0 }
      val e = intercept[TestFailedException] {
        -1 should be a positiveNumber
      }
      serializeRoundtrip(e)
    }

    it("'a should be a AnMatcher' syntax should produce Serializable TestFailedException") {
      val evenNumber = AnMatcher[Int]("even number") { _ % 2 == 0 }
      val e = intercept[TestFailedException] {
        11 should be an evenNumber
      }
      serializeRoundtrip(e)
    }

    it("'a should be theSameInstanceAs b' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test 1" should be theSameInstanceAs "test 2"
      }
      serializeRoundtrip(e)
    }

    // SKIP-SCALATESTJS,NATIVE-START
    it("'a should be a 'file' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        class NotFileMock extends Serializable {
          def file: Boolean = false
          def directory: Boolean = true
          def exists: Boolean = true
          override def toString = "NotFileMock"
        }
        (new NotFileMock) should be a Symbol("file")
      }
      serializeRoundtrip(e)
    }

    it("'a should be an 'file' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        class NotFileMock extends Serializable {
          def file: Boolean = false
          def directory: Boolean = true
          def exists: Boolean = true
          override def toString = "NotFileMock"
        }
        (new NotFileMock) should be an Symbol("file")
      }
      serializeRoundtrip(e)
    }
    // SKIP-SCALATESTJS,NATIVE-END

    it("'a should be a BePropertyMatcher' should produce Serializable TestFailedException") {

      class NonEmptyStringBePropertyMatcher extends BePropertyMatcher[String] {
        def apply(value: String) = {
          new BePropertyMatchResult(!value.isEmpty, "non-empty string")
        }
      }

      val e = intercept[TestFailedException] {
        "" should be a (new NonEmptyStringBePropertyMatcher)
      }
      serializeRoundtrip(e)
    }

    it("'a should be an BePropertyMatcher' should produce Serializable TestFailedException") {

      class EmptyStringBePropertyMatcher extends BePropertyMatcher[String] {
        def apply(value: String) = {
          new BePropertyMatchResult(value.isEmpty, "empty string")
        }
      }

      val e = intercept[TestFailedException] {
        "test" should be an (new EmptyStringBePropertyMatcher)
      }
      serializeRoundtrip(e)
    }

    it("'a should be definedAt b' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        List(1, 2, 3) should be definedAt 4
      }
      serializeRoundtrip(e)
    }

    it("'a should include regex (\"a(b*)c\" withGroup \"bb\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should include regex ("a(b*)c" withGroup "bb")
      }
      serializeRoundtrip(e)
    }

    it("'a should include regex (\"a(b*)c\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should include regex ("a(b*)c")
      }
      serializeRoundtrip(e)
    }

    it("'a should startWith regex (\"a(b*)c\" withGroup \"bb\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should startWith regex ("a(b*)c" withGroup "bb")
      }
      serializeRoundtrip(e)
    }

    it("'a should startWith regex (\"a(b*)c\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should startWith regex ("a(b*)c")
      }
      serializeRoundtrip(e)
    }

    it("'a should endWith regex (\"a(b*)c\" withGroup \"bb\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should endWith regex ("a(b*)c" withGroup "bb")
      }
      serializeRoundtrip(e)
    }

    it("'a should endWith regex (\"a(b*)c\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should endWith regex ("a(b*)c")
      }
      serializeRoundtrip(e)
    }

    it("'a should fullyMatch regex (\"a(b*)c\" withGroup \"bb\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should fullyMatch regex ("a(b*)c" withGroup "bb")
      }
      serializeRoundtrip(e)
    }

    it("'a should fullyMatch regex (\"a(b*)c\")' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should fullyMatch regex ("a(b*)c")
      }
      serializeRoundtrip(e)
    }

    it("'a should have length (2L)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should have length (2L)
      }
      serializeRoundtrip(e)
    }

    it("'a should have size (2L)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        "test" should have size (2L)
      }
      serializeRoundtrip(e)
    }

    it("'a should have message (xxx)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        new RuntimeException("test") should have message ("testing")
      }
      serializeRoundtrip(e)
    }

    it("'all(a) should not equal (b)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        all(List(1, 2, 3)) should not equal (2)
      }
      serializeRoundtrip(e)
    }

    it("'all(a) should not be (b)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        all(List(1, 2, 3)) should not be (2)
      }
      serializeRoundtrip(e)
    }

    it("'all(a) should not be <= (b)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        all(List(1, 2, 3)) should not be <= (2)
      }
      serializeRoundtrip(e)
    }

    it("'all(a) should not be >= (b)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        all(List(1, 2, 3)) should not be >= (2)
      }
      serializeRoundtrip(e)
    }

    it("'all(a) should not be < (b)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        all(List(1, 2, 3)) should not be < (2)
      }
      serializeRoundtrip(e)
    }

    it("'all(a) should not be > (b)' should produce Serializable TestFailedException") {
      val e = intercept[TestFailedException] {
        all(List(1, 2, 3)) should not be > (2)
      }
      serializeRoundtrip(e)
    }

  }

}