text:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ChangeListManager">
    <list default="true" id="73a3c5c3-7c3e-462f-8cf6-846e1d9d5da9" name="Default" comment="" />
    <ignored path="All-Tasks.iws" />
    <ignored path=".idea/workspace.xml" />
    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
    <option name="TRACKING_ENABLED" value="true" />
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
    <option name="LAST_RESOLUTION" value="IGNORE" />
  </component>
  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
  <component name="CreatePatchCommitExecutor">
    <option name="PATCH_PATH" value="" />
  </component>
  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
  <component name="FavoritesManager">
    <favorites_list name="All-Tasks" />
  </component>
  <component name="FileEditorManager">
    <leaf>
      <file leaf-file-name="styles.css" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 2/task-files/styles.css">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="0" column="3" selection-start-line="0" selection-start-column="3" selection-end-line="0" selection-end-column="3" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="scripts.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 2/task-files/scripts.js">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="130" column="5" selection-start-line="130" selection-start-column="5" selection-end-line="130" selection-end-column="5" />
              <folding>
                <element signature="e#297#399#0" expanded="false" />
                <element signature="e#800#1964#0" expanded="false" />
                <element signature="e#1999#2279#0" expanded="false" />
                <element signature="e#2315#3333#0" expanded="false" />
                <element signature="e#3365#4340#0" expanded="false" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="scripts.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 1/task-files/scripts.js">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="-1.9310344">
              <caret line="103" column="0" selection-start-line="103" selection-start-column="0" selection-end-line="103" selection-end-column="0" />
              <folding>
                <element signature="e#1956#2008#0" expanded="false" />
                <element signature="e#2196#2252#0" expanded="false" />
                <element signature="e#2336#2391#0" expanded="false" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 1/task-files/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="29" column="37" selection-start-line="29" selection-start-column="37" selection-end-line="29" selection-end-column="37" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 2/task-files/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="9" column="26" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="26" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="index.html" pinned="false" current-in-tab="true">
        <entry file="file://$PROJECT_DIR$/Task 3/task-files/index.html">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.72922254">
              <caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="scripts.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 3/task-files/scripts.js">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
              <folding />
            </state>
          </provider>
        </entry>
      </file>
      <file leaf-file-name="handlebars.js" pinned="false" current-in-tab="false">
        <entry file="file://$PROJECT_DIR$/Task 3/task-files/handlebars.js">
          <provider selected="true" editor-type-id="text-editor">
            <state vertical-scroll-proportion="0.0">
              <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
              <folding>
                <element signature="n#!!doc" expanded="true" />
              </folding>
            </state>
          </provider>
        </entry>
      </file>
    </leaf>
  </component>
  <component name="IdeDocumentHistory">
    <option name="CHANGED_PATHS">
      <list>
        <option value="$PROJECT_DIR$/Task 3/task-files/index.html" />
        <option value="$PROJECT_DIR$/Task 1/task-files/index.html" />
        <option value="$PROJECT_DIR$/Task 2/task-files/index.html" />
        <option value="$PROJECT_DIR$/Task 1/task-files/scripts.js" />
        <option value="$PROJECT_DIR$/Task 2/task-files/scripts.js" />
      </list>
    </option>
  </component>
  <component name="JsBuildToolGruntFileManager" detection-done="true" />
  <component name="JsGulpfileManager">
    <detection-done>true</detection-done>
  </component>
  <component name="NamedScopeManager">
    <order />
  </component>
  <component name="ProjectFrameBounds">
    <option name="x" value="-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 />
    </navigator>
    <panes>
      <pane id="Scope" />
      <pane id="ProjectPane">
        <subPane>
          <PATH>
            <PATH_ELEMENT>
              <option name="myItemId" value="All-Tasks" />
              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
            </PATH_ELEMENT>
          </PATH>
        </subPane>
      </pane>
      <pane id="Scratches" />
    </panes>
  </component>
  <component name="PropertiesComponent">
    <property name="settings.editor.selected.configurable" value="Settings.JavaScript.Linters.JSLint" />
    <property name="settings.editor.splitter.proportion" value="0.2" />
    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    <property name="WebServerToolWindowFactoryState" value="false" />
    <property name="HbShouldOpenHtmlAsHb" value="" />
    <property name="recentsLimit" value="5" />
    <property name="FullScreen" value="false" />
  </component>
  <component name="RunManager" selected="Node.js.scripts.js">
    <configuration default="false" name="scripts.js" type="NodeJSConfigurationType" factoryName="Node.js" temporary="true" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="scripts.js" working-dir="$PROJECT_DIR$/Task 1/task-files">
      <method />
    </configuration>
    <configuration default="true" type="DartCommandLineRunConfigurationType" factoryName="Dart Command Line Application">
      <method />
    </configuration>
    <configuration default="true" type="DartUnitRunConfigurationType" factoryName="DartUnit">
      <method />
    </configuration>
    <configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
      <envs />
      <method />
    </configuration>
    <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
      <method />
    </configuration>
    <configuration default="true" type="JsTestDriver-test-runner" factoryName="JsTestDriver">
      <setting name="configLocationType" value="CONFIG_FILE" />
      <setting name="settingsFile" value="" />
      <setting name="serverType" value="INTERNAL" />
      <setting name="preferredDebugBrowser" value="Chrome" />
      <method />
    </configuration>
    <configuration default="true" type="NodeJSConfigurationType" factoryName="Node.js" working-dir="">
      <method />
    </configuration>
    <configuration default="true" type="cucumber.js" factoryName="Cucumber.js">
      <option name="cucumberJsArguments" value="" />
      <option name="executablePath" />
      <option name="filePath" />
      <method />
    </configuration>
    <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
      <node-options />
      <gulpfile />
      <tasks />
      <arguments />
      <pass-parent-envs>true</pass-parent-envs>
      <envs />
      <method />
    </configuration>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="Node.js.scripts.js" />
    </list>
    <recent_temporary>
      <list size="1">
        <item index="0" class="java.lang.String" itemvalue="Node.js.scripts.js" />
      </list>
    </recent_temporary>
  </component>
  <component name="ShelveChangesManager" show_recycled="false" />
  <component name="SvnConfiguration">
    <configuration />
  </component>
  <component name="TaskManager">
    <task active="true" id="Default" summary="Default task">
      <changelist id="73a3c5c3-7c3e-462f-8cf6-846e1d9d5da9" name="Default" comment="" />
      <created>1438250845344</created>
      <option name="number" value="Default" />
      <updated>1438250845344</updated>
    </task>
    <servers />
  </component>
  <component name="ToolWindowManager">
    <frame x="-8" y="-8" width="1382" height="744" 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" weight="0.21522693" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
      <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32861635" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
    </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="12" />
    </breakpoint-manager>
    <watches-manager />
  </component>
  <component name="editorHistoryManager">
    <entry file="file://$PROJECT_DIR$/Task 2/task-files/styles.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="3" selection-start-line="0" selection-start-column="3" selection-end-line="0" selection-end-column="3" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 2/task-files/scripts.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="25" column="40" selection-start-line="25" selection-start-column="8" selection-end-line="25" selection-end-column="40" />
          <folding>
            <element signature="e#297#399#0" expanded="false" />
            <element signature="e#800#1964#0" expanded="false" />
            <element signature="e#1999#2279#0" expanded="false" />
            <element signature="e#2315#3333#0" expanded="false" />
            <element signature="e#3365#4340#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 1/task-files/scripts.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="69" column="0" selection-start-line="69" selection-start-column="0" selection-end-line="69" selection-end-column="0" />
          <folding>
            <element signature="e#1956#2008#0" expanded="false" />
            <element signature="e#2196#2252#0" expanded="false" />
            <element signature="e#2336#2391#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 1/task-files/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="29" column="37" selection-start-line="29" selection-start-column="37" selection-end-line="29" selection-end-column="37" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 2/task-files/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="9" column="26" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="26" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="1" column="0" selection-start-line="1" selection-start-column="0" selection-end-line="1" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/scripts.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 2/result/1.1. initial-three-columns.png">
      <provider selected="true" editor-type-id="images">
        <state />
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/result.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-0.116838485">
          <caret line="17" column="23" selection-start-line="17" selection-start-column="23" selection-end-line="17" selection-end-column="23" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/styles.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.2236842">
          <caret line="20" column="25" selection-start-line="20" selection-start-column="25" selection-end-line="20" selection-end-column="25" />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 1/task-files/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="29" column="37" selection-start-line="29" selection-start-column="37" selection-end-line="29" selection-end-column="37" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 2/task-files/styles.css">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="3" selection-start-line="0" selection-start-column="3" selection-end-line="0" selection-end-column="3" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 2/task-files/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="9" column="26" selection-start-line="9" selection-start-column="13" selection-end-line="9" selection-end-column="26" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 1/task-files/scripts.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="-1.9310344">
          <caret line="103" column="0" selection-start-line="103" selection-start-column="0" selection-end-line="103" selection-end-column="0" />
          <folding>
            <element signature="e#1956#2008#0" expanded="false" />
            <element signature="e#2196#2252#0" expanded="false" />
            <element signature="e#2336#2391#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 2/task-files/scripts.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="130" column="5" selection-start-line="130" selection-start-column="5" selection-end-line="130" selection-end-column="5" />
          <folding>
            <element signature="e#297#399#0" expanded="false" />
            <element signature="e#800#1964#0" expanded="false" />
            <element signature="e#1999#2279#0" expanded="false" />
            <element signature="e#2315#3333#0" expanded="false" />
            <element signature="e#3365#4340#0" expanded="false" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/scripts.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="6" column="22" selection-start-line="6" selection-start-column="22" selection-end-line="6" selection-end-column="22" />
          <folding />
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/handlebars.js">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.0">
          <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
          <folding>
            <element signature="n#!!doc" expanded="true" />
          </folding>
        </state>
      </provider>
    </entry>
    <entry file="file://$PROJECT_DIR$/Task 3/task-files/index.html">
      <provider selected="true" editor-type-id="text-editor">
        <state vertical-scroll-proportion="0.72922254">
          <caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
          <folding />
        </state>
      </provider>
    </entry>
  </component>
</project>

redpajama_set_name: RedPajamaGithub


text:
.class Lorg/simpleframework/xml/core/Comparer;
.super Ljava/lang/Object;
.source "Comparer.java"

# static fields
.field private static final NAME:Ljava/lang/String; = "name"

# instance fields
.field private final ignore:[Ljava/lang/String;

# direct methods
.method public constructor <init>()V
    .locals 3

    const/4 v0, 0x1

    new-array v0, v0, [Ljava/lang/String;

    const-string/jumbo v1, "name"

    const/4 v2, 0x0

    aput-object v1, v0, v2

    invoke-direct {p0, v0}, Lorg/simpleframework/xml/core/Comparer;-><init>([Ljava/lang/String;)V

    return-void
.end method

.method public varargs constructor <init>([Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p1, p0, Lorg/simpleframework/xml/core/Comparer;->ignore:[Ljava/lang/String;

    return-void
.end method

.method private isIgnore(Ljava/lang/reflect/Method;)Z
    .locals 7

    const/4 v6, 0x0

    invoke-virtual {p1}, Ljava/lang/reflect/Method;->getName()Ljava/lang/String;

    move-result-object v3

    iget-object v5, p0, Lorg/simpleframework/xml/core/Comparer;->ignore:[Ljava/lang/String;

    if-nez v5, :cond_1

    :cond_0
    return v6

    :cond_1
    iget-object v0, p0, Lorg/simpleframework/xml/core/Comparer;->ignore:[Ljava/lang/String;

    array-length v2, v0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v2, :cond_0

    aget-object v4, v0, v1

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_2

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    const/4 v5, 0x1

    return v5
.end method

# virtual methods
.method public equals(Ljava/lang/annotation/Annotation;Ljava/lang/annotation/Annotation;)Z
    .locals 11
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    const/4 v10, 0x0

    invoke-interface {p1}, Ljava/lang/annotation/Annotation;->annotationType()Ljava/lang/Class;

    move-result-object v7

    invoke-interface {p2}, Ljava/lang/annotation/Annotation;->annotationType()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v7}, Ljava/lang/Class;->getDeclaredMethods()[Ljava/lang/reflect/Method;

    move-result-object v4

    invoke-virtual {v7, v1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-nez v9, :cond_0

    return v10

    :cond_0
    move-object v0, v4

    array-length v3, v4

    const/4 v2, 0x0

    :goto_0
    if-lt v2, v3, :cond_1

    const/4 v9, 0x1

    return v9

    :cond_1
    aget-object v5, v4, v2

    invoke-direct {p0, v5}, Lorg/simpleframework/xml/core/Comparer;->isIgnore(Ljava/lang/reflect/Method;)Z

    move-result v9

    if-eqz v9, :cond_3

    :cond_2
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_3
    new-array v9, v10, [Ljava/lang/Object;

    invoke-virtual {v5, p1, v9}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    new-array v9, v10, [Ljava/lang/Object;

    invoke-virtual {v5, p2, v9}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-virtual {v8, v6}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-nez v9, :cond_2

    return v10
.end method


text:
// MappingFunctionDlg.cpp : implementation file
//

#include "stdafx.h"
#include "iMoteConsole.h"
#include "MappingFunctionDlg.h"

// CMappingFunctionDlg dialog

IMPLEMENT_DYNAMIC(CMappingFunctionDlg, CDialog)
CMappingFunctionDlg::CMappingFunctionDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMappingFunctionDlg::IDD, pParent)
	, m_EditMinRangeValue(0)
	, m_EditMaxRangeValue(65535)
{
}

CMappingFunctionDlg::~CMappingFunctionDlg()
{
}

void CMappingFunctionDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_EDIT_MINRANGE, m_EditMinRangeValue);
	DDX_Text(pDX, IDC_EDIT_MAXRANGE, m_EditMaxRangeValue);
}

BEGIN_MESSAGE_MAP(CMappingFunctionDlg, CDialog)
END_MESSAGE_MAP()

// CMappingFunctionDlg message handlers


text:
            {{> title/title title.masonryCountry}}

United kingdom

                            London

Italy

                            Rome

Spain

                            Barcelona

Cuba

                            Havana

Spain

                            Mallorca

USA

                            Kissimmee

USA

                            Deming

Croatia

                            Dalmatia

Hungary

                            Budapest

United kingdom

                            London

Italy

                            Rome

Spain

                            Barcelona

Cuba

                            Havana

Spain

                            Mallorca

USA

                            Kissimmee

USA

                            Deming

Croatia

                            Dalmatia

Hungary

                            Budapest


text:
```c#
public static bool operator >(
    SemanticVersion l,
    SemanticVersion r
)
```

**Namespace:** [`McSherry.SemanticVersioning`][1]
**Minimum version:** 1.0.0

[1]: ../

Determines whether one [SemanticVersion][2] has greater
precedence than another.

[2]: ./

### Parameters

- **`l`**
  **Type:** [`McSherry.SemanticVersioning.SemanticVersion`][2]
  The [SemanticVersion][2] to check for greater precedence.
- **`r`**
  **Type:** [`McSherry.SemanticVersioning.SemanticVersion`][2]
  The [SemanticVersion][2] to compare against.

### Return Value

**Type:** `System.Boolean`

True if _`l`_ has greater precedence than _`r`_. False if otherwise.


text:
package lecho.lib.hellocharts.samples;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;

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

import lecho.lib.hellocharts.gesture.ZoomType;
import lecho.lib.hellocharts.listener.BubbleChartOnValueSelectListener;
import lecho.lib.hellocharts.model.Axis;
import lecho.lib.hellocharts.model.BubbleChartData;
import lecho.lib.hellocharts.model.BubbleValue;
import lecho.lib.hellocharts.model.ValueShape;
import lecho.lib.hellocharts.util.ChartUtils;
import lecho.lib.hellocharts.view.BubbleChartView;
import lecho.lib.hellocharts.view.Chart;

public class BubbleChartActivity extends ActionBarActivity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_bubble_chart);
		if (savedInstanceState == null) {
			getSupportFragmentManager().beginTransaction().add(R.id.container, new PlaceholderFragment()).commit();
		}
	}

	/**
	 * A fragment containing a bubble chart.
	 */
	public static class PlaceholderFragment extends Fragment {

		private static final int BUBBLES_NUM = 8;

		private BubbleChartView chart;
		private BubbleChartData data;
		private boolean hasAxes = true;
		private boolean hasAxesNames = true;
		private ValueShape shape = ValueShape.CIRCLE;
		private boolean hasLabels = false;
		private boolean hasLabelForSelected = false;

		public PlaceholderFragment() {
		}

		@Override
		public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
			setHasOptionsMenu(true);
			View rootView = inflater.inflate(R.layout.fragment_bubble_chart, container, false);

			chart = (BubbleChartView) rootView.findViewById(R.id.chart);
			chart.setOnValueTouchListener(new ValueTouchListener());

			generateData();

			return rootView;
		}

		@Override
		public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
			inflater.inflate(R.menu.bubble_chart, menu);
		}

		@Override
		public boolean onOptionsItemSelected(MenuItem item) {
			int id = item.getItemId();
			if (id == R.id.action_reset) {
				reset();
				generateData();
				return true;
			}
			if (id == R.id.action_shape_circles) {
				setCircles();
				return true;
			}
			if (id == R.id.action_shape_square) {
				setSquares();
				return true;
			}
			if (id == R.id.action_toggle_labels) {
				toggleLabels();
				return true;
			}
			if (id == R.id.action_toggle_axes) {
				toggleAxes();
				return true;
			}
			if (id == R.id.action_toggle_axes_names) {
				toggleAxesNames();
				return true;
			}
			if (id == R.id.action_animate) {
				prepareDataAnimation();
				chart.startDataAnimation();
				return true;
			}
			if (id == R.id.action_toggle_selection_mode) {
				toggleLabelForSelected();
				Toast.makeText(getActivity(),
						"Selection mode set to " + chart.isValueSelectionEnabled() + " select any point.",
						Toast.LENGTH_SHORT).show();
				return true;
			}
			if (id == R.id.action_toggle_touch_zoom) {
				chart.setZoomEnabled(!chart.isZoomEnabled());
				Toast.makeText(getActivity(), "IsZoomEnabled " + chart.isZoomEnabled(), Toast.LENGTH_SHORT).show();
				return true;
			}
			if (id == R.id.action_zoom_both) {
				chart.setZoomType(ZoomType.HORIZONTAL_AND_VERTICAL);
				return true;
			}
			if (id == R.id.action_zoom_horizontal) {
				chart.setZoomType(ZoomType.HORIZONTAL);
				return true;
			}
			if (id == R.id.action_zoom_vertical) {
				chart.setZoomType(ZoomType.VERTICAL);
				return true;
			}
			return super.onOptionsItemSelected(item);
		}

		private void reset() {
			hasAxes = true;
			hasAxesNames = true;
			shape = ValueShape.CIRCLE;
			hasLabels = false;
			hasLabelForSelected = false;

			chart.setValueSelectionEnabled(hasLabelForSelected);
		}

		private void generateData() {

			List<BubbleValue> values = new ArrayList<BubbleValue>();
			for (int i = 0; i < BUBBLES_NUM; ++i) {
				BubbleValue value = new BubbleValue(i, (float) Math.random() * 100, (float) Math.random() * 1000);
				value.setColor(ChartUtils.pickColor());
				value.setShape(shape);
				values.add(value);
			}

			data = new BubbleChartData(values);
			data.setHasLabels(hasLabels);
			data.setHasLabelsOnlyForSelected(hasLabelForSelected);

			if (hasAxes) {
				Axis axisX = new Axis();
				Axis axisY = new Axis().setHasLines(true);
				if (hasAxesNames) {
					axisX.setName("Axis X");
					axisY.setName("Axis Y");
				}
				data.setAxisXBottom(axisX);
				data.setAxisYLeft(axisY);
			} else {
				data.setAxisXBottom(null);
				data.setAxisYLeft(null);
			}

			chart.setBubbleChartData(data);

		}

		private void setCircles() {
			shape = ValueShape.CIRCLE;
			generateData();
		}

		private void setSquares() {
			shape = ValueShape.SQUARE;
			generateData();
		}

		private void toggleLabels() {
			hasLabels = !hasLabels;

			if (hasLabels) {
				hasLabelForSelected = false;
				chart.setValueSelectionEnabled(hasLabelForSelected);
			}

			generateData();
		}

		private void toggleLabelForSelected() {
			hasLabelForSelected = !hasLabelForSelected;

			chart.setValueSelectionEnabled(hasLabelForSelected);

			if (hasLabelForSelected) {
				hasLabels = false;
			}

			generateData();
		}

		private void toggleAxes() {
			hasAxes = !hasAxes;

			generateData();
		}

		private void toggleAxesNames() {
			hasAxesNames = !hasAxesNames;

			generateData();
		}

		/**
		 * To animate values you have to change targets values and then call {@link Chart#startDataAnimation()}
		 * method(don't confuse with View.animate()).
		 */
		private void prepareDataAnimation() {
			for (BubbleValue value : data.getValues()) {
				value.setTarget(value.getX() + (float) Math.random() * 4 * getSign(), (float) Math.random() * 100,
						(float) Math.random() * 1000);
			}
		}

		private int getSign() {
			int[] sign = new int[]{-1, 1};
			return sign[Math.round((float) Math.random())];
		}

		private class ValueTouchListener implements BubbleChartOnValueSelectListener {

			@Override
			public void onValueSelected(int bubbleIndex, BubbleValue value) {
				Toast.makeText(getActivity(), "Selected: " + value, Toast.LENGTH_SHORT).show();
			}

			@Override
			public void onValueDeselected() {
				// TODO Auto-generated method stub

			}
		}
	}
}


text:
package com.lachesis.mnisqm.module.patientManage.dao;

import com.lachesis.mnisqm.module.patientManage.domain.BedInfo;
import java.util.List;

public interface BedInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(BedInfo record);

    BedInfo selectByPrimaryKey(Long id);

    List<BedInfo> selectAll();

    int updateByPrimaryKey(BedInfo record);

    BedInfo getByCode(String code);

    int updateByCode(BedInfo record);
}


text:
package org.bridgedb.server;

import org.bridgedb.IDMapper;
import org.restlet.data.Status;
import org.restlet.resource.Get;

public class IsFreeSearchSupported extends IDMapperResource
{
	@Get
	public String isFreeSearchSupported()
	{
		try
		{
			IDMapper mapper = getIDMappers();
			boolean isSupported = mapper.getCapabilities().isFreeSearchSupported();
		    return "" + isSupported;
		}
		catch( Exception e )
		{
		    e.printStackTrace();
		    setStatus( Status.SERVER_ERROR_INTERNAL );
		    return e.getMessage();
		}
	}
}


text:
IntlDateFormatter: get/setTimeZone()
--SKIPIF--
<?php
if (!extension_loaded('intl')) die('skip intl extension not enabled'); ?>
<?php if (version_compare(INTL_ICU_VERSION, '51.2') >=  0) die('skip for ICU < 51.2'); ?>
--FILE--
<?php
ini_set("intl.error_level", E_WARNING);
ini_set("intl.default_locale", "pt_PT");
ini_set("date.timezone", 'Atlantic/Azores');

$ts = strtotime('2012-01-01 00:00:00 UTC');

function d(IntlDateFormatter $df) {
global $ts;
echo $df->format($ts), "\n";
var_dump(
$df->getTimeZoneID(),
$df->getTimeZone()->getID());
echo "\n";
}

$df = new IntlDateFormatter('pt_PT', 0, 0, 'Europe/Minsk');
d($df);

$df->setTimeZone(NULL);
d($df);

$df->setTimeZone('Europe/Madrid');
d($df);

$df->setTimeZone(IntlTimeZone::createTimeZone('Europe/Paris'));
d($df);

$df->setTimeZone(new DateTimeZone('Europe/Amsterdam'));
d($df);

?>
==DONE==
--EXPECTF--
Domingo, 1 de Janeiro de 2012 3:00:00 GMT+03:00
string(12) "Europe/Minsk"
string(12) "Europe/Minsk"

Sábado, 31 de Dezembro de 2011 23:00:00 Hor%s %Sdos Açores
string(15) "Atlantic/Azores"
string(15) "Atlantic/Azores"

Domingo, 1 de Janeiro de 2012 1:00:00 Hor%s %Sda Europa Central
string(13) "Europe/Madrid"
string(13) "Europe/Madrid"

Domingo, 1 de Janeiro de 2012 1:00:00 Hor%s %Sda Europa Central
string(12) "Europe/Paris"
string(12) "Europe/Paris"

Domingo, 1 de Janeiro de 2012 1:00:00 Hor%s %Sda Europa Central
string(16) "Europe/Amsterdam"
string(16) "Europe/Amsterdam"

==DONE==


text:
require 'docuvator/initialize'

module Docuvator
  class CLI
    attr_reader :options
    def initialize
      @options = OpenStruct.new(
        verbose: false,
        debug: false,
      )
      parse_options
      determine_log_level
    end

    def process(file)
      Log.info "Processing #{file}"
      splitter = Splitter.new(file)
      data = splitter.split

      Analyzer.descendants.each do | analyzer_class|
        analyzer = analyzer_class.new(data)
        analyzer.analyze

        Log.info ""
        Log.info "::#{analyzer_class}::"
        analyzer.results
      end
    end

    def parse_options
      OptionParser.new do |opt|
        opt.version = VERSION
        opt.on "-d", "--debug", "Debug output (shows DEBUG level log statements)" do
          options.debug = true
        end
      end.parse!
    end

    private

    def determine_log_level
      if options.debug
        Log.level = Logger::DEBUG
        Log.use_debug
      else
        Log.level = Logger::INFO
      end
    end

  end
end


text:
package com.github.davidmoten.jns;

import java.util.Optional;
import java.util.function.Function;

public class Util {

    public static final double GRAVITY_M_PER_S2 = 9.80665;
    public static final int SEA_LEVEL_PRESSURE_PASCALS = 101325;
    public static final double SEAWATER_MEAN_DENSITY_KG_PER_M3 = 1025;
    public final static Vector GRAVITY = Vector.create(0, 0, -9.80665);
    public static final double SEAWATER_MEAN_VISCOSITY = 30;

    public static <T> T unexpected() {
        return unexpected("unexpected");
    }

    public static <T> T unexpected(String msg) {
        throw new RuntimeException(msg);
    }

    public static double pressureAtDepth(double depthMetres) {
        return SEA_LEVEL_PRESSURE_PASCALS
                + SEAWATER_MEAN_DENSITY_KG_PER_M3 * depthMetres * GRAVITY_M_PER_S2;
    }

    public static Vector pressureGradientDueToGravity(Cell cell) {
        return GRAVITY.times(cell.density());
    }

    public static Cell override(Cell cell, CellType type, Vector velocity, double pressure) {
        return new CellDelegator(cell, Optional.of(type), Optional.of(velocity),
                Optional.of(pressure));
    }

    static Mesh createMeshForWhirlpool2D(int cellsEast, int cellsNorth) {
        int cellsUp = 1;
        final Function<Indices, CellType> typeFunction = i -> {
            // Floored bottom, obstacle sides, open north side
            if (i.up() < 0)
                return CellType.OBSTACLE;
            else if (i.up() > cellsUp - 1)
                return CellType.UNKNOWN;// air
            else if (i.east() <= 0 || i.east() >= cellsEast - 1)
                if (i.north() == cellsNorth - 1)
                    return CellType.UNKNOWN;
                else
                    return CellType.OBSTACLE;
            else if (i.north() <= 0)
                return CellType.OBSTACLE;
            else if (i.north() > cellsNorth - 1)
                return CellType.UNKNOWN;
            else
                // inside the box so is fluid
                return CellType.FLUID;
        };
        final Function<Indices, Vector> velocityFunction = i -> {
            if (i.north() == cellsNorth - 1)
                return Vector.create(1, 0, 0);
            else
                return Vector.ZERO;
        };
        final Function<Indices, Boolean> isBoundary = i -> {
            return i.north() == cellsNorth - 1;
        };
        return Mesh //
                .builder() //
                .cellSize(1) //
                .creator(CellCreator //
                .builder() //
                .cellsEast(cellsEast) //
                .cellsNorth(cellsNorth) //
                .cellsUp(cellsUp) //
                .typeFunction(typeFunction) //
                .velocityFunction(velocityFunction) //
                .isBoundaryFunction(isBoundary) //
                .build()) //
                .build();
    }

    public static boolean isValid(Double d) {
        return d != Double.NaN && d != Double.NEGATIVE_INFINITY && d != Double.POSITIVE_INFINITY;
    }

    public static double validate(Double d) {
        if (isValid(d))
            return d;
        else
            throw new RuntimeException("invalid double value: " + d);
    }

}


text:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:background="@color/colorAccent"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">
    <TextView
        android:text="Dentist Appointment"
        android:textStyle="bold"
        android:lines="1"
        android:id="@+id/event_title"
        android:textSize="14sp"
        android:paddingStart="4dp"
        android:paddingEnd="4dp"
        android:paddingTop="2dp"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" />
    <TextView
        android:layout_width="match_parent"
        android:text="2:30 - 3:30"
        android:lines="1"
        android:id="@+id/event_time"
        android:paddingStart="8sp"
        android:paddingEnd="8sp"
        android:fontFamily="sans-serif-condensed"
        android:layout_height="wrap_content" />
</LinearLayout>


text:
<!DOCTYPE html>

    <meta http-equiv="refresh" content="0;URL=../../libc/fn.execv.html">

Redirecting to ../../libc/fn.execv.html...


text:
/**
 */
package org.afplib.afplib.impl;

import java.util.Collection;

import org.afplib.afplib.AfplibPackage;
import org.afplib.afplib.PGP;
import org.afplib.afplib.PGPRG;

import org.afplib.base.impl.SFImpl;

import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.NotificationChain;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;

/**
 *
 * An implementation of the model object 'PGP'.
 *
 *

 * The following features are implemented:
 *

 *

 *
{@link org.afplib.afplib.impl.PGPImpl#getConstant Constant}

 *
{@link org.afplib.afplib.impl.PGPImpl#getRG RG}

 *

 *
 * @generated
 */
public class PGPImpl extends SFImpl implements PGP {
	/**
	 * The default value of the '{@link #getConstant() Constant}' attribute.
	 *
	 *
	 * @see #getConstant()
	 * @generated
	 * @ordered
	 */
	protected static final Integer CONSTANT_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getConstant() Constant}' attribute.
	 *
	 *
	 * @see #getConstant()
	 * @generated
	 * @ordered
	 */
	protected Integer constant = CONSTANT_EDEFAULT;

	/**
	 * The cached value of the '{@link #getRG() RG}' containment reference list.
	 *
	 *
	 * @see #getRG()
	 * @generated
	 * @ordered
	 */
	protected EList<PGPRG> rg;

	/**
	 *
	 *
	 * @generated
	 */
	protected PGPImpl() {
		super();
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return AfplibPackage.eINSTANCE.getPGP();
	}

	/**
	 *
	 *
	 * @generated
	 */
	public Integer getConstant() {
		return constant;
	}

	/**
	 *
	 *
	 * @generated
	 */
	public void setConstant(Integer newConstant) {
		Integer oldConstant = constant;
		constant = newConstant;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PGP__CONSTANT, oldConstant, constant));
	}

	/**
	 *
	 *
	 * @generated
	 */
	public EList<PGPRG> getRG() {
		if (rg == null) {
			rg = new EObjectContainmentEList.Resolving<PGPRG>(PGPRG.class, this, AfplibPackage.PGP__RG);
		}
		return rg;
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
		switch (featureID) {
			case AfplibPackage.PGP__RG:
				return ((InternalEList<?>)getRG()).basicRemove(otherEnd, msgs);
		}
		return super.eInverseRemove(otherEnd, featureID, msgs);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case AfplibPackage.PGP__CONSTANT:
				return getConstant();
			case AfplibPackage.PGP__RG:
				return getRG();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case AfplibPackage.PGP__CONSTANT:
				setConstant((Integer)newValue);
				return;
			case AfplibPackage.PGP__RG:
				getRG().clear();
				getRG().addAll((Collection<? extends PGPRG>)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case AfplibPackage.PGP__CONSTANT:
				setConstant(CONSTANT_EDEFAULT);
				return;
			case AfplibPackage.PGP__RG:
				getRG().clear();
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case AfplibPackage.PGP__CONSTANT:
				return CONSTANT_EDEFAULT == null ? constant != null : !CONSTANT_EDEFAULT.equals(constant);
			case AfplibPackage.PGP__RG:
				return rg != null && !rg.isEmpty();
		}
		return super.eIsSet(featureID);
	}

	/**
	 *
	 *
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (Constant: ");
		result.append(constant);
		result.append(')');
		return result.toString();
	}

} //PGPImpl


text:
var dir_88d65b1e577cf889f5687c5fb48d7dbf =
[
    [ "GrapeLibraryDirectory.cxx", "_grape_library_directory_8cxx.html", null ],
    [ "GrapeLibraryDirectory.h", "_grape_library_directory_8h.html", [
      [ "LibraryDirectory", "class_grape_f_s_1_1_library_directory.html", "class_grape_f_s_1_1_library_directory" ]
    ] ],
    [ "GrapeNode.cxx", "_grape_node_8cxx.html", null ],
    [ "GrapeNode.h", "_grape_node_8h.html", [
      [ "Node", "class_grape_f_s_1_1_node.html", "class_grape_f_s_1_1_node" ]
    ] ],
    [ "GrapeNodeOutputDirectory.cxx", "_grape_node_output_directory_8cxx.html", null ],
    [ "GrapeNodeOutputDirectory.h", "_grape_node_output_directory_8h.html", [
      [ "NodeOutputDirectory", "class_grape_f_s_1_1_node_output_directory.html", "class_grape_f_s_1_1_node_output_directory" ]
    ] ],
    [ "GrapeNodeOutputVariable.cxx", "_grape_node_output_variable_8cxx.html", null ],
    [ "GrapeNodeOutputVariable.h", "_grape_node_output_variable_8h.html", [
      [ "NodeOutputVariable", "class_grape_f_s_1_1_node_output_variable.html", "class_grape_f_s_1_1_node_output_variable" ]
    ] ],
    [ "GrapePerfDirectory.cxx", "_grape_perf_directory_8cxx.html", null ],
    [ "GrapePerfDirectory.h", "_grape_perf_directory_8h.html", "_grape_perf_directory_8h" ]
];


text:
import ruMerc from "./ruMerc.json";
import ruMill from "./ruMill.json";
export { ruMerc, ruMill };
//# sourceMappingURL=index.js.map


text:
namespace draco {

// Class providing the basic traversal funcionality needed by traversers (such
// as the EdgeBreakerTraverser, see edgebreaker_traverser.h). It is used to
// return the corner table that is used for the traversal, plus it provides a
// basic book-keeping of visited faces and vertices during the traversal.
template <class CornerTableT>
class CornerTableTraversalProcessor {
 public:
  typedef CornerTableT CornerTable;

  CornerTableTraversalProcessor() : corner_table_(nullptr) {}
  virtual ~CornerTableTraversalProcessor() = default;

  void ResetProcessor(const CornerTable *corner_table) {
    corner_table_ = corner_table;
    is_face_visited_.assign(corner_table->num_faces(), false);
    ResetVertexData();
  }

  const CornerTable &GetCornerTable() const { return *corner_table_; }

  inline bool IsFaceVisited(FaceIndex face_id) const {
    if (face_id < 0)
      return true;  // Invalid faces are always considered as visited.
    return is_face_visited_[face_id.value()];
  }
  inline void MarkFaceVisited(FaceIndex face_id) {
    is_face_visited_[face_id.value()] = true;
  }
  inline bool IsVertexVisited(VertexIndex vert_id) const {
    return is_vertex_visited_[vert_id.value()];
  }
  inline void MarkVertexVisited(VertexIndex vert_id) {
    is_vertex_visited_[vert_id.value()] = true;
  }

 protected:
  virtual void ResetVertexData() {
    InitVertexData(corner_table_->num_vertices());
  }

  void InitVertexData(VertexIndex::ValueType num_verts) {
    is_vertex_visited_.assign(num_verts, false);
  }

  inline const CornerTable *corner_table() const { return corner_table_; }

 private:
  const CornerTable *corner_table_;
  std::vector<bool> is_face_visited_;
  std::vector<bool> is_vertex_visited_;
};

}  // namespace draco

#endif  // DRACO_MESH_CORNER_TABLE_TRAVERSAL_PROCESSOR_H_


text:
package org.mifos.application.accounts.struts.actionforms;

import java.util.ResourceBundle;
import java.util.Locale;

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.apache.struts.Globals;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionMapping;
import org.mifos.application.accounts.loan.util.helpers.LoanConstants;
import org.mifos.application.accounts.util.helpers.AccountState;
import org.mifos.application.util.helpers.Methods;
import org.mifos.framework.struts.actionforms.BaseActionForm;
import org.mifos.framework.util.helpers.FilePaths;

public class EditStatusActionForm extends BaseActionForm {

    public EditStatusActionForm() {
        selectedItems = new String[50];
    }

    private String accountId;

    private String globalAccountNum;

    private String accountName;

    private String accountTypeId;

    private String currentStatusId;

    private String newStatusId;

    private String flagId;

    private String notes;

    private String[] selectedItems;

    private String input;

    private String commentDate;

    public String getCommentDate() {
        return commentDate;
    }

    public void setCommentDate(String commentDate) {
        this.commentDate = commentDate;
    }

    public String getInput() {
        return input;
    }

    public void setInput(String input) {
        this.input = input;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountTypeId() {
        return accountTypeId;
    }

    public void setAccountTypeId(String accountTypeId) {
        this.accountTypeId = accountTypeId;
    }

    public String getCurrentStatusId() {
        return currentStatusId;
    }

    public void setCurrentStatusId(String currentStatusId) {
        this.currentStatusId = currentStatusId;
    }

    public String getFlagId() {
        return flagId;
    }

    public void setFlagId(String flagId) {
        this.flagId = flagId;
    }

    public String getGlobalAccountNum() {
        return globalAccountNum;
    }

    public void setGlobalAccountNum(String globalAccountNum) {
        this.globalAccountNum = globalAccountNum;
    }

    public String getNewStatusId() {
        return newStatusId;
    }

    public void setNewStatusId(String newStatusId) {
        this.newStatusId = newStatusId;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public String[] getSelectedItems() {
        return selectedItems;
    }

    public void setSelectedItems(String[] selectedItems) {
        this.selectedItems = selectedItems;
    }

    @Override
    public void reset(ActionMapping mapping, HttpServletRequest request) {
        String methodCalled = request.getParameter(Methods.method.toString());
        if (null != methodCalled) {
            if ((Methods.preview.toString()).equals(methodCalled)) {
                this.flagId = null;
                this.selectedItems = null;
            }
        }
    }

    @Override
    public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
        ActionErrors errors = new ActionErrors();
        String methodCalled = request.getParameter(Methods.method.toString());
        if (null != methodCalled) {
            if ((Methods.preview.toString()).equals(methodCalled)) {
                handleStatusPreviewValidations(request, errors);
            } else if ((Methods.update.toString()).equals(methodCalled)) {
                handleUpdateStatus(request, errors);
            }
        }
        if (null != errors && !errors.isEmpty()) {
            request.setAttribute(Globals.ERROR_KEY, errors);
            request.setAttribute("methodCalled", methodCalled);
        }
        return errors;
    }

    private ActionErrors handleUpdateStatus(HttpServletRequest request, ActionErrors errors) {
        String chklistSize = request.getParameter("chklistSize");
        if (request.getParameter("selectedItems") == null) {
            selectedItems = null;
        }
        if (chklistSize != null) {
            if (isCheckListNotComplete(chklistSize))
                addError(errors, LoanConstants.INCOMPLETE_CHECKLIST, LoanConstants.INCOMPLETE_CHECKLIST);
        }
        return errors;
    }

    private ActionErrors handleStatusPreviewValidations(HttpServletRequest request, ActionErrors errors) {
        Locale locale = getUserContext(request).getPreferredLocale();
        ResourceBundle resources = ResourceBundle.getBundle(FilePaths.ACCOUNTS_UI_RESOURCE_PROPERTYFILE, locale);
        String notesString = resources.getString("Account.Notes");
        String status = resources.getString("accounts.status");
        String flag = resources.getString("accounts.flag");
        if (newStatusId == null)
            addError(errors, LoanConstants.MANDATORY, LoanConstants.MANDATORY, status);
        else if (isNewStatusHasFlag() && StringUtils.isBlank(flagId))
            addError(errors, LoanConstants.MANDATORY_SELECT, LoanConstants.MANDATORY_SELECT, flag);
        if (StringUtils.isBlank(notes))
            addError(errors, LoanConstants.MANDATORY_TEXTBOX, LoanConstants.MANDATORY_TEXTBOX, notesString);
        else if (notes.length() > LoanConstants.COMMENT_LENGTH)
            addError(errors, LoanConstants.MAX_LENGTH, LoanConstants.MAX_LENGTH, notesString, String
                    .valueOf(LoanConstants.COMMENT_LENGTH));
        return errors;
    }

    private boolean isCheckListNotComplete(String chklistSize) {
        return (isPartialSelected(chklistSize) || isNoneSelected(chklistSize));
    }

    private boolean isPartialSelected(String chklistSize) {
        return (selectedItems != null) && (Integer.valueOf(chklistSize).intValue() != selectedItems.length);
    }

    private boolean isNoneSelected(String chklistSize) {
        return (Integer.valueOf(chklistSize).intValue() > 0) && (selectedItems == null);
    }

    private boolean isNewStatusHasFlag() {
        return (Short.valueOf(newStatusId).equals(AccountState.LOAN_CANCELLED.getValue()))
                || (Short.valueOf(newStatusId).equals(AccountState.SAVINGS_CANCELLED.getValue()));
    }
}


text:
package alluxio.yarn;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.doAnswer;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import alluxio.exception.ExceptionMessage;

import org.apache.hadoop.yarn.api.records.Container;
import org.apache.hadoop.yarn.api.records.NodeId;
import org.apache.hadoop.yarn.api.records.NodeReport;
import org.apache.hadoop.yarn.api.records.NodeState;
import org.apache.hadoop.yarn.api.records.Resource;
import org.apache.hadoop.yarn.client.api.AMRMClient.ContainerRequest;
import org.apache.hadoop.yarn.client.api.YarnClient;
import org.apache.hadoop.yarn.client.api.async.AMRMClientAsync;
import org.apache.hadoop.yarn.util.Records;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.mockito.ArgumentMatcher;
import org.mockito.Matchers;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Unit tests for {@link ContainerAllocator}.
 */
public final class ContainerAllocatorTest {
  private static final String CONTAINER_NAME = "test";

  private Resource mResource;
  private YarnClient mYarnClient;
  private AMRMClientAsync<ContainerRequest> mRMClient;

  @Rule
  public ExpectedException mThrown = ExpectedException.none();

  @Before
  @SuppressWarnings("unchecked")
  public void before() {
    mResource = mock(Resource.class);
    mYarnClient = mock(YarnClient.class);
    mRMClient = (AMRMClientAsync<ContainerRequest>) mock(AMRMClientAsync.class);
  }

  @Test(timeout = 10000)
  public void oneContainerPerHostFullAllocation() throws Exception {
    int numHosts = 10;
    int maxContainersPerHost = 1;
    testFullAllocation(numHosts, maxContainersPerHost);
  }

  @Test(timeout = 10000)
  public void fiveContainersPerHostFullAllocation() throws Exception {
    int numHosts = 10;
    int maxContainersPerHost = 5;
    testFullAllocation(numHosts, maxContainersPerHost);
  }

  @Test(timeout = 10000)
  public void fiveContainersPerHostHalfAllocation() throws Exception {
    int numHosts = 10;
    int maxContainersPerHost = 5;
    int numContainers = numHosts * maxContainersPerHost / 2;
    ContainerAllocator containerAllocator =
        setup(numHosts, maxContainersPerHost, numContainers);
    List<Container> containers = containerAllocator.allocateContainers();

    assertEquals(numContainers, containers.size());
    checkMaxHostsLimitNotExceeded(containers, maxContainersPerHost);
  }

  @Test(timeout = 10000)
  public void notEnoughHosts() throws Exception {
    int numHosts = 10;
    int maxContainersPerHost = 5;
    int numContainers = numHosts * maxContainersPerHost + 1; // one container too many
    ContainerAllocator containerAllocator =
        setup(numHosts, maxContainersPerHost, numContainers);
    mThrown.expect(RuntimeException.class);
    mThrown.expectMessage(
        ExceptionMessage.YARN_NOT_ENOUGH_HOSTS.getMessage(numContainers, CONTAINER_NAME, numHosts));
    containerAllocator.allocateContainers();
  }

  @Test(timeout = 1000)
  public void allocateMasterInAnyHost() throws Exception {
    ContainerAllocator containerAllocator = new ContainerAllocator(CONTAINER_NAME, 1,
        1, mResource, mYarnClient, mRMClient, "any");
    doAnswer(allocateFirstHostAnswer(containerAllocator))
        .when(mRMClient).addContainerRequest(Matchers.argThat(
          new ArgumentMatcher<ContainerRequest>() {
            @Override
            public boolean matches(Object o) {
              ContainerRequest request = (ContainerRequest) o;
              if (request.getRelaxLocality() == true
                  && request.getNodes().size() == 1
                  && request.getNodes().get(0).equals("any")) {
                return true;
              }
              return false;
            }
          }
        ));
    containerAllocator.allocateContainers();
  }

  /*
   * Creates a container allocator for allocating the specified numContainers with the specified
   * maxContainersPerHost.
   *
   * The yarn client is mocked to make it look like there are numHosts different hosts in the
   * system, and the resource manager client is mocked to allocate containers when they are
   * requested.
   */
  private ContainerAllocator setup(int numHosts, int maxContainersPerHost, int numContainers)
      throws Exception {
    ContainerAllocator containerAllocator = new ContainerAllocator(CONTAINER_NAME, numContainers,
        maxContainersPerHost, mResource, mYarnClient, mRMClient);
    List<NodeReport> nodeReports = new ArrayList<>();
    for (int i = 0; i < numHosts; i++) {
      NodeReport nodeReport = Records.newRecord(NodeReport.class);
      nodeReport.setNodeId(NodeId.newInstance("host" + i, 0));
      nodeReports.add(nodeReport);
    }
    when(mYarnClient.getNodeReports(Matchers.<NodeState[]>anyVararg())).thenReturn(nodeReports);
    doAnswer(allocateFirstHostAnswer(containerAllocator)).when(mRMClient)
        .addContainerRequest(any(ContainerRequest.class));
    return containerAllocator;
  }

  /*
   * Tests that when there are the specified number of hosts and the specified max containers per
   * host, a ContainerAllocator can fully allocate all hosts so that every host has
   * maxContainersPerHost containers.
   */
  private void testFullAllocation(int numHosts, int maxContainersPerHost) throws Exception {
    int numContainers = numHosts * maxContainersPerHost;
    ContainerAllocator containerAllocator = setup(numHosts, maxContainersPerHost, numContainers);
    List<Container> containers = containerAllocator.allocateContainers();

    Set<String> containerHosts = new HashSet<>();
    for (Container container : containers) {
      containerHosts.add(container.getNodeId().getHost());
    }
    assertEquals("All hosts are allocated", numHosts, containerHosts.size());
    assertEquals("All containers are allocated", numContainers, containers.size());
    checkMaxHostsLimitNotExceeded(containers, maxContainersPerHost);
  }

  /*
   * Creates an Answer to an addContainerRequest method. The Answer picks the first node requested
   * and allocates a container on it, sending a callback to the specified container allocator
   */
  private Answer<Void> allocateFirstHostAnswer(final ContainerAllocator containerAllocator) {
    return new Answer<Void>() {
      @Override
      public Void answer(InvocationOnMock invocation) throws Throwable {
        ContainerRequest containerRequest = invocation.getArgumentAt(0, ContainerRequest.class);
        Container container = Records.newRecord(Container.class);
        container.setNodeId(NodeId.newInstance(containerRequest.getNodes().get(0), 0));
        containerAllocator.allocateContainer(container);
        return null;
      }
    };
  }

  private void checkMaxHostsLimitNotExceeded(List<Container> containers, int maxContainersPerHost) {
    ConcurrentHashMap<String, Integer> counts = new ConcurrentHashMap<>();
    for (Container container : containers) {
      String host = container.getNodeId().getHost();
      counts.putIfAbsent(host, 0);
      int newCount = counts.get(host) + 1;
      assertTrue(newCount <= maxContainersPerHost);
      counts.put(host, newCount);
    }
  }
}


text:
package io.vertx.ext.apex.handler;

import java.io.Serializable;

/**
 * Created by tim on 05/02/15.
 */
public class SomeSerializable implements Serializable {

  private String wibble;

  public SomeSerializable(String wibble) {
    this.wibble = wibble;
  }

  public String getWibble() {
    return wibble;
  }
}


text:
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
const extractAncestorPaths_1 = require("../utility/extractAncestorPaths");
const augmentEntitiesWithIdProperties_1 = require("../utility/augmentEntitiesWithIdProperties");
const convertToType_1 = require("../utility/convertToType");
const Core_1 = require("../Core");
const pickOutEntityFromResults_1 = require("../utility/pickOutEntityFromResults");
const Messaging_1 = require("../Messaging");
const deserializeJsonProperties_1 = require("../utility/deserializeJsonProperties");
const crypto = require("crypto");
function createDatastoreQuery(model, namespace) {
    const idProp = model.entityIdProperty;
    const kind = model.entityKind;
    const hasIdProp = model.entityHasIdProperty;
    const type = hasIdProp ? model.entitySchema[model.entityIdProperty].type : null;
    const schema = model.entitySchema;
    const ns = namespace !== Core_1.UNSET_NAMESPACE ? namespace : (Core_1.default.Instance.namespace !== Core_1.UNSET_NAMESPACE ? Core_1.default.Instance.namespace : null);
    const dsQuery = (ns != null && ns !== Core_1.UNSET_NAMESPACE)
        ? Core_1.default.Instance.dsModule.createQuery(ns, model.entityKind)
        : Core_1.default.Instance.dsModule.createQuery(model.entityKind);
    const runQuery = dsQuery.run.bind(dsQuery);
    const filterQuery = dsQuery.filter.bind(dsQuery);
    const useCache = (model.modelOptions.neverCache || !Core_1.default.Instance.caching)
        ? false
        : Core_1.default.Instance.cacheDefaults.onQuery;
    const returnOnlyEntity = null;
    const cachingTimeSeconds = model.modelOptions.defaultCachingSeconds != null
        ? model.modelOptions.defaultCachingSeconds
        : Core_1.default.Instance.defaultCachingSeconds;
    return Object.assign(dsQuery, {
        returnOnlyEntity,
        useCache,
        cachingTimeSeconds,
        enableCache(on) {
            this.useCache = on;
            return this;
        },
        cachingSeconds(seconds) {
            this.cachingTimeSeconds = seconds;
            return this;
        },
        first() {
            this.returnOnlyEntity = "FIRST";
            return this;
        },
        last() {
            this.returnOnlyEntity = "LAST";
            return this;
        },
        randomOne() {
            this.returnOnlyEntity = "RANDOM";
            return this;
        },
        filter(property, comparator, value) {
            if (!schema[property]) {
                Messaging_1.throwError(`Property "${property}" doesn't exist on entity schema for [ ${kind} ]`);
            }
            return filterQuery(property, comparator, convertToType_1.default(value, schema[property].type));
        },
        withAncestors(...args) {
            const ancestors = extractAncestorPaths_1.default(model, ...args);
            if (ns != null) {
                this.hasAncestor(Core_1.default.Instance.dsModule.key({
                    namespace: ns,
                    path: [].concat.apply([], ancestors),
                }));
            }
            else {
                this.hasAncestor(Core_1.default.Instance.dsModule.key([].concat.apply([], ancestors)));
            }
            return this;
        },
        flushQueryInCache() {
            return __awaiter(this, void 0, void 0, function* () {
                if (Core_1.default.Instance.cacheStore != null) {
                    const hash = createHashFromQuery(this);
                    yield Core_1.default.Instance.cacheStore.flushQueryResponse(hash, this);
                }
                else {
                    Messaging_1.warn(`Trying to flush a query - but no Cache Store has been set on Pebblebed instance!`);
                }
            });
        },
        run(throwIfNotFound = false) {
            return __awaiter(this, void 0, void 0, function* () {
                let hash = null;
                if (Core_1.default.Instance.cacheStore != null && Core_1.default.Instance.cacheStore.cacheOnQuery && this.useCache) {
                    hash = createHashFromQuery(this);
                    const queryResponse = yield Core_1.default.Instance.cacheStore.getQueryResponse(hash, this);
                    if (queryResponse != null) {
                        cachingAugmentQueryEntitiesWithRealKeys(queryResponse);
                        deserializeJsonProperties_1.default(queryResponse.entities, schema);
                        if (this.returnOnlyEntity != null) {
                            return pickOutEntityFromResults_1.default(queryResponse.entities, this.returnOnlyEntity);
                        }
                        return queryResponse;
                    }
                }
                const data = yield runQuery();
                if (hasIdProp && data[0].length > 0) {
                    augmentEntitiesWithIdProperties_1.default(data[0], idProp, type, kind);
                }
                const queryResponse = {
                    entities: data[0],
                    info: data[1],
                };
                if (Core_1.default.Instance.cacheStore != null &&
                    Core_1.default.Instance.cacheStore.cacheOnQuery &&
                    this.useCache &&
                    queryResponse.entities.length > 0) {
                    if (hash == null) {
                        hash = createHashFromQuery(this);
                    }
                    cachingAugmentQueryEntitiesWithSerializableKeys(queryResponse);
                    yield Core_1.default.Instance.cacheStore.setQueryResponse(queryResponse, hash, this.cachingTimeSeconds, this);
                    removeSerializableKeysFromEntities(queryResponse);
                }
                deserializeJsonProperties_1.default(queryResponse.entities, schema);
                if (queryResponse.entities.length === 0 && throwIfNotFound) {
                    console.error(`Couldn't find any ${model.entityKind} entity(s) with specified query:\n\n${createDataStringFromQuery(this)}`);
                    Messaging_1.throwError(`Couldn't find any ${model.entityKind} entity(s) with specified query, see server log for more detail`);
                }
                if (this.returnOnlyEntity != null) {
                    return pickOutEntityFromResults_1.default(queryResponse.entities, this.returnOnlyEntity);
                }
                return queryResponse;
            });
        },
    });
}
exports.createDatastoreQuery = createDatastoreQuery;
function createDataStringFromQuery(query) {
    return `namespace:${query.namespace != null ? query.namespace : ""}
kinds:${query.kinds.join("-KIND_JOIN-")}
filters:${JSON.stringify(query.filters)}
limit:${query.limitVal}
offset:${query.offsetVal}
orders:${query.orders.join("-ORDERS_JOIN-")}
select:${query.selectVal.join("-SELECT_JOIN-")}
groupBy:${query.groupByVal.join("-GROUP_BY_JOIN-")}
start:${query.startVal}
end:${query.endVal}`;
}
exports.createDataStringFromQuery = createDataStringFromQuery;
function createHashFromQuery(query) {
    /*const dataString = `namespace:${query.namespace != null ? query.namespace : ""}
  kinds:${query.kinds.join("-KIND_JOIN-")}
  filters:${JSON.stringify(query.filters)}
  limit:${query.limitVal}
  offset:${query.offsetVal}
  orders:${query.orders.join("-ORDERS_JOIN-")}
  select:${query.selectVal.join("-SELECT_JOIN-")}
  groupBy:${query.groupByVal.join("-GROUP_BY_JOIN-")}
  start:${query.startVal}
  end:${query.endVal}`;*/
    return crypto.createHash("sha1").update(createDataStringFromQuery(query)).digest("base64");
}
exports.createHashFromQuery = createHashFromQuery;
const serializableKeyName = "__pebblebed_serializable_key__";
function cachingAugmentQueryEntitiesWithSerializableKeys(queryResponse) {
    for (const entity of queryResponse.entities) {
        entity[serializableKeyName] = entity[Core_1.default.Instance.dsModule.KEY];
    }
}
function removeSerializableKeysFromEntities(queryResponse) {
    for (const entity of queryResponse.entities) {
        delete entity[serializableKeyName];
    }
}
function cachingAugmentQueryEntitiesWithRealKeys(queryResponse) {
    for (const entity of queryResponse.entities) {
        entity[Core_1.default.Instance.dsModule.KEY] = entity[serializableKeyName];
        delete entity[serializableKeyName];
    }
}
//# sourceMappingURL=DatastoreQuery.js.map


text:
package org.jetbrains.plugins.scala
package overrideImplement

import java.util.Properties

import com.intellij.codeInsight.generation.GenerationInfoBase
import com.intellij.ide.fileTemplates.{FileTemplate, FileTemplateManager}
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.util.TextRange
import com.intellij.pom.Navigatable
import com.intellij.psi._
import com.intellij.psi.codeStyle.CodeStyleManager
import org.jetbrains.plugins.scala.actions.ScalaFileTemplateUtil
import org.jetbrains.plugins.scala.extensions._
import org.jetbrains.plugins.scala.lang.psi.TypeAdjuster
import org.jetbrains.plugins.scala.lang.psi.api.expr.ScBlockExpr
import org.jetbrains.plugins.scala.lang.psi.api.statements._
import org.jetbrains.plugins.scala.lang.psi.api.toplevel.typedef.{ScMember, ScTemplateDefinition}
import org.jetbrains.plugins.scala.lang.psi.impl.ScalaPsiElementFactory._
import org.jetbrains.plugins.scala.lang.psi.types.{ScType, ScTypeExt}
import org.jetbrains.plugins.scala.lang.refactoring.util.ScalaNamesUtil
import org.jetbrains.plugins.scala.overrideImplement.ScalaGenerationInfo._
import org.jetbrains.plugins.scala.project.ScalaLanguageLevel.Scala_2_10
import org.jetbrains.plugins.scala.project._
import org.jetbrains.plugins.scala.settings.ScalaApplicationSettings
import org.jetbrains.plugins.scala.util.TypeAnnotationUtil

/**
 * Nikolay.Tropin
 * 12/25/13
 */
class ScalaGenerationInfo(classMember: ClassMember)
        extends GenerationInfoBase {

  private var myMember: PsiMember = classMember.getElement

  override def getPsiMember: PsiMember = myMember

  override def insert(aClass: PsiClass, anchor: PsiElement, before: Boolean): Unit = {
    val templDef = aClass match {
      case td: ScTemplateDefinition => td
      case _ => return
    }

    val comment = if (ScalaApplicationSettings.getInstance().COPY_SCALADOC)
      Option(classMember.getElement.getDocComment).map(_.getText).getOrElse("") else ""

    classMember match {
      case member: ScMethodMember => myMember = insertMethod(member, templDef, anchor)
      case ScAliasMember(alias, substitutor, isOverride) =>
        val needsOverride = isOverride || toAddOverrideToImplemented
        val m = createOverrideImplementType(alias, substitutor, needsOverride, comment)(alias.getManager)

        val added = templDef.addMember(m, Option(anchor))
        myMember = added
        TypeAdjuster.markToAdjust(added)
      case _: ScValueMember | _: ScVariableMember =>
        val m: ScMember = createVariable(comment, classMember)
        val added = templDef.addMember(m, Option(anchor))
        myMember = added
        TypeAdjuster.markToAdjust(added)
      case _ =>
    }
  }

  override def findInsertionAnchor(aClass: PsiClass, leaf: PsiElement): PsiElement = {
    aClass match {
      case td: ScTemplateDefinition => ScalaOIUtil.getAnchor(leaf.getTextRange.getStartOffset, td).orNull
      case _ => super.findInsertionAnchor(aClass, leaf)
    }
  }

  override def positionCaret(editor: Editor, toEditMethodBody: Boolean): Unit = {
    val element = getPsiMember
    ScalaGenerationInfo.positionCaret(editor, element)
  }
}

object ScalaGenerationInfo {
  def defaultValue(returnType: ScType, file: PsiFile): String = {
    val standardValue = getStandardValue(returnType)

    if (file.scalaLanguageLevel.exists(_ < Scala_2_10)) standardValue else "???"
  }

  def positionCaret(editor: Editor, element: PsiMember) {
    //hack for postformatting IDEA bug.
    val member = CodeStyleManager.getInstance(element.getProject).reformat(element)
    //Setting selection
    val body: PsiElement = member match {
      case ta: ScTypeAliasDefinition => ta.aliasedTypeElement match {
        case Some(x) => x
        case None => return
      }
      case ScPatternDefinition.expr(expr) => expr
      case ScVariableDefinition.expr(expr) => expr
      case method: ScFunctionDefinition => method.body match {
        case Some(x) => x
        case None => return
      }
      case _ => return
    }

    val offset = member.getTextRange.getStartOffset
    val point = editor.visualPositionToXY(editor.offsetToVisualPosition(offset))
    if (!editor.getScrollingModel.getVisibleArea.contains(point)) {
      member match {
        case n: Navigatable => n.navigate(true)
        case _ =>
      }
    }

    body match {
      case e: ScBlockExpr =>
        val statements = e.statements
        if (statements.isEmpty) {
          editor.getCaretModel.moveToOffset(body.getTextRange.getStartOffset + 1)
        } else {
          val range = new TextRange(statements.head.getTextRange.getStartOffset, statements.last.getTextRange.getEndOffset)
          editor.getCaretModel.moveToOffset(range.getStartOffset)
          editor.getSelectionModel.setSelection(range.getStartOffset, range.getEndOffset)
        }
      case _ =>
        val range = body.getTextRange
        editor.getCaretModel.moveToOffset(range.getStartOffset)
        editor.getSelectionModel.setSelection(range.getStartOffset, range.getEndOffset)
    }
  }

  private def callSuperText(td: ScTemplateDefinition, method: PsiMethod): String = {
    val superOrSelfQual: String = td.selfType match {
      case None => "super."
      case Some(st: ScType) =>
        val psiClass = st.extractClass.getOrElse(return "super.")

        def nonStrictInheritor(base: PsiClass, inheritor: PsiClass): Boolean = {
          if (base == null || inheritor == null) false
          else base == inheritor || inheritor.isInheritorDeep(base, null)
        }

        if (nonStrictInheritor(method.containingClass, psiClass))
          td.selfTypeElement.get.name + "."
        else "super."
    }
    def paramText(param: PsiParameter) = {
      val name = ScalaNamesUtil.escapeKeyword(param.name).toOption.getOrElse("")
      val whitespace = if (name.endsWith("_")) " " else ""
      name + (if (param.isVarArgs) whitespace + ": _*" else "")
    }
    val methodName = ScalaNamesUtil.escapeKeyword(method.name)
    val parametersText: String = {
      method match {
        case fun: ScFunction =>
          val clauses = fun.paramClauses.clauses.filter(!_.isImplicit)
          clauses.map(_.parameters.map(_.name).mkString("(", ", ", ")")).mkString
        case method: PsiMethod =>
          if (method.isAccessor && method.getParameterList.getParametersCount == 0) ""
          else method.parameters.map(paramText).mkString("(", ", ", ")")
      }
    }
    superOrSelfQual + methodName + parametersText
  }

  def getMethodBody(member: ScMethodMember, td: ScTemplateDefinition, isImplement: Boolean):String = {
    val templateName =
      if (isImplement) ScalaFileTemplateUtil.SCALA_IMPLEMENTED_METHOD_TEMPLATE
      else ScalaFileTemplateUtil.SCALA_OVERRIDDEN_METHOD_TEMPLATE

    val template = FileTemplateManager.getInstance().getCodeTemplate(templateName)

    val properties = new Properties()

    val returnType = member.scType

    val standardValue = getStandardValue(returnType)

    val method = member.getElement

    properties.setProperty(FileTemplate.ATTRIBUTE_RETURN_TYPE, returnType.presentableText)
    properties.setProperty(FileTemplate.ATTRIBUTE_DEFAULT_RETURN_VALUE, standardValue)
    properties.setProperty(FileTemplate.ATTRIBUTE_CALL_SUPER, callSuperText(td, method))
    properties.setProperty("Q_MARK", ScalaGenerationInfo.defaultValue(returnType, td.getContainingFile))

    ScalaFileTemplateUtil.setClassAndMethodNameProperties(properties, method.containingClass, method)

    template.getText(properties)
  }

  def insertMethod(member: ScMethodMember, td: ScTemplateDefinition, anchor: PsiElement): ScFunction = {
    val method: PsiMethod = member.getElement
    val ScMethodMember(signature, isOverride) = member

    val body = getMethodBody(member, td, !isOverride)

    val needsOverride = isOverride || toAddOverrideToImplemented

    val m = createOverrideImplementMethod(signature, needsOverride, body,
      withComment = ScalaApplicationSettings.getInstance().COPY_SCALADOC, withAnnotation = false)(method.getManager)

    TypeAnnotationUtil.removeTypeAnnotationIfNeeded(m, typeAnnotationsPolicy)
    val added = td.addMember(m, Option(anchor))
    TypeAdjuster.markToAdjust(added)
    added.asInstanceOf[ScFunction]
  }

  def createVariable(comment: String, classMember: ClassMember): ScMember = {
    val isVal = classMember.isInstanceOf[ScValueMember]

    val value = classMember match {
      case x: ScValueMember => x.element
      case x: ScVariableMember => x.element
    }
    val (substitutor, needsOverride) = classMember match {
      case x: ScValueMember => (x.substitutor, x.isOverride)
      case x: ScVariableMember => (x.substitutor, x.isOverride)
    }
    val addOverride = needsOverride || toAddOverrideToImplemented
    val m = createOverrideImplementVariable(value, substitutor, addOverride, isVal, comment)(value.getManager)

    TypeAnnotationUtil.removeTypeAnnotationIfNeeded(m, typeAnnotationsPolicy)
    m
  }

  def toAddOverrideToImplemented: Boolean =
    if (ApplicationManager.getApplication.isUnitTestMode) false
    else ScalaApplicationSettings.getInstance.ADD_OVERRIDE_TO_IMPLEMENTED

  def typeAnnotationsPolicy: ScalaApplicationSettings.ReturnTypeLevel =
    ScalaApplicationSettings.getInstance().SPECIFY_RETURN_TYPE_EXPLICITLY
}


text:
from pants.backend.python.target_types import (
    PythonSourcesGeneratorTarget,
    PythonSourceTarget,
    PythonTestsGeneratorTarget,
    PythonTestTarget,
    PythonTestUtilsGeneratorTarget,
)
from pants.engine.target import BoolField

class SkipAddTrailingCommaField(BoolField):
    alias = "skip_add_trailing_comma"
    default = False
    help = "If true, don't run add-trailing-comma on this target's code."

def rules():
    return [
        PythonSourcesGeneratorTarget.register_plugin_field(SkipAddTrailingCommaField),
        PythonSourceTarget.register_plugin_field(SkipAddTrailingCommaField),
        PythonTestsGeneratorTarget.register_plugin_field(SkipAddTrailingCommaField),
        PythonTestTarget.register_plugin_field(SkipAddTrailingCommaField),
        PythonTestUtilsGeneratorTarget.register_plugin_field(SkipAddTrailingCommaField),
    ]


text:
import re
import markdown

class SemiSaneOListProcessor(markdown.blockprocessors.OListProcessor):
    SIBLING_TAGS = ['ol']

class SemiSaneUListProcessor(markdown.blockprocessors.UListProcessor):
    SIBLING_TAGS = ['ul']

class SemiSaneListExtension(markdown.Extension):
    """An extension that causes lists to be treated the same way GitHub does.

    Like the sane_lists extension, GitHub considers a list to end if it's
    separated by multiple newlines from another list of a different type. Unlike
    the sane_lists extension, GitHub will mix list types if they're not
    separated by multiple newlines.

    Github also recognizes lists that start in the middle of a paragraph. This
    is currently not supported by this extension, since the Python parser has a
    deeply-ingrained belief that blocks are always separated by multiple
    newlines.
    """

    def extendMarkdown(self, md, md_globals):
        md.parser.blockprocessors['olist'] = SemiSaneOListProcessor(md.parser)
        md.parser.blockprocessors['ulist'] = SemiSaneUListProcessor(md.parser)


text:
class SetLanguageController < ApplicationController

  def english
    I18n.locale = :en
    set_session_and_redirect
  end

  def spanish
    I18n.locale = :es
    set_session_and_redirect
  end

  private

  def set_session_and_redirect
    session[:locale] = I18n.locale
    redirect_to :back
  rescue ActionController::RedirectBackError
    redirect_to :root
  end
end


text:
"""Unittests
"""

import os
import sys
import socket
import errno
import datetime
import logging
import inspect
import platform
import unittest

SSL_AVAILABLE = True
try:
    import ssl
except ImportError:
    SSL_AVAILABLE = False

# Note that IPv6 support for Python is checked here, but it can be disabled
# when the bind_address of MySQL was not set to '::1'.
IPV6_AVAILABLE = socket.has_ipv6

if os.name == 'nt':
    WINDOWS_VERSION = platform.win32_ver()[1]
    WINDOWS_VERSION_INFO = tuple(
        [int(v) for v in WINDOWS_VERSION.split('.')[0:2]])
else:
    WINDOWS_VERSION = None
    WINDOWS_VERSION_INFO = ()

MYSQL_CONFIG = {
    'host' : '127.0.0.1',
    'port' : 33770,
    'unix_socket' : None,
    'user' : 'root',
    'password' : '',
    'database' : 'myconnpy',
    'connection_timeout': 10,
}

# Following dictionary holds messages which were added by test cases
# but only logged at the end.
MESSAGES = {
    'WARNINGS': [],
    'INFO': [],
}

MYSQL_VERSION = None
SSL_DIR = os.path.join("support", "ssl")

LOGGER_NAME = "myconnpy_tests"

__all__ = [
    'MySQLConnectorTests',
    'get_test_names','printmsg',
    'active_testcases',
    'LOGGER_NAME',
    'SSL_DIR',
    'MYSQL_VERSION',
]

active_testcases = [
    'tests.test_utils',
    'tests.test_protocol',
    'tests.test_constants',
    'tests.test_conversion',
    'tests.test_connection',
    'tests.test_network',
    'tests.test_cursor',
    'tests.test_pep249',
    'tests.test_bugs',
    'tests.test_examples',
    'tests.test_mysql_datatypes',
    'tests.test_errors',
    'tests.test_errorcode',
    'tests.test_locales',
]

class UTCTimeZone(datetime.tzinfo):
    def utcoffset(self,dt):
        return datetime.timedelta(0)
    def dst(self,dt):
        return datetime.timedelta(0)

class TestTimeZone(datetime.tzinfo):
    def __init__(self, hours=0):
        self._offset = datetime.timedelta(hours=hours)
    def utcoffset(self,dt):
        return self._offset
    def dst(self,dt):
        return datetime.timedelta(0)

class DummySocket(object):
    """Dummy socket class

    This class helps to test socket connection without actually making any
    network activity. It is a proxy class using socket.socket.
    """
    def __init__(self, *args):
        self._socket = socket.socket(*args)
        self._server_replies = b''
        self._client_sends = []
        self._raise_socket_error = 0

    def __getattr__(self, attr):
        return getattr(self._socket, attr)

    def raise_socket_error(self, err=errno.EPERM):
        self._raise_socket_error = err

    def recv(self, bufsize=4096, flags=0):
        if self._raise_socket_error:
            raise socket.error(self._raise_socket_error)
        res = self._server_replies[0:bufsize]
        self._server_replies = self._server_replies[bufsize:]
        return res

    def send(self, string, flags=0):
        if self._raise_socket_error:
            raise socket.error(self._raise_socket_error)
        self._client_sends.append(string)
        return len(string)

    def sendall(self, string, flags=0):
        self._client_sends.append(string)
        return None

    def add_packet(self, packet):
        self._server_replies += packet

    def add_packets(self, packets):
        for packet in packets:
            self._server_replies += packet

    def reset(self):
        self._raise_socket_error = 0
        self._server_replies = b''
        self._client_sends = []

class MySQLConnectorTests(unittest.TestCase):

    def getMySQLConfig(self):
        return MYSQL_CONFIG.copy()

    def getFakeHostname(self):
        return ''.join([ "%02x" % c for c in os.urandom(4)])

    def checkAttr(self, obj, attrname, default):
        cls_name = obj.__class__.__name__
        self.assertTrue(hasattr(obj,attrname),
            "%s object has no '%s' attribute" % (cls_name,attrname))
        self.assertEqual(default,getattr(obj,attrname),
            "%s object's '%s' should default to %s '%s'" % (
                cls_name, attrname, type(default).__name__, default)
            )

    def checkMethod(self, obj, method):
        cls_name = obj.__class__.__name__
        self.assertTrue(hasattr(obj,method),
            "%s object has no '%s' method" % (cls_name, method))
        self.assertTrue(inspect.ismethod(getattr(obj,method)),
            "%s object defines %s, but is not a method" % (
                cls_name, method))

    def checkArguments(self, function, supported_arguments):
        argspec = inspect.getargspec(function)
        function_arguments = dict(zip(argspec[0][1:],argspec[3]))
        for argument,default in function_arguments.items():
            try:
                self.assertEqual(supported_arguments[argument],
                                 default,
                                 msg="Argument '{}' has wrong default".format(
                                     argument))
            except KeyError:
                self.fail("Found unsupported or new argument '{}'".format(
                          argument))
        for argument,default in supported_arguments.items():
            if not argument in function_arguments:
                self.fail("Supported argument '{}' fails".format(
                          argument))

    def haveEngine(self, db, engine):
        """Check if the given storage engine is supported"""
        have = False
        engine = engine.lower()
        c = None
        try:
            c = db.cursor()
            # Should use INFORMATION_SCHEMA, but play nice with v4.1
            c.execute("SHOW ENGINES")
            rows = c.fetchall()
            for row in rows:
                if row[0].lower() == engine:
                    if row[1].lower() == 'yes':
                        have=True
                    break
        except:
            raise
        finally:
            try:
                c.close()
            except:
                pass
        return have

    def cmpResult(self, res1, res2):
        """Compare results (list of tuples) comming from MySQL

        For certain results, like SHOW VARIABLES or SHOW WARNINGS, the
        order is unpredictable. To check if what is expected in the
        tests, we need to compare each row.
        """
        try:
            if len(res1) != len(res2):
                return False

                for row in res1:
                    if row not in res2:
                        return False
        except:
            return False

        return True

def get_test_names():
    return [ s.replace('tests.test_','') for s in active_testcases]

def printmsg(msg=None):
    if msg is not None:
        print(msg)


text:
"""Support for Homekit sensors."""
from homeassistant.const import TEMP_CELSIUS

from . import KNOWN_DEVICES, HomeKitEntity

HUMIDITY_ICON = 'mdi:water-percent'
TEMP_C_ICON = "mdi:thermometer"
BRIGHTNESS_ICON = "mdi:brightness-6"

UNIT_PERCENT = "%"
UNIT_LUX = "lux"

async def async_setup_platform(
        hass, config, async_add_entities, discovery_info=None):
    """Legacy set up platform."""
    pass

async def async_setup_entry(hass, config_entry, async_add_entities):
    """Set up Homekit covers."""
    hkid = config_entry.data['AccessoryPairingID']
    conn = hass.data[KNOWN_DEVICES][hkid]

    def async_add_service(aid, service):
        devtype = service['stype']
        info = {'aid': aid, 'iid': service['iid']}
        if devtype == 'humidity':
            async_add_entities([HomeKitHumiditySensor(conn, info)], True)
            return True

        if devtype == 'temperature':
            async_add_entities([HomeKitTemperatureSensor(conn, info)], True)
            return True

        if devtype == 'light':
            async_add_entities([HomeKitLightSensor(conn, info)], True)
            return True

        return False

    conn.add_listener(async_add_service)

class HomeKitHumiditySensor(HomeKitEntity):
    """Representation of a Homekit humidity sensor."""

    def __init__(self, *args):
        """Initialise the entity."""
        super().__init__(*args)
        self._state = None

    def get_characteristic_types(self):
        """Define the homekit characteristics the entity is tracking."""
        # pylint: disable=import-error
        from homekit.model.characteristics import CharacteristicsTypes

        return [
            CharacteristicsTypes.RELATIVE_HUMIDITY_CURRENT
        ]

    @property
    def name(self):
        """Return the name of the device."""
        return "{} {}".format(super().name, "Humidity")

    @property
    def icon(self):
        """Return the sensor icon."""
        return HUMIDITY_ICON

    @property
    def unit_of_measurement(self):
        """Return units for the sensor."""
        return UNIT_PERCENT

    def _update_relative_humidity_current(self, value):
        self._state = value

    @property
    def state(self):
        """Return the current humidity."""
        return self._state

class HomeKitTemperatureSensor(HomeKitEntity):
    """Representation of a Homekit temperature sensor."""

    def __init__(self, *args):
        """Initialise the entity."""
        super().__init__(*args)
        self._state = None

    def get_characteristic_types(self):
        """Define the homekit characteristics the entity is tracking."""
        # pylint: disable=import-error
        from homekit.model.characteristics import CharacteristicsTypes

        return [
            CharacteristicsTypes.TEMPERATURE_CURRENT
        ]

    @property
    def name(self):
        """Return the name of the device."""
        return "{} {}".format(super().name, "Temperature")

    @property
    def icon(self):
        """Return the sensor icon."""
        return TEMP_C_ICON

    @property
    def unit_of_measurement(self):
        """Return units for the sensor."""
        return TEMP_CELSIUS

    def _update_temperature_current(self, value):
        self._state = value

    @property
    def state(self):
        """Return the current temperature in Celsius."""
        return self._state

class HomeKitLightSensor(HomeKitEntity):
    """Representation of a Homekit light level sensor."""

    def __init__(self, *args):
        """Initialise the entity."""
        super().__init__(*args)
        self._state = None

    def get_characteristic_types(self):
        """Define the homekit characteristics the entity is tracking."""
        # pylint: disable=import-error
        from homekit.model.characteristics import CharacteristicsTypes

        return [
            CharacteristicsTypes.LIGHT_LEVEL_CURRENT
        ]

    @property
    def name(self):
        """Return the name of the device."""
        return "{} {}".format(super().name, "Light Level")

    @property
    def icon(self):
        """Return the sensor icon."""
        return BRIGHTNESS_ICON

    @property
    def unit_of_measurement(self):
        """Return units for the sensor."""
        return UNIT_LUX

    def _update_light_level_current(self, value):
        self._state = value

    @property
    def state(self):
        """Return the current light level in lux."""
        return self._state


text:
class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController

  # DELETE /maestrano/account/groups/cld-1
  # Delete an entire group
  def destroy
    group_uid = params[:id]
    render text: "Yay!"

    # Perform deletion steps here
    # --
    # If you need to perform a final checkout
    # then you can call Maestrano::Account::Bill.create({.. final checkout details ..})
    # --
    # If Maestrano.param('sso.creation_mode') is set to virtual
    # then you might want to delete/cancel/block all users under
    # that group
    # --
    # E.g:
    # organization = Organization.find_by_provider_and_uid('maestrano',group_uid)
    #
    # amount_cents = organization.calculate_total_due_remaining
    # Maestrano::Account::Bill.create({
    #   group_id: group_uid,
    #   price_cents: amount_cents,
    #   description: "Final Payout"
    # })
    #
    # if Maestrano.param('sso.creation_mode') == 'virtual'
    #   organization.members.where(provider:'maestrano').each do |user|
    #   user.destroy
    # end
    #
    # organization.destroy
    # render json: {success: true}
    #
  end
end