text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="8f7e4f74-1e83-4cff-9244-b7af6ce420d5" name="Default" comment="">
      <change type="DELETED" beforePath="$PROJECT_DIR$/LICENSE" afterPath="" />
    </list>
    <ignored path="cs3240-f16-team07.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="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="cs3240-f16-team07" />
  </component>
  <component name="FileEditorManager">
    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
      <file leaf-file-name="urls.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/urls.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#0#51#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="views.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/views.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#0#35#0" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="__init__.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/users/__init__.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 />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="admin.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/users/admin.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 />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="models.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/users/models.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 />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="models.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/reports/models.py">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="settings.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/settings.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 />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="wsgi.py" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/wsgi.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 />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="README.txt" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/README.txt">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/dev/safecollab/templates/safecollab/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="10" column="40" selection-start-line="10" selection-start-column="40" selection-end-line="10" selection-end-column="40" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="Git.Settings">
    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" />
  <component name="JsBuildToolPackageJson" detection-done="true" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="ProjectFrameBounds">
    <option name="y" value="23" />
    <option name="width" value="1440" />
    <option name="height" value="826" />
  </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="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="dev" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="dev" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="safecollab" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="dev" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="safecollab" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="users" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="dev" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="safecollab" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="safecollab" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="cs3240-f16-team07" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="dev" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="safecollab" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
            <PATH_ELEMENT>
              <option name="myItemId" value="reports" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scratches" />
      <pane id="Scope" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="WebServerToolWindowFactoryState" value="false" />
  </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="8f7e4f74-1e83-4cff-9244-b7af6ce420d5" name="Default" comment="" />
      <created>1459188552139</created>
      <option name="number" value="Default" />
      <updated>1459188552139</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="0" y="23" width="1440" height="826" extended-state="6" />
    <editor active="false" />
    <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.19670959" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="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="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="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="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="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" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
    </layout>
  </component>
  <component name="VcsContentAnnotationSettings">
    <option name="myLimit" value="2678400000" />
  </component>
  <component name="XDebuggerManager">
    <breakpoint-manager />
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/urls.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#0#51#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/views.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#0#35#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/__init__.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/admin.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/models.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/reports/models.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/settings.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/wsgi.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/README.txt">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/templates/safecollab/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="10" column="40" selection-start-line="10" selection-start-column="40" selection-end-line="10" selection-end-column="40" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/__init__.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$/dev/safecollab/safecollab/urls.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#0#51#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/views.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#0#35#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/__init__.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/admin.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/models.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/reports/models.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/settings.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/wsgi.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/templates/safecollab/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="10" column="40" selection-start-line="10" selection-start-column="40" selection-end-line="10" selection-end-column="40" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/models.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$/dev/safecollab/safecollab/__init__.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$/dev/safecollab/templates/safecollab/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="10" column="40" selection-start-line="10" selection-start-column="40" selection-end-line="10" selection-end-column="40" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/__init__.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/admin.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/users/models.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/reports/models.py">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="5" column="0" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/settings.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/views.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#0#35#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/urls.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#0#51#0" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/safecollab/wsgi.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 />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/dev/safecollab/README.txt">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>


text:
package core.framework.scheduler;

import java.time.ZonedDateTime;

/**
 * @author neo
 */
public class JobContext {
    public final String name;
    public final ZonedDateTime scheduledTime;

    public JobContext(String name, ZonedDateTime scheduledTime) {
        this.name = name;
        this.scheduledTime = scheduledTime;
    }
}

redpajama_set_name: RedPajamaGithub


text:
class Topic < ActiveRecord::Base
  has_and_belongs_to_many :pictures
  has_many :questions
  validates :name, presence: true
end


text:
package main

import (
	"bytes"
	"fmt"
	"net/http"

	"github.com/propellerads/nsq/util"
)

var httpclient *http.Client
var userAgent string

func init() {
	httpclient = &http.Client{Transport: util.NewDeadlineTransport(*httpTimeout)}
	userAgent = fmt.Sprintf("nsq_to_http v%s", util.BINARY_VERSION)
}

func HttpGet(endpoint string) (*http.Response, error) {
	req, err := http.NewRequest("GET", endpoint, nil)
	if err != nil {
		return nil, err
	}
	req.Header.Set("User-Agent", userAgent)
	return httpclient.Do(req)
}

func HttpPost(endpoint string, body *bytes.Buffer) (*http.Response, error) {
	req, err := http.NewRequest("POST", endpoint, body)
	if err != nil {
		return nil, err
	}
	req.Header.Set("User-Agent", userAgent)
	req.Header.Set("Content-Type", *contentType)
	return httpclient.Do(req)
}


text:
import calendar
from copy import copy
import re
import traceback
from django.conf import settings
from django.utils.safestring import mark_safe
from django.utils import dates
from limbo.drilldown.calcs import year_options, month_options, day_options
from django.db import models
from django import template
import logging

log = logging.getLogger(__file__)

class_div = "
%%s
"
class_span = "%%s"
link_tag = "%s"

year_regex = re.compile('(1|2)\d{3}')
month_regex = re.compile('\d{1,2}')
day_regex = re.compile('\d{1,2}')

class OptionalDate:
    def __init__(self, year = None, month = None, day = None):
        self.year = year
        self.month = month
        self.day = day

class DateDrillDown(template.Node):
    MONTH_INTEGER = 'integer'
    MONTH_STR = 'string'
    month_type = MONTH_INTEGER
    context = None

    def __init__(self, object_name, date_attr = 'date'):
        self.object_name = object_name
        self.date_attr = date_attr

    def parse_request(self, context):
        self.request = None
        for dict in context.dicts:
            if dict.has_key('request'):
                self.request = dict.get('request')
                return

    def years(self):
        return year_options(self.objects, 'date', self.max_years)

    def months(self, year):
        return month_options(self.objects, year, 'date')

    def days(self, year, month):
        return day_options(self.objects, year, month, 'date')

    @property
    def objects(self):
        obj = self.date_object
        if isinstance(obj, models.Model):
            obj = obj.objects.all()
        elif isinstance(obj, models.Manager):
            obj = obj.all()
        return obj

    @property
    def object(self):
        if not self.context:
            return None
        if not getattr(self, '_object', None):
            for c in self.context:
                if c.has_key(self.object_name):
                    self._object = c.get(self.object_name)
                    break
        return getattr(self, '_object', None)

    @property
    def date_object(self):
        return getattr(self.object, self.date_attr, None)

    def parse_date(self, path):
        self.year_index = None
        self.month_index = None
        self.day_index = None

        year = None
        month = None
        day = None
        if path.endswith('/'):
            path = path[:-1]
        self.path_parts = path.split('/')
        # Parse the date
        index = -1
        for part in self.path_parts:
            index += 1
            if not self.year_index:
                if year_regex.match(part):
                    self.year_index = index
                    year = int(part)
            else: # Year has been parsed, look for month
                if not self.month_index:
                    if month_regex.match(part):
                        self.month_index = index
                        month = int(part)
                        self.month_type = self.MONTH_INTEGER
                    elif part in dates.MONTHS_3_REV.keys():
                        self.month_index = index
                        month = dates.MONTHS_3_REV[part]
                        self.month_type = self.MONTH_STR
                else:
                    if day_regex.match(part):
                        self.day_index = index
                        day = int(part)
                        break

        self.date = OptionalDate(year, month, day)

    def parse_date_lists(self, context):
        self.context = context
        years = self.years()
        months = []
        days = []
        if self.date.year and self.months(self.date.year):
            months = self.months(self.date.year)
        if self.date.year and self.date.month and self.days(self.date.year, self.date.month):
            days = self.days(self.date.year, self.date.month)
        return years, months, days

    def max_years(self):
        if self.context:
            return self.context.get('max_years', getattr(settings, 'MAX_YEARS', None))

    def get_month(self, month):
        if month and self.month_type == self.MONTH_STR:
            return dates.MONTHS_3_REV[int(month)]
        return month

    def get_readable_month(self, month):
        if month and month in dates.MONTHS_AP.keys():
            return dates.MONTHS_AP[month]
        if month and month in dates.MONTHS_3_REV.keys():
            return dates.MONTHS_AP[dates.MONTHS_3_REV[month]]
        return month

    def get_link(self, year = None, month = None, day = None):
        path_parts = copy(self.path_parts)
        year = year or self.date.year
        if day and not month:
            month = self.date.month
        month = self.get_month(month)
        if year != self.date.year:
            month = day = None
        elif self.get_month(self.date.month) != month:
            day = None

        if day:
            if self.day_index:
                path_parts[self.day_index] = str(day)
            else:
                path_parts.append(str(day))
        elif self.day_index:
            path_parts.pop(self.day_index)

        if month:
            if self.month_index:
                path_parts[self.month_index] = str(month)
            else:
                path_parts.append(str(month))
        elif self.month_index:
            path_parts.pop(self.month_index)

        if year:
            if self.year_index:
                path_parts[self.year_index] = str(year)
            else:
                path_parts.append(str(year))

        return '/'.join(path_parts) + '/'

    def render(self, context):
        try:
            self.context = context
            self.parse_request(context)
            path = self.request.META['PATH_INFO']
            self.parse_date(path)

            years, months, days = self.parse_date_lists(context)

            root_div = class_div % 'dd_date'
            root_parts = []

            year_div = class_div % 'dd_year'
            yr_spans = []
            yr_span = class_span % 'dd_yr'
            yr_span_disabled = class_span % 'dd_yr dd_disabled'
            yr_span_selected = class_span % 'dd_yr dd_selected'
            if years:
                all_years = list(range(min(years), max(years) + 1))
            else:
                all_years = years
            for year in all_years:
                if year == self.date.year or year in years:
                    ystr = link_tag %(self.get_link(year), year)
                    if year == self.date.year:
                        yr_spans.append(yr_span_selected % ystr)
                    else:
                        yr_spans.append(yr_span % ystr)
                else:
                    ystr = str(year)
                    yr_spans.append(yr_span_disabled % ystr)
            year_div  %= ''.join(yr_spans)
            root_parts.append(year_div)

            if self.date.year and self.months(self.date.year):
                month_div = class_div % 'dd_month'
                mo_span = class_span % 'dd_mo'
                mo_span_disabled = class_span % 'dd_mo dd_disabled'
                mo_span_selected = class_span % 'dd_mo dd_selected'
                mo_spans = []
                all_months = list([i+1 for i in range(12)])
                for month in list(all_months):
                    mstr = self.get_readable_month(month)
                    if month == self.date.month or month in months:
                        link = link_tag %(self.get_link(month = month), unicode(mstr))
                        if self.date.month == month:
                            mo_spans.append(mo_span_selected % link)
                        else:
                            mo_spans.append(mo_span % link)
                    else:
                        mo_spans.append(mo_span_disabled % unicode(mstr))
                month_div %= ''.join(mo_spans)
                root_parts.append(month_div)

            if self.date.year and self.date.month and self.days(self.date.year, self.date.month):
                day_div = class_div % 'dd_day'
                dy_span = class_span % 'dd_dy'
                dy_span_disabled = class_span % 'dd_dy dd_disabled'
                dy_span_selected = class_span % 'dd_dy dd_selected'
                day_spans = []

                all_days = list([i+1 for i in range(max(max(calendar.monthcalendar(self.date.year, self.date.month))))])
                for day in list(all_days):
                    if day != self.date.day and day in days:
                        day_spans.append(dy_span % link_tag %(self.get_link(day = day), day))
                    else:
                        if self.date.day == day:
                            day_spans.append(dy_span_selected % day)
                        else:
                            day_spans.append(dy_span_disabled % day)
                day_div %= ''.join(day_spans)
                root_parts.append(day_div)

            root_div %= ''.join(root_parts)
            return mark_safe(root_div)
        except:
            log.error(traceback.format_exc())
            return ''


text:
<?php

require(dirname(__FILE__) . '/Error.php');

/**
 * Send With Us PHP Client
 * @author matt@sendwithus.com
 */

class API {
    private $API_KEY = 'THIS_IS_A_TEST_API_KEY';
    private $API_HOST = 'api.sendwithus.com';
    private $API_PORT = '443';
    private $API_PROTO = 'https';
    private $API_VERSION = '1';
    private $API_HEADER_KEY = 'X-SWU-API-KEY';
    private $API_HEADER_CLIENT = 'X-SWU-API-CLIENT';
    private $API_CLIENT_VERSION = "2.0.2";
    private $API_CLIENT_STUB = "php-%s";

    private $DEBUG = false;

    public function __construct($api_key, $options = array()) {
        $this->API_KEY = $api_key;
        $this->API_CLIENT_STUB = sprintf($this->API_CLIENT_STUB,
            $this->API_CLIENT_VERSION);

        foreach ($options as $key => $value) {
            $this->$key = $value;
        }
    }

    /**
     * Send an email
     *
     * The additional optional parameters are as follows:
     *     'email_data' - Default is null. Array of variables to merge into the template.
     *     'sender' - Default is null. Array ("address", "name", "reply_to") of sender.
     *     'cc' - Default is null. Array of ("address", "name") for carbon copy.
     *     'bcc' - Default is null. Array of ("address", "name") for blind carbon copy.
     *     'inline' - Default is null. String, path to file to include inline.
     *     'tags' - Default is null. Array of strings to tag email send with.
     *     'version_name' - Default is blank. String, name of version to send
     *
     * @param string $email_id ID of email to send
     * @param array $recipient array of ("address", "name") to send to
     * @param array $args (optional) additional optional parameters
     * @return array API response object
     */
    public function send($email_id, $recipient, $args = null) {
        $endpoint = "send";

        $payload = array(
            "email_id" => $email_id,
            "recipient" => $recipient
        );

        if (is_array($args)) {
            $payload = array_merge($args, $payload);
        }

        // Optional inline attachment
        if (isset($payload['inline'])) {
            $inline_attachment_path = $payload['inline'];

            $payload["inline"] = array(
                "id" => basename($inline_attachment_path),
                "data" => $this->encode_attachment($inline_attachment_path)
            );
        }

        // Optional file attachment
        if (isset($payload['files'])) {
            foreach ($payload['files'] as &$file) {
              $file = array(
                  "id" => basename($file),
                  "data" => $this->encode_attachment($file)
              );
            }
        }

        if ($this->DEBUG) {
            error_log(sprintf("sending email `%s` to \n", $email_id));
            error_log(print_r($recipient, true));
            if (isset($payload['sender'])) {
                error_log(sprintf("\nfrom\n"));
                error_log(print_r($payload['sender'], true));
            }
            error_log(sprintf("\nwith\n"));
            error_log(print_r($payload, true));
        }

        return $this->api_request($endpoint, $payload);
    }

    /**
     * Get Emails
     *
     * @return array API response object.
     */
    public function emails() {
        $endpoint = "templates";
        $payload = NULL;
        return $this->api_request($endpoint, $payload, null, "GET");
    }

    /**
     * Create Customer
     *
     * @param string $email customer email
     * @param array $data customer data to
     *
     * @return array API response object.
     */
    public function create_customer($email, $data=null) {
        $endpoint = "customers";
        $payload = array("email" => $email);

        if (is_array($data)) {
            $payload['data'] = $data;
        }

        return $this->api_request($endpoint, $payload);
    }

    /**
     * Update Customer
     *
     * @param string $email customer email
     * @param array $data customer data to
     *
     * @return array API response object.
     */
    public function update_customer($email, $data=null) {
        return $this->create_customer($email, $data);
    }

    /**
     * Delete Customer
     *
     * @param string $email customer email
     * @param array $data customer data to
     *
     * @return array API response object.
     */
    public function delete_customer($email) {
        $endpoint = "customers/" . $email;
        $payload = NULL;
        return $this->api_request($endpoint, $payload, null, "DELETE");
    }

    /**
     * Create an Email
     *
     * @param string $name name of the email template
     * @param string $subject subject line for the email template
     * @param string $html HTML code for the email template
     * @param string $text Optional text version of the email template
     * @return array API response object
     */
    public function create_email($name, $subject, $html, $text=null) {
        $endpoint = "templates";

        $payload = array(
            "name" => $name,
            "subject" => $subject,
            "html" => $html
        );

        // set optional text
        if ($text) {
            $payload["text"] = $text;
        }

        if ($this->DEBUG) {
            error_log(sprintf("creating email with name %s and subject %s\n", $name, $subject));
        }

        return $this->api_request($endpoint, $payload);
    }

    /**
     * Get Email Send Logs
     *
     * @param string $count (optional) the number of logs to return. Max: 100
     * @param array $offset (optional) offset the number of logs to return
     * @return array API response object
     */
    public function logs($count = 100, $offset = 0) {
        $endpoint = "logs";

        $params = array(
            "count" => $count,
            "offset" => $offset
        );

        return $this->api_request($endpoint, null, $params, "GET");
    }

    /**
     * Unsubscribe email address from active drips
     *
     * @param string $email_address the email to unsubscribe from active drips
     * @return array API response object
     */
    public function drip_unsubscribe($email_address) {
        $endpoint = "drips/unsubscribe";

        $payload = array(
            "email_address" => $email_address
        );

        return $this->api_request($endpoint, $payload);
    }

    /**
     * Render an email template with the provided data
     *
     * The additional optional parameters are as follows:
     *     'template_data' - Default is null. Array of variables to merge into the template.
     *
     * @param string $email_id ID of email to send
     * @param array $args (optional) additional optional parameters
     * @return array API response object
     */
    public function render($email_id, $args = null) {
        $endpoint = "render";

        $payload = array(
            "template_id" => $email_id
        );

        if (is_array($args)) {
            $payload = array_merge($args, $payload);
        }

        if ($this->DEBUG) {
            error_log(sprintf("rendering template `%s` with \n", $email_id));
            error_log(print_r($payload, true));
        }

        return $this->api_request($endpoint, $payload);
    }

    /**
     * Helper function to Base64 encode files and return the encoded data
     *
     * @param string $path Local path of the file to encode
     * @return string/false the encoded file data or false on failure
     */
    private function encode_attachment($path) {
      if (!is_string($path)) {
          $e = sprintf("inline parameter must be path to file as string, received: %s", gettype($path));
          throw new API_Error($e);
      }

      $file_data = file_get_contents($path);

      return base64_encode($file_data);
    }

    private function build_path($endpoint) {
        $path = sprintf("%s://%s:%s/api/v%s/%s",
            $this->API_PROTO,
            $this->API_HOST,
            $this->API_PORT,
            $this->API_VERSION,
            $endpoint);

        return $path;
    }

    private function api_request($endpoint, $payload, $params = null, $request = "POST") {
        $path = $this->build_path($endpoint);
        $response = array();

        if ($params)
        {
            $path = $path . '?' . http_build_query($params);
        }

        $ch = curl_init($path);

        curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request);

        // set payload
        $payload_string = null;
        if ($payload) {
            $payload_string = json_encode($payload);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $payload_string);
        }

        // set headers
        if ($payload && $request == "POST") {
            $httpheaders = array(
                'Content-Type: application/json',
                'Content-Length: ' . strlen($payload_string),
                $this->API_HEADER_KEY . ": " . $this->API_KEY,
                $this->API_HEADER_CLIENT . ": " . $this->API_CLIENT_STUB
                );
        }
        else {
            $httpheaders = array(
                'Content-Type: application/json',
                $this->API_HEADER_KEY . ": " . $this->API_KEY,
                $this->API_HEADER_CLIENT . ": " . $this->API_CLIENT_STUB
                );
        }

        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
        curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__) . '/data/ca-certificates.pem');
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheaders);

        if ($this->DEBUG) {
            // enable curl verbose output to STDERR
            curl_setopt($ch, CURLOPT_VERBOSE, true);

            error_log(sprintf("payload: %s\r\n", $payload_string));
            error_log(sprintf("path: %s\r\n", $path));
        }

        try {
            $result = curl_exec($ch);
            $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
            $response = json_decode( $result );

            if ($code != 200) {
                if ($this->DEBUG) {
                    error_log("error: " . curl_error($ch));
                }

                throw new API_Error("Request was not successful", $code, $result, $response);
            }
        } catch (API_Error $e) {
            if ($this->DEBUG) {
                error_log(sprintf("Caught exception: %s\r\n", $e->getMessage()));
                error_log(sprintf("Caught status: %s\r\n", $e->getStatus()));
                error_log(sprintf("Caught body: %s\r\n", $e->getBody()));
                error_log(sprintf("Caught json: %s\r\n", $e->getJson()));
                error_log(print_r($e, true));
            }

            $response = (object) array(
                'code' => $code,
                'status' => "error",
                'success' => false,
                'exception' => $e
                );
        }

        curl_close($ch);

        return $response;
    }
}

?>


text:
import json
import os
import sys

from binascii import hexlify
from appdirs import site_config_dir

config_file_dir = site_config_dir("Prophasis", "Prophasis")
config_file_path = os.path.join(config_file_dir, "web.conf.json")

def get_config():
    try:
        with open(config_file_path, "r") as f:
            config = json.load(f)
    except FileNotFoundError:
        raise SystemExit("Config file, config.json not found at {0}, perhaps "
            "you need to run the setup script?".format(config_file_path))

    return config

def get_config_value(config, key):
    try:
        return config[key]
    except KeyError:
        raise SystemExit("Key \"{0}\" does not exist in config.json, did you "
            "run setup?".format(key))


text:
package com.test.exceptions;

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class CheckedUncheckedException {
	public static void main(String[] args) {

		try {
			//checked Exception FileNotFoundException
			PrintWriter pw = new PrintWriter("c://abc.txt");
			pw.println("hello");

		}	catch (FileNotFoundException e) {
			e.printStackTrace();
		}

		//unchecked exception (Divide by zero)
		System.out.println(10/0);
		//unchecked exception (Array Index Out of bounds
		System.out.println(args[2]);
	}
}


text:
package com.sudwood.advancedutilities.blocks;

import com.sudwood.advancedutilities.AdvancedUtilities;
import com.sudwood.advancedutilities.tileentity.TileEntityChunkLoader;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.IIcon;
import net.minecraft.world.World;

public class BlockChunkLoader extends BlockContainer {

	private int type;
	private IIcon side = null;
	public BlockChunkLoader(Material material, int type) {
		super(material);
		this.type = type;
		// TODO Auto-generated constructor stub
	}

	@SideOnly(Side.CLIENT)
    public void registerBlockIcons(IIconRegister icon)
    {
		if(type == 0)
			this.blockIcon = icon.registerIcon("advancedutilities:chunkloader"+AdvancedUtilities.textureSize);
		else if(type == 1)
		{
			side = icon.registerIcon("advancedutilities:dumychunkchestup");
			this.blockIcon = icon.registerIcon("advancedutilities:dumychunkchesttop");
		}
		else if(type == 2)
		{
			side = icon.registerIcon("advancedutilities:dumytank");
			this.blockIcon = icon.registerIcon("advancedutilities:dumytanktop");
		}
		else if(type == 3)
		{
			side = icon.registerIcon("advancedutilities:dumychunktankup");
			this.blockIcon = icon.registerIcon("advancedutilities:dumychunktanktop");
		}
    }

	@Override
	public TileEntity createNewTileEntity(World var1, int var2) {
		// TODO Auto-generated method stub
		if(type == 0)
		return new TileEntityChunkLoader();
		else
			return null;
	}
	@Override
	public void onNeighborBlockChange(World world, int x, int y, int z, Block neighbor)
    {
		if(!world.isRemote && type == 0)
		{
			((TileEntityChunkLoader) world.getTileEntity(x, y, z)).setIsGettingRedstone(world.isBlockIndirectlyGettingPowered(x, y, z));
		}
    }
	public void onBlockAdded(World world, int x, int y, int z)
	{
		super.onBlockAdded(world, x, y, z);
		if(!world.isRemote && type == 0)
		{
			TileEntityChunkLoader tile = (TileEntityChunkLoader) world.getTileEntity(x, y, z);
			tile.loadChunks();
		}
	}
	public void breakBlock(World world, int x, int y, int z, Block oldBlock, int oldMetadata)
    {
		if(!world.isRemote && type == 0)
		{
			TileEntityChunkLoader tile = (TileEntityChunkLoader) world.getTileEntity(x, y, z);
			tile.unloadChunks();
		}
		super.breakBlock(world, x, y, z, oldBlock, oldMetadata);
    }

	@Override
	@SideOnly(Side.CLIENT)
    public IIcon getIcon(int iside, int meta)
    {
		if(type == 0)
		return this.blockIcon;
		else
		{
			if(iside == 1)
				return this.blockIcon;
			else
				return side;
		}

    }
}


text:
typedef UINT (CALLBACK * LPFNDLLFUNC1)(HDC, CONST PTRIVERTEX, DWORD, CONST PVOID, DWORD, DWORD);

class CGradientStatic : public CWindowImpl<CGradientStatic, CStatic>
{
protected:
	int m_nLeftSpacing;
	long m_lLeft;
	long m_lRight;
	long m_lText;
	int m_nAlign;
	HINSTANCE m_hinst_msimg32;
	BOOL m_bCanDoGradientFill;
	LPFNDLLFUNC1 m_dllfunc_GradientFill;
	HFONT m_hFont;

	static void DrawGradRect(CDC * pDC, CRect rc, COLORREF clrLeft, COLORREF clrRight);

public:
	CGradientStatic();

	~CGradientStatic();

	BEGIN_MSG_MAP(CGradientStatic)
		MESSAGE_HANDLER(WM_PAINT, OnPaint)
		MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBkgnd)
	END_MSG_MAP()

	LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

	LRESULT OnEraseBkgnd(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);

	void SetWindowText(LPCSTR szpStr);

	void SetColor(long l) { m_lLeft = l; };

	void SetGradientColor(long l) { m_lRight = l; };

	void SetTextColor(long l) { m_lText = l; };

	void SetReverseGradient();

	void SetLeftSpacing(int nNoOfPixels) { m_nLeftSpacing = nNoOfPixels; };

	void SetTextAlign(int nAlign) { m_nAlign = nAlign; }; //0 - left, 1 - center, 2 -right

	void ChangeFont();
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_GRADIENTSTATIC_H__0709E3A1_C8B6_11D6_B74E_004033A0FB96__INCLUDED_)


text:
public class MergedTrigger
{
}


text:
import React from 'react';

let jqxNavBar = React.createClass ({
  getInitialState: function () {
    return { value: '' };
  },
  componentDidMount: function () {
      let options = this.manageAttributes();
    this.createComponent(options);
  },
  manageAttributes: function () {
      let properties = ['columns','disabled','height','minimized','minimizeButtonPosition','minimizedHeight','minimizedTitle','orientation','popupAnimationDelay','rtl','selection','selectedItem','theme','width'];
      let options = {};
    for(let item in this.props) {
        if(item === 'settings') {
          for(let itemTwo in this.props[item]) {
            options[itemTwo] = this.props[item][itemTwo];
              }
          } else {
              if(properties.indexOf(item) !== -1) {
              options[item] = this.props[item];
              }
          }
      }
      return options;
    },
  createComponent : function (options) {
    if(!this.style) {
        for (let style in this.props.style) {
          $('#' +this.componentSelector).css(style, this.props.style[style]);
        }
    }
    if(this.props.className !== undefined) {
      let classes = this.props.className.split(' ');
      for (let i = 0; i < classes.length; i++ ) {
        $('#' +this.componentSelector).addClass(classes[i]);
      }
    }
    if(!this.template) {
        $('#' +this.componentSelector).html(this.props.template);
    }
    $('#' +this.componentSelector).jqxNavBar(options);
  },
  generateID : function () {
    return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
  },
  setOptions: function (options) {
    $('#' +this.componentSelector).jqxNavBar('setOptions', options);
  },
  getOptions: function () {
    if(arguments.length === 0) {
      throw Error('At least one argument expected in getOptions()!');
    }
    let resultToReturn = {};
    for(let i = 0; i < arguments.length; i++) {
      resultToReturn[arguments[i]] = $('#' +this.componentSelector).jqxNavBar(arguments[i]);
    }
    return resultToReturn;
  },
  on: function (name,callbackFn) {
    $('#' +this.componentSelector).on(name,callbackFn);
  },
  off: function (name) {
    $('#' +this.componentSelector).off(name);
  },
  columns: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("columns", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("columns");
    }
  },
  disabled: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("disabled", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("disabled");
    }
  },
  height: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("height", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("height");
    }
  },
  minimized: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("minimized", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("minimized");
    }
  },
  minimizeButtonPosition: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("minimizeButtonPosition", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("minimizeButtonPosition");
    }
  },
  minimizedHeight: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("minimizedHeight", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("minimizedHeight");
    }
  },
  minimizedTitle: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("minimizedTitle", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("minimizedTitle");
    }
  },
  orientation: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("orientation", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("orientation");
    }
  },
  popupAnimationDelay: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("popupAnimationDelay", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("popupAnimationDelay");
    }
  },
  rtl: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("rtl", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("rtl");
    }
  },
  selection: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("selection", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("selection");
    }
  },
  selectedItem: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("selectedItem", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("selectedItem");
    }
  },
  theme: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("theme", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("theme");
    }
  },
  width: function (arg) {
    if (arg !== undefined) {
      $("#" +this.componentSelector).jqxNavBar("width", arg)
    } else {
      return $("#" +this.componentSelector).jqxNavBar("width");
    }
  },
  close: function () {
    $("#" +this.componentSelector).jqxNavBar("close");
  },
  destroy: function () {
    $("#" +this.componentSelector).jqxNavBar("destroy");
  },
  getSelectedIndex: function () {
    return $("#" +this.componentSelector).jqxNavBar("getSelectedIndex");
  },
  open: function () {
    $("#" +this.componentSelector).jqxNavBar("open");
  },
  selectAt: function (index) {
    $("#" +this.componentSelector).jqxNavBar("selectAt", index);
  },
  render: function () {
    let id = 'jqxNavBar' + this.generateID() + this.generateID();
    this.componentSelector = id;    return (

{this.value ? null : this.props.value}{this.props.children}

    )
  }
});

module.exports = jqxNavBar;


text:
package com.intellij.codeInspection.dataFlow.fix;

import javax.annotation.Nonnull;

import com.intellij.codeInspection.InspectionsBundle;
import com.intellij.codeInspection.LocalQuickFix;
import com.intellij.codeInspection.ProblemDescriptor;
import com.intellij.openapi.project.Project;
import com.intellij.psi.JavaPsiFacade;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiExpression;
import com.intellij.psi.PsiInstanceOfExpression;

/**
 * @author peter
 */
public class RedundantInstanceofFix implements LocalQuickFix
{
	@Override
	@Nonnull
	public String getFamilyName()
	{
		return InspectionsBundle.message("inspection.data.flow.redundant.instanceof.quickfix");
	}

	@Override
	public void applyFix(@Nonnull Project project, @Nonnull ProblemDescriptor descriptor)
	{
		final PsiElement psiElement = descriptor.getPsiElement();
		if(psiElement instanceof PsiInstanceOfExpression)
		{
			PsiExpression compareToNull = JavaPsiFacade.getInstance(psiElement.getProject()).getElementFactory().
					createExpressionFromText(((PsiInstanceOfExpression) psiElement).getOperand().getText() + " != null", psiElement.getParent());
			psiElement.replace(compareToNull);
		}
	}
}


text:
import {Component, OnInit, Input} from "angular2/core";

@Component({
    selector: 'server-list-view',
    templateUrl: 'app/dev/4-AngularTheme/list-view/server-list-view/server-list-view.tpl.html',
    properties: ['model']
})
export class ServerListViewComponent {

    model:any[];

    constructor() {
        this.model = [];
    }

}


text:
package com.pt.schooldistrict.dao;

import com.pt.schooldistrict.model.Estate;
import com.pt.schooldistrict.model.House;

import java.util.List;

/**
 * Created by da.zhang on 16/1/21.
 */
public interface HouseDao {
    void insert(House house);

    List<House> listAll();

    void select(String name);

    House selectById(int id);

    void deleteById(int id);

    List<House> selectByEstateId(int id);

    List<House> selectOnlineByEstateId(int id);

    void updateById(House house);

    House selectByPageId(String pageId);

    House selectOnlineByPageId(String pageId);

    /**
     * 更新一个estateId内的所有状态是online的house至gone状态
     * @param estateId
     */
    void updateEstateStatus(int estateId);

    void updateStatusById(House house);

}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Chuye.Kafka.Serialization;

namespace Chuye.Kafka.Protocol {
    //ProduceResponse => [TopicName [Partition ErrorCode Offset]]
    //  TopicName => string
    //  Partition => int32
    //  ErrorCode => int16
    //  Offset => int64
    public class ProduceResponse : Response {
        public ProduceResponseTopicPartition[] TopicPartitions { get; set; }

        protected override void DeserializeContent(KafkaReader reader) {
            TopicPartitions = reader.ReadArray<ProduceResponseTopicPartition>();
        }

        protected override void SerializeContent(KafkaWriter writer) {
            writer.Write(TopicPartitions);
        }

        public override void TryThrowFirstErrorOccured() {
            var errors = TopicPartitions.SelectMany(x => x.Details)
                .Select(x => x.ErrorCode)
                .Where(x => x != ErrorCode.NoError);
            if (errors.Any()) {
                throw new ProtocolException(errors.First());
            }
        }
    }

    public class ProduceResponseTopicPartition : IKafkaReadable, IKafkaWriteable {
        public String TopicName { get; set; }
        public ProduceResponseTopicPartitionDetail[] Details { get; set; }

        public void FetchFrom(KafkaReader reader) {
            TopicName = reader.ReadString();
            Details   = reader.ReadArray<ProduceResponseTopicPartitionDetail>();
        }

        public void SaveTo(KafkaWriter writer) {
            writer.Write(TopicName);
            writer.Write(Details);
        }
    }

    public class ProduceResponseTopicPartitionDetail : IKafkaReadable, IKafkaWriteable {
        public Int32 Partition { get; set; }
        //Possible Error Codes: (TODO)
        public ErrorCode ErrorCode { get; set; }
        public Int64 Offset { get; set; }

        public void FetchFrom(KafkaReader reader) {
            Partition = reader.ReadInt32();
            ErrorCode = (ErrorCode)reader.ReadInt16();
            Offset    = reader.ReadInt64();
        }

        public void SaveTo(KafkaWriter writer) {
            writer.Write(Partition);
            writer.Write((Int16)ErrorCode);
            writer.Write(Offset);
        }
    }
}


text:
package v1alpha1

import (
	internalinterfaces "github.com/argoproj/argo-cd/v2/pkg/client/informers/externalversions/internalinterfaces"
)

// Interface provides access to all the informers in this group version.
type Interface interface {
	// AppProjects returns a AppProjectInformer.
	AppProjects() AppProjectInformer
	// Applications returns a ApplicationInformer.
	Applications() ApplicationInformer
	// ApplicationSets returns a ApplicationSetInformer.
	ApplicationSets() ApplicationSetInformer
}

type version struct {
	factory          internalinterfaces.SharedInformerFactory
	namespace        string
	tweakListOptions internalinterfaces.TweakListOptionsFunc
}

// New returns a new Interface.
func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface {
	return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions}
}

// AppProjects returns a AppProjectInformer.
func (v *version) AppProjects() AppProjectInformer {
	return &appProjectInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}

// Applications returns a ApplicationInformer.
func (v *version) Applications() ApplicationInformer {
	return &applicationInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}

// ApplicationSets returns a ApplicationSetInformer.
func (v *version) ApplicationSets() ApplicationSetInformer {
	return &applicationSetInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}


text:
require 'spec_helper'

describe ContentsController do
  context '#index' do
    it 'returns a list of contents' do
      get :index
      assigns(:contents).should be
    end
  end
  context '#edit' do
    before { Content.create!(slug:'foo',title:'foo') }
    it 'returns the content instance' do
      c = Content.first
      get :edit, id: c.id
      assigns(:content).should == c
    end
    it 'can update the fields in content' do
      get :edit, id: Content.first.id
      c = assigns(:content)
      c.title.should == 'foo'
      c.title = 'updated'
      put :update, id: c.id, content: c.attributes
      Content.find(c.id).title.should == 'updated'
    end
    it 'can update the fields in the embedded SEO document' do
    end
  end
  context '#create' do
  end
  context '#renovate' do
  end
  context '#update' do
  end
end


text:
FacebookIOS Module

Description

TODO: Enter your module description here

Accessing the FacebookIOS Module

To access this module from JavaScript, you would do the following:

var facebookios = require("com.facebook");

The facebookios variable is a reference to the Module object.

Reference

TODO: If your module has an API, you should document
the reference here.

facebookios.function

TODO: This is an example of a module function.

facebookios.property

TODO: This is an example of a module property.

Usage

TODO: Enter your usage example here

Author

TODO: Enter your author name, email and other contact
details you want to share here.

License

TODO: Enter your license/legal information here.


text:
package com.wso2telco.dep.oneapivalidation.service.impl.smsmessaging;

import com.wso2telco.dep.oneapivalidation.exceptions.CustomException;
import com.wso2telco.dep.oneapivalidation.service.IServiceValidate;
import com.wso2telco.dep.oneapivalidation.util.UrlValidator;
import com.wso2telco.dep.oneapivalidation.util.Validation;
import com.wso2telco.dep.oneapivalidation.util.ValidationRule;

import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;

// TODO: Auto-generated Javadoc
/**
 * The Class ValidateSendSms.
 */
public class ValidateSendSms implements IServiceValidate {

    /** The validation rules. */
    private final String[] validationRules = {"outbound", "*", "requests"};

    /* (non-Javadoc)
     * @see com.wso2telco.oneapivalidation.service.IServiceValidate#validate(java.lang.String)
     */
    public void validate(String json) throws CustomException {

        List<String> addresses = new ArrayList<String>(); // Note there can be multiple addresses specified
        String senderAddress = null;
        String message = null;
        String clientCorrelator = null;
        String notifyURL = null;
        String callbackData = null;
        String senderName = null;

        try {
            JSONObject objJSONObject = new JSONObject(json);

            JSONObject objOtboundSMSMessageRequest = (JSONObject) objJSONObject.get("outboundSMSMessageRequest");

            if (!objOtboundSMSMessageRequest.isNull("address")) {

                JSONArray addressArray = objOtboundSMSMessageRequest.getJSONArray("address");
                for (int a = 0; a < addressArray.length(); a++) {
                    addresses.add(nullOrTrimmed(addressArray.getString(a)));
                }
            }

            if (!objOtboundSMSMessageRequest.isNull("senderAddress")) {

                senderAddress = nullOrTrimmed(objOtboundSMSMessageRequest.getString("senderAddress"));
            }

            JSONObject objOutboundSMSTextMessage = (JSONObject) objOtboundSMSMessageRequest.get("outboundSMSTextMessage");
            if (objOutboundSMSTextMessage.get("message") != null) {

                message = nullOrTrimmed(objOutboundSMSTextMessage.getString("message"));
            }

            if (!objOtboundSMSMessageRequest.isNull("clientCorrelator")) {

                clientCorrelator = nullOrTrimmed(objOtboundSMSMessageRequest.getString("clientCorrelator"));
            }

            if (!objOtboundSMSMessageRequest.isNull("receiptRequest")) {

                JSONObject objReceiptRequest = (JSONObject) objOtboundSMSMessageRequest.get("receiptRequest");
                if (!objReceiptRequest.isNull("callbackData")) {

                    callbackData = nullOrTrimmed(objReceiptRequest.getString("callbackData"));
                }
                if (!objReceiptRequest.isNull("notifyURL")) {

                    notifyURL = nullOrTrimmed(objReceiptRequest.getString("notifyURL"));
                }
            }
            if (!objOtboundSMSMessageRequest.isNull("senderName")) {

                senderName = nullOrTrimmed(objOtboundSMSMessageRequest.getString("senderName"));
            }
        } catch (Exception e) {
            //logger.debug("Response JSON: " + "test");
            System.out.println("Manipulating recived JSON Object: " + e);
            throw new CustomException("POL0299", "Unexpected Error", new String[]{""});
        }

        ValidationRule[] rules = {
            new ValidationRule(ValidationRule.VALIDATION_TYPE_MANDATORY_TEL, "senderAddress", senderAddress),
            new ValidationRule(ValidationRule.VALIDATION_TYPE_MANDATORY_TEL, "address", addresses.toArray(new String[addresses.size()])),
            new ValidationRule(ValidationRule.VALIDATION_TYPE_MANDATORY_MESSAGE, "message", message),
            new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "clientCorrelator", clientCorrelator),
            new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "senderName", senderName),
            new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL_URL, "notifyURL", notifyURL),
            new ValidationRule(ValidationRule.VALIDATION_TYPE_OPTIONAL, "callbackData", callbackData),};

        Validation.checkRequestParams(rules);
    }

    /**
     * Null or trimmed.
     *
     * @param s the s
     * @return the string
     */
    private static String nullOrTrimmed(String s) {
        String rv = null;
        if (s != null && s.trim().length() > 0) {
            rv = s.trim();
        }
        return rv;
    }

    /* (non-Javadoc)
     * @see com.wso2telco.oneapivalidation.service.IServiceValidate#validate(java.lang.String[])
     */
    public void validate(String[] params) throws CustomException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /* (non-Javadoc)
     * @see com.wso2telco.oneapivalidation.service.IServiceValidate#validateUrl(java.lang.String)
     */
    public void validateUrl(String pathInfo) throws CustomException {
        String[] requestParts = null;
        if (pathInfo != null) {
            if (pathInfo.startsWith("/")) {
                pathInfo = pathInfo.substring(1);
            }
            requestParts = pathInfo.split("/");
        }

        UrlValidator.validateRequest(requestParts, validationRules);
    }
}


text:
const adjetiveisor = require('../adjetiveisor')
const adjet = adjetiveisor()

test('verbose method returns true if true value received', () => {
  expect(adjet.verbose(true)).toBe(true)
})

test('verbose method returns false if no value received', () => {
  expect(adjet.verbose()).toBe(false)
})

test('verbose method returns false if anything but true is received', () => {
  expect(adjet.verbose('asdf')).toBe(false)
})