text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="faf00fb4-0504-40c5-a65c-b09f9ac925a3" name="Default" comment="">
      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/vversion.py" afterPath="$PROJECT_DIR$/vversion.py" />
    </list>
    <ignored path="veffectsys.iws" />
    <ignored path=".idea/workspace.xml" />
    <ignored path=".idea/dataSources.local.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CoverageDataManager">
    <SUITE FILE_PATH="coverage/veffectsys$tk_drag_drop.coverage" NAME="tk_drag_drop Coverage Results" MODIFIED="1451940005039" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
    <SUITE FILE_PATH="coverage/veffectsys$ui_main.coverage" NAME="ui_main Coverage Results" MODIFIED="1452413154568" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
    <SUITE FILE_PATH="coverage/veffectsys$ui_vmodules.coverage" NAME="ui_vmodules Coverage Results" MODIFIED="1451792383702" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
  </component>
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="veffectsys" />
  </component>
  <component name="FileEditorManager">
    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
      <file leaf-file-name="ui_main.py" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/ui_main.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.33333334">
              <caret line="36" column="25" selection-start-line="36" selection-start-column="25" selection-end-line="36" selection-end-column="25" />
              <folding>
                <element signature="e#88#97#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="ui_vmodules.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/ui_vmodules.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="58" column="40" selection-start-line="58" selection-start-column="40" selection-end-line="58" selection-end-column="40" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="vversion.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/vversion.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="18" column="30" selection-start-line="18" selection-start-column="30" selection-end-line="18" selection-end-column="30" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="vtkdnd.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/vtkdnd.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
              <folding>
                <element signature="e#67#76#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="searchkeys.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/searchkeys.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="27" column="30" selection-start-line="27" selection-start-column="30" selection-end-line="27" selection-end-column="30" />
              <folding>
                <element signature="e#67#76#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/history.code.log" />
        <option value="$PROJECT_DIR$/ui_vmodules.py" />
        <option value="$PROJECT_DIR$/tk_drag_drop.py" />
        <option value="$PROJECT_DIR$/searchkeys.py" />
        <option value="$PROJECT_DIR$/vtkdnd.py" />
        <option value="$PROJECT_DIR$/vversion.py" />
        <option value="$PROJECT_DIR$/ui_main.py" />
      </list>
    </option>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" />
  <component name="JsBuildToolPackageJson" detection-done="true" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="JsbtTreeLayoutManager">
    <layout place="tools.popupGrunt">
      <scroll-view-position x="0" y="0" />
    </layout>
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="-8" />
    <option name="y" value="-8" />
    <option name="width" value="1382" />
    <option name="height" value="744" />
  </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="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="veffectsys" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="External Libraries" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="< Python 2.7.11 (C:\Python27\python.exe) >" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="veffectsys" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="External Libraries" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="< Python 2.7.11 (C:\Python27\python.exe) >" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="lib-tk" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="veffectsys" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="External Libraries" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="< Python 2.7.11 (C:\Python27\python.exe) >" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="Lib" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="veffectsys" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="veffectsys" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scope" />
      <pane id="Scratches" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="settings.editor.selected.configurable" value="preferences.lookFeel" />
    <property name="settings.editor.splitter.proportion" value="0.2" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="SearchEverywhereHistoryKey" value="line	ACTION	EditorToggleShowLineNumbers" />
  </component>
  <component name="RunManager" selected="Python.ui_main">
    <configuration default="false" name="ui_main" type="PythonConfigurationType" factoryName="Python" temporary="true">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs>
        <env name="PYTHONUNBUFFERED" value="1" />
      </envs>
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="IS_MODULE_SDK" value="true" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/ui_main.py" />
      <option name="PARAMETERS" value="" />
      <option name="SHOW_COMMAND_LINE" value="false" />
      <method />
    </configuration>
    <configuration default="false" name="ui_vmodules" type="PythonConfigurationType" factoryName="Python" temporary="true">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs>
        <env name="PYTHONUNBUFFERED" value="1" />
      </envs>
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="IS_MODULE_SDK" value="true" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/ui_vmodules.py" />
      <option name="PARAMETERS" value="" />
      <option name="SHOW_COMMAND_LINE" value="false" />
      <method />
    </configuration>
    <configuration default="false" name="tk_drag_drop" type="PythonConfigurationType" factoryName="Python" temporary="true">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs>
        <env name="PYTHONUNBUFFERED" value="1" />
      </envs>
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
      <option name="IS_MODULE_SDK" value="true" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="$PROJECT_DIR$/tk_drag_drop.py" />
      <option name="PARAMETERS" value="" />
      <option name="SHOW_COMMAND_LINE" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="DjangoTestsConfigurationType" factoryName="Django tests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs>
        <env name="PYTHONUNBUFFERED" value="1" />
      </envs>
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="TARGET" value="" />
      <option name="SETTINGS_FILE" value="" />
      <option name="CUSTOM_SETTINGS" value="false" />
      <option name="USE_OPTIONS" value="false" />
      <option name="OPTIONS" value="" />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="PyBehaveRunConfigurationType" factoryName="Behave">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="ADDITIONAL_ARGS" value="" />
      <method />
    </configuration>
    <configuration default="true" type="PyLettuceRunConfigurationType" factoryName="Lettuce">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="ADDITIONAL_ARGS" value="" />
      <method />
    </configuration>
    <configuration default="true" type="PythonConfigurationType" factoryName="Python">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs>
        <env name="PYTHONUNBUFFERED" value="1" />
      </envs>
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="" />
      <option name="PARAMETERS" value="" />
      <option name="SHOW_COMMAND_LINE" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-options />
      <gulpfile />
      <tasks />
      <arguments />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.npm" factoryName="npm">
      <command value="run-script" />
      <scripts />
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Attests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Doctests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Nosetests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <option name="PARAMS" value="" />
      <option name="USE_PARAM" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="Unittests">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <option name="PUREUNITTEST" value="true" />
      <option name="PARAMS" value="" />
      <option name="USE_PARAM" value="false" />
      <method />
    </configuration>
    <configuration default="true" type="tests" factoryName="py.test">
      <option name="INTERPRETER_OPTIONS" value="" />
      <option name="PARENT_ENVS" value="true" />
      <envs />
      <option name="SDK_HOME" value="" />
      <option name="WORKING_DIRECTORY" value="" />
      <option name="IS_MODULE_SDK" value="false" />
      <option name="ADD_CONTENT_ROOTS" value="true" />
      <option name="ADD_SOURCE_ROOTS" value="true" />
      <module name="veffectsys" />
      <EXTENSION ID="PythonCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" runner="coverage.py" />
      <option name="SCRIPT_NAME" value="" />
      <option name="CLASS_NAME" value="" />
      <option name="METHOD_NAME" value="" />
      <option name="FOLDER_NAME" value="" />
      <option name="TEST_TYPE" value="TEST_SCRIPT" />
      <option name="PATTERN" value="" />
      <option name="USE_PATTERN" value="false" />
      <option name="testToRun" value="" />
      <option name="keywords" value="" />
      <option name="params" value="" />
      <option name="USE_PARAM" value="false" />
      <option name="USE_KEYWORD" value="false" />
      <method />
    </configuration>
    <list size="3">
      <item index="0" class="java.lang.String" itemvalue="Python.ui_main" />
      <item index="1" class="java.lang.String" itemvalue="Python.ui_vmodules" />
      <item index="2" class="java.lang.String" itemvalue="Python.tk_drag_drop" />
    </list>
    <recent_temporary>
      <list size="3">
        <item index="0" class="java.lang.String" itemvalue="Python.ui_main" />
        <item index="1" class="java.lang.String" itemvalue="Python.tk_drag_drop" />
        <item index="2" class="java.lang.String" itemvalue="Python.ui_vmodules" />
      </list>
    </recent_temporary>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="faf00fb4-0504-40c5-a65c-b09f9ac925a3" name="Default" comment="" />
      <created>1451705347620</created>
      <option name="number" value="Default" />
      <updated>1451705347620</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="-8" width="1382" height="744" extended-state="1" />
    <editor active="true" />
    <layout>
      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15739386" 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.2015748" sideWeight="0.50292826" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Python Console" 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="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="true" show_stripe_button="true" weight="0.2015748" sideWeight="0.49707174" 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.35748032" 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="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="Vcs.Log.UiProperties">
    <option name="RECENTLY_FILTERED_USER_GROUPS">
      <collection />
    </option>
    <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
      <collection />
    </option>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager>
      <option name="time" value="1" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/ui_main.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="e#88#97#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/searchkeys.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="50" column="10" selection-start-line="50" selection-start-column="10" selection-end-line="50" selection-end-column="10" />
          <folding>
            <element signature="e#67#76#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ui_main.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="e#88#97#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/searchkeys.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="50" column="10" selection-start-line="50" selection-start-column="10" selection-end-line="50" selection-end-column="10" />
          <folding>
            <element signature="e#67#76#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ui_main.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="49" column="0" selection-start-line="49" selection-start-column="0" selection-end-line="49" selection-end-column="0" />
          <folding>
            <element signature="e#88#97#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ui_vmodules.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/history.code.log">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="1.9956236">
          <caret line="48" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="48" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/xml/dom/expatbuilder.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.33144477">
          <caret line="212" column="0" selection-start-line="212" selection-start-column="0" selection-end-line="212" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/genericpath.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-0.27824268">
          <caret line="27" column="20" selection-start-line="27" selection-start-column="15" selection-end-line="27" selection-end-column="20" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/xml/dom/minidom.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="1.5251046">
          <caret line="1499" column="16" selection-start-line="1499" selection-start-column="8" selection-end-line="1499" selection-end-column="16" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/lib-tk/Tkinter.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="6.294979">
          <caret line="1761" column="4" selection-start-line="1761" selection-start-column="4" selection-end-line="1761" selection-end-column="4" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$USER_HOME$/.PyCharm50/system/python_stubs/-762174762/nt.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.4121339">
          <caret line="170" column="20" selection-start-line="170" selection-start-column="20" selection-end-line="170" selection-end-column="20" />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/xml/__init__.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.3729373">
          <caret line="27" column="8" selection-start-line="27" selection-start-column="8" selection-end-line="27" selection-end-column="8" />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/xml/dom/__init__.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-0.34818482">
          <caret line="9" column="32" selection-start-line="9" selection-start-column="32" selection-end-line="9" selection-end-column="32" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/lib-tk/Tkdnd.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="107" column="13" selection-start-line="107" selection-start-column="4" selection-end-line="107" selection-end-column="13" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/tk_drag_drop.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-7.9666667">
          <caret line="64" column="20" selection-start-line="64" selection-start-column="15" selection-end-line="64" selection-end-column="20" />
        </state>
      </provider>
    </entry>
    <entry file="file://C:/Python27/Lib/re.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.33245382">
          <caret line="246" column="0" selection-start-line="246" selection-start-column="0" selection-end-line="246" selection-end-column="0" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/vversion.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="18" column="30" selection-start-line="18" selection-start-column="30" selection-end-line="18" selection-end-column="30" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$USER_HOME$/.PyCharm50/system/python_stubs/-762174762/__builtin__.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.6903766">
          <caret line="1777" column="43" selection-start-line="1769" selection-start-column="11" selection-end-line="1778" selection-end-column="8" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/searchkeys.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="27" column="30" selection-start-line="27" selection-start-column="30" selection-end-line="27" selection-end-column="30" />
          <folding>
            <element signature="e#67#76#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/vtkdnd.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
          <folding>
            <element signature="e#67#76#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ui_vmodules.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="58" column="40" selection-start-line="58" selection-start-column="40" selection-end-line="58" selection-end-column="40" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/ui_main.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.33333334">
          <caret line="36" column="25" selection-start-line="36" selection-start-column="25" selection-end-line="36" selection-end-column="25" />
          <folding>
            <element signature="e#88#97#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
/* Do not include this file directly. Instead, include sylvan.h */

#ifndef SYLVAN_COMMON_H
#define SYLVAN_COMMON_H

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
 * Initialize the Sylvan parallel decision diagrams package.
 *
 * First, Sylvan must know how big the nodes table and cache may be.
 * Either use sylvan_set_sizes to explicitly set the table sizes, or use sylvan_set_limits
 * to let Sylvan compute the sizes for you.
 *
 * Then, call sylvan_init_package. This allocates the tables and other support structures.
 * Sylvan allocates virtual memory to accomodate the maximum sizes of both tables.
 * Initially, Sylvan only uses the minimum sizes.
 * During garbage collection, table sizes may be doubled until the maximum size is reached.
 *
 * Then, call initialization functions for the MTBDD/LDD modules like sylvan_init_mtbdd
 * and sylvan_init_ldd.
 *
 * Memory usage:
 * Every node requires 24 bytes memory. (16 bytes data + 8 bytes table overhead)
 * Every operation cache entry requires 36 bytes memory. (32 bytes data + 4 bytes table overhead)
 */
void sylvan_init_package(void);

/**
 * Explicitly set the sizes of the nodes table and the operation cache.
 * The sizes are in bytes, but they must be powers of two.
 * The minimum size is the size initially used.
 * The maximum size is the size allocated in virtual memory.
 */
void sylvan_set_sizes(size_t min_tablesize, size_t max_tablesize, size_t min_cachesize, size_t max_cachesize);

/**
 * Implicitly compute and set the sizes of the nodes table and the operation cache.
 *
 * This function computes max_tablesize and max_cachesize to fit the memory cap.
 * The memory cap is in bytes.
 *
 * The parameter table_ratio controls the ratio between the nodes table and the cache.
 * For the value 0, both tables are of the same size.
 * For values 1, 2, 3 ... the nodes table will be 2x, 4x, 8x ... as big as the cache
 * For values -1, -2, -3 ... the cache will be 2x, 4x, 8x ... as big as the nodes table
 *
 * The parameter initial_ratio controls how much smaller the initial table sizes are.
 * For values of 1, 2, 3, 4 the tables will initially be 2, 4, 8, 16 times smaller.
 */
void sylvan_set_limits(size_t memory_cap, int table_ratio, int initial_ratio);

/**
 * Frees all Sylvan data (also calls the quit() functions of BDD/LDD parts)
 */
void sylvan_quit(void);

/**
 * Registers a hook callback called during sylvan_quit()
 */
typedef void (*quit_cb)(void);
void sylvan_register_quit(quit_cb cb);

/**
 * Return number of occupied buckets in nodes table and total number of buckets.
 */
VOID_TASK_DECL_2(sylvan_table_usage, size_t*, size_t*);
#define sylvan_table_usage(filled, total) (CALL(sylvan_table_usage, filled, total))

/**
 * GARBAGE COLLECTION
 *
 * Garbage collection is performed in a new Lace frame, interrupting all ongoing work
 * until garbage collection is completed.
 *
 * By default, garbage collection is triggered when no new nodes can be added to the nodes table.
 * This is detected when there are no more available buckets in the bounded probe sequence.
 * Garbage collection can also be triggered manually with sylvan_gc()
 *
 * Garbage collection procedure:
 * 1) All installed pre_gc hooks are called.
 *    See sylvan_gc_hook_pre to add hooks.
 * 2) The operation cache is cleared.
 * 3) The nodes table (data part) is cleared.
 * 4) All nodes are marked (to be rehashed) using the various marking callbacks.
 *    See sylvan_gc_add_mark to add marking callbacks.
 *    Afterwards, the ondead hook is called for all now-dead nodes with the custom flag set.
 * 5) The main gc hook is called. The function of this hook is to perform resizing.
 *    The default implementation doubles the nodes table and operation cache sizes.
 *    See sylvan_gc_hook_main to set the hook.
 * 5) The nodes table (hash part) is cleared.
 * 6) All marked nodes are rehashed.
 * 7) All installed post_gc hooks are called.
 *    See sylvan_gc_hook_post to add hooks.
 *
 * For parts of the garbage collection process, specific methods exist.
 * - sylvan_clear_cache() clears the operation cache (step 2)
 * - sylvan_clear_and_mark() performs steps 3 and 4.
 * - sylvan_rehash_all() performs steps 5 and 6.
 */

/**
 * Trigger garbage collection manually.
 */

/**
 * Trigger garbage collection manually.
 */
VOID_TASK_DECL_0(sylvan_gc);
#define sylvan_gc() (CALL(sylvan_gc))

/**
 * Enable or disable garbage collection.
 *
 * This affects both automatic and manual garbage collection, i.e.,
 * calling sylvan_gc() while garbage collection is disabled does not have any effect.
 * If no new nodes can be added, Sylvan will write an error and abort.
 */
void sylvan_gc_enable(void);
void sylvan_gc_disable(void);

/**
 * Test if garbage collection must happen now.
 * This is just a call to the Lace framework to see if NEWFRAME has been used.
 * Before calling this, make sure all used BDDs are referenced.
 */
#define sylvan_gc_test() YIELD_NEWFRAME()

/**
 * Clear the operation cache.
 */
VOID_TASK_DECL_0(sylvan_clear_cache);
#define sylvan_clear_cache() CALL(sylvan_clear_cache)

/**
 * Clear the nodes table (data part) and mark all nodes with the marking mechanisms.
 */
VOID_TASK_DECL_0(sylvan_clear_and_mark);
#define sylvan_clear_and_mark() CALL(sylvan_clear_and_mark)

/**
 * Clear the nodes table (hash part) and rehash all marked nodes.
 */
VOID_TASK_DECL_0(sylvan_rehash_all);
#define sylvan_rehash_all() CALL(sylvan_rehash_all)

/**
 * Callback type
 */
LACE_TYPEDEF_CB(void, gc_hook_cb);

/**
 * Add a hook that is called before garbage collection begins.
 */
void sylvan_gc_hook_pregc(gc_hook_cb callback);

/**
 * Add a hook that is called after garbage collection is finished.
 */
void sylvan_gc_hook_postgc(gc_hook_cb callback);

/**
 * Replace the hook called between node marking and rehashing.
 * Typically, the hook resizes the hash table and operation cache according to some heuristic.
 */
void sylvan_gc_hook_main(gc_hook_cb callback);

/**
 * Add a marking mechanism.
 *
 * The mark_cb callback is called during garbage collection and should call the
 * appropriate recursive marking functions for the decision diagram nodes, for example
 * mtbdd_gc_mark_rec() for MTBDDs or lddmc_gc_mark_rec() for LDDs.
 *
 * The sylvan_count_refs() function uses the count_cb callbacks to compute the number
 * of references.
 */
void sylvan_gc_add_mark(gc_hook_cb mark_cb);

/**
 * One of the hooks for resizing behavior.
 * Default if SYLVAN_AGGRESSIVE_RESIZE is set.
 * Always double size on gc() until maximum reached.
 * Use sylvan_gc_hook_main() to set this heuristic.
 */
VOID_TASK_DECL_0(sylvan_gc_aggressive_resize);

/**
 * One of the hooks for resizing behavior.
 * Default if SYLVAN_AGGRESSIVE_RESIZE is not set.
 * Double size on gc() whenever >50% is used.
 * Use sylvan_gc_hook_main() to set this heuristic.
 */
VOID_TASK_DECL_0(sylvan_gc_normal_resize);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif

redpajama_set_name: RedPajamaGithub


text:
	module.exports = {
		/**
		 * This class contains acceleration information
		 * @constructor
		 * @param {Number} x The force applied by the device in the x-axis.
		 * @param {Number} y The force applied by the device in the y-axis.
		 * @param {Number} z The force applied by the device in the z-axis.
		 * @param {boolean} doRotate If true, rotate axes based on device rotation.
		 */
		Acceleration: function(x, y, z, doRotate) {
			//if (this._accel == null)
			//	this._accel = new this.Acceleration(0, 0, 0, false);

			if(doRotate) {
				//TODO: figure out orientation
				var orientation = 0;		//AppMobi.device.orientation;
				if(orientation==0) {
				//portrait
				} else if (orientation==90) {
				//landscape left
					var temp = y, y = -x, x = temp;
				} else if (orientation==180) {
				//upside-down portrait
					x = -x, y = -y;
				} else if (orientation==-90) {
				//landscape right
					var temp = x, x = -y, y = temp;
				}
			}
			/**
			 * The force applied by the device in the x-axis.
			 */
			this.x = x;
			/**
			 * The force applied by the device in the y-axis.
			 */
			this.y = y;
			/**
			 * The force applied by the device in the z-axis.
			 */
			this.z = z;
			/**
			 * The time that the acceleration was obtained.
			 */
			this.timestamp = new Date().getTime();
		}
	}


text:
ARCHS = armv7 arm64
CFLAGS = -fno-objc-arc -O2

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = ZypenAssertiondHooks
ZypenAssertiondHooks_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
	install.exec "killall -9 SpringBoard"


text:
package org.batfish.z3.node;

import java.util.ArrayList;
import java.util.List;

import org.batfish.z3.NodProgram;

import com.microsoft.z3.BoolExpr;
import com.microsoft.z3.Z3Exception;

public class LetExpr extends BooleanExpr implements ComplexExpr {

   private BooleanExpr _expression;
   private List<MacroDefExpr> _macroDefs;
   private List<Expr> _subExpressions;

   public LetExpr(List<MacroDefExpr> macroDefs, BooleanExpr b) {
      _macroDefs = macroDefs;
      _expression = b;
      _subExpressions = new ArrayList<Expr>();
      _printer = new ExpandedComplexExprPrinter(this);
      refreshSubexpressions();
   }

   public BooleanExpr getExpression() {
      return _expression;
   }

   public List<MacroDefExpr> getMacroDefs() {
      return _macroDefs;
   }

   @Override
   public List<Expr> getSubExpressions() {
      return _subExpressions;
   }

   private void refreshSubexpressions() {
      _subExpressions.clear();
      _subExpressions.add(new IdExpr("let"));
      ListExpr list = new ExpandedListExpr();
      _subExpressions.add(list);
      _subExpressions.add(_expression);
      for (MacroDefExpr macroDefExpr : _macroDefs) {
         list.addSubExpression(macroDefExpr);
      }
   }

   @Override
   public BoolExpr toBoolExpr(NodProgram nodProgram) throws Z3Exception {
      throw new UnsupportedOperationException(
            "no implementation for generated method"); // TODO Auto-generated
                                                       // method stub
   }

}


text:
        <button type="button" class="close" data-dismiss="modal">
          ×{{ t 'app.close' }}
        </button>

{{ t 'app.deployment.deploying' name target }}

          {{ t 'app.deployment.try_it' }}


text:
import React from 'react';
import Formsy, { withFormsy } from './../..';

class TestInput extends React.Component {
    static defaultProps = { type: 'text' };

    updateValue = (event) => {
        this.props.setValue(event.target[this.props.type === 'checkbox' ? 'checked' : 'value']);
    }

    render() {
        return <input type={this.props.type} value={this.props.getValue()} onChange={this.updateValue}/>;
    }
}

export function InputFactory(methods) {
    for (let method in methods) {
        if (methods.hasOwnProperty(method)) {
            TestInput.prototype[method] = methods[method];
        }
    }
    return withFormsy(TestInput);
}

export default withFormsy(TestInput);


text:
<TITLE>expr package abstract</TITLE>

 Expr_ExprLoad()

 Load EXPRESSION from file

 Expr_WriteTree()

 Print EXPRESSION to file

Last updated on 1010515 11h48


text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ProjectModuleManager">
    <modules>
      <module fileurl="file://$PROJECT_DIR$/.idea/members.iml" filepath="$PROJECT_DIR$/.idea/members.iml" />
    </modules>
  </component>
</project>


text:
require "nn"
require "math"
require "torch"

require "Rleu"
require "RluMax"
require "SgdMomentum"

models = {}

---Append dataset information to a model.
function models.append_ds_info(ds, mlp)
    mlp.time_sig = ds.time_sig
    mlp.dims = ds.logical_dims
    return mlp
end

---Create a simple 2-layer NN.
--Each output channel is taken in isolation using this architecture. The
--filters in layer 2 are applied to each note channel and accumulated into the
--hidden features with num_hidden per note track. The output layer is a linear
--combination of these hidden features where each feature is still isolated to
--a single note.
function models.simple_2lnn_iso(ds, num_hidden)

    local mlp = models.append_ds_info(ds, nn.Sequential())
    local input_len = mlp.dims.input[2]
    local output_len = mlp.dims.output[2]

    -- Project to num_notes x num_hidden.
    mlp:add(nn.Linear(input_len, num_hidden))
    mlp:add(nn.Rleu())

    -- Project to num_notes x output_len.
    mlp:add(nn.Linear(num_hidden, output_len))

    mlp:add(nn.Tanh())

    return mlp
end

---Create a simple 2-layer NN.
--Each output channel is a linear combination over all hidden features for all
--note tracks. Therefore, the activation of note 1 is influenced by the
--activation of all other notes. This requires more weights than the isolated
--architecture.
function models.simple_2lnn_cmb(ds, num_hidden)

    local mlp = models.append_ds_info(ds, nn.Sequential())

    local num_notes = mlp.dims.input[1]
    local input_len = mlp.dims.input[2]
    local output_len = mlp.dims.output[2]

    -- By transposing, we extract features over the notes for each time slice.

    -- Transpose to input_len x num_notes and project to input_len x num_hidden.
    mlp:add(nn.Transpose({1, 2}))
    mlp:add(nn.Linear(num_notes, num_hidden))
    mlp:add(nn.Rleu())

    -- Transpose to num_hidden x input_len and project to num_hidden x output_len.
    mlp:add(nn.Transpose({1, 2}))
    mlp:add(nn.Linear(input_len, output_len))
    mlp:add(nn.Rleu())

    -- Transpose to output_len x num_hidden and project to output_len x num_notes.
    mlp:add(nn.Transpose({1, 2}))
    mlp:add(nn.Linear(num_hidden, num_notes))
    mlp:add(nn.Rleu())

    -- Transpose to num_notes x output_len.
    mlp:add(nn.Transpose({1, 2}))

    mlp:add(nn.Tanh())

    return mlp
end

---Create a simple 2-layer NN.
--Each output channel is a linear combination over all hidden features for all
--note tracks. Therefore, the activation of note 1 is influenced by the
--activation of all other notes. This requires more weights than the isolated
--architecture.
function models.simple_2lnn_iso_cmb(ds, num_hidden)

    local mlp = models.append_ds_info(ds, nn.Sequential())
    local input_len = mlp.dims.input[2]
    local output_len = mlp.dims.output[2]

    -- Project to num_notes x num_hidden.
    mlp:add(nn.Linear(input_len, num_hidden))
    mlp:add(nn.Rleu())

    -- Transpose to num_hidden x num_notes and project to num_hidden x num_hidden.
    mlp:add(nn.Transpose({1, 2}))
    mlp:add(nn.Linear(num_notes, num_hidden))
    mlp:add(nn.Rleu())

    -- Project to num_hidden x output_len.
    mlp:add(nn.Linear(num_hidden, output_len))
    mlp:add(nn.Rleu())

    -- Transpose to output_len x num_hidden and project to output_len x num_notes.
    mlp:add(nn.Transpose({1, 2}))
    mlp:add(nn.Linear(num_hidden, num_notes))

    mlp:add(nn.Tanh())

    return mlp
end

--- Train model using the given dataset.
function models.train_model(ds, model, criterion, train_args)

    local train = ds.data_train()
    local trainer = nn.SgdMomentum(model, criterion, train_args)
    trainer:train(train)

    local train_loss = 0
    for i = 1, train:size() do
        local X = train[i][1]
        local Y = train[i][2]
        local loss = criterion:forward(model:forward(X), Y)
        train_loss = train_loss + loss
    end
    local avg_train_loss = train_loss / train:size()

    local test_loss = 0
    local test = ds.data_test()
    for i = 1, test:size() do
        local X = test[i][1]
        local Y = test[i][2]
        local loss = criterion:forward(model:forward(X), Y)
        test_loss = test_loss + loss
    end
    local avg_test_loss = test_loss / test:size()

    return avg_train_loss, avg_test_loss
end

--- [0, 255] => [-1, 1]
function models.from_byte(x)
    if type(x) == "userdata" then
        return x:div(127.5):add(-1)
    else
        return (x / 127.5) - 1
    end
end

--- [-1, 1] => [0, 255]
function models.to_byte(x)
    if type(x) == "userdata" then
        return x:map(x, function(xx)
            return math.max(0, math.min(255, math.floor((xx + 1) * 127.5)))
        end)
    else
        return math.max(0, math.min(255, math.floor((x + 1) * 127.5)))
    end
end

---Transform data into range [-1, 1].
function models.normalize_data(ds)
    for _, source in ipairs(ds.sources) do
        models.from_byte(source.data)
    end
end

--- Predict a song by seeding with input window x0.
-- :param number length: the length of the song in output windows
function models.predict(model, x0, length)

    if x0:size(1) ~= model.dims.input[1]
        or x0:size(2) ~= model.dims.input[2] then
        error(string.format("Seed point has incorrect dims (%d, %d) != (%d, %d)",
                            x0:size(1), x0:size(2),
                            model.dims.input[1], model.dims.input[2]))
    end

    local input_wnd = model.dims.input[2]
    local output_wnd =  model.dims.output[2]

    local total_size = output_wnd * length
    local channel_dims = model.dims.input[1]
    local total_length = input_wnd + total_size
    local x0_song = torch.Tensor(channel_dims, total_length)
    local song = x0_song:narrow(2, input_wnd + 1, total_size)

    -- Copy first input to output buffer.
    x0_song:narrow(2, 1, input_wnd):copy(x0)

    for offset = 1, total_size, output_wnd do
        -- Predict next output_wnd and copy to the song.
        local X = x0_song:narrow(2, offset, input_wnd)
        local Y = model:forward(X)
        -- Normalize the output.
        models.from_byte(models.to_byte(Y))
        song:narrow(2, offset, output_wnd):copy(Y)
        print(string.format("predict() : t=%d/%d, max_ouput=% .4f",
                            offset, total_size, Y:max()))
    end

    return models.to_byte(song)
end

return models


text:
/**
 * @fileoverview Toolbox from whence to create blocks.
 * @author fraser@google.com (Neil Fraser)
 */
'use strict';

import Blockly from './blockly';
import Flyout from './flyout';

var Toolbox = {};
export default Toolbox;

/**
 * Width of the toolbox.
 * @type {number}
 */
Toolbox.width = 0;

/**
 * Creates the toolbox's DOM.  Only needs to be called once.
 * @param {!Element} svg The top-level SVG element.
 * @param {!Element} container The SVG's HTML parent element.
 */
Toolbox.createDom = function(svg, container) {
  /**
   * @type {!Flyout}
   * @private
   */
  Toolbox.flyout_ = new Flyout();
  svg.appendChild(Toolbox.flyout_.createDom());
};

/**
 * Initializes the toolbox.
 */
Toolbox.init = function() {
  Toolbox.flyout_.init(Blockly.mainWorkspace);
  Toolbox.populate_();
  Toolbox.width = -1;
};

Toolbox.populate_ = function () {};


text:
using System;
using System.Collections.Generic;
using Sqloogle.Utilities;

namespace WebService.Models.MissingIndices {
    public class SearchResult {
        public string Id { get; set; }
        public string Server { get; set; }
        public string Database { get; set; }
        public string Schema { get; set; }
        public string Name { get; set; }
        public string Equality { get; set; }
        public string Inequality { get; set; }
        public string Included { get; set; }
        public long Score { get; set; }
        public float Rank { get; set; }
        public DateTime LastNeededDate { get; set; }
        public string LastNeededDateFormatted { get; set; }
        public string SqlQuery { get; set; }
        public string CreateIndexSql { get; set; }
        public string SqlIndexQuery { get; set; }

        public SearchResult(IDictionary<string, string> dict) {
            Id = dict["id"];
            Name = dict["name"];
            Database = dict["database"];
            Schema = dict["schema"];
            Server = dict["server"];
            Score = (long) Math.Round(Convert.ToDecimal(dict["score"]), 0);
            Rank = float.Parse(dict["rank"]);
            Equality = dict["equality"];
            Included = dict["included"];
            Inequality = dict["inequality"];
            LastNeededDate = Dates.ConvertDocDate(dict["lastneeded"]);
            LastNeededDateFormatted = Dates.FormatDate(LastNeededDate);
            SqlQuery = CreateExpressionToSearchForPossibleCauses();
            SqlIndexQuery = CreateExpressionToSearchForOtherIndexes();
            CreateIndexSql = CreateMissingIndexSql();
        }

        public string ColumnSummary {
            get {
                var columns = new List<string>();
                if (!string.IsNullOrEmpty(Equality))
                    columns.Add("equality: " + Strings.RemoveBrackets(Equality));
                if (!string.IsNullOrEmpty(Inequality))
                    columns.Add("inequality: " + Strings.RemoveBrackets(Inequality));
                if (!string.IsNullOrEmpty(Included))
                    columns.Add("included: " + Strings.RemoveBrackets(Included));
                return string.Join("
", columns);
            }
        }

        public String CreateExpressionToSearchForPossibleCauses() {
            var columns = Strings.RemoveBracketsAndCommas(string.Concat(Equality, " ", Inequality, " ", Included));
            return string.Format("server:{0} {1} -type:table -type:index {2}", Server, Name, columns);
        }

        public String CreateExpressionToSearchForOtherIndexes() {
            return string.Format("server:{0} database:{1} schema:{2} sql:\"{3}\" type:(table OR index)", Server, Database, Schema, Name);
        }

        private String CreateIndexName() {
            const string indexNameTemplate = "IX_{0}_{1}__{2}";
            var indexColumns = Strings.RemoveBracketsAndCommas(string.Concat(Equality, "_", Inequality));
            var includedColumns = Strings.RemoveBracketsAndCommas(Included);
            var indexName = string.Format(indexNameTemplate, Name, indexColumns, includedColumns).Replace(" ", "_").TrimEnd("_".ToCharArray());
            if (indexName.Length > 128)
                indexName = indexName.Substring(0, 128);
            return indexName;
        }

        private String CreateIncludedColumnsClause() {
            const string includedColumnsTemplate = "\n\t\tINCLUDE({0})";
            return String.IsNullOrEmpty(Included) ? string.Empty : string.Format(includedColumnsTemplate, Included);
        }

        public String CreateMissingIndexSql() {
            const string sqlTemplate = "CREATE NONCLUSTERED INDEX [{0}]\n\tON [{1}].[{2}]({3}){4};";
            var indexColumns = String.Concat(Equality, String.IsNullOrEmpty(Inequality) ? string.Empty : ", " + Inequality);
            return string.Format(sqlTemplate, CreateIndexName(), Schema, Name, indexColumns.TrimStart(", ".ToCharArray()), CreateIncludedColumnsClause());
        }

    }
}


text:
namespace FerryLegacy
{
    public class TimeTableViewModelRow
    {
        public string FerryName { get; set; }
        public string DestinationPort { get; set; }
        public string OriginPort { get; set; }
        public string StartTime { get; set; }
        public string JourneyLength { get; set; }
        public string ArrivalTime { get; set; }
        public int JourneyId { get; set; }
    }
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RMUD
{
    public static class RegisterRoomProperties
    {
        public static void AtStartup(RuleEngine GlobalRules)
        {
            PropertyManifest.RegisterProperty("room type", typeof(RoomType), RoomType.NotARoom, new EnumSerializer<RoomType>());
            PropertyManifest.RegisterProperty("light", typeof(LightingLevel), LightingLevel.Dark, new EnumSerializer<LightingLevel>());
            PropertyManifest.RegisterProperty("ambient light", typeof(LightingLevel), LightingLevel.Dark, new EnumSerializer<LightingLevel>());
        }
    }

    public partial class MudObject
	{
        public void Room(RoomType Type)
        {
            Container(RelativeLocations.Contents, RelativeLocations.Contents);
            SetProperty("room type", Type);
        }

        public void OpenLink(Direction Direction, String Destination, MudObject Portal = null)
        {
            if (RemoveAll(thing => thing.GetProperty<Direction>("link direction") == Direction && thing.GetProperty<bool>("portal?")) > 0)
                Core.LogWarning("Opened duplicate link in " + Path);

            if (Portal == null)
            {
                Portal = new MudObject();
                Portal.SetProperty("link anonymous?", true);
                Portal.SetProperty("short", "link " + Direction + " to " + Destination);
            }

            Portal.SetProperty("portal?", true);
            Portal.SetProperty("link direction", Direction);
            Portal.SetProperty("link destination", Destination);
            Portal.Location = this;
            Add(Portal, RelativeLocations.Contents);
        }
    }
}


text:
LiBe
====

Beryllium backed by Lithium for Networked Operational Transforms


text:
import {Entitlement, GrantReason} from '../entitlement';
import {LocalSubscriptionPlatform} from '../local-subscription-platform';
import {
  PageConfig,
  PageConfigResolver,
} from '../../../../third_party/subscriptions-project/config';
import {PlatformStore} from '../platform-store';
import {ServiceAdapter} from '../service-adapter';
import {Services} from '../../../../src/services';
import {SubscriptionAnalyticsEvents} from '../analytics';
import {SubscriptionPlatform} from '../subscription-platform';
import {SubscriptionService} from '../amp-subscriptions';
import {ViewerSubscriptionPlatform} from '../viewer-subscription-platform';
import {setTimeout} from 'timers';

describes.fakeWin('AmpSubscriptions', {amp: true}, env => {
  let win;
  let ampdoc;
  let element;
  let pageConfig;
  let subscriptionService;
  let configResolver;
  let analyticsEventStub;

  const products = ['scenic-2017.appspot.com:news',
    'scenic-2017.appspot.com:product2'];

  const serviceConfig = {
    services: [
      {
        authorizationUrl: 'https://lipsum.com/authorize',
        actions: {
          subscribe: 'https://lipsum.com/subscribe',
          login: 'https://lipsum.com/login',
        },
      },
      {
        serviceId: 'google.subscription',
      },
    ],
    fallbackEntitlement: {
      source: 'local',
      grantReason: GrantReason.SUBSCRIBER,
      granted: true,
    },
  };

  beforeEach(() => {
    win = env.win;
    ampdoc = env.ampdoc;
    element = win.document.createElement('script');
    element.id = 'amp-subscriptions';
    element.setAttribute('type', 'json');
    element.innerHTML = JSON.stringify(serviceConfig);

    win.document.body.appendChild(element);
    subscriptionService = new SubscriptionService(ampdoc);
    pageConfig = new PageConfig('scenic-2017.appspot.com:news', true);
    sandbox.stub(PageConfigResolver.prototype, 'resolveConfig')
        .callsFake(function() {
          configResolver = this;
          return Promise.resolve(pageConfig);
        });
    sandbox.stub(subscriptionService, 'getPlatformConfig_')
        .callsFake(() => Promise.resolve(serviceConfig));
    analyticsEventStub = sandbox.stub(
        subscriptionService.subscriptionAnalytics_,
        'event'
    );
  });

  it('should call `initialize_` on start', () => {
    const localPlatformStub =
      sandbox.stub(subscriptionService, 'initializeLocalPlatforms_');
    const initializeStub = sandbox.spy(subscriptionService, 'initialize_');
    subscriptionService.start();
    expect(initializeStub).to.be.calledOnce;
    return subscriptionService.initialize_().then(() => {
      expect(analyticsEventStub).to.be.calledWith(
          SubscriptionAnalyticsEvents.STARTED);
      expect(localPlatformStub).to.be.called;
    });
  });

  describe('start', () => {
    it('should setup store and page on start', () => {
      sandbox.stub(subscriptionService, 'initializeLocalPlatforms_');
      const renderLoadingStub =
          sandbox.spy(subscriptionService.renderer_, 'toggleLoading');

      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        // Should show loading on the page
        expect(renderLoadingStub).to.be.calledWith(true);
        // Should setup platform store
        expect(subscriptionService.platformStore_).to.be
            .instanceOf(PlatformStore);
      });
    });

    it('should start auth flow for short circuiting', () => {
      const authFlowStub = sandbox.stub(subscriptionService,
          'startAuthorizationFlow_');
      const delegateStub = sandbox.stub(subscriptionService,
          'delegateAuthToViewer_');
      sandbox.stub(subscriptionService, 'initialize_').callsFake(() => {
        subscriptionService.platformConfig_ = serviceConfig;
        subscriptionService.pageConfig_ = pageConfig;
        subscriptionService.doesViewerProvideAuth_ = true;
        return Promise.resolve();
      });
      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        expect(authFlowStub.withArgs(false)).to.be.calledOnce;
        expect(delegateStub).to.be.calledOnce;
      });
    });

    it('should skip everything and unlock document for alwaysGrant', () => {
      const processStateStub = sandbox.stub(subscriptionService,
          'processGrantState_');
      sandbox.stub(subscriptionService, 'initialize_').callsFake(() => {
        subscriptionService.platformConfig_ = {
          alwaysGrant: true,
        };
        subscriptionService.pageConfig_ = pageConfig;
        return Promise.resolve();
      });
      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        expect(processStateStub).to.be.calledWith(true);
      });
    });

    it('should not skip everything and unlock document for alwaysGrant '
        + 'if viewer provides authorization', () => {
      const processStateStub = sandbox.stub(subscriptionService,
          'processGrantState_');
      const authFlowStub = sandbox.stub(subscriptionService,
          'startAuthorizationFlow_');
      const delegateStub = sandbox.stub(subscriptionService,
          'delegateAuthToViewer_');
      sandbox.stub(subscriptionService, 'initialize_').callsFake(() => {
        subscriptionService.platformConfig_ = {
          alwaysGrant: true,
        };
        subscriptionService.pageConfig_ = pageConfig;
        subscriptionService.doesViewerProvideAuth_ = true;
        return Promise.resolve();
      });
      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        expect(authFlowStub.withArgs(false)).to.be.calledOnce;
        expect(delegateStub).to.be.calledOnce;
        expect(processStateStub).to.not.be.called;
      });
    });
  });

  describe('getReaderId', () => {
    let cidGet;

    beforeEach(() => {
      return Services.cidForDoc(ampdoc).then(cid => {
        cidGet = sandbox.stub(cid, 'get').callsFake(
            () => Promise.resolve('cid1'));
      });
    });

    it('should delegate to cid.get for local', () => {
      return subscriptionService.getReaderId('local').then(value => {
        expect(value).to.equal('cid1');
        expect(cidGet).to.be.calledOnce.calledWith({
          // Local service is default to "amp-access" scope.
          scope: 'amp-access',
          createCookieIfNotPresent: true,
        });
      });
    });

    it('should delegate to cid.get for non-local', () => {
      return subscriptionService.getReaderId('service1').then(() => {
        expect(cidGet).to.be.calledOnce.calledWith({
          scope: 'amp-access-service1',
          createCookieIfNotPresent: true,
        });
      });
    });

    it('should resolve reader ID only once', () => {
      const local1 = subscriptionService.getReaderId('local');
      const local2 = subscriptionService.getReaderId('local');
      const service1 = subscriptionService.getReaderId('service');
      const service2 = subscriptionService.getReaderId('service');
      expect(local1).to.equal(local2);
      expect(service1).to.equal(service2);
      expect(local1).to.not.equal(service1);
    });
  });

  it('should discover page configuration', () => {
    return subscriptionService.initialize_().then(() => {
      expect(subscriptionService.pageConfig_).to.equal(pageConfig);
    });
  });

  it('should search ampdoc-scoped config', () => {
    return subscriptionService.initialize_().then(() => {
      expect(configResolver.doc_.ampdoc_).to.equal(ampdoc);
    });
  });

  it('should add subscription platform while registering it', () => {
    const serviceData = serviceConfig['services'][1];
    const platform = new SubscriptionPlatform();
    const entitlementData = {source: 'local', granted: true,
      grantReason: GrantReason.SUBSCRIBER};
    const entitlement = Entitlement.parseFromJson(entitlementData);
    const factoryStub = sandbox.stub().callsFake(() => platform);

    subscriptionService.platformStore_ = new PlatformStore(
        [serviceData.serviceId]);

    platform.getEntitlements = sandbox.stub()
        .callsFake(() => Promise.resolve(entitlement));
    platform.getServiceId = sandbox.stub().callsFake(() => 'local');

    subscriptionService.platformConfig_ = serviceConfig;
    subscriptionService.registerPlatform(serviceData.serviceId, factoryStub);

    return subscriptionService.initialize_().then(() => {
      expect(factoryStub).to.be.calledOnce;
      expect(factoryStub.getCall(0).args[0]).to.be.equal(serviceData);
      expect(factoryStub.getCall(0).args[1]).to.be.equal(
          subscriptionService.serviceAdapter_);
      expect(analyticsEventStub).to.be.calledWith(
          SubscriptionAnalyticsEvents.PLATFORM_REGISTERED,
          {
            serviceId: 'local',
          }
      );
      expect(analyticsEventStub).to.be.calledWith(
          SubscriptionAnalyticsEvents.PLATFORM_REGISTERED_DEPRECATED,
          {
            serviceId: 'local',
          }
      );
    });
  });

  describe('getPlatformConfig_', () => {
    it('should return json inside script#amp-subscriptions tag ', done => {
      subscriptionService.getPlatformConfig_.restore();
      subscriptionService.getPlatformConfig_().then(config => {
        expect(JSON.stringify(config)).to.be.equal(
            JSON.stringify(serviceConfig));
        done();
      });
    });
  });

  describe('initializeLocalPlatforms_', () => {
    it('should put `LocalSubscriptionPlatform` for every service config'
        + ' with authorization Url', () => {
      const service = serviceConfig.services[0];
      subscriptionService.serviceAdapter_ =
        new ServiceAdapter(subscriptionService);
      subscriptionService.pageConfig_ = pageConfig;
      subscriptionService.platformStore_ = new PlatformStore(['local']);
      subscriptionService.initializeLocalPlatforms_(service);
      expect(subscriptionService.platformStore_.subscriptionPlatforms_['local'])
          .to.be.not.null;
      expect(subscriptionService.platformStore_.subscriptionPlatforms_['local'])
          .to.be.instanceOf(LocalSubscriptionPlatform);
    });
  });

  describe('selectAndActivatePlatform_', () => {
    it('should wait for grantStatus and selectPlatform promise', () => {
      sandbox.stub(subscriptionService, 'fetchEntitlements_');
      subscriptionService.start();
      subscriptionService.viewTrackerPromise_ = Promise.resolve();
      return subscriptionService.initialize_().then(() => {
        resolveRequiredPromises(subscriptionService, /* subscriber */ true);
        const localPlatform =
            subscriptionService.platformStore_.getLocalPlatform();
        const selectPlatformStub =
            subscriptionService.platformStore_.selectPlatform;
        const activateStub = sandbox.stub(localPlatform, 'activate');
        expect(localPlatform).to.be.not.null;
        return subscriptionService.selectAndActivatePlatform_().then(() => {
          expect(activateStub).to.be.calledOnce;
          expect(selectPlatformStub).to.be.called;
          expect(analyticsEventStub).to.be.calledWith(
              SubscriptionAnalyticsEvents.PLATFORM_ACTIVATED,
              {
                'serviceId': 'local',
              }
          );
          expect(analyticsEventStub).to.be.calledWith(
              SubscriptionAnalyticsEvents.ACCESS_GRANTED,
              {
                'serviceId': 'local',
              }
          );
          expect(analyticsEventStub).to.not.be.calledWith(
              SubscriptionAnalyticsEvents.PAYWALL_ACTIVATED);
        });
      });
    });

    it('should call selectPlatform with preferViewerSupport config', () => {
      sandbox.stub(subscriptionService, 'fetchEntitlements_');
      subscriptionService.start();
      subscriptionService.viewTrackerPromise_ = Promise.resolve();
      return subscriptionService.initialize_().then(() => {
        resolveRequiredPromises(subscriptionService, /* subscriber */ true);
        const selectPlatformStub =
          subscriptionService.platformStore_.selectPlatform;
        subscriptionService.platformConfig_['preferViewerSupport'] = false;
        return subscriptionService.selectAndActivatePlatform_().then(() => {
          expect(selectPlatformStub).to.be.called;
        });
      });
    });

    it('should send paywall activation event', () => {
      sandbox.stub(subscriptionService, 'fetchEntitlements_');
      subscriptionService.start();
      subscriptionService.viewTrackerPromise_ = Promise.resolve();
      return subscriptionService.initialize_().then(() => {
        resolveRequiredPromises(subscriptionService, /* subscriber */ false);
        const localPlatform =
            subscriptionService.platformStore_.getLocalPlatform();
        sandbox.stub(localPlatform, 'activate');
        return subscriptionService.selectAndActivatePlatform_().then(() => {
          expect(analyticsEventStub).to.be.calledWith(
              SubscriptionAnalyticsEvents.PLATFORM_ACTIVATED,
              {
                'serviceId': 'local',
              }
          );
          expect(analyticsEventStub).to.be.calledWith(
              SubscriptionAnalyticsEvents.PAYWALL_ACTIVATED,
              {
                'serviceId': 'local',
              });
          expect(analyticsEventStub).to.be.calledWith(
              SubscriptionAnalyticsEvents.ACCESS_DENIED,
              {
                'serviceId': 'local',
              });
        });
      });
    });

    function resolveRequiredPromises(subscriptionService, subscriber) {
      const entitlement = new Entitlement({
        source: 'local',
        raw: 'raw',
        granted: subscriber,
        grantReason: subscriber ? GrantReason.SUBSCRIBER : null,
      });
      const localPlatform =
        subscriptionService.platformStore_.getLocalPlatform();
      sandbox.stub(subscriptionService.platformStore_, 'getGrantStatus')
          .callsFake(() => Promise.resolve());
      subscriptionService.platformStore_.resolveEntitlement('local',
          entitlement);
      sandbox.stub(
          subscriptionService.platformStore_,
          'selectPlatform'
      ).callsFake(() => Promise.resolve(localPlatform));
    }
  });

  describe('startAuthorizationFlow_', () => {
    it('should start grantStatus and platform selection', () => {
      subscriptionService.platformStore_ = new PlatformStore(products);
      const getGrantStatusStub =
          sandbox.stub(subscriptionService.platformStore_, 'getGrantStatus')
              .callsFake(() => Promise.resolve());
      const selectAndActivateStub =
          sandbox.stub(subscriptionService, 'selectAndActivatePlatform_');
      const performPingbackStub =
          sandbox.stub(subscriptionService, 'performPingback_');
      subscriptionService.startAuthorizationFlow_();
      expect(getGrantStatusStub).to.be.calledOnce;
      expect(selectAndActivateStub).to.be.calledOnce;
      return subscriptionService.platformStore_.getGrantStatus().then(() => {
        expect(performPingbackStub).to.be.calledOnce;
      });
    });

    it('should not call selectAndActivatePlatform based on param', () => {
      subscriptionService.platformStore_ = new PlatformStore(products);
      const getGrantStatusStub =
          sandbox.stub(subscriptionService.platformStore_, 'getGrantStatus')
              .callsFake(() => Promise.resolve());
      const selectAndActivateStub =
          sandbox.stub(subscriptionService, 'selectAndActivatePlatform_');
      subscriptionService.startAuthorizationFlow_(false);
      expect(getGrantStatusStub).to.be.calledOnce;
      expect(selectAndActivateStub).to.not.be.called;
    });
  });

  describe('fetchEntitlements_', () => {
    let platform;
    let serviceAdapter;
    let firstVisibleStub;
    beforeEach(() => {
      serviceAdapter = new ServiceAdapter(subscriptionService);
      firstVisibleStub = sandbox.stub(subscriptionService.viewer_,
          'whenFirstVisible').callsFake(() => Promise.resolve());
      subscriptionService.pageConfig_ = pageConfig;
      platform = new LocalSubscriptionPlatform(ampdoc,
          serviceConfig.services[0],
          serviceAdapter);
      subscriptionService.platformStore_ = new PlatformStore(['local']);
    });
    afterEach(() => {
      expect(firstVisibleStub).to.be.called;
    });
    it('should report failure if platform timeouts', done => {
      sandbox.stub(platform, 'getEntitlements')
          .callsFake(() => new Promise(resolve => setTimeout(resolve, 8000)));
      const failureStub = sandbox.stub(subscriptionService.platformStore_,
          'reportPlatformFailureAndFallback');
      subscriptionService.fetchEntitlements_(platform)
          .catch(() => {
            expect(failureStub).to.be.calledOnce;
            done();
          });
    }).timeout(7000);

    it('should report failure if platform reject promise', done => {
      sandbox.stub(platform, 'getEntitlements')
          .callsFake(() => Promise.reject());
      const failureStub = sandbox.stub(subscriptionService.platformStore_,
          'reportPlatformFailureAndFallback');
      const promise = subscriptionService.fetchEntitlements_(platform)
          .catch(() => {
            expect(failureStub).to.be.calledOnce;
            done();
          });
      expect(promise).to.throw;
    });

    it('should resolve entitlement if platform resolves', () => {
      const entitlement = new Entitlement({source: 'local', raw: 'raw',
        granted: true, grantReason: GrantReason.SUBSCRIBER});
      sandbox.stub(platform, 'getEntitlements')
          .callsFake(() => Promise.resolve(entitlement));
      const resolveStub = sandbox.stub(subscriptionService.platformStore_,
          'resolveEntitlement');
      return subscriptionService.fetchEntitlements_(platform).then(() => {
        expect(resolveStub).to.be.calledOnce;
        expect(resolveStub.getCall(0).args[1]).to.deep.equal(entitlement);
        expect(analyticsEventStub).to.be.calledWith(
            SubscriptionAnalyticsEvents.ENTITLEMENT_RESOLVED,
            {
              'serviceId': 'local',
            }
        );
      });
    });

    it('should reset entitlement on re-authorization', () => {
      const entitlement = new Entitlement({source: 'local', raw: 'raw',
        granted: true, grantReason: GrantReason.SUBSCRIBER});
      sandbox.stub(platform, 'getEntitlements')
          .callsFake(() => Promise.resolve(entitlement));
      const resetStub = sandbox.stub(subscriptionService.platformStore_,
          'resetEntitlementFor');
      sandbox.stub(subscriptionService, 'startAuthorizationFlow_');
      return subscriptionService.reAuthorizePlatform(platform).then(() => {
        expect(resetStub).to.be.calledOnce.calledWith('local');
      });
    });
  });

  describe('viewer authorization', () => {
    let fetchEntitlementsStub;
    let sendMessageAwaitResponsePromise;

    beforeEach(() => {
      subscriptionService.pageConfig_ = pageConfig;
      subscriptionService.platformConfig_ = serviceConfig;
      subscriptionService.doesViewerProvideAuth_ = true;
      sandbox.stub(subscriptionService, 'initialize_')
          .callsFake(() => Promise.resolve());
      sendMessageAwaitResponsePromise = Promise.resolve();
      sandbox.stub(subscriptionService.viewer_, 'sendMessageAwaitResponse')
          .callsFake(() => sendMessageAwaitResponsePromise);
      fetchEntitlementsStub = sandbox.stub(subscriptionService,
          'fetchEntitlements_');
    });

    it('should put LocalSubscriptionPlatform in platformstore, '
        + 'if viewer does not have auth capability', () => {
      subscriptionService.doesViewerProvideAuth_ = false;
      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        expect(subscriptionService.platformStore_.getLocalPlatform()).to.be
            .instanceOf(LocalSubscriptionPlatform);
      });
    });

    it('should put ViewerSubscriptionPlatform in platformstore, '
        + 'if viewer does have auth capability', () => {
      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        expect(subscriptionService.platformStore_.getLocalPlatform()).to.be
            .instanceOf(ViewerSubscriptionPlatform);
      });
    });

    it('should not fetch entitlements for any platform other than '
        + 'local', () => {
      subscriptionService.start();
      return subscriptionService.initialize_().then(() => {
        subscriptionService.registerPlatform('google.subscription',
            new SubscriptionPlatform());
        expect(fetchEntitlementsStub).to.not.be.called;
      });
    });

    it('should fetch entitlements for other platforms if viewer does '
        + 'not provide auth', () => {
      subscriptionService.doesViewerProvideAuth_ = false;
      subscriptionService.start();
      subscriptionService.registerPlatform('google.subscription',
          () => new SubscriptionPlatform());
      return subscriptionService.initialize_().then(() => {
        expect(fetchEntitlementsStub).to.be.called;
      });
    });

    it('should fallback if viewer provides auth but fails', function*() {
      // Make sendMessageAwaitResponse() return a pending promise so we have
      // a chance to stub the platform store.
      let rejecter;
      sendMessageAwaitResponsePromise = new Promise((unusedResolve, reject) => {
        rejecter = reject;
      });
      subscriptionService.start();
      yield subscriptionService.initialize_();
      // Local platform store not created until initialization.
      const platformStore = subscriptionService.platformStore_;
      sandbox.stub(platformStore, 'reportPlatformFailureAndFallback');
      rejecter();
      // Wait for sendMessageAwaitResponse() to be rejected.
      yield sendMessageAwaitResponsePromise;
      // reportPlatformFailureAndFallback() triggers the fallback entitlement.
      expect(platformStore.reportPlatformFailureAndFallback)
          .calledWith('local');
    });
  });

  describe('performPingback_', () => {
    it('should wait for viewer tracker', () => {
      const entitlementData = {source: 'local', granted: true,
        grantReason: GrantReason.SUBSCRIBER};
      const entitlement = Entitlement.parseFromJson(entitlementData);
      subscriptionService.viewTrackerPromise_ = Promise.resolve();
      subscriptionService.platformStore_ = new PlatformStore(['local']);
      subscriptionService.platformStore_.resolvePlatform('local',
          new SubscriptionPlatform());
      const entitlementStub = sandbox.stub(subscriptionService.platformStore_,
          'getGrantEntitlement').callsFake(() => Promise.resolve(entitlement));
      return subscriptionService.performPingback_().then(() => {
        expect(entitlementStub).to.be.called;
      });
    });

    it('should send pingback with resolved entitlement', () => {
      const entitlementData = {source: 'local',
        granted: true, grantReason: GrantReason.SUBSCRIBER};
      const entitlement = Entitlement.parseFromJson(entitlementData);
      subscriptionService.viewTrackerPromise_ = Promise.resolve();
      subscriptionService.platformStore_ = new PlatformStore(['local']);
      const platform = new SubscriptionPlatform();
      platform.isPingbackEnabled = () => true;
      subscriptionService.platformStore_.resolvePlatform('local',
          platform);
      sandbox.stub(subscriptionService.platformStore_,
          'getGrantEntitlement').callsFake(() => Promise.resolve(entitlement));
      const pingbackStub = sandbox.stub(platform, 'pingback');
      return subscriptionService.performPingback_().then(() => {
        expect(pingbackStub).to.be.calledWith(entitlement);
      });
    });

    it('should send empty pingback if resolved entitlement is null', () => {
      subscriptionService.viewTrackerPromise_ = Promise.resolve();
      subscriptionService.platformStore_ = new PlatformStore(['local']);
      const platform = new SubscriptionPlatform();
      platform.isPingbackEnabled = () => true;
      subscriptionService.platformStore_.resolvePlatform('local',
          platform);
      sandbox.stub(subscriptionService.platformStore_,
          'getGrantEntitlement').callsFake(() => Promise.resolve(null));
      const pingbackStub = sandbox.stub(platform, 'pingback');
      return subscriptionService.performPingback_().then(() => {
        expect(pingbackStub).to.be.calledWith(Entitlement.empty('local'));
      });
    });
  });

  describe('initializePlatformStore_', () => {
    it('should initialize platform store with the given ids', () => {
      subscriptionService.platformConfig_ = serviceConfig;
      const entitlement = Entitlement.parseFromJson(
          serviceConfig.fallbackEntitlement);
      subscriptionService.initializePlatformStore_(['local']);
      expect(subscriptionService.platformStore_.serviceIds_)
          .to.be.deep.equal(['local']);
      expect(subscriptionService.platformStore_.fallbackEntitlement_.json())
          .to.be.deep.equal(entitlement.json());
    });
  });

  describe('action delegation', () => {
    it('should call delegateActionToService with serviceId local', () => {
      const delegateStub = sandbox.stub(subscriptionService,
          'delegateActionToService');
      const action = 'action';
      subscriptionService.delegateActionToLocal(action);
      expect(delegateStub).to.be.calledWith(action, 'local');
    });

    it('should delegate action to the specified platform', () => {
      subscriptionService.platformStore_ =
        new PlatformStore(['local'], null, null);
      const platform = new SubscriptionPlatform();
      const executeActionStub = sandbox.stub(platform, 'executeAction');
      const getPlatformStub = sandbox.stub(
          subscriptionService.platformStore_, 'onPlatformResolves')
          .callsFake((serviceId, callback) => callback(platform));
      const action = action;
      return subscriptionService.delegateActionToService(action,
          'local').then(() => {
        expect(getPlatformStub).to.be.calledWith('local');
        expect(executeActionStub).to.be.calledWith(action);
      });
    });
  });

  describe('decorateServiceAction', () => {
    it('should delegate element to platform of given serviceId', () => {
      const element = document.createElement('div');
      element.setAttribute('subscriptions-service', 'swg-google');
      const platform = new SubscriptionPlatform();
      platform.getServiceId = () => 'swg-google';
      subscriptionService.platformStore_ = new PlatformStore(
          ['local', 'swg-google']);
      const whenResolveStub = sandbox.stub(subscriptionService.platformStore_,
          'onPlatformResolves').callsFake(
          (serviceId, callback) => callback(platform));
      const decorateUIStub = sandbox.stub(platform,
          'decorateUI');
      subscriptionService.decorateServiceAction(element, 'swg-google', 'login');
      expect(whenResolveStub).to.be.calledWith(platform.getServiceId());
      expect(decorateUIStub).to.be.calledWith(element);
    });
  });

  describe('selectPlatformForLogin', () => {
    it('should return the platform which ever supports viewer', () => {
      subscriptionService.platformStore_ = new PlatformStore(
          ['local', 'swg-google']);
      const loginStub = sandbox.stub(
          subscriptionService.platformStore_, 'selectPlatformForLogin');
      subscriptionService.selectPlatformForLogin();
      expect(loginStub).to.be.called;
    });
  });

  describe('AccessVars', () => {
    let platformStore;
    let entitlement;

    beforeEach(() => {
      platformStore = new PlatformStore(['local']);
      subscriptionService.platformStore_ = platformStore;
      entitlement = new Entitlement({
        source: 'local',
        raw: 'raw',
        granted: true,
        grantReason: GrantReason.SUBSCRIBER,
        dataObject: {
          test: 'a1',
        },
      });
    });

    it('should return local reader ID', () => {
      const stub = sandbox.stub(subscriptionService, 'getReaderId').callsFake(
          () => Promise.resolve('reader1'));
      return subscriptionService.getAccessReaderId().then(readerId => {
        expect(readerId).to.equal('reader1');
        expect(stub).to.be.calledOnce.calledWith('local');
      });
    });

    it('should resolve authdata from local service', () => {
      platformStore.resolveEntitlement('local', entitlement);
      return expect(subscriptionService.getAuthdataField('data.test'))
          .to.eventually.equal('a1');
    });

    it('should resolve authdata for a standard field', () => {
      platformStore.resolveEntitlement('local', entitlement);
      return expect(subscriptionService.getAuthdataField('grantReason'))
          .to.eventually.equal('SUBSCRIBER');
    });

    it('should resolve authdata for an unknown value', () => {
      platformStore.resolveEntitlement('local', entitlement);
      return expect(subscriptionService.getAuthdataField('data.other'))
          .to.eventually.be.undefined;
    });
  });
});


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

	  <link rel="stylesheet" href="{{ URL::asset('bootstrap/css/bootstrap.min.css') }}">

	  <link rel="stylesheet" href="{{ URL::asset('bootstrap/css/register.css') }}">

      <form class="form-signin" action="{{ URL::route('register-post') }} "method="post" role="form">

Create an account

        <input type="email" name="email" class="form-control" {{(Input::old('email')) ? ' value="' . e(Input::old('email')) . '"' : '' }} placeholder="Email address" required autofocus>
        @if($errors->has('email'))
			   {{$errors->first('email')}}
	       @endif
	      <input type="password" name="password" class="form-control" placeholder="Password" required>
		    @if($errors->has('password'))
			   {{$errors->first('password')}}
	       @endif
		    <input type="password" name="password_again" class="form-control" placeholder="ConfirmPassword" required>
		    @if($errors->has('password_again'))
			   {{$errors->first('password_again')}}
	       @endif
				<button class="btn btn-lg btn-primary btn-block" type="submit">Register</button>
	       	{{ Form::token() }}
      </form>


text:
package app.domain.model;

import org.hibernate.validator.constraints.Length;

import javax.persistence.*;

@Entity
@Table(name = "categories")
public class Category {
    private Long id;
    private String name;

    public Category() {}

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "name")
    @Length(min = 3, max = 15)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}


text:
layout: default
---

{% if page.type == "category" %}
  {% assign type = "categories" %}
{% elsif page.type == "tag" %}
  {% assign type = "tags" %}
{% endif %}

{% assign title = page.title %}
{% assign projects = site.projects | where_exp: 'project', 'project[type] contains title' | sort: "date" %}
{% assign articles = site.posts | where_exp: 'article', 'article[type] contains title' | sort: "date" %}

{{ page.title }} archive

{% if projects.size != 0 %}

Projects

  {% for project in projects %}

        {{ project.title }}

  {% endfor %}

{% endif %}

{% if articles.size != 0 %}

Articles

  {% for article in articles %}

        {{ article.title }}

  {% endfor %}

{% endif %}


text:
import httpStatus from 'http-status';
import { BadRequestError, errors, enableErrorMatchers } from '../src';

describe('Jest', () => {
  enableErrorMatchers();

  describe('toThrowApiError', () => {
    it('Should throw specific api error', () => {
      const myFn = () => {
        throw new BadRequestError(errors.GENERIC_ERROR);
      };

      expect(() => myFn()).toThrowApiError(httpStatus.BAD_REQUEST, errors.GENERIC_ERROR);
    });
  });
});