text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="4038b2da-aaed-444e-b109-cf17f7fb6af1" name="Default" comment="" />
    <ignored path="src.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path="$PROJECT_DIR$/.tmp/" />
    <ignored path="$PROJECT_DIR$/temp/" />
    <ignored path="$PROJECT_DIR$/tmp/" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="src" />
  </component>
  <component name="FileEditorManager">
    <splitter split-orientation="horizontal" split-proportion="0.5445312">
      <split-first>
        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
          <file leaf-file-name="contact.html" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/contact/contact.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="720">
                  <caret line="48" column="0" selection-start-line="48" selection-start-column="0" selection-end-line="48" selection-end-column="0" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="home.html" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/home/home.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="204">
                  <caret line="122" column="0" selection-start-line="122" selection-start-column="0" selection-end-line="122" selection-end-column="0" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="project-card.component.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/shared/project-card/project-card.component.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="45">
                  <caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
                  <folding>
                    <element signature="n#!!doc" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="app.component.html" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/app/app.component.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="225">
                  <caret line="15" column="1" selection-start-line="15" selection-start-column="1" selection-end-line="15" selection-end-column="1" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="polyfills.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/polyfills.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="495">
                  <caret line="48" column="27" selection-start-line="48" selection-start-column="27" selection-end-line="48" selection-end-column="27" />
                  <folding>
                    <element signature="n#!!doc" expanded="true" />
                    <element signature="e#1567#1596#0" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="projects.html" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/projects/projects.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="195">
                  <caret line="13" column="33" selection-start-line="13" selection-start-column="33" selection-end-line="13" selection-end-column="33" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="group-project.html" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/shared/group-project/group-project.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="135">
                  <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="detail.html" pinned="false" current-in-tab="true">
            <entry file="file://$PROJECT_DIR$/detail/detail.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="255">
                  <caret line="17" column="51" selection-start-line="17" selection-start-column="51" selection-end-line="17" selection-end-column="51" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="SafeStylePipe.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/shared/pipe/SafeStylePipe.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="195">
                  <caret line="15" column="1" selection-start-line="15" selection-start-column="1" selection-end-line="15" selection-end-column="1" />
                  <folding>
                    <element signature="e#40#92#0" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="app.module.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/app/app.module.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="585">
                  <caret line="41" column="26" selection-start-line="41" selection-start-column="26" selection-end-line="41" selection-end-column="26" />
                  <folding>
                    <element signature="e#39#86#0" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
        </leaf>
      </split-first>
      <split-second>
        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
          <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/index.html">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="159">
                  <caret line="12" column="35" selection-start-line="12" selection-start-column="35" selection-end-line="12" selection-end-column="35" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="detail.component.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/detail/detail.component.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="278">
                  <caret line="36" column="5" selection-start-line="36" selection-start-column="5" selection-end-line="36" selection-end-column="5" />
                  <folding>
                    <element signature="e#40#90#0" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="detail.css" pinned="false" current-in-tab="true">
            <entry file="file://$PROJECT_DIR$/detail/detail.css">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="330">
                  <caret line="46" column="4" selection-start-line="46" selection-start-column="0" selection-end-line="47" selection-end-column="0" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="modal.service.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/shared/services/modal.service.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="278">
                  <caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
                  <folding>
                    <element signature="n#!!doc" expanded="true" />
                    <element signature="e#40#81#0" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="home.component.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/home/home.component.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="720">
                  <caret line="56" column="22" selection-start-line="56" selection-start-column="22" selection-end-line="56" selection-end-column="22" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="constant.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/shared/infos/constant.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="120">
                  <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="projects.css" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/projects/projects.css">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="870">
                  <caret line="58" column="43" selection-start-line="58" selection-start-column="43" selection-end-line="58" selection-end-column="43" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="trunc.pipe.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/shared/pipe/trunc.pipe.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="165">
                  <caret line="13" column="1" selection-start-line="13" selection-start-column="1" selection-end-line="13" selection-end-column="1" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="app.component.css" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/app/app.component.css">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="885">
                  <caret line="59" column="28" selection-start-line="59" selection-start-column="28" selection-end-line="59" selection-end-column="28" />
                  <folding />
                </state>
              </provider>
            </entry>
          </file>
          <file leaf-file-name="app.component.ts" pinned="false" current-in-tab="false">
            <entry file="file://$PROJECT_DIR$/app/app.component.ts">
              <provider selected="true" editor-type-id="text-editor">
                <state relative-caret-position="120">
                  <caret line="11" column="32" selection-start-line="11" selection-start-column="32" selection-end-line="11" selection-end-column="32" />
                  <folding>
                    <element signature="e#0#67#0" expanded="true" />
                  </folding>
                </state>
              </provider>
            </entry>
          </file>
        </leaf>
      </split-second>
    </splitter>
  </component>
  <component name="FileTemplateManagerImpl">
    <option name="RECENT_TEMPLATES">
      <list>
        <option value="TypeScript File" />
      </list>
    </option>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/shared/pipe/ProjectFilter.ts" />
        <option value="$PROJECT_DIR$/shared/group-fader/group-fader.html" />
        <option value="$PROJECT_DIR$/shared/group-project/group-project.html" />
        <option value="$PROJECT_DIR$/shared/object-interface/about-interface.ts" />
        <option value="$PROJECT_DIR$/shared/object-interface/work-interface.ts" />
        <option value="$PROJECT_DIR$/shared/project-card/project-card.html" />
        <option value="$PROJECT_DIR$/shared/infos/project-detail/lifekit.ts" />
        <option value="$PROJECT_DIR$/shared/project-card/project-card.css" />
        <option value="$PROJECT_DIR$/home/home.css" />
        <option value="$PROJECT_DIR$/shared/infos/project-detail/enjoychess.ts" />
        <option value="$PROJECT_DIR$/shared/infos/project-detail/xmario.ts" />
        <option value="$PROJECT_DIR$/shared/infos/projects.ts" />
        <option value="$PROJECT_DIR$/shared/infos/project-detail/septa.ts" />
        <option value="$PROJECT_DIR$/shared/infos/project-detail/othello.ts" />
        <option value="$PROJECT_DIR$/home/home.component.ts" />
        <option value="$PROJECT_DIR$/shared/group-fader/group-fader.component.ts" />
        <option value="$PROJECT_DIR$/app/app.component.html" />
        <option value="$PROJECT_DIR$/home/home.html" />
        <option value="$PROJECT_DIR$/contact/contact.html" />
        <option value="$PROJECT_DIR$/styles.css" />
        <option value="$PROJECT_DIR$/projects/projects.component.ts" />
        <option value="$PROJECT_DIR$/projects/projects.html" />
        <option value="$PROJECT_DIR$/contact/contact.css" />
        <option value="$PROJECT_DIR$/app/app.component.css" />
        <option value="$PROJECT_DIR$/projects/projects.css" />
        <option value="$PROJECT_DIR$/shared/pipe/trunc.pipe.ts" />
        <option value="$PROJECT_DIR$/app/app.component.ts" />
        <option value="$PROJECT_DIR$/polyfills.ts" />
        <option value="$PROJECT_DIR$/shared/infos/constant.ts" />
        <option value="$PROJECT_DIR$/index.html" />
        <option value="$PROJECT_DIR$/shared/infos/about-me.ts" />
        <option value="$PROJECT_DIR$/shared/pipe/SafePipe.ts" />
        <option value="$PROJECT_DIR$/app/app.module.ts" />
        <option value="$PROJECT_DIR$/detail/detail.component.ts" />
        <option value="$PROJECT_DIR$/shared/pipe/SafeStylePipe.ts" />
        <option value="$PROJECT_DIR$/detail/detail.css" />
        <option value="$PROJECT_DIR$/detail/detail.html" />
      </list>
    </option>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
    <sorting>DEFINITION_ORDER</sorting>
  </component>
  <component name="ProjectFrameBounds">
    <option name="width" value="1280" />
    <option name="height" value="800" />
  </component>
  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
    <OptionsSetting value="true" id="Add" />
    <OptionsSetting value="true" id="Remove" />
    <OptionsSetting value="true" id="Checkout" />
    <OptionsSetting value="true" id="Update" />
    <OptionsSetting value="true" id="Status" />
    <OptionsSetting value="true" id="Edit" />
    <ConfirmationsSetting value="0" id="Add" />
    <ConfirmationsSetting value="0" id="Remove" />
  </component>
  <component name="ProjectView">
    <navigator currentView="ProjectPane" proportions="" version="1">
      <flattenPackages />
      <showMembers />
      <showModules />
      <showLibraryContents />
      <hideEmptyPackages />
      <abbreviatePackageNames />
      <autoscrollToSource />
      <autoscrollFromSource />
      <sortByType />
      <manualOrder />
      <foldersAlwaysOnTop value="true" />
    </navigator>
    <panes>
      <pane id="Scratches" />
      <pane id="ProjectPane">
        <subPane />
      </pane>
      <pane id="Scope" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="settings.editor.selected.configurable" value="Errors" />
    <property name="settings.editor.splitter.proportion" value="0.2" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="HbShouldOpenHtmlAsHb" value="" />
    <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
    <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
    <property name="FullScreen" value="true" />
  </component>
  <component name="RunManager">
    <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
      <method />
    </configuration>
    <configuration default="true" type="DartTestRunConfigurationType" factoryName="Dart Test">
      <method />
    </configuration>
    <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma">
      <config-file value="" />
      <node-interpreter value="project" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="project" working-dir="">
      <method />
    </configuration>
    <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
      <option name="cucumberJsArguments" value="" />
      <option name="executablePath" />
      <option name="filePath" />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-interpreter>project</node-interpreter>
      <node-options />
      <gulpfile />
      <tasks />
      <arguments />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.npm" factoryName="npm">
      <command value="run-script" />
      <scripts />
      <node-interpreter value="project" />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="mocha-javascript-test-runner" factoryName="Mocha">
      <node-interpreter>project</node-interpreter>
      <node-options />
      <working-directory />
      <pass-parent-env>true</pass-parent-env>
      <envs />
      <ui />
      <extra-mocha-options />
      <test-kind>DIRECTORY</test-kind>
      <test-directory />
      <recursive>false</recursive>
      <method />
    </configuration>
  </component>
  <component name="ShelveChangesManager" show_recycled="false">
    <option name="remove_strategy" value="false" />
  </component>
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="4038b2da-aaed-444e-b109-cf17f7fb6af1" name="Default" comment="" />
      <created>1500511318053</created>
      <option name="number" value="Default" />
      <option name="presentableId" value="Default" />
      <updated>1500511318053</updated>
      <workItem from="1500511319399" duration="14367000" />
      <workItem from="1500658089301" duration="1012000" />
      <workItem from="1500756548858" duration="21690000" />
      <workItem from="1500845065295" duration="56117000" />
      <workItem from="1501556127922" duration="85000" />
      <workItem from="1501558255415" duration="156000" />
      <workItem from="1502222792366" duration="631000" />
      <workItem from="1504720200586" duration="3517000" />
    </task>
    <servers />
  </component>
  <component name="TimeTrackingManager">
    <option name="totallyTimeSpent" value="97575000" />
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="0" width="1280" height="800" 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" show_stripe_button="true" weight="0.11015625" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32934928" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" 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" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/shared/infos/projects.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1200">
          <caret line="82" column="41" selection-start-line="82" selection-start-column="41" selection-end-line="82" selection-end-column="41" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/projects/projects.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="210">
          <caret line="14" column="0" selection-start-line="14" selection-start-column="0" selection-end-line="14" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1005">
          <caret line="67" column="43" selection-start-line="67" selection-start-column="43" selection-end-line="67" selection-end-column="43" />
          <folding>
            <element signature="e#0#67#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/contact/contact.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="300">
          <caret line="20" column="8" selection-start-line="20" selection-start-column="8" selection-end-line="20" selection-end-column="8" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/home/home.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/styles.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="2175">
          <caret line="145" column="0" selection-start-line="145" selection-start-column="0" selection-end-line="145" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="60">
          <caret line="4" column="22" selection-start-line="4" selection-start-column="22" selection-end-line="4" selection-end-column="22" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/detail/detail.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="270">
          <caret line="18" column="0" selection-start-line="18" selection-start-column="0" selection-end-line="18" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.component.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="30">
          <caret line="2" column="21" selection-start-line="2" selection-start-column="21" selection-end-line="2" selection-end-column="21" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.component.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="11" column="0" selection-start-line="11" selection-start-column="0" selection-end-line="11" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/object-interface/about-interface.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="225">
          <caret line="15" column="21" selection-start-line="15" selection-start-column="21" selection-end-line="15" selection-end-column="21" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/object-interface/work-interface.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="135">
          <caret line="9" column="1" selection-start-line="9" selection-start-column="1" selection-end-line="9" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/object-interface/project-interface.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/pipe/EvenOddPipe.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="15">
          <caret line="1" column="31" selection-start-line="1" selection-start-column="31" selection-end-line="1" selection-end-column="31" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/project-card/project-card.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="219">
          <caret line="91" column="23" selection-start-line="91" selection-start-column="23" selection-end-line="91" selection-end-column="23" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/project-detail/lifekit.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="360">
          <caret line="24" column="39" selection-start-line="24" selection-start-column="39" selection-end-line="24" selection-end-column="39" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/pipe/ProjectFilter.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="255">
          <caret line="20" column="1" selection-start-line="20" selection-start-column="1" selection-end-line="20" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/home/home.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="195">
          <caret line="55" column="19" selection-start-line="55" selection-start-column="19" selection-end-line="55" selection-end-column="19" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/project-detail/enjoychess.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="75">
          <caret line="5" column="13" selection-start-line="5" selection-start-column="13" selection-end-line="5" selection-end-column="55" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/project-detail/xmario.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="255">
          <caret line="19" column="2" selection-start-line="19" selection-start-column="2" selection-end-line="19" selection-end-column="2" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/projects.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="390">
          <caret line="118" column="20" selection-start-line="118" selection-start-column="20" selection-end-line="118" selection-end-column="20" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/project-detail/septa.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="13" column="1" selection-start-line="13" selection-start-column="1" selection-end-line="13" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/project-detail/othello.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="330">
          <caret line="24" column="1" selection-start-line="24" selection-start-column="1" selection-end-line="24" selection-end-column="1" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/group-fader/group-fader.html" />
    <entry file="file://$PROJECT_DIR$/shared/project-card/project-card.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="300">
          <caret line="20" column="6" selection-start-line="20" selection-start-column="6" selection-end-line="20" selection-end-column="6" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/project-card/project-card.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="45">
          <caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/group-fader/group-fader.component.ts" />
    <entry file="file://$PROJECT_DIR$/shared/group-project/group-project.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="105">
          <caret line="7" column="38" selection-start-line="7" selection-start-column="38" selection-end-line="7" selection-end-column="38" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/group-project/group-project.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="135">
          <caret line="9" column="0" selection-start-line="9" selection-start-column="0" selection-end-line="9" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/contact/contact.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="720">
          <caret line="48" column="0" selection-start-line="48" selection-start-column="0" selection-end-line="48" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/projects/projects.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="465">
          <caret line="37" column="7" selection-start-line="37" selection-start-column="7" selection-end-line="37" selection-end-column="7" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/contact/contact.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="1590">
          <caret line="106" column="22" selection-start-line="106" selection-start-column="22" selection-end-line="106" selection-end-column="22" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/styles.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="3045">
          <caret line="203" column="0" selection-start-line="203" selection-start-column="0" selection-end-line="203" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.component.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="885">
          <caret line="59" column="28" selection-start-line="59" selection-start-column="28" selection-end-line="59" selection-end-column="28" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/projects/projects.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="870">
          <caret line="58" column="43" selection-start-line="58" selection-start-column="43" selection-end-line="58" selection-end-column="43" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="11" column="32" selection-start-line="11" selection-start-column="32" selection-end-line="11" selection-end-column="32" />
          <folding>
            <element signature="e#0#67#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.component.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="225">
          <caret line="15" column="1" selection-start-line="15" selection-start-column="1" selection-end-line="15" selection-end-column="1" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/polyfills.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="495">
          <caret line="48" column="27" selection-start-line="48" selection-start-column="27" selection-end-line="48" selection-end-column="27" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
            <element signature="e#1567#1596#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/home/home.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="720">
          <caret line="56" column="22" selection-start-line="56" selection-start-column="22" selection-end-line="56" selection-end-column="22" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/constant.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="120">
          <caret line="8" column="0" selection-start-line="8" selection-start-column="0" selection-end-line="8" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/infos/about-me.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="201">
          <caret line="59" column="16" selection-start-line="59" selection-start-column="16" selection-end-line="59" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/home/home.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="204">
          <caret line="122" column="0" selection-start-line="122" selection-start-column="0" selection-end-line="122" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="159">
          <caret line="12" column="35" selection-start-line="12" selection-start-column="35" selection-end-line="12" selection-end-column="35" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/services/modal.service.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="278">
          <caret line="23" column="0" selection-start-line="23" selection-start-column="0" selection-end-line="23" selection-end-column="0" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
            <element signature="e#40#81#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/pipe/trunc.pipe.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="165">
          <caret line="13" column="1" selection-start-line="13" selection-start-column="1" selection-end-line="13" selection-end-column="1" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/app/app.module.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="585">
          <caret line="41" column="26" selection-start-line="41" selection-start-column="26" selection-end-line="41" selection-end-column="26" />
          <folding>
            <element signature="e#39#86#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/projects/projects.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="195">
          <caret line="13" column="33" selection-start-line="13" selection-start-column="33" selection-end-line="13" selection-end-column="33" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/detail/detail.component.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="278">
          <caret line="36" column="5" selection-start-line="36" selection-start-column="5" selection-end-line="36" selection-end-column="5" />
          <folding>
            <element signature="e#40#90#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/detail/detail.css">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="330">
          <caret line="46" column="4" selection-start-line="46" selection-start-column="0" selection-end-line="47" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/shared/pipe/SafeStylePipe.ts">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="195">
          <caret line="15" column="1" selection-start-line="15" selection-start-column="1" selection-end-line="15" selection-end-column="1" />
          <folding>
            <element signature="e#40#92#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/detail/detail.html">
      <provider selected="true" editor-type-id="text-editor">
        <state relative-caret-position="255">
          <caret line="17" column="51" selection-start-line="17" selection-start-column="51" selection-end-line="17" selection-end-column="51" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
id: home
title: giraffy ∙ An Imgur client/wrapper
---

# Welcome!

An Imgur client/wrapper

redpajama_set_name: RedPajamaGithub


text:
import * as React from "react"

import Layout from "../components/layout"
import Seo from "../components/seo"

const RedirectSearchHash = () => (
  <Layout>

This should be a page that also has search & hash

  </Layout>
)

export const Head = () => <Seo />

export default RedirectSearchHash


text:
		<title>Checkout page</title>
		<link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="/assets/css/bootstrap.theme.css">

							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
								 Toggle navigation
							</button> Home

							<form class="navbar-form navbar-left" role="search">

									<input type="text" class="form-control" />

								<button type="submit" class="btn btn-default">
									Submit
								</button>
							</form>

									 Account

											Profile

											Inbox

											Inventory

											Log Out

				<form action = "/lendings/billingAddress" method = "post">

Billing Address

<?php
	echo $this->session->flashdata('addressMessage');
	echo $this->session->flashdata('billingMessage');
?>

House Number: <input class="form-control" class="form-control" type = "text" name = "house">

Street: <input class="form-control" type = "text" name = "street">

Apt Number: <input class="form-control" type = "text" name = "apt">

City: <input class="form-control" type = "text" name = "city">

State: <input class="form-control" type = "text" name = "state">

Zip: <input class="form-control" type = "text" name = "zip">

					<input class="btn btn-default" type = "submit" value = "Submit!">
				</form>

				<form action="/charge" method="post">

				</form>


text:
set -o xtrace
set -o errexit
set -o nounset
set -o pipefail

cd "$(pwd -P)"

KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..

# update vendor/
go mod vendor
# remove repo-originated BUILD files
find vendor -type f \( \
    -name BUILD \
    -o -name BUILD.bazel \
    -o -name '*.bzl' \
  \) -delete

# clean up unused dependencies
go mod tidy
# create a symlink in vendor directory pointing cloud-provider-gcp/providers to the //providers.
# This lets other packages and tools use the local staging components as if they were vendored.
rm -fr "${KUBE_ROOT}/vendor/k8s.io/cloud-provider-gcp/providers"
ln -s "../../../providers" "${KUBE_ROOT}/vendor/k8s.io/cloud-provider-gcp/providers"

# restore BUILD files in vendor/
bazel run //:gazelle


text:
package slick.jdbc

import scala.language.higherKinds
import scala.annotation.unchecked.{uncheckedVariance => uV}
import scala.collection.generic.CanBuildFrom
import slick.util.CloseableIterator

/** Base trait for all statement invokers of result element type R. */
trait Invoker[+R] { self =>

  /** Execute the statement and return a CloseableIterator of the converted
    * results. The iterator must either be fully read or closed explicitly.
    * @param maxRows Maximum number of rows to read from the result (0 for unlimited). */
  def iteratorTo(maxRows: Int)(implicit session: JdbcBackend#Session): CloseableIterator[R]

  /** Execute the statement and ignore the results. */
  final def execute(implicit session: JdbcBackend#Session): Unit = iteratorTo(0)(session).close()

  /** Execute the statement and return the first row of the result set wrapped
    * in Some, or None if the result set is empty. */
  final def firstOption(implicit session: JdbcBackend#Session): Option[R] = {
    var res: Option[R] = None
    foreach({ x => res = Some(x) }, 1)
    res
  }

  /** Execute the statement and return the first row of the result set.
    * If the result set is empty, a NoSuchElementException is thrown. */
  final def first(implicit session: JdbcBackend#Session): R = {
    val it = iteratorTo(0)
    try {
      if(it.hasNext) it.next()
      else throw new NoSuchElementException("Invoker.first")
    } finally it.close
  }

  /** Execute the statement and return a fully materialized collection. */
  final def buildColl[C[_]](implicit session: JdbcBackend#Session, canBuildFrom: CanBuildFrom[Nothing, R, C[R @uV]]): C[R @uV] = {
    val b = canBuildFrom()
    foreach({ x => b += x }, 0)
    b.result()
  }

  /** Execute the statement and call f for each converted row of the result set.
   * @param maxRows Maximum number of rows to read from the result (0 for unlimited). */
  final def foreach(f: R => Unit, maxRows: Int = 0)(implicit session: JdbcBackend#Session): Unit = {
    val it = iteratorTo(maxRows)
    try { it.foreach(f) } finally { it.close() }
  }
}

trait ResultSetMutator[T] {
  /** Get the current row's value. Throws a [[slick.SlickException]] when positioned after
    * the end of the result set. */
  def row: T
  /** Update the current row. */
  def row_=(value: T): Unit
  /** Insert a new row. */
  def += (value: T): Unit
  /** Insert multiple new rows. */
  def ++= (values: Seq[T]): Unit = values.foreach(v => += (v))
  /** Delete the current row. */
  def delete: Unit
  /** Check if the end of the result set has been reached. */
  def end: Boolean
}


text:
{% assign postList = include.posts %}
{% assign firstPost = postList.first %}

{% for post in postList %}
    {% assign remain = forloop.index | modulo: 3 %}
    {% if remain == 1 %}
{% endif %}
    {% include post-show-small.html post=post %}
    {% if remain == 0 or forloop.last == true %}
{% endif %}
{% endfor %}


text:
package com.thaiopensource.validate.auto;

import java.io.IOException;
import java.io.Reader;

/**
 * Rewindable implementation over a reader. Modified from RewindableInputStream
 * by replacing the input stream with a reader.
 *
 * @author george
 */
public class RewindableReader extends Reader implements Rewindable
{
  static class Block
  {
    Block next;
    final char [] buf;
    int used = 0;
    static final int MIN_SIZE = 1024;

    Block (final int minSize)
    {
      buf = new char [Math.max (MIN_SIZE, minSize)];
    }

    Block ()
    {
      this (0);
    }

    void append (final char b)
    {
      buf[used++] = b;
    }

    void append (final char [] b, final int off, final int len)
    {
      System.arraycopy (b, off, buf, used, len);
      used += len;
    }
  }

  private Block head;
  /**
   * If curBlockAvail > 0, then there are curBlockAvail chars available to be
   * returned starting at curBlockPos in curBlock.buf.
   */
  private int curBlockAvail;
  private Block curBlock;
  private int curBlockPos;
  private Block lastBlock;
  /**
   * true unless willNotRewind has been called
   */
  private boolean saving = true;
  private final Reader in;
  private boolean pretendClosed = false;
  /**
   * true if we have got an EOF from the underlying Reader
   */
  private boolean eof;

  public RewindableReader (final Reader in)
  {
    if (in == null)
      throw new NullPointerException ();
    this.in = in;
  }

  @Override
  public void close () throws IOException
  {
    if (saving)
    {
      curBlockAvail = 0;
      curBlock = null;
      pretendClosed = true;
    }
    else
    {
      head = null;
      curBlock = null;
      lastBlock = null;
      saving = false;
      curBlockAvail = 0;
      in.close ();
    }
  }

  public void rewind ()
  {
    if (!saving)
      throw new IllegalStateException ("rewind() after willNotRewind()");
    pretendClosed = false;
    if (head == null)
      return;
    curBlock = head;
    curBlockPos = 0;
    curBlockAvail = curBlock.used;
  }

  public boolean canRewind ()
  {
    return saving;
  }

  public void willNotRewind ()
  {
    saving = false;
    head = null;
    lastBlock = null;
    if (pretendClosed)
    {
      pretendClosed = false;
      try
      {
        in.close ();
      }
      catch (final IOException e)
      {}
    }
  }

  @Override
  public int read () throws IOException
  {
    if (curBlockAvail > 0)
    {
      final int c = curBlock.buf[curBlockPos++] & 0xFF;
      --curBlockAvail;
      if (curBlockAvail == 0)
      {
        curBlock = curBlock.next;
        if (curBlock != null)
        {
          curBlockPos = 0;
          curBlockAvail = curBlock.used;
        }
      }
      return c;
    }
    final int c = in.read ();
    if (saving && c != -1)
    {
      if (lastBlock == null)
        lastBlock = head = new Block ();
      else
        if (lastBlock.used == lastBlock.buf.length)
          lastBlock = lastBlock.next = new Block ();
      lastBlock.append ((char) c);
    }
    return c;
  }

  @Override
  public int read (final char b[], int off, int len) throws IOException
  {
    if (curBlockAvail == 0 && !saving)
      return in.read (b, off, len);
    if (b == null)
      throw new NullPointerException ();
    if (len < 0)
      throw new IndexOutOfBoundsException ();
    int nRead = 0;
    if (curBlockAvail != 0)
    {
      for (;;)
      {
        if (len == 0)
          return nRead;
        b[off++] = curBlock.buf[curBlockPos++];
        --len;
        nRead++;
        --curBlockAvail;
        if (curBlockAvail == 0)
        {
          curBlock = curBlock.next;
          if (curBlock == null)
            break;
          curBlockAvail = curBlock.used;
          curBlockPos = 0;
        }
      }
    }
    if (len == 0)
      return nRead;
    if (eof)
      return nRead > 0 ? nRead : -1;
    try
    {
      int n = in.read (b, off, len);
      if (n < 0)
      {
        eof = true;
        return nRead > 0 ? nRead : -1;
      }
      nRead += n;
      if (saving)
      {
        if (lastBlock == null)
          lastBlock = head = new Block (n);
        else
          if (lastBlock.buf.length - lastBlock.used < n)
          {
            if (lastBlock.used != lastBlock.buf.length)
            {
              final int free = lastBlock.buf.length - lastBlock.used;
              lastBlock.append (b, off, free);
              off += free;
              n -= free;
            }
            lastBlock = lastBlock.next = new Block (n);
          }
        lastBlock.append (b, off, n);
      }
    }
    catch (final IOException e)
    {
      eof = true;
      if (nRead == 0)
        throw e;
    }
    return nRead;
  }
}


text:
import { join } from 'path'

import { API_GIT_BLOBS } from '@gitcub/constants/api'
import { Router } from 'express'
import Git from 'nodegit'

import config from '../../../../../../config'

const REPO_ROOT = config.env[process.env.NODE_ENV || 'development'].REPO_ROOT

export default new Router().get(API_GIT_BLOBS, (onGet: any))

function onGet(req, res) {
  const {
    params: { owner, repo, sha }
  } = req
  const path = req.params[0].replace(/^\//, '')
  const repoPath = join(REPO_ROOT, owner, repo)
  Git.Repository.openBare(repoPath)
    .then(repo =>
      (path
        ? () =>
            repo
              .getReference(sha)
              .then(ref => ref.target())
              .catch(() => sha)
              .then(sha => repo.getCommit(sha))
              .then(commit => commit.getEntry(path))
              .then(entry => entry.getBlob())
        : () => repo.getBlob(sha))()
        .then(blob => {
          const content = blob.toString()
          res.json({
            bytes: blob.rawsize(),
            content,
            lines: content.match(/\n/g).length,
            sha: blob.id().tostrS()
          })
        })
        .catch(err => {
          console.error(Error(err))
          res.status(503).end('503')
        })
    )
    .catch(err => {
      console.error(Error(err))
      res.status(404).json({ message: 'Not Found' })
    })
}


text:
    using System;
    using System.Collections.Generic;
    using System.IO;
    using Amazon.StorageGateway.Model;
    using Amazon.Runtime.Internal.Transform;

    namespace Amazon.StorageGateway.Model.Internal.MarshallTransformations
    {
      /// <summary>
      /// NetworkInterfaceUnmarshaller
      /// </summary>
      internal class NetworkInterfaceUnmarshaller : IUnmarshaller<NetworkInterface, XmlUnmarshallerContext>, IUnmarshaller<NetworkInterface, JsonUnmarshallerContext>
      {
        NetworkInterface IUnmarshaller<NetworkInterface, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
        {
          throw new NotImplementedException();
        }

        public NetworkInterface Unmarshall(JsonUnmarshallerContext context)
        {
            NetworkInterface networkInterface = new NetworkInterface();

            int originalDepth = context.CurrentDepth;
            int targetDepth = originalDepth + 1;
            while (context.Read())
            {
                if ((context.IsKey) && (context.CurrentDepth == targetDepth))
                {
                context.Read();
                context.Read();

              if (context.TestExpression("Ipv4Address", targetDepth))
              {
                networkInterface.Ipv4Address = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }

              if (context.TestExpression("MacAddress", targetDepth))
              {
                networkInterface.MacAddress = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }

              if (context.TestExpression("Ipv6Address", targetDepth))
              {
                networkInterface.Ipv6Address = StringUnmarshaller.GetInstance().Unmarshall(context);
                continue;
              }

                }
                else if (context.IsEndElement && context.CurrentDepth <= originalDepth)
                {
                    return networkInterface;
                }
            }

            return networkInterface;
        }

        private static NetworkInterfaceUnmarshaller instance;
        public static NetworkInterfaceUnmarshaller GetInstance()
        {
            if (instance == null)
                instance = new NetworkInterfaceUnmarshaller();
            return instance;
        }
    }
}


text:
/******************************************
 * Form Handlers and page                 *
 * generators for TSSAA WebApp Fat Client *
 *****************************************/
var Credentials = {
	user: "",
	pass: ""
};

$.fn.serializeObject = function () {
	var o = {};
	var a = this.serializeArray();

	$.each(a, function() {
		if (o[this.name] !== undefined) {
			if (!o[this.name].push) {
				o[this.name] = [o[this.name]];
			}
			o[this.name].push(this.value || '');
		} else {
			o[this.name] = this.value || '';
		}
	});
	return o;
};

function generateAuthHeader(user, pass) {
	var nonce = generateNonce(16);
	var nonce64 = base64encode(nonce);

	var created = ISODateString(new Date());

	var digest = b64_sha1(nonce + created + pass);

	var x_wsse_header = "UsernameToken Username=\""
		+ user + "\", PasswordDigest=\""
		+ digest + "\", Nonce=\""
		+ nonce64 + "\", Created=\""
		+ created + "\"";

	return x_wsse_header;
}

/**
 * AJAX convenience wrapper
 * @param uri target uri for request
 * @param args object comprised of args for ajax call
 */
function service_call(uri, args) {
	if (args.hasOwnProperty('creds')) {
		 Credentials.user = args.creds.user;
		 Credentials.pass = args.creds.pass;
	}
	console.info('service call Credentials', Credentials);
	$.ajax(uri, {
		type: (args.hasOwnProperty("request_params") ? "POST" : "GET"),
		// JSON.stringify will return undefined if args.request_params is undef
		data: JSON.stringify(args.request_params),
		dummyKey: console.debug('hai gais'),
		beforeSend: function (xhr) {
			xhr.setRequestHeader('X-WSSE', generateAuthHeader(Credentials.user, Credentials.pass));
		},
		success: on_success,
		error: function (err) {console.error(err)},
		complete: on_complete
	});

	function on_success (response, textStatus, jqXHR) {
		data = JSON.parse(response);

		if (data.status === "success") {
			// TODO check if payload prop
			args.on_success(data.payload);
		} else {
			// TODO exception definitions
			args.on_failure(textStatus, data.exception);
		}
	}

	function on_failure (jqXHR, textStatus, errorThrown) {
		console.log("log: on_failure: " + textStatus);

		if (args.on_failure) {
			args.on_failure(textStatus, errorThrown);
		} else {
			// Do nothing
		}
	}

	function on_complete (jqXHR, textStatus) {
		console.log("log: on_complete: " + textStatus);

		if (args.on_complete) {
			args.on_complete(jqXHR, textStatus);
		} else {
			// Do nothing
		}
	}
	return false;
}

/**
 * Login form ajax callback
 * TODO session management handled here?
 */
function loginSuccess(login_response) {
	console.log(login_response);

	var welcomeMessage = login_response.userData.username
		+ " of " + login_response.personnelData.school;

	$("h2#options_welcome_banner strong").text(welcomeMessage);
	$.mobile.changePage($("#options_page"), {
		transition: "slideup",
		reverse: true,
	});
}

/**
 * DB Dialog ajax success callback
 */
function popDBDialog(response) {
	$("#response").text("Success! New school added!");
	$.mobile.changePage("#db_confirm_dialog");
}

/**
 * School List response handler
 * generates ul of schools returned from DB
 */
function generateSchoolList(school_data) {
	var schools_html = [];

	for (school in school_data) {
		school = school_data[school];
		var button = 'Edit This School';

		var block = '

' +
			school.name + '

Phone: ' +
			school.phone + '

Address: ' +
			school.address + '
' + button + '
';
		schools_html.push(block);
	}

	$('div#school_list').html(schools_html.join(''));

	$('div#school_list').on('click', 'a.edit_school', function (e) {
		var index = $(this).attr("ks_school_id");
		var school = school_data[index];
		$.each($("form#edit_school_form input"), function() {
			var key = $(this).attr("name");
			$(this).attr("value", school[key]);
		});
		editSchoolEntity(school);
	});
	$.mobile.changePage($("#school_list_page"));
};

function editSchoolEntity(school) {
	$("#edit_school_form").on("submit", function (e) {
		var form_data = $("#edit_school_form").serializeObject();
		if( !form_data.id){
			form_data.id = school.id;
		}

		service_call("app_dev.php/update_school", {
			request_params: form_data,
			on_success: function () {$.mobile.changePage("#school_list_page")}
		});

		return false;
	});

	$.mobile.changePage("#edit_school_dialog", {
		transistion: "pop"
	});

}

$(document).on("pageinit", function(e, obj) {
	/**
	 * Login form handler
	 */
	$("#login_page").on("submit", function(e, obj) {
		var args = {};
		args.creds = $("#login_form").serializeObject();
		args.on_success = loginSuccess;

		console.info("serialized args.creds", args.creds);

		service_call("app_dev.php/login", args);

		return false;
	});

	/**
	 * Add school form ajax handler
	 */
	$('#add_school_submit').on('click', function(e, obj) {
		var  formData = $('#add_school_form').serializeObject();

		service_call("app_dev.php/add_school", {
			request_params: formData,
			on_success: popDBDialog
		});

		return false;
	});
});

/**
 * Get school list ajax handler
 */
$(document).on("pagebeforechange", function(e, obj) {
	var url= $.mobile.path.parseUrl(obj.toPage);

	if ( url.hash  === "#school_list_page") {
		service_call("app_dev.php/get_school_list", {
			on_success: generateSchoolList
		});

		e.preventDefault();
	};
});


text:
package cn.edu.hdu.infosys.service.news.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.BadSqlGrammarException;
import org.springframework.stereotype.Service;

import cn.edu.hdu.infosys.common.base.BaseService;
import cn.edu.hdu.infosys.dao.INewsDao;
import cn.edu.hdu.infosys.model.News;
import cn.edu.hdu.infosys.service.news.INewsService;
import cn.edu.hdu.infosys.util.TimeUtil;

@Service("newsService")
public class NewsServiceImpl extends BaseService implements INewsService
{

    @Autowired
    private INewsDao newsDao;

    @Override
    public News saveNews(News news)
    {
        String contTableName = this.getContTableNameByTime(news.getPublishTime());
        String sumTableName = this.getSumTableNameByTime(news.getPublishTime());
        //不存在,则创建表
        newsDao.createNewTableCont(contTableName);
        newsDao.createNewTableSum(sumTableName);

        Map<String, Object> param = new HashMap<String, Object>();
        param.put("url", news.getUrl());
        param.put("title", news.getTitle());
        param.put("contentText", news.getContentText());
        param.put("contentHtml", news.getContentHtml());
        param.put("srcUrl", news.getSrcUrl());
        param.put("srcName", news.getSrcName());
        param.put("publishTime", news.getPublishTime());
        param.put("crawlerSrc", news.getCrawlerSrc());
        param.put("tableName", contTableName);
        newsDao.saveNewsCont(param);
        param.put("tableName", sumTableName);
        newsDao.saveNewsSum(param);
        return news;
    }

    @Override
    public List<News> findByNews(News news)
    {
        String contTableName = this.getContTableNameByTime(news.getPublishTime());
        String sumTableName = this.getSumTableNameByTime(news.getPublishTime());
        //不存在,则创建表
        newsDao.createNewTableCont(contTableName);
        newsDao.createNewTableSum(sumTableName);

        Map<String, Object> param = new HashMap<String, Object>();
        param.put("url", news.getUrl());
        param.put("tableName", contTableName);
        return newsDao.findByNews(param);
    }

    private String getContTableNameByTime(String pubTime){
        String time = pubTime.replace("-","_");
        return "is_news_cont_"+time.subSequence(0, 7);
    }

    private String getSumTableNameByTime(String pubTime){
        return "is_news_sum_"+pubTime.subSequence(0, 4);
    }

    @Override
    public long getYearCount(int year)
    {
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("tableName", "is_news_sum_"+year);
        long count = 0;
        try{
            count  = newsDao.getCount(param);
        }catch(BadSqlGrammarException e){
            logger.warn("Bad Sql Grammar Exception, this often happened when table is_news_sum_{} does not exist.", year);
            logger.error(e.toString(),e);
        }

        return count;
    }

    @Override
    public List<News> findByMonth(String month, long offset, long limit)
    {
        String tableName = this.getSumTableNameByTime(month);
        String from = month + "-01 00:00:00";
        String to = TimeUtil.getDate(from, 0, 1, 0, 0);
        List<News> rst = new ArrayList<News>();

        try{
            rst = newsDao.findByTime(tableName, from, to, offset, limit);
        }catch(BadSqlGrammarException e){
            logger.warn("Bad Sql Grammar Exception, this often happened when table is_news_sum_{} does not exist.", month.subSequence(0, 4));
            logger.error(e.toString(),e);
        }

        for(News news : rst){
            switch (news.getCrawlerSrc())
            {
            case "news.163.com":
                news.setCrawlerName("网易新闻");
                break;

            default:
                break;
            }
        }
        return rst;
    }

    @Override
    public long getCount(String month)
    {
        String tableName = this.getContTableNameByTime(month);
        Map<String, Object> param = new HashMap<String, Object>();
        param.put("tableName", tableName);
        long count = 0;
        try{
            count = newsDao.getCount(param);
        }catch(BadSqlGrammarException e){
            logger.warn("Bad Sql Grammar Exception, this often happened when table is_news_cont_{} does not exist.", month.subSequence(0, 7));
            logger.error(e.toString(),e);
        }
        return count;
    }

}


text:
CREATE SEQUENCE SEQ_IACUC_PA_PROTOCOL_ID INCREMENT BY 1 START WITH 1 NOCACHE
/


text: export { PhoneOutgoing32 as default } from "../../";


text:
Console
*******

Input
=====

::

  input = raw_input("Add options for remote JMX monitoring Y/N: ")

`Python for Newbies - Interacting with the User`_

``input`` works just like ``raw_input``, except Python interprets the
variables as whatever is typed in.  If that didn't make much sense, think of it
this way: If you have a straight-up number, it's stored as a number.  If you
have some values in [] brackets, it's stored as a list.  You can even put
something in quotes to have a string.

`Python Library Reference - Built-in Functions`_

Consider using the ``raw_input()`` function for general input from users.

.. _`Python for Newbies - Interacting with the User`: http://web.archive.org/web/20030619190856/http://blacksun.box.sk/tutorials/python.htm#user
.. _`Python Library Reference - Built-in Functions`: http://docs.python.org/lib/built-in-funcs.html


text:
class OperationGoods
{
public:
    OperationGoods();
    ~OperationGoods();

    //捡物品
    void PickUpGoods(TCPConnection::Pointer conn, STR_PackPickGoods* t_pickGoods);

    void PickUpMoney(TCPConnection::Pointer conn, STR_LootGoods* lootGoods);
    hf_uint8 PickUpEqu(TCPConnection::Pointer conn, STR_LootGoods* lootGoods);
    hf_uint8 PickUpcommonGoods(TCPConnection::Pointer conn, STR_LootGoods* lootGoods);

    //查询物品价格
    void QueryGoodsPrice();
    //查询消耗品信息
    void QueryConsumableAttr();
    //查询装备属性
    void QueryEquAttr();
    //查询材料属性

    //丢弃物品
    void RemoveBagGoods(TCPConnection::Pointer conn, STR_PackRemoveBagGoods* removeGoods);
    //移动或分割物品
    void MoveBagGoods(TCPConnection::Pointer conn, STR_PackMoveBagGoods* moveGoods);
    //移动或分割物品到空格子
    void MoveBagGoodsToEmptyPos(TCPConnection::Pointer conn, STR_PackMoveBagGoods* moveGoods);
    //背包两个装备交换位置
    void ExchangeBagEqu(TCPConnection::Pointer conn, STR_PackMoveBagGoods* moveGoods);
    //背包装备和普通物品交换位置
    void ExchangeBagEquAndCommonGoods(TCPConnection::Pointer conn, STR_PackMoveBagGoods* moveGoods);
    //移动背包两个位置上的同一普通物品
    void MoveBagCommonGoods(TCPConnection::Pointer conn, STR_PackMoveBagGoods* moveGoods);
    //交换背包两个位置上的不同普通物品
    void ExchangeBagCommonGoods(TCPConnection::Pointer conn, STR_PackMoveBagGoods* moveGoods);

    //购买物品
    void BuyGoods(TCPConnection::Pointer conn, STR_PackBuyGoods* buyGoods);
    //购买装备
    void BuyEquipment(TCPConnection::Pointer conn, STR_PackBuyGoods* buyGoods, STR_PlayerMoney* money, hf_uint32 price);
    //购买其他物品
    void BuyOtherGoods(TCPConnection::Pointer conn, STR_PackBuyGoods* buyGoods, STR_PlayerMoney* money, hf_uint32 price);
    //出售物品
    void SellGoods(TCPConnection::Pointer conn, STR_PackSellGoods* moveGoods);
    //得到新的装备编号

    //得到玩家背包中某种/某类物品的数量
    static hf_uint32  GetThisGoodsCount(TCPConnection::Pointer conn, hf_uint32 goodsID);

    static hf_uint32  GetEquipmentID();
    static hf_uint32  GetLootGoodsID();

    static void UsePos(TCPConnection::Pointer conn, hf_uint16 pos);      //使用位置
    static void ReleasePos(TCPConnection::Pointer conn, hf_uint16 pos);  //释放位置
    static hf_uint8 GetEmptyPosCount(TCPConnection::Pointer conn);       //得到空位置总数
    static hf_uint8 GetEmptyPos(TCPConnection::Pointer conn);            //查找空位置

    static hf_uint8 JudgeEmptyPos(TCPConnection::Pointer conn, hf_uint8 count); //判断空位值能否放下

    //给新捡的装备属性 附初值
    void SetEquAttr(STR_EquipmentAttr* equAttr, hf_uint32 typeID);

    void SetEquIDInitialValue();

    //整理背包
    void ArrangeBagGoods(TCPConnection::Pointer conn);

    //换装
    void WearBodyEqu(TCPConnection::Pointer conn, hf_uint32 equid, hf_uint8 pos);
    void TakeOffBodyEqu(TCPConnection::Pointer conn, hf_uint32 equid);

    //角色属性加上此装备属性
    void AddEquAttrToRole(STR_RoleInfo* roleinfo, hf_uint32 equTypeid);

    //角色属性去掉此装备属性
    void DeleteEquAttrToRole(STR_RoleInfo* roleinfo, hf_uint32 equTypeid);

    //使用背包物品恢复属性
    void UseBagGoods(TCPConnection::Pointer conn, hf_uint32 goodsid, hf_uint8 pos);

private:
    umap_goodsPrice*    m_goodsPrice;       //物品价格
    umap_consumable*    m_consumableAttr;   //消耗品属性
    umap_equAttr*       m_equAttr;          //装备属性
    static hf_uint32    m_equipmentID;      //装备ID
    static hf_uint32    m_lootGoodsID;      //掉落物品唯一ID
};

#endif // OPERATIONGOODS_H


text:
from greplin import scales
from tornado import ioloop, web, httpserver, gen

STATS = scales.collection('/web',
                          scales.PmfStat('latency'))

class TimedHandler(web.RequestHandler):
    @gen.coroutine
    def get(self):
        with STATS.latency.time():
            self.write('finished')

if __name__ == "__main__":
    application = web.Application([
        (r"/", TimedHandler),
    ])

    server = httpserver.HTTPServer(application)
    server.bind(8888)
    server.start(0)
    ioloop.IOLoop.instance().start()


text:
@interface BGSplashScreenVC () <UIActionSheetDelegate, BGLocationManagerDelegate>

@end

@implementation BGSplashScreenVC

#pragma Delegate

- (void)lbLocationManager:(BGLocationManager *)locationManager didUpdateWithLocation:(CLLocation *)location {
    NSLog(@"locationManager = %@" , locationManager);
    [self navigate2MapVC];
}

- (void)lbLocationManager:(BGLocationManager *)locationManager didFailWithErrorMsg:(NSString *)errorMsg andError:(NSError *)error    {
    if (error) {
        [self navigate2ManualLocation];
    }
    NSLog(@"Error = %@ \n %@" , errorMsg, error);
}

- (void)navigate2MapVC {
    BGLocationMapVC *locationMapVC = [BGLocationMapVC new];
    [self.navigationController pushViewController:locationMapVC animated:YES];
}

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
    switch (buttonIndex) {
        case 0:
            [self navigate2ManualLocation];
            break;
        case 1:
            [self startLocationManager];
            break;

        default:
            break;
    }
    NSLog(@"Index = %d", buttonIndex);
}

- (void)permissionDialog {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Use You Location"
                                                    message:@"Using Your Current Location lets you view ads of nearby areas"
                                                   delegate:nil
                                          cancelButtonTitle:@"Not Now"
                                          otherButtonTitles:@"Give Access", nil];
    alert.delegate = self;
    [alert show];
}

- (void)startLocationManager {
    BGLocationManager *locationManager = [BGLocationManager sharedLocationManager];
    locationManager.delegate = self;
//    [locationManager locationWithAccuracy:kCLLocationAccuracyNearestTenMeters withCallBack:^(BGLocationManager *locationManager, NSString *errorMsg, NSError *error) {
//        if (!error) {
//            NSLog(@"Location - %@" , locationManager);
//        } else {
//            NSLog(@"Erro - %@", error);
//        }
//    }];
}

- (void)navigate2ManualLocation {
    BGManualLocationVC *manualLocation = [BGManualLocationVC new];
    [self.navigationController pushViewController:manualLocation animated:YES];
}

#pragma View Life Cycle

// Do any additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
    [super viewDidLoad];
    [self permissionDialog];
}

// Dispose of any resources that can be recreated.
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

@end


text:
namespace ExampleApp
{
    namespace Options
    {
        namespace View
        {
        	OptionsViewModule::OptionsViewModule(
                AndroidNativeState& nativeState,
                IOptionsViewModel& optionsViewModel,
                Eegeo::Helpers::IHttpCache& httpCache,
                ExampleAppMessaging::TMessageBus& messageBus,
                InteriorsExplorer::View::InteriorsExplorerController& interiorsExplorerController,
				InitialExperience::View::InitialExperienceIntroController& initialExperienceIntroController
            )
            {
                ASSERT_UI_THREAD

                m_pView = Eegeo_NEW(OptionsView)(nativeState);
                m_pController = Eegeo_NEW(OptionsController)(*m_pView, optionsViewModel, messageBus, interiorsExplorerController, initialExperienceIntroController);
                m_pClearCacheMessageHandler = Eegeo_NEW(SdkModel::ClearCacheMessageHandler)(httpCache, messageBus);
            }

        	OptionsViewModule::~OptionsViewModule()
            {
                ASSERT_UI_THREAD

                Eegeo_DELETE(m_pClearCacheMessageHandler);
                Eegeo_DELETE(m_pController);
                Eegeo_DELETE(m_pView);
            }

        	OptionsController& OptionsViewModule::GetOptionsController() const
            {
                ASSERT_UI_THREAD

                return *m_pController;
            }

        	OptionsView& OptionsViewModule::GetOptionsView() const
            {
                ASSERT_UI_THREAD

                return *m_pView;
            }
        }
    }
}


text:
module.exports = function() {
    this.from('direct:in')
        // .to('file:///home/jafar/test');
        .to('file:test/ignore-001-inbox');

    this.from('file:test/ignore-001-inbox')
        // .to(function(exchange) {
        //     console.log('BODY: ' + exchange.body);
        // });
        .to('file:test/ignore-002-outbox');

    this.trace = true;

    var template = this.createProducerTemplate();

    setImmediate(function() {
        try {
            var data = 'one ' + new Date();
            template.send('direct:in', data);
            // template.send('direct:in', 'two');
            // template.send('direct:in', 'three');
        } catch(e) {
            console.log(e.stack);
        }
    });
};


text:
<?xml version='1.0' encoding='utf-8'?>
<widget id="es.iberia.web" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
    <name>HTTPS Requests Cordova Plugin</name>
    <description>
        HTTPS Requests Cordova Plugin
    </description>
    <feature name="RequestQueue">
        <param name="android-package" value="es.tmg.cordovaplugin.httpsrequest.RequestQueuePlugin" />
    </feature>

    <preference name="useBrowserHistory" value="true" />
    <author email="support@phonegap.com" href="http://phonegap.com">
        PhoneGap Team
    </author>
    <feature name="http://api.phonegap.com/1.0/device" />
    <preference name="permissions" value="none" />
    <preference name="orientation" value="default" />
    <preference name="target-device" value="universal" />
    <preference name="fullscreen" value="false" />
    <preference name="webviewbounce" value="true" />
    <preference name="prerendered-icon" value="true" />
    <preference name="stay-in-webview" value="false" />
    <preference name="ios-statusbarstyle" value="black-opaque" />
    <preference name="detect-data-types" value="true" />
    <preference name="exit-on-suspend" value="false" />
    <preference name="show-splash-screen-spinner" value="true" />
    <preference name="auto-hide-splash-screen" value="true" />
    <preference name="disable-cursor" value="false" />
    <preference name="android-minSdkVersion" value="7" />
    <preference name="android-installLocation" value="auto" />
    <icon src="icon.png" />
    <icon gap:density="ldpi" gap:platform="android" src="res/icon/android/icon-36-ldpi.png" />
    <icon gap:density="mdpi" gap:platform="android" src="res/icon/android/icon-48-mdpi.png" />
    <icon gap:density="hdpi" gap:platform="android" src="res/icon/android/icon-72-hdpi.png" />
    <icon gap:density="xhdpi" gap:platform="android" src="res/icon/android/icon-96-xhdpi.png" />
    <gap:splash gap:density="ldpi" gap:platform="android" src="res/screen/android/screen-ldpi-portrait.png" />
    <gap:splash gap:density="mdpi" gap:platform="android" src="res/screen/android/screen-mdpi-portrait.png" />
    <gap:splash gap:density="hdpi" gap:platform="android" src="res/screen/android/screen-hdpi-portrait.png" />
    <gap:splash gap:density="xhdpi" gap:platform="android" src="res/screen/android/screen-xhdpi-portrait.png" />
    <access origin="http://127.0.0.1*" />
    <content src="index.html" />
</widget>


text:
package com.gigony.marked4j.lexer.blockmatcher;

import com.gigony.marked4j.lexer.AbstractFragmentMatcher;
import com.gigony.marked4j.lexer.MarkedLexer;
import com.gigony.marked4j.lexer.blockfragment.CodeFragment;
import com.gigony.marked4j.lexer.token.Token;
import com.gigony.marked4j.lexer.token.TokenType;
import com.gigony.marked4j.util.TextSegment;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author gigony
 * @since 9/28/14
 */
public class FencesFragmentMatcher extends AbstractFragmentMatcher {
    static final Pattern pattern = Pattern.compile("\\A[ ]*(`{3,}|~{3,})[ ]*(\\S+)?[ ]*\\n([\\s\\S]+?)\\s*\\1[ ]*(?:\\n+|$)", Pattern.MULTILINE);
    Matcher matcher;
    TextSegment text;

    @Override
    public boolean find(TextSegment txt) {
        text = txt;
        matcher = pattern.matcher(txt);
        return matcher.find();
    }

    @Override
    public CodeFragment getFragment() {
        TextSegment textSegment = text.subSequence(matcher.start(), matcher.end());
        String language = text.subSequence(matcher.start(2),matcher.end(2)).toString();
        TextSegment codeSegment = text.subSequence(matcher.start(3),matcher.end(3));
        return new CodeFragment(textSegment, codeSegment,language,false);
    }

    @Override
    public boolean process(MarkedLexer lexer, TextSegment src, boolean top, boolean bq) {
        if (find(src)) {
            CodeFragment fragment = getFragment();
            int len = fragment.getLength();
            src.shiftStart(len);

            lexer.pushToken(new Token(TokenType.CODE, fragment));
            return true;
        }
        return false;
    }
}


text:
package com.keybox.manage.model;

import org.apache.commons.lang3.StringUtils;

/**
 * User theme value object
 */
public class UserSettings {

    String[] colors = null;
    String bg;
    String fg;
    String plane;
    String theme;
    Integer ptyWidth;
    Integer ptyHeight;

    public String[] getColors() {
        return colors;
    }

    public void setColors(String[] colors) {
        this.colors = colors;
    }

    public String getBg() {
        return bg;
    }

    public void setBg(String bg) {
        this.bg = bg;
    }

    public String getFg() {
        return fg;
    }

    public void setFg(String fg) {
        this.fg = fg;
    }

    public String getPlane() {
        if(StringUtils.isNotEmpty(bg) && StringUtils.isNotEmpty(fg)){
            plane=bg+","+fg;
        }
        return plane;
    }

    public void setPlane(String plane) {
        if(StringUtils.isNotEmpty(plane) && plane.split(",").length==2){
            this.setBg(plane.split(",")[0]);
            this.setFg(plane.split(",")[1]);
        }
        this.plane = plane;
    }

    public String getTheme() {
        if(this.colors!=null && this.colors.length==16){
            theme=StringUtils.join(this.colors,",");
        }
        return theme;
    }

    public void setTheme(String theme) {
        if(StringUtils.isNotEmpty(theme) && theme.split(",").length==16){
            this.setColors(theme.split(","));
        }
        this.theme = theme;
    }

    public Integer getPtyWidth() {
        return ptyWidth;
    }

    public void setPtyWidth(Integer ptyWidth) {
        this.ptyWidth = ptyWidth;
    }

    public Integer getPtyHeight() {
        return ptyHeight;
    }

    public void setPtyHeight(Integer ptyHeight) {
        this.ptyHeight = ptyHeight;
    }
}


text:
.. _data-stores:

=====================
Datastore Clients
=====================

.. automodule:: pulsar.apps.data.store

Getting Started
=====================

To create a data :class:`.Store` client one uses the :func:`.create_store`
function with a valid :ref:`connection string <connection-string>`::

    >>> from pulsar.apps.data import create_store
    >>> store = create_store('redis://user:password@127.0.0.1:6500/11')
    >>> store.name
    'redis'
    >>> store.database
    '11'
    >>> store.dns
    'redis://user:password@127.0.0.1:6500/11'

Additional parameters can be passed via the connection string or as key-valued
parameters. For example::

    >>> store = create_store('redis://user:password@127.0.0.1:6500/11',
                             namespace='test_')
    >>> store.dns
    'redis://user:password@127.0.0.1:6500/11?namespace=test_'

.. _connection-string:

Connection String
~~~~~~~~~~~~~~~~~~~~~~~

The connection string is a way to specify the various parameters for the
data store connection. All :class:`.Store` support a connection string
of the form::

    <scheme>://<username>:<password>@<host>/<database>?param1=...&param2=...

where:

* ``schema`` is the store name
* ``database`` is the database name (or number for redis)
* ``username`` is an optional database username
* ``password`` is an optional database password

Implement a Store
==================

When implementing a new :class:`.Store` there are several methods which need
to be covered:

* :meth:`~Store.ping` to check if the server is available
* :meth:`~Store.connect` to create a new connection
* :meth:`~Store.execute` to execute a command on the store server

All registered data stores are stored in the ``data_stores`` dictionary::

    from pulsar.apps.data import data_stores

Pulsar provides two implementations, the redis client and the pulsards client.

.. _apps-pubsub:

Publish/Subscribe
=====================

A :class:`.Store` can implement the :meth:`~Store.pubsub` method to return
a valid :class:`.PubSub` handler.

API
============

The main component of the data store API is the :func:`.create_store`
function which creates in one function call a new :class:`.Store`
object which can be used to interact with the backend database.

Create store
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: create_store

Start store
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: pulsar.apps.data.pulsards.startds.start_store

Register a new store
~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: register_store

Store
~~~~~~~~~~~~~~~

.. autoclass:: Store
   :members:
   :member-order: bysource

Command
~~~~~~~~~~~~~~~

.. autoclass:: Command
   :members:
   :member-order: bysource

PubSub
~~~~~~~~~~~~~~~

.. autoclass:: PubSub
   :members:
   :member-order: bysource


text:
#include <logging/log.h>

#include "fxas21002.h"

#define LOG_LEVEL CONFIG_SENSOR_LOG_LEVEL
#include <logging/log.h>
LOG_MODULE_DECLARE(FXAS21002);

static void fxas21002_gpio_callback(struct device *dev,
				   struct gpio_callback *cb,
				   u32_t pin_mask)
{
	struct fxas21002_data *data =
		CONTAINER_OF(cb, struct fxas21002_data, gpio_cb);

	if ((pin_mask & BIT(data->gpio_pin)) == 0U) {
		return;
	}

	gpio_pin_disable_callback(dev, data->gpio_pin);

#if defined(CONFIG_FXAS21002_TRIGGER_OWN_THREAD)
	k_sem_give(&data->trig_sem);
#elif defined(CONFIG_FXAS21002_TRIGGER_GLOBAL_THREAD)
	k_work_submit(&data->work);
#endif
}

static int fxas21002_handle_drdy_int(struct device *dev)
{
	struct fxas21002_data *data = dev->driver_data;

	struct sensor_trigger drdy_trig = {
		.type = SENSOR_TRIG_DATA_READY,
		.chan = SENSOR_CHAN_ALL,
	};

	if (data->drdy_handler) {
		data->drdy_handler(dev, &drdy_trig);
	}

	return 0;
}

static void fxas21002_handle_int(void *arg)
{
	struct device *dev = (struct device *)arg;
	const struct fxas21002_config *config = dev->config->config_info;
	struct fxas21002_data *data = dev->driver_data;
	u8_t int_source;

	k_sem_take(&data->sem, K_FOREVER);

	if (i2c_reg_read_byte(data->i2c, config->i2c_address,
			      FXAS21002_REG_INT_SOURCE,
			      &int_source)) {
		LOG_ERR("Could not read interrupt source");
		int_source = 0U;
	}

	k_sem_give(&data->sem);

	if (int_source & FXAS21002_INT_SOURCE_DRDY_MASK) {
		fxas21002_handle_drdy_int(dev);
	}

	gpio_pin_enable_callback(data->gpio, config->gpio_pin);
}

#ifdef CONFIG_FXAS21002_TRIGGER_OWN_THREAD
static void fxas21002_thread_main(void *arg1, void *unused1, void *unused2)
{
	struct device *dev = (struct device *)arg1;
	struct fxas21002_data *data = dev->driver_data;

	ARG_UNUSED(unused1);
	ARG_UNUSED(unused2);

	while (true) {
		k_sem_take(&data->trig_sem, K_FOREVER);
		fxas21002_handle_int(dev);
	}
}
#endif

#ifdef CONFIG_FXAS21002_TRIGGER_GLOBAL_THREAD
static void fxas21002_work_handler(struct k_work *work)
{
	struct fxas21002_data *data =
		CONTAINER_OF(work, struct fxas21002_data, work);

	fxas21002_handle_int(data->dev);
}
#endif

int fxas21002_trigger_set(struct device *dev,
			 const struct sensor_trigger *trig,
			 sensor_trigger_handler_t handler)
{
	const struct fxas21002_config *config = dev->config->config_info;
	struct fxas21002_data *data = dev->driver_data;
	enum fxas21002_power power = FXAS21002_POWER_STANDBY;
	u32_t transition_time;
	u8_t mask;
	int ret = 0;

	k_sem_take(&data->sem, K_FOREVER);

	switch (trig->type) {
	case SENSOR_TRIG_DATA_READY:
		mask = FXAS21002_CTRLREG2_CFG_EN_MASK;
		data->drdy_handler = handler;
		break;
	default:
		LOG_ERR("Unsupported sensor trigger");
		ret = -ENOTSUP;
		goto exit;
	}

	/* The sensor must be in standby or ready mode when writing the
	 * configuration registers, therefore get the current power mode so we
	 * can restore it later.
	 */
	if (fxas21002_get_power(dev, &power)) {
		LOG_ERR("Could not get power mode");
		ret = -EIO;
		goto exit;
	}

	/* Put the sensor in ready mode */
	if (fxas21002_set_power(dev, FXAS21002_POWER_READY)) {
		LOG_ERR("Could not set ready mode");
		ret = -EIO;
		goto exit;
	}

	/* Configure the sensor interrupt */
	if (i2c_reg_update_byte(data->i2c, config->i2c_address,
				FXAS21002_REG_CTRLREG2,
				mask,
				handler ? mask : 0)) {
		LOG_ERR("Could not configure interrupt");
		ret = -EIO;
		goto exit;
	}

	/* Restore the previous power mode */
	if (fxas21002_set_power(dev, power)) {
		LOG_ERR("Could not restore power mode");
		ret = -EIO;
		goto exit;
	}

	/* Wait the transition time from ready mode */
	transition_time = fxas21002_get_transition_time(FXAS21002_POWER_READY,
							power,
							config->dr);
	k_busy_wait(transition_time);

exit:
	k_sem_give(&data->sem);

	return ret;
}

int fxas21002_trigger_init(struct device *dev)
{
	const struct fxas21002_config *config = dev->config->config_info;
	struct fxas21002_data *data = dev->driver_data;
	u8_t ctrl_reg2;

#if defined(CONFIG_FXAS21002_TRIGGER_OWN_THREAD)
	k_sem_init(&data->trig_sem, 0, UINT_MAX);
	k_thread_create(&data->thread, data->thread_stack,
			CONFIG_FXAS21002_THREAD_STACK_SIZE,
			fxas21002_thread_main, dev, 0, NULL,
			K_PRIO_COOP(CONFIG_FXAS21002_THREAD_PRIORITY), 0, 0);
#elif defined(CONFIG_FXAS21002_TRIGGER_GLOBAL_THREAD)
	data->work.handler = fxas21002_work_handler;
	data->dev = dev;
#endif

	/* Route the interrupts to INT1/INT2 pins */
	ctrl_reg2 = 0U;
#if CONFIG_FXAS21002_DRDY_INT1
	ctrl_reg2 |= FXAS21002_CTRLREG2_CFG_DRDY_MASK;
#endif

	if (i2c_reg_write_byte(data->i2c, config->i2c_address,
			       FXAS21002_REG_CTRLREG2, ctrl_reg2)) {
		LOG_ERR("Could not configure interrupt pin routing");
		return -EIO;
	}

	/* Get the GPIO device */
	data->gpio = device_get_binding(config->gpio_name);
	if (data->gpio == NULL) {
		LOG_ERR("Could not find GPIO device");
		return -EINVAL;
	}

	data->gpio_pin = config->gpio_pin;

	gpio_pin_configure(data->gpio, config->gpio_pin,
			   GPIO_DIR_IN | GPIO_INT | GPIO_INT_EDGE |
			   GPIO_INT_ACTIVE_LOW | GPIO_INT_DEBOUNCE);

	gpio_init_callback(&data->gpio_cb, fxas21002_gpio_callback,
			   BIT(config->gpio_pin));

	gpio_add_callback(data->gpio, &data->gpio_cb);

	gpio_pin_enable_callback(data->gpio, config->gpio_pin);

	return 0;
}


text:
class CRecordAudioDlg : public CDialog
{
// Construction
public:
	CAudioCtrl m_AudioCtrl;
	CRecordAudioDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CRecordAudioDlg)
	enum { IDD = IDD_RECORDAUDIO_DIALOG };
	CSliderCtrl	m_PlaySndSlider;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRecordAudioDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CRecordAudioDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnRecord();
	afx_msg void OnStop();
	afx_msg void OnSelchangeCmbInNames();
	virtual void OnOK();
	afx_msg void OnClose();
	afx_msg void OnReleasedcaptureSliderRecord(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnPlay();
	afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
	//}}AFX_MSG
	afx_msg LRESULT OnMixerInfo(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
private:
	CString GetFileName(BOOL bOpen, LPCTSTR lpszTitle, LPCTSTR lpszFileName=NULL, char *szFilter=NULL);
	void SetRecordVolumeRand(DWORD dwMin,DWORD dwMax);
	void SetRecordDev(UINT uiIndex);
	void SetCurMixerIndex();
	void SetCurDevIndex(UINT uiIndex);
	void GetDevsName(char* pszName);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RECORDAUDIODLG_H__E263D565_C893_4AA7_84AD_0578BC550AFD__INCLUDED_)


text:
<!DOCTYPE html>

<!DOCTYPE html>

<meta charset="utf-8">
<title>Shadow DOM Test - Tests a reprojection with a select attribute.</title>
<link rel="match" href="reprojection-002-ref.html">
<link rel="author" title="Anna Ogawa" href="mailto:anna.ogawa.0219@gmail.com">
<link rel="author" title="Hayato Ito" href="mailto:hayato@google.com">
<link rel="help" href="http://www.w3.org/TR/2013/WD-shadow-dom-20130514/#reprojection">
<meta name="assert" content="A node is distributed into more than one insertion point with a select attribute.">

You should see green text saying "Apple" below.

Apple.

Orange.


text:
SYNONYM

#### According to
Index Fungorum

#### Published in
Neagenea Lich. 4 (1854)

#### Original name
Lichen gossypinus Sw.

### Remarks
null


text:
//-------------------------------------------------------
//
//      Copyright (c) 2016 All Rights Reserved
//          Daikun Industries LLC
//
//-------------------------------------------------------

using Newtonsoft.Json;
using XIVDB.Interfaces;

namespace XIVDB.Model
{
    /// <summary>
    /// Model class for Title data types
    /// </summary>
    public class Title : IXivdbObject
    {
        #region Properties
        [JsonProperty("id")]
        public int? Id { get; set; }

        [JsonProperty("name")]
        public string Name { get; set; }

        [JsonProperty("name_ja")]
        public string NameJa { get; set; }

        [JsonProperty("name_en")]
        public string NameEn { get; set; }

        [JsonProperty("name_fr")]
        public string NameFr { get; set; }

        [JsonProperty("name_de")]
        public string NameDe { get; set; }

        [JsonProperty("name_ch")]
        public string NameCh { get; set; }

        [JsonProperty("name_female")]
        public string NameFemale { get; set; }

        [JsonProperty("url")]
        public string Url { get; set; }

        [JsonProperty("url_api")]
        public string UrlApi { get; set; }

        [JsonProperty("url_xivdb")]
        public string UrlXivdb { get; set; }

        [JsonProperty("url_xivdb_ja")]
        public string UrlXivdbJa { get; set; }

        [JsonProperty("url_xivdb_fr")]
        public string UrlXivdbFr { get; set; }

        [JsonProperty("url_xivdb_de")]
        public string UrlXivdbDe { get; set; }

        [JsonProperty("url_type")]
        public string UrlType { get; set; }

        [JsonProperty("icon")]
        public string Icon { get; set; }
        #endregion
    }
}


text:
namespace ExtensionMethodsDelegatesLambdaLINQ
{
    using System;
    using System.Collections.Generic;
    using System.Linq;

    public static class IEnumerableExtensions
    {
        public static T SumAll<T>(this IEnumerable<T> numbers)
        {
            decimal result = 0;

            foreach (dynamic item in numbers)
            {
                result += (decimal)item;

            }

            return (T)(dynamic)result;
        }

        public static T ProductAll<T>(this IEnumerable<T> numbers)
        {
            decimal result = 1;

            foreach (dynamic item in numbers)
            {
                result *= (decimal)item;

            }

            return (T)(dynamic)result;
        }

        public static T MinAll<T>(this IEnumerable<T> numbers)

            where T : IComparable<T>
        {
            if (numbers.Count() == 0)
            {
                throw new ArgumentException("Cannot estimate min value of empty collection.");

            }

            //check the type so there is no overflowing for the max value
            T minValue = numbers.First();

            foreach (T item in numbers)
            {
                if (item.CompareTo(minValue) < 0)
                {
                    minValue = item;

                }
            }

            return (T)(dynamic)minValue;
        }

        public static T MaxAll<T>(this IEnumerable<T> numbers)

            where T : IComparable<T>
        {
            if (numbers.Count() == 0)
            {
                throw new ArgumentException("Cannot estimate max value of empty collection.");

            }

            T maxValue = numbers.First();

            foreach (T item in numbers)
            {
                if (item.CompareTo(maxValue) > 0)
                {
                    maxValue = item;
                }
            }

            return (T)(dynamic)maxValue;
        }

        public static T AverageAll<T>(this IEnumerable<T> numbers)

             where T : IComparable<T>
        {
            if (numbers.Count() == 0)
            {
                throw new ArgumentException("Cannot estimate average value of empty collection.");

            }

            decimal sum = 0;
            int count = 0;

            foreach (dynamic item in numbers)
            {
                sum += (decimal)item;
                count++;
            }

            return (T)(dynamic)(sum / (decimal)count);
        }
    }
}