text:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xml" href="c:\Navigo\webapp\xml\xsl\dataTransform\result\extractGrades.xsl"?>
<assessment_taken>
  <assessment ident="4bfe81f3-60d3-4d3d-0054-5426dfbb89c8"
  title="Ed's Test Assessment: Do Not Delete">
    <qticomment />
    <duration>PT0H0M</duration>
    <qtimetadata>

      <qtimetadatafield>
        <fieldlabel>AUTHORS</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CREATOR</fieldlabel>
        <fieldentry>Ed Smiley</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>SHOW_CREATOR</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_AUTHORS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_DESCRIPTION</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>START_DATE</fieldlabel>
        <fieldentry>2004-06-07T17:33:00</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>END_DATE</fieldlabel>
        <fieldentry>2005-06-07T17:33:00</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>RETRACT_DATE</fieldlabel>
        <fieldentry>0000-00-00T00:00:00</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CONSIDER_START_DATE</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CONSIDER_END_DATE</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CONSIDER_RETRACT_DATE</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_END_DATE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_RETRACT_DATE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>ASSESSMENT_RELEASED_TO</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_PUBLISH_ANONYMOUS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_AUTHENTICATED_USERS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>ALLOW_IP</fieldlabel>
        <fieldentry></fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CONSIDER_ALLOW_IP</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CONSIDER_USERID</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>USERID</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>PASSWORD</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_ALLOW_IP</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_USERID</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>CONSIDER_DURATION</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>
      <qtimetadatafield>
        <fieldlabel>AUTO_SUBMIT</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_DURATION</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_AUTO_SUBMIT</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>NAVIGATION</fieldlabel>
        <fieldentry>RANDOM</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>QUESTION_LAYOUT</fieldlabel>
        <fieldentry>I</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>QUESTION_NUMBERING</fieldlabel>
        <fieldentry>CONTINUOUS</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_NAVIGATION</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_QUESTION_LAYOUT</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_QUESTION_NUMBERING</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>LATE_HANDLING</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>MAX_ATTEMPTS</fieldlabel>
        <fieldentry>1</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_LATE_HANDLING</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_MAX_ ATTEMPTS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>AUTO_SAVE</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_AUTO_SAVE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_ASSESSFEEDBACK</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FINISH_URL</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_FINISH_URL</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_DELIVERY</fieldlabel>
        <fieldentry>NONE</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_DELIVERY_DATE</fieldlabel>
        <fieldentry>0000-00-00T00:00:00</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_FEEDBACK_DELIVERY</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_FEEDBACK_COMPONENTS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_CORRECT_RESPONSE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_STUDENT_SCORE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_ITEM_LEVEL</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_SELECTION_LEVEL</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_GRADER_COMMENT</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_STATS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_QUESTION</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>FEEDBACK_SHOW_RESPONSE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>ANONYMOUS_GRADING</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>GRADE_SCORE</fieldlabel>
        <fieldentry>HIGHEST</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>GRADEBOOK_OPTIONS</fieldlabel>
        <fieldentry>DEFAULT</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_GRADEBOOK_OPTIONS</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_ANONYMOUS_GRADING</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_GRADE_SCORE</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>BGCOLOR</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>BGIMG</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_ASSESSMENT_METADATA</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_COLLECT_SECTION_METADATA</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>EDIT_COLLECT_ITEM_METADATA</fieldlabel>
        <fieldentry>True</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>ASSESSMENT_KEYWORDS</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>ASSESSMENT_OBJECTIVES</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>ASSESSMENT_RUBRICS</fieldlabel>
        <fieldentry />
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>COLLECT_SECTION_METADATA</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>COLLECT_ITEM_METADATA</fieldlabel>
        <fieldentry>False</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>LAST_MODIFIED_ON</fieldlabel>
        <fieldentry>2004-06-07 17:34:01</fieldentry>
      </qtimetadatafield>

      <qtimetadatafield>
        <fieldlabel>LAST_MODIFIED_BY</fieldlabel>
        <fieldentry />
      </qtimetadatafield>
    </qtimetadata>

    <assessmentcontrol feedbackswitch="No" solutionswitch="Yes" />
    <rubric>
      <material>
        <mattext />
      </material>
    </rubric>
    <presentation_material>
      <flow_mat>
        <material>
          <mattext />
        </material>
      </flow_mat>
    </presentation_material>
    <assessfeedback ident="Feedback" title="Feedback">
      <flow_mat>
        <material>
          <mattext />
        </material>
      </flow_mat>
    </assessfeedback>

      <qtimetadata>

        <qtimetadatafield>
          <fieldlabel>SECTION_OBJECTIVE</fieldlabel>
          <fieldentry />
        </qtimetadatafield>
        <qtimetadatafield>
          <fieldlabel>SECTION_KEYWORD</fieldlabel>
          <fieldentry />
        </qtimetadatafield>
        <qtimetadatafield>
          <fieldlabel>SECTION_RUBRIC</fieldlabel>
          <fieldentry />
        </qtimetadatafield>
      </qtimetadata>
      <presentation_material>
        <flow_mat>
          <material>
            <mattext />
          </material>
          <material>
            <matimage imagtype="text/html" uri="" />
          </material>
        </flow_mat>
      </presentation_material>
      <selection_ordering sequence_type="Normal">
        <selection>
          <sourcebank_ref />
          <selection_number />
        </selection>
        <order order_type="Sequential" />
      </selection_ordering>
      <item continueNumber="1" displayIndex="1"
      ident="d9de4292-29d9-47d0-804b-c7a56f93b87f" title="Multiple Choice">
        <duration />
        <itemmetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_itemtype</fieldlabel>
              <fieldentry>Multiple Choice</fieldentry>
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>TEXT_FORMAT</fieldlabel>
              <fieldentry>HTML</fieldentry>
            </qtimetadatafield>

            <qtimetadatafield>
              <fieldlabel>ITEM_OBJECTIVE</fieldlabel>
              <fieldentry />
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>ITEM_KEYWORD</fieldlabel>
              <fieldentry />
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>ITEM_RUBRIC</fieldlabel>
              <fieldentry />
            </qtimetadatafield>
          </qtimetadata>
        </itemmetadata>
        <rubric>
          <material>
            <mattext />
          </material>
        </rubric>
        <presentation label="Resp003">
          <flow>
            <material>
              <mattext>

              </mattext>
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
            <response_lid ident="MCSC" rcardinality="Single">
              <render_choice shuffle="No">
                <response_label ident="A">
                  <material>
                    <mattext>

                    </mattext>
                  </material>
                  <material>
                    <matimage imagtype="text/html" uri="" />
                  </material>
                </response_label>
                <response_label ident="B">
                  <material>
                    <mattext>

                    </mattext>
                  </material>
                  <material>
                    <matimage imagtype="text/html" uri="" />
                  </material>
                </response_label>
                <response_label ident="C">
                  <material>
                    <mattext>

                    </mattext>
                  </material>
                  <material>
                    <matimage imagtype="text/html" uri="" />
                  </material>
                </response_label>
                <response_label ident="D">
                  <material>
                    <mattext>

                    </mattext>
                  </material>
                  <material>
                    <matimage imagtype="text/html" uri="" />
                  </material>
                </response_label>
              </render_choice>
            </response_lid>
          </flow>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar defaultval="0" maxvalue="1000.0" minvalue="1000"
            varname="SCORE" />
          </outcomes>
          <respcondition continue="No">
            <conditionvar>
              <varequal case="Yes" respident="MCSC">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="InCorrect" />
            <displayfeedback feedbacktype="Response" linkrefid="A1" />
          </respcondition>
          <respcondition continue="No">
            <conditionvar>
              <varequal case="Yes" respident="MCSC">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="InCorrect" />
            <displayfeedback feedbacktype="Response" linkrefid="B1" />
          </respcondition>
          <respcondition continue="No">
            <conditionvar>
              <varequal case="Yes" respident="MCSC">C</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="InCorrect" />
            <displayfeedback feedbacktype="Response" linkrefid="C1" />
          </respcondition>
          <respcondition continue="No">
            <conditionvar>
              <varequal case="Yes" respident="MCSC">D</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1000</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="Correct" />
            <displayfeedback feedbacktype="Response" linkrefid="D1" />
          </respcondition>
        </resprocessing>
        <itemfeedback ident="A1" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="B1" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="C1" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="D1" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="Correct" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="InCorrect" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
      </item>
      <item continueNumber="2" displayIndex="2"
      ident="58f46c19-a880-4301-007c-62e9f2b3c4d3" title="True - False">
        <qticomment>This is a simple True/False multip INFO 2004-06-09
        16:49:57,601 [Ed Smiley:69.111.198.149:/asi/delivery/xmlAction.do]
        STDOUT - le-choice example using V1.2. The rendering is a standard
        radio button style. Response processing is incorporated.</qticomment>
        <duration />
        <itemmetadata>
          <qtimetadata>
            <qtimetadatafield>
              <fieldlabel>qmd_itemtype</fieldlabel>
              <fieldentry>True False</fieldentry>
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>TEXT_FORMAT</fieldlabel>
              <fieldentry>HTML</fieldentry>
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>ITEM_OBJECTIVE</fieldlabel>
              <fieldentry />
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>ITEM_KEYWORD</fieldlabel>
              <fieldentry />
            </qtimetadatafield>
            <qtimetadatafield>
              <fieldlabel>ITEM_RUBRIC</fieldlabel>
              <fieldentry />
            </qtimetadatafield>
          </qtimetadata>
        </itemmetadata>
        <rubric>
          <material>
            <mattext />
          </material>
        </rubric>
        <presentation label="Resp001">
          <flow>
            <material>
              <mattext>

              </mattext>
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
            <response_lid ident="TF02" rcardinality="Single">
              <render_choice shuffle="No">
                <response_label ident="A">
                  <material>
                    <mattext>

                    </mattext>
                  </material>
                </response_label>
                <response_label ident="B">
                  <material>
                    <mattext>

                    </mattext>
                  </material>
                </response_label>
              </render_choice>
            </response_lid>
          </flow>
        </presentation>
        <resprocessing>
          <outcomes>
            <decvar defaultval="0" maxvalue="1000.0" minvalue="1000"
            varname="SCORE" />
          </outcomes>
          <respcondition continue="No" title="Correct">
            <conditionvar>
              <varequal case="Yes" respident="TF02">A</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">1000</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="Correct" />
          </respcondition>
          <respcondition continue="No" title="InCorrect">
            <conditionvar>
              <varequal case="Yes" respident="TF02">B</varequal>
            </conditionvar>
            <setvar action="Add" varname="SCORE">0</setvar>
            <displayfeedback feedbacktype="Response" linkrefid="InCorrect" />
          </respcondition>
        </resprocessing>
        <itemfeedback ident="Correct" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
        <itemfeedback ident="InCorrect" view="All">
          <flow_mat>
            <material>
              <mattext />
            </material>
            <material>
              <matimage imagtype="text/html" uri="" />
            </material>
          </flow_mat>
        </itemfeedback>
      </item>

  </assessment>
  <qti_result_report>
    <result>
      <context>
        <name>Ed Smiley</name>
        <generic_identifier>
          <type_label>userId</type_label>
          <identifier_string>edsmiley</identifier_string>
        </generic_identifier>
        <generic_identifier>
          <type_label>coreId</type_label>
          <identifier_string>
          dc0a6a6b-7d65-499f-80a4-97b659508f47</identifier_string>
        </generic_identifier>
        <generic_identifier>
          <type_label>publishedId</type_label>
          <identifier_string>
          56cb17f1-172f-4402-8056-875f5e1b3775</identifier_string>
        </generic_identifier>
        <date>
          <type_label />
          <datetime />
        </date>
      </context>
      <assessment_result ident_ref="4bfe81f3-60d3-4d3d-0054-5426dfbb89c8">
        <asi_metadata>
          <asi_metadatafield>
            <field_name>ASSESSMENT_RELEASED_TO</field_name>
            <field_value />
          </asi_metadatafield>
          <asi_metadatafield>
            <field_name>ANONYMOUS_GRADING</field_name>
            <field_value>False</field_value>
          </asi_metadatafield>
        </asi_metadata>
        <outcomes>
          <score>
            <score_value>NaN</score_value>
            <score_max>NaN</score_max>
          </score>
        </outcomes>
        <section_result ident_ref="ed63a13c-3926-4cb8-0025-bf464965b85b">
          <outcomes>
            <score>
              <score_value>2000</score_value>
              <score_max>2000</score_max>
            </score>
          </outcomes>
          <item_result ident_ref="d9de4292-29d9-47d0-804b-c7a56f93b87f">
            <response ident_ref="MCSC">
              <response_form>
                <correct_response>D</correct_response>
              </response_form>
              <num_attempts>0</num_attempts>
              <response_value>D</response_value>
            </response>
            <outcomes>
              <score varname="SCORE">
                <score_value>1000</score_value>
                <score_max>1000.0</score_max>
              </score>
            </outcomes>
            <feedback_displayed ident_ref="Correct" />
            <feedback_displayed ident_ref="D1" />
            <extension_item_result />
          </item_result>
          <item_result ident_ref="58f46c19-a880-4301-007c-62e9f2b3c4d3">
            <response ident_ref="TF02">
              <response_form>
                <correct_response>A</correct_response>
              </response_form>
              <num_attempts>0</num_attempts>
              <response_value>A</response_value>
            </response>
            <outcomes>
              <score varname="SCORE">
                <score_value>1000</score_value>
                <score_max>1000.0</score_max>
              </score>
            </outcomes>
            <feedback_displayed ident_ref="Correct" />
            <extension_item_result />
          </item_result>
          <extension_section_result />
        </section_result>
        <extension_assessment_result />
      </assessment_result>
    </result>
  </qti_result_report>
</assessment_taken>


text:
layout: default
title: FACL
tagline : Managing file permissions using File Access Control Lists (FACLs)
group: documentation
subnavgroup: documentation
---
{% include JB/setup %}

The OSiRIS filesystem manages file permissions using access control lists or ACL's to further protect files and directories. Thus, standard UNIX file permissions might not be enough to manage file access for users/groups.

 Why do we need FACL(s)?

Every file in a UNIX system has a owner/group and a set of permissions attached to it. ACLs are used in OSiRIS to provide access to files for multiple users who are from different groups. The file system access control lists(FACLs) are the list of additional users/groups and their respective permissions to the file.

 Viewing FACL(s)

To display ACL details, filename, owner, group for each file we use the getfacl command. If a directory has a default ACL, getfacl also displays the default ACL. Non-directories cannot have default ACLs. If getfacl is used on a file system that does not support ACLs, getfacl displays the access permissions defined by the traditional file mode permission bits.

getfacl /osiris/test

output:
#file : test
#owner: root
#group : CO_COU_NavalOceanics_members_active
user::rw-
user:abc:r--
user:xyz:rwx
group::r--
group:CO_COU_Test_members_active:r-x
mask::r--
other::---

Notice 3 different user lines in the output above. Thefirst line lists the standard file permissions of the owner of the file. The two other user permissions are the individual permissions for the users abc and xyz. The mask field defines the maximum effective file permissions for other groups and users. The default group permissions are read only as seen above. Group CO_COU_Test_members_active has been granted read(r) and execute(x) [r-x] permissions exclusively . Other users/groups do not have any permissions.

 Creating and Managing FACL(s)

The setfacl command is used to set ACL for a given file. Even if a group is provided write permissions using standard unix chmod command, the members of the group would not be able to write to the /osris/test/ directory because the mask has been set to r-- as seen in the section above.

To override the mask the best way is to give exclusive permissions to that particular user/group to the file/directory. In our case we will provide exclusive read write[rw] access for CO_COU_NavalOceanics_members_active group to the /osris/test directory by running the command below:

setfacl -m g:CO_COU_NavalOceanics_members_active:rw /osris/test

The -m option tells setfacl to modify ACLs on the file(s) mention in command line.

 Masking

To access control list (ACL) mask defines the maximum effective permissions for any entry in the ACL. This mask is applied automatically everytime you execute the setfacl or chmod commands.
You can prevent masking by using the --no-mask flag in your command as shown below:

setfacl --no-mask -m u:xyz:7 /osiris/test.txt

 Backing up the FACL(s)

Many a times, the backup software may not copy the metadata related to the FACL on the files. In that case you may want to backup the FACL information on the files or directory. To copy the FACL on all the files in a directory , including all sub directories to a single file run :

cd /osiris
getfacl -R * > osiris_facl

The above commands will get the access control lists for all subdirectories and files under the osiris directory and write it to the osiris_facl file

 Restoring the FACL(s)

When you restore the files in /osiris directory, you would have to restore the FACLs associated with the files in that directory. To do that use the FACL backup file osiris_facl along with the –restore option :

setfacl --restore=osiris_facl

To learn more about file system access control lists please refer to this website

redpajama_set_name: RedPajamaGithub


text:
<link rel="import" href="../../polymer/polymer.html" />

  <link rel="import" href="../../px-sass-doc/px-sass-doc.html" />
  <link rel="import" href="../css/px-colors-design-demo-styles.html" />
  <link rel="import" href="../colors.html" />

<dom-module id="local-element-demo">
  <template>

<px-sass-doc
  module-name="px-colors-design"
  description="The Colors module assigns Sass variables for the Predix UI default color palette."
  layer="settings"
  sassdoc-path="sassdoc.json"
  dependencies='[]'
  selected-options="{{selectedOptions}}"
  hide-demo-container="true">

  Sass Variable

  Once installed in your project, you can refer to any of the Sass color variables from any of your custom Sass code:

```
background-color: $black;
```

  Polymer Behavior

  This component can also be installed as a Polymer behavior. After you install it with Bower, reference it in your project:

```
<!-- Import behavior in the document head (remove from comment): -->
<!--<link rel="import" href="../px-colors-design/colors.html" /> -->

<!-- add the variable as a behavior: -->
<!-- <script>
Polymer({
  is: 'px-my-component',
  behaviors: [commonColors],
  //...
});
</script> -->
```

  JavaScript Variable

  Alternatively, if you are not using Polymer in your project, you can access the JavaScript variables directly. After install/import:

```
var primaryBlue = baseColors.properties.colors.value.primary-blue;
var dvPink = dataVisColors.properties.dataVisColors.value.dv-basic-pink;
```

# Predix UI's palette

The Predix UI color palette is broken down into the following categories:

Monochromatic

 $black

 $gray10

 $gray9

 $gray8

 $gray7

 $gray6

 $gray5

 $gray4

 $gray3

 $gray2

 $gray1

 $white

Primary Blue

 $primary-blue

 $primary-blue-hover

 $primary-blue-pressed

Select Blue

 $select-blue-default

 $select-blue-hover

 $select-blue-pressed

Alerts

 $alert-red

 $alert-orange

 $alert-yellow

 $alert-blue

Data Visualization (Regular)

 $dv-basic-blue

 $dv-basic-orange

 $dv-basic-green

 $dv-basic-pink

 $dv-basic-brown

 $dv-basic-purple

 $dv-basic-yellow

 $dv-basic-red

 $dv-basic-gray

Data Visualization (Light)

 $dv-light-blue

 $dv-light-orange

 $dv-light-green

 $dv-light-pink

 $dv-light-brown

 $dv-light-purple

 $dv-light-yellow

 $dv-light-red

 $dv-light-gray

Data Visualization (Dark)

 $dv-dark-blue

 $dv-dark-orange

 $dv-dark-green

 $dv-dark-pink

 $dv-dark-brown

 $dv-dark-purple

 $dv-dark-yellow

 $dv-dark-red

 $dv-dark-gray

GE Brand Colors

 $red

 $red-light

 $red-dark

 $orange

 $orange-light

 $orange-dark

 $yellow

 $yellow-light

 $yellow-dark

 $green

 $green-light

 $green-dark

 $blue

 $blue-light

 $blue-dark

 $purple

 $purple-light

 $purple-dark

</px-sass-doc>
</template>

</dom-module>


text:
import {
    Component,
    NgModule,
    Input,
    Output,
    EventEmitter,
    forwardRef,
    ChangeDetectionStrategy,
    Injector,
    ViewChild,
    TemplateRef,
    ChangeDetectorRef
} from "@angular/core";
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from "@angular/forms";
import {CommonModule} from '@angular/common';
import {TranslateService, TranslateModule} from "@ngx-translate/core";
import {Subscription} from "rxjs";
import {debounceTime} from "rxjs/operators";
import {PerfectScrollbarModule} from 'ngx-perfect-scrollbar';
import {AbstractJigsawComponent, WingsTheme} from "../../common/common";
import {CommonUtils} from "../../common/core/utils/common-utils";
import {TranslateHelper} from '../../common/core/utils/translate-helper';
import {RequireMarkForCheck} from '../../common/decorator/mark-for-check';
import {FloatPosition, JigsawFloatModule} from '../../common/directive/float/float';
import {JigsawListModule} from '../list-and-tile/list';
import {JigsawAutoCompleteInputModule} from './auto-complete-input';

@WingsTheme('search-input.scss')
@Component({
    selector: "jigsaw-search-input, j-search-input",
    templateUrl: "search-input.html",
    host: {
        "[style.width]": "width",
        "[style.height]": "height",
        '[attr.data-theme]': 'theme',
        "[class.jigsaw-search-input-host]": "true",
        "[class.jigsaw-search-input-auto]": "autoSearch",
        "[class.jigsaw-search-input-disabled]": "disabled"
    },
    providers: [{provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => JigsawSearchInput), multi: true}],
    changeDetection: ChangeDetectionStrategy.OnPush
})
export class JigsawSearchInput extends AbstractJigsawComponent implements ControlValueAccessor {
    constructor(
        protected _changeDetectorRef: ChangeDetectorRef,
        private _translateService: TranslateService,
                // @RequireMarkForCheck 需要用到,勿删
                private _injector: Injector) {
        super();
    }

    /**
     * 设置搜索模式(自动/手动)
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public autoSearch: boolean = true;

    /**
     * 设置不可用
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public disabled: boolean = false;

    /**
     * 设置是否可以清除
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public clearable: boolean = true;

    /**
     * 输入框的placeholder
     */
    @RequireMarkForCheck()
    @Input()
    public placeholder: string = this._translateService.instant("search-input.placeholder");

    private _value: string;

    /**
     * 文本框中当前的文本
     */
    @RequireMarkForCheck()
    @Input()
    public get value(): string {
        return this._value;
    }

    public set value(newValue: string) {
        if (this._value === newValue) {
            return;
        }
        this._value = newValue.trim();
        this.valueChange.emit(this._value);
        // 表单友好接口
        this._propagateChange(this._value);
    }

    @Output()
    public valueChange: EventEmitter<string> = new EventEmitter<string>();

    @Output()
    public search: EventEmitter<string> = new EventEmitter<string>();

    /**
     * 设置了此属性会给搜索增加一个防抖功能,并增加enter回车立刻搜索
     * 设为'none'、NaN、小于0,或者不设置则表示不设置防抖
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public searchDebounce: number | "none" = NaN;

    public clearHistory(): void {
        if (!this.historyStorageKey) {
            return;
        }
        localStorage.removeItem(this.historyStorageKey);
        this._$history.length = 0;
        this.value = '';
    }

    /**
     * @internal
     */
    public _$enterSearch() {
        this.search.emit(this.value);
        this._saveSearchHistory(this.value);
    }

    /**
     * @internal
     */
    @ViewChild('jigsawFloatArea')
    public _$jigsawFloatArea: TemplateRef<any>;

    /**
     * 用户用于设置存在localStorage中历史记录的key值
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public historyStorageKey: string = 'jigsawSearchInputHistory';

    /**
     * @internal
     */
    public _$history: string[] = [];

    /**
     * 用户用于设置存在localStorage中历史记录的记录条数
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public historyStorageSize: number = 20;

    /**
     * 用户用于设置存在localStorage中历史记录的单条文本长度
     */
    private _maxHistoryItemLength: number = 200;

    private _isHistorySelected = false;

    private _saveSearchHistory(value: string) {
        if (CommonUtils.isUndefined(value) || value.length === 0 || value.length > this._maxHistoryItemLength) {
            return;
        }

        if (this._$history.length === 0) {
            /* 当历史记录为空时,auto-complete-input无法绑定_$history */
            this._$history = new Array(value);
            this._changeDetectorRef.detectChanges();
        } else {
            const index = this._$history.indexOf(value);
            if (index !== -1) {
                this._$history.splice(index, 1)
            }
            this._$history.unshift(value);
        }

        if (this._$history.length > this.historyStorageSize) {
            this._$history = this._$history.slice(0, this.historyStorageSize)
        }
        localStorage.setItem(this.historyStorageKey, JSON.stringify(this._$history));
    }

    /**
     * 用户用于设置历史记录弹出的位置
     *
     * @NoMarkForCheckRequired
     */
    @Input()
    public floatPosition: FloatPosition = 'bottomLeft';

    /**
     * @internal
     */
    public _$valueChange($event) {
        if (!this.autoSearch) {
            if (this._isHistorySelected) {
                this._isHistorySelected = !this._isHistorySelected;
            }
            return;
        }
        if (this._isValidSearchDebounce()) {
            this._debounceSearch();
            this.valueChange.emit($event);
        } else {
            this.search.emit($event);
        }
    }

    private _debounceSearch() {
        this._unsubscribeValueChange();
        this._subscribeValueChange();
    }

    private _isValidSearchDebounce(): boolean {
        return Number(this.searchDebounce) > 0;
    }

    private _valueChangeSubscription: Subscription;

    private _subscribeValueChange(): void {
        if (this._valueChangeSubscription) {
            return;
        }

        this._valueChangeSubscription = this.valueChange
            .pipe(debounceTime(Number(this.searchDebounce)))
            .subscribe(() => {
                this.search.emit(this.value);
            });
    }

    private _unsubscribeValueChange(): void {
        if (!this._valueChangeSubscription) {
            return;
        }
        this._valueChangeSubscription.unsubscribe();
        this._valueChangeSubscription = null;
    }

    /**
     * @internal
     */
    public _$onBlur() {
        if (this.autoSearch) {
            this._saveSearchHistory(this.value);
        }
        // 表单友好接口
        this._onTouched();
    }

    /**
     * @internal
     */
    public _$searchBtnClicked() {
        this.search.emit(this.value);
        this._saveSearchHistory(this.value);
    }

    public writeValue(value: any): void {
        this.value = CommonUtils.isDefined(value) ? value.toString() : "";
    }

    /**
     * 组件表单友好需支持接口
     */
    private _propagateChange: any = () => {
    };

    public registerOnChange(fn: any): void {
        this._propagateChange = fn;
    }

    private _onTouched: any = () => {
    };

    public registerOnTouched(fn: any): void {
        this._onTouched = fn;
    }

    ngOnDestroy() {
        super.ngOnDestroy();
        this._unsubscribeValueChange();
    }

    ngOnInit() {
        super.ngOnInit();

        const history = localStorage.getItem(this.historyStorageKey);
        if (CommonUtils.isDefined(history)) {
            this._$history = JSON.parse(history);
        }

        //国际化
        TranslateHelper.languageChangEvent.subscribe(langInfo => {
            this._translateService.use(langInfo.curLang);
            this.placeholder = this._translateService.instant("search-input.placeholder")
        })
    }
}

@NgModule({
    imports: [CommonModule, JigsawAutoCompleteInputModule, JigsawFloatModule, JigsawListModule, PerfectScrollbarModule, TranslateModule.forChild()],
    declarations: [JigsawSearchInput],
    exports: [JigsawSearchInput],
    providers: [TranslateService]
})
export class JigsawSearchInputModule {
    constructor() {
        TranslateHelper.initI18n("search-input", {
            zh: {
                placeholder: "搜索"
            },
            en: {
                placeholder: "Search"
            }
        });
    }
}


text:
#include "engine_wrapper.h"
#include "utilities.h"
#include <memcached/protocol_binary.h>

void handle_executor_status(Cookie& cookie, cb::engine_errc status) {
    using cb::engine_errc;
    auto& connection = cookie.getConnection();

    const auto mapped = connection.remapErrorCode(status);
    switch (mapped) {
    case engine_errc::would_block:
        cookie.setEwouldblock(true);
        break;

    case engine_errc::disconnect:
        connection.shutdown();
        break;

    case engine_errc::rollback:
        throw std::logic_error(
                "handle_executor_status: should not be called for "
                "rollback");
        break;

    case engine_errc::success:
    case engine_errc::no_such_key:
    case engine_errc::key_already_exists:
    case engine_errc::no_memory:
    case engine_errc::not_stored:
    case engine_errc::invalid_arguments:
    case engine_errc::not_supported:
    case engine_errc::too_big:
    case engine_errc::no_access:
    case engine_errc::not_my_vbucket:
    case engine_errc::temporary_failure:
    case engine_errc::out_of_range:
    case engine_errc::no_bucket:
    case engine_errc::too_busy:
    case engine_errc::authentication_stale:
    case engine_errc::delta_badval:
    case engine_errc::locked:
    case engine_errc::locked_tmpfail:
    case engine_errc::unknown_collection:
    case engine_errc::predicate_failed:
    case engine_errc::no_collections_manifest:
    case engine_errc::cannot_apply_collections_manifest:
    case engine_errc::collections_manifest_is_ahead:
    case engine_errc::unknown_scope:
    case engine_errc::durability_impossible:
    case engine_errc::sync_write_in_progress:
    case engine_errc::sync_write_ambiguous:
    case engine_errc::dcp_streamid_invalid:
    case engine_errc::durability_invalid_level:
    case engine_errc::sync_write_re_commit_in_progress:
    case engine_errc::sync_write_pending:
    case engine_errc::failed:
        cookie.sendResponse(mapped);
        break;
    }
}


text:
@class DVTBorderedView, DVTDelayedInvocation, DVTGradientImageButton, DVTGradientImagePopUpButton, DVTMainViewControllerDrawingStrategy, DVTSearchField, IBICCatalogDocumentEditor, IBICOutlineViewItem, IBICSourceListOutlineView, IBOutlineViewImageAndTextCell, IBSelectionChannel, IBSelectionChannelContext, NSArray, NSSet, NSString;

@interface IBICCatalogSourceListController : IDEViewController <IBICCatalogItemObserver, IBSelectionChannelApplicator, NSOutlineViewDataSource, IBICSourceListOutlineViewDelegate, DVTStatefulObject, DVTMainViewControllerDrawingStrategyDelegate>
{
    IBOutlineViewImageAndTextCell *_prototypeCell;
    IBOutlineViewImageAndTextCell *_prototypeGroupCell;
    IBSelectionChannelContext *_pendingSelectionApplicationContext;
    DVTMainViewControllerDrawingStrategy *_mainViewControllerDrawingStrategy;
    BOOL _applyingStateToOutlineView;
    id <IBInvalidation> _treeObservationToken;
    DVTDelayedInvocation *_outlineValidator;
    NSSet *_pendingStateRestorationItemIDsToExpand;
    NSSet *_draggedItems;
    NSString *_previousFilterText;
    NSString *_filterText;
    NSArray *_filterComponents;
    IBICOutlineViewItem *_rootOutlineItem;
    BOOL _isApplyingExpansionState;
    IBICCatalogDocumentEditor *_documentEditor;
    IBSelectionChannel *_selectionChannel;
    IBICSourceListOutlineView *_outlineView;
    DVTSearchField *_searchField;
    DVTBorderedView *_outlineBorderedView;
    DVTBorderedView *_searchBorderedView;
    DVTGradientImagePopUpButton *_addButton;
    DVTGradientImageButton *_removeButton;
    NSSet *_previousStateRestorationExpandedItemIDs;
}

+ (void)configureStateSavingObjectPersistenceByName:(id)arg1;
+ (id)defaultSelectionChannelContext;
@property(copy, nonatomic) NSSet *previousStateRestorationExpandedItemIDs; // @synthesize previousStateRestorationExpandedItemIDs=_previousStateRestorationExpandedItemIDs;
@property(retain, nonatomic) DVTGradientImageButton *removeButton; // @synthesize removeButton=_removeButton;
@property(retain, nonatomic) DVTGradientImagePopUpButton *addButton; // @synthesize addButton=_addButton;
@property(retain, nonatomic) DVTBorderedView *searchBorderedView; // @synthesize searchBorderedView=_searchBorderedView;
@property(retain, nonatomic) DVTBorderedView *outlineBorderedView; // @synthesize outlineBorderedView=_outlineBorderedView;
@property(retain, nonatomic) DVTSearchField *searchField; // @synthesize searchField=_searchField;
@property(retain, nonatomic) IBICSourceListOutlineView *outlineView; // @synthesize outlineView=_outlineView;
@property(readonly) IBSelectionChannel *selectionChannel; // @synthesize selectionChannel=_selectionChannel;
@property(readonly) IBICCatalogDocumentEditor *documentEditor; // @synthesize documentEditor=_documentEditor;
- (void).cxx_destruct;
- (void)commitStateToDictionary:(id)arg1;
- (void)revertStateWithDictionary:(id)arg1;
- (void)outlineViewSelectionDidChange:(id)arg1;
- (id)catalogItemsForOutlineViewItems:(id)arg1;
- (void)selectionChannel:(id)arg1 applySelection:(id)arg2 previousSelection:(id)arg3 context:(id)arg4;
- (void)updateFilter:(id)arg1;
- (BOOL)outlineView:(id)arg1 doCommandBySelector:(SEL)arg2;
- (BOOL)validateUserInterfaceItem:(id)arg1;
- (void)importImageCatalogContentFromProjectBasedOnOutlineClickContext:(id)arg1;
- (void)importImageCatalogContentFromProjectBasedOnSelectionContext:(id)arg1;
- (void)importImageCatalogContentBasedOnOutlineClickContext:(id)arg1;
- (void)importImageCatalogContentBasedOnSelectionContext:(id)arg1;
- (void)openWithExternalEditorBasedOnOutlineClickContext:(id)arg1;
- (void)showInFinderBasedOnOutlineClickContext:(id)arg1;
- (void)removeImageCatalogItemsBasedOnOutlineClickContext:(id)arg1;
- (void)insertNewWrappingImageCatalogFolderBasedOnOutlineClickContext:(id)arg1;
- (void)insertNewImageCatalogFolderBasedOnOutlineClickContext:(id)arg1;
- (void)insertNewImageCatalogLaunchImageSetBasedOnOutlineClickContext:(id)arg1;
- (void)insertNewImageCatalogAppIconSetBasedOnOutlineClickContext:(id)arg1;
- (void)insertNewImageCatalogIconSetBasedOnOutlineClickContext:(id)arg1;
- (void)insertNewImageCatalogImageSetBasedOnOutlineClickContext:(id)arg1;
- (void)removeImageCatalogItemsBasedOnSourceItemsContext:(id)arg1;
- (void)insertNewWrappingImageCatalogFolderBasedOnSourceItemsContext:(id)arg1;
- (void)insertNewImageCatalogFolderBasedSourceItemsContext:(id)arg1;
- (void)insertNewImageCatalogLaunchImageSetBasedSourceItemsContext:(id)arg1;
- (void)insertNewImageCatalogAppIconSetBasedSourceItemsContext:(id)arg1;
- (void)insertNewImageCatalogIconSetBasedSourceItemsContext:(id)arg1;
- (void)insertNewImageCatalogImageSetBasedSourceItemsContext:(id)arg1;
- (void)performMenuAction:(SEL)arg1;
- (id)actionContextForType:(long long)arg1;
- (BOOL)getActionInfo:(CDStruct_8b9402de *)arg1 forAction:(SEL)arg2;
- (id)sourceItemsActionContext;
- (id)contextClickActionContext;
- (void)outlineView:(id)arg1 draggingSession:(id)arg2 endedAtPoint:(struct CGPoint)arg3 operation:(unsigned long long)arg4;
- (void)removePendingDraggedItemsIfAppropriateForDragOperation:(unsigned long long)arg1;
- (BOOL)outlineView:(id)arg1 writeItems:(id)arg2 toPasteboard:(id)arg3;
- (void)outlineViewItemDidCollapse:(id)arg1;
- (void)outlineViewItemDidExpand:(id)arg1;
- (BOOL)outlineView:(id)arg1 acceptDrop:(id)arg2 item:(id)arg3 childIndex:(long long)arg4;
- (unsigned long long)outlineView:(id)arg1 validateDrop:(id)arg2 proposedItem:(id)arg3 proposedChildIndex:(long long)arg4;
- (unsigned long long)dragOperationForTargettingItem:(id)arg1 withDragInfo:(id)arg2;
- (void)outlineViewDidBecomeFirstResponder:(id)arg1;
- (void)outlineView:(id)arg1 setObjectValue:(id)arg2 forTableColumn:(id)arg3 byItem:(id)arg4;
- (void)outlineView:(id)arg1 willDisplayCell:(id)arg2 forTableColumn:(id)arg3 item:(id)arg4;
- (BOOL)outlineView:(id)arg1 isGroupHeaderItem:(id)arg2;
- (BOOL)outlineView:(id)arg1 isGroupItem:(id)arg2;
- (BOOL)outlineView:(id)arg1 shouldSelectItem:(id)arg2;
- (BOOL)outlineView:(id)arg1 shouldCollapseItem:(id)arg2;
- (id)outlineView:(id)arg1 dataCellForTableColumn:(id)arg2 item:(id)arg3;
- (id)outlineView:(id)arg1 objectValueForTableColumn:(id)arg2 byItem:(id)arg3;
- (id)outlineView:(id)arg1 child:(long long)arg2 ofItem:(id)arg3;
- (BOOL)outlineView:(id)arg1 isItemExpandable:(id)arg2;
- (long long)outlineView:(id)arg1 numberOfChildrenOfItem:(id)arg2;
- (BOOL)isGroupOutlineItem:(id)arg1;
- (id)filteredOrderedChildrenOfOutlineViewItem:(id)arg1;
- (id)prototypeGroupCell;
- (id)prototypeCell;
- (void)batchedReloadOutlineView:(id)arg1;
- (void)applyExpansionStateToStateSaving;
- (void)applySelectionAndScrollToVisibleIfNeeded;
- (void)applyExpansionStateFromOutlineViewItemsToOutlineView;
- (void)applyPendingExpansionStateChangesToOutlineItems;
- (void)applyStateRestorationExpansionStateToOutlineItemsForBatchedUpdate;
- (void)applyMakingSelectedItemsVisibleToOutlineItemsForBatchedUpdate;
- (id)outlineViewItemsForCatalogItems:(id)arg1 applyingFilter:(BOOL)arg2;
- (void)imageCatalogItem:(id)arg1 didChangeDisplayProperty:(id)arg2;
- (void)imageCatalogItemDiskContentsDidChange:(id)arg1;
- (void)documentEditorDidChangeSourceItems;
- (void)imageCatalogItemWillChangeDisplayOrderedChildren:(id)arg1;
- (void)imageCatalogItem:(id)arg1 didChangeKey:(id)arg2 fromValue:(id)arg3 toValue:(id)arg4;
- (void)mainViewControllerDrawingStrategyActivationStateDidChange:(id)arg1;
- (id)catalog;
- (id)document;
- (void)takeFocus;
- (void)viewWillUninstall;
- (void)viewDidInstall;
- (BOOL)canBecomeMainViewController;
- (void)loadView;
- (void)configureOutlineView;
- (void)configureFilterBar;
- (id)outlineContextMenuItems;
- (id)addButtonMenuItems;
- (void)configureSearchField;
- (void)primitiveInvalidate;
- (id)initWithDocumentEditor:(id)arg1;

// Remaining properties
@property(readonly, copy) NSString *debugDescription;
@property(readonly, copy) NSString *description;
@property(readonly) unsigned long long hash;
@property(readonly) Class superclass;

@end


text:
require({
        baseUrl: './'
    },
    ['a'],
    function(a) {
        //This call then triggers another require call
        //for a loaded resource. Make sure it does not
        //trigger a double notification.
        a.doSomething();

        doh.register(
            'nestedRequire',
            [
                function nestedRequire(t){
                    t.is(1, a.counter);
                    t.is('base', a.base.name);
                }
            ]
        );
        doh.run();
    }
);


text:
#include "MyEntityClass.h"
void MyEntityClass::Init(void)
{
	m_v3Position = vector3();
	m_qOrientation = quaternion();
	m_v3Scale = vector3();

	m_v3Velocity = vector3();
	m_v3Acceleration = vector3();

	m_sName = "";
	m_fMaxAcc = 10.0f;
	m_fMass = 1.0f;

	m_pColliderManager = MyBOManager::GetInstance();
	m_pMeshManager = MeshManagerSingleton::GetInstance();
	m_pScoreMngr = ScoreManager::GetInstance();
}
void MyEntityClass::Swap(MyEntityClass& other)
{
	std::swap(m_v3Position, other.m_v3Position);
	std::swap(m_qOrientation, other.m_qOrientation);
	std::swap(m_v3Scale, other.m_v3Scale);

	std::swap(m_v3Velocity, other.m_v3Velocity);
	std::swap(m_v3Acceleration, other.m_v3Acceleration);

	std::swap(m_fMaxAcc, other.m_fMaxAcc);
	std::swap(m_sName, other.m_sName);
	std::swap(m_pColliderManager, other.m_pColliderManager);
	std::swap(m_pMeshManager, other.m_pMeshManager);
}
void MyEntityClass::Release(void)
{
	//TODO
}

MyEntityClass::MyEntityClass(String n)
{
	Init();
	m_sName = n;

	InstanceClass* pInst = m_pMeshManager->GetInstanceByName(m_sName);
	if (pInst != nullptr)
	{
		std::vector<vector3> vertexList = pInst->GetVertexList();
		m_pColliderManager->AddObject(/*list of verts*/vertexList, m_sName);
		m_bCreated = true;
	}
	else
	{
		m_bCreated = false;
	}
}

MyEntityClass::MyEntityClass(MyEntityClass const& other)
{
	m_v3Position = other.m_v3Position;
	m_qOrientation = other.m_qOrientation;
	m_v3Scale = other.m_v3Scale;

	m_v3Velocity = other.m_v3Velocity;
	m_v3Acceleration = other.m_v3Acceleration;

	m_sName = other.m_sName;
	m_fMaxAcc = other.m_fMaxAcc;

	m_pColliderManager = other.m_pColliderManager;
	m_pMeshManager = other.m_pMeshManager;
}

MyEntityClass& MyEntityClass::operator=(MyEntityClass const& other)
{
	if (this != &other)
	{
		Release();
		Init();
		MyEntityClass temp(other);
		Swap(temp);
	}
	return *this;
}

void MyEntityClass::Update(void)
{

	m_v3Velocity += m_v3Acceleration;
	m_v3Position = m_v3Position + (m_v3Velocity * m_fMass);

	matrix4 m4Mod;

	m4Mod = glm::translate(m_v3Position);

	m_pMeshManager->SetModelMatrix(m4Mod, m_sName);
	m_pMeshManager->AddInstanceToRenderList(m_sName);

	int nIndex = m_pColliderManager->GetIndex(m_sName);
	m_pColliderManager->SetModelMatrix(m4Mod, m_sName);
	m_pColliderManager->DisplayReAlligned(nIndex);

}

void MyEntityClass::ApplyCollision(MyEntityClass* other)
{
	//std::cout << m_sName << " do something about it\n";
	if (!m_bHitReg)
	{
		m_pScoreMngr->Increment();
		m_bHitReg = true;
	}
}

void MyEntityClass::SetPosition(vector3 vPos)
{
	m_v3Position = vPos;
}
vector3 MyEntityClass::GetPosition()
{
	return m_v3Position;
}

void MyEntityClass::SetVelocity(vector3 vVel)
{
	m_v3Velocity = vVel;
}
void MyEntityClass::SetAcceleration(vector3 vAcc)
{
	m_v3Acceleration = vAcc;
}

void MyEntityClass::ApplyForce(vector3 force)
{
	m_v3Acceleration[0] += force[0] / m_fMass;
	m_v3Acceleration[1] += force[1] / m_fMass;
	m_v3Acceleration[2] += force[2] / m_fMass;

}

void MyEntityClass::SetMass(float m)
{
	m_fMass = m;
}
float MyEntityClass::GetMass()
{
	return m_fMass;
}

MyEntityClass::~MyEntityClass()
{
}


text:
namespace Contract
{
    public class HardSubtitlesJob : FFmpegJob
    {
        public override JobType Type => JobType.HardSubtitles;
    }
}


text:
require 'test_helper'

class LifxHttpTest < Minitest::Test
  def test_that_it_has_a_version_number
    refute_nil ::LifxHttp::VERSION
  end

  def test_has_no_real_tests
    # trollolol
    assert true
  end
end


text:
"""Locale manage.

This file get locale information forn the file locale-list.
"""

from re import compile

class Locale:
    """Locale class."""

    locales = {}
    language = []

    types_keyboard = {}
    lang_keyboard = []

    timezones = []

    def get_locale(self):
        """Get locale language list from locale-list file."""
        patten = compile(r'(\w+_\w{2})')
        locale_list = open('locale-list')
        for line in locale_list:
            code = patten.search(line)
            lang = line[len(code.group()):].replace('\n', '').lstrip()
            self.locales[code.group()] = lang
            self.language.append(lang)
        self.language.sort()
        return self.language

    def search_language(self, text):
        """Searching language."""
        language = self.get_locale()
        tmp = []
        for l in language:
            if l.lower().startswith(text.lower()):
                tmp.append(l)
        tmp = list(set(tmp))
        return tmp

    def get_keyboard(self):
        """Get keyboard list from keyboard-list file."""
        keyboard_list = open('keyboard-list')
        for line in keyboard_list:
            line = line.split('*')
            self.types_keyboard[line[0]] = line[1].replace('\n', '')
            self.lang_keyboard.append(line[1].replace('\n', ''))
        self.lang_keyboard.sort()
        return self.lang_keyboard

    def get_timezone(self):
        """Get the timzones from the file timezone-list file."""
        timezone_list = open('timezone-list')
        for line in timezone_list:
            self.timezones.append(line.replace('\n', ''))
        self.timezones.sort()
        return self.timezones


text:
package org.motechproject.server.model.ghana;

import flexjson.JSON;
import org.motechproject.server.model.MotechLocation;

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

public class Region extends MotechLocation {

    private List<HealthFacility> healthFacilities = new ArrayList<HealthFacility>();

    public Region(String name) {
        super(name,LocationType.REGION);
    }

    @Override
    public District addDistrict(District district) {
        return (District) addChildLocation(district);
    }

    @Override
    public HealthFacility addHealthFacility(HealthFacility healthFacility) {
        healthFacilities.add(healthFacility);
        return healthFacility;
    }

    public District getDistrict(String district){
        return (District) getChildLocation(new District(district));
    }

    public boolean hasDistrict(String district) {
        return hasChildLocation(new District(district));
    }

    @JSON
    public List<HealthFacility> getHealthFacilities() {
        return healthFacilities;
    }

    @JSON
    public List<District> getDistricts(){
        List<District> districts = new ArrayList<District>();
        for (MotechLocation motechLocation : getChildLocations()) {
            districts.add((District) motechLocation);
        }
        return  districts;
    }
}


text:
var webpack = require("webpack");
module.exports = exports = Object.create(require("./webpack.config.js"));
exports.plugins = exports.plugins.concat(
  new webpack.optimize.UglifyJsPlugin()
);
exports.output = Object.create(exports.output);
exports.output.filename = exports.output.filename.replace(/\.js$/, ".min.js");


text:
import requests
import json
import sys
import surprise
import time
from database import database
from surprise import wager
from datetime import datetime

headers = {
    'Content-type':'application/json',
    'Accept':'application/json',
    'X-ESA-API-Key':'ROBOT'
}

def login (username, password):
    s = requests.Session()
    login_req = {"type":"STANDARD_LOGIN","login":username,"password":password}
    r = s.post("https://www.veikkaus.fi/api/v1/sessions", data=json.dumps(login_req), headers=headers)
    if r.status_code == 200:
        return s
    else:
        raise Exception("Authentication failed", r.status_code)

def get_wagers(session, count=10):
    tx_ids = get_tx_ids(session, count)
    return get_wagers_by_txs(session,tx_ids)

def get_tx_ids(session, count):
    r = session.get('https://www.veikkaus.fi/api/v1/players/self/account/transactions?size='+str(count)+'&sort-by=RESULT_DATE', headers=headers)
    txs = r.json()['transactions']
    return map(lambda x: x['externalId'], txs)

def get_wagers_by_txs(session, txs):
    wagers = map(lambda x: get_wager(session,x), txs)
    wagers = filter(lambda x: 'draw' in x and x['draw']['gameName'] == 'SPORT', wagers)
    wagers = map(lambda w: parse_wager(w),wagers)
    return wagers

def get_wager(session, tx_id):
        r = session.get('https://www.veikkaus.fi/api/v1/sport-games/wagers/'+tx_id, headers=headers)
        return json.loads(r.text)

def parse_wager(w):

    def parse_selection(s):
        return {
            'home': (True if 'home' in s else False),
            'tie': (True if 'tie' in s else False),
            'away': (True if 'away' in s else False)
        }
    def parse_datetime(t):
        return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(t/1000))

    #parse selections
    rawSelections = w['wager']['selections'][0]['outcomes']
    selections = enumerate(map(lambda s: parse_selection(s), rawSelections))
    selections = map(lambda (i, s): (i,s), selections)

    #make dictionary with id as a key for easy addressing
    #(even though the array is probably in order anyway)
    rows = dict(map(lambda r: (int(r['id']), r), w['draw']['rows']))

    def getScore(d,k):
        if 'score' in d:return d['score'][k]

    events = map(lambda (i,s):
                surprise.event(
                     row_id=i,
                     choose_home=s['home'],
                     choose_tie=s['tie'],
                     choose_away=s['away'],
                     home_team=rows[i]['outcome']['home']['name'],
                     away_team=rows[i]['outcome']['away']['name'],
                     home_score=getScore(rows[i]['result'],'home'),
                     away_score=getScore(rows[i]['result'],'away')
                 ), selections)

    #parse wager high level data, create wager
    wager_date = parse_datetime(w['wager']['transactionTime'])
    external_id = w['wager']['id']
    stake = w['wager']['stake']
    system_size = w['wager']['systemLevel']
    win_amount = w['winning']['amount']

    return surprise.wager(wager_date=wager_date,
                          ext_id=external_id,
                          stake=stake,
                          system_size=system_size,
                          win_amount = win_amount,
                          events=events)


text:
package zhenhuo.com.asynctaskdemo;

import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ProgressBar;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.net.URLConnection;

/**
 * Created by Administrator on 2016/6/28 0028.
 */
public class ImageTest extends Activity {
    private ImageView imageView;
    private ProgressBar progressBar;
    private static String url = "http://k.sinaimg.cn/n/sports/transform/20160530/1maV-fxsqxyc1659860.jpg/w57078c.jpg";

    class MyAsyncTask extends AsyncTask<String, Void, Bitmap> {

        @Override
        protected void onPreExecute() {
            super.onPreExecute();
            progressBar.setVisibility(View.VISIBLE);
        }

        @Override
        protected void onPostExecute(Bitmap bitmap) {
            super.onPostExecute(bitmap);
            progressBar.setVisibility(View.GONE);
            imageView.setImageBitmap(bitmap);//进行UI操作
        }

        @Override
        protected Bitmap doInBackground(String... params) {
            //获取传递进来的参数
            String url = params[0];//获取url,params为可变长度字符串
            Bitmap bitmap = null;
            URLConnection connection;
            InputStream is;
            try {
                connection = new URL(url).openConnection();
                is = connection.getInputStream();
                BufferedInputStream bis = new BufferedInputStream(is);
                Thread.sleep(3000);
                bitmap = BitmapFactory.decodeStream(bis);
                is.close();
                bis.close();
            } catch (IOException e) {
                e.printStackTrace();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return bitmap;
        }
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.item);
        imageView = (ImageView) findViewById(R.id.iv);
        progressBar = (ProgressBar) findViewById(R.id.pr);
        //设置传递进去的参数
        new MyAsyncTask().execute(url);
    }

}


text:
<?xml version="1.0" encoding="utf-8"?>

<!--
  ~ Copyright 2019 Simon Marquis
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="wrap_content">

    <com.google.android.material.textfield.TextInputLayout
        android:id="@+id/inputLayout"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="@dimen/unit_2"
        android:layout_marginTop="@dimen/unit_2"
        android:layout_marginRight="@dimen/unit_2"
        android:hint="@string/topics_hint"
        app:endIconMode="clear_text">

        <com.google.android.material.textfield.TextInputEditText
            android:id="@+id/inputText"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:importantForAutofill="no"
            android:inputType="text"
            android:lines="1"
            android:maxLines="1" />

    </com.google.android.material.textfield.TextInputLayout>

</FrameLayout>


text:
App.PostsController = Ember.ArrayController.extend({

	init : function(){
		var me = this;
		App.Dao.set("postsController", this);
		App.Dao.get("eventBus").onValue(function(evt){
			var payload = evt.payload;
			var timestamp = evt.timestamp;
            if (evt.command === "postCreated" ) {
				me.createPostOnFridge(payload);
			}
			if (evt.command === "postUpdated" ) {
				me.updateExistingPost(payload);
			}
			if (evt.command === "postDeleted") {
				me.deleteById(payload);
			}
        });
        return this._super();
	},

	createPost: function(postData) {
		var controller = this;
		var model = App.Post.createWithMixins(postData);
		model.createPost().then(function(postCreated){
			model.set('id',$.parseJSON(postCreated).id);
			controller.pushObject(model);
		});
	},

	deletePost: function(id) {
		postToRemove = this.findProperty('id', id);
		this.removeObject(postToRemove);
		postToRemove.deletePost();
	},

	updateExistingPost: function(postInput) {
		var post = this.findProperty('id', postInput.id);
		if (post != undefined) {
			post.set('content', postInput.content);
			post.set('color', postInput.color);
			var newFullPosition = postInput.positionX + ' ' + postInput.positionY;
			if (post.get('fullPosition') !== newFullPosition){
				post.set('fullPosition', newFullPosition);
			}
		} else {
			// this post should already exist, let´s synch!
			this.resyncContent();
		}
	},

	createPostOnFridge : function(post) {
		var exists = this.findProperty("id", post.id);
		if (exists == undefined) {
			this.pushObject(App.Post.createWithMixins(post));
		} else {
			// this post should not already exist, let´s synch!
			this.resyncContent();
		}
	},

	resyncContent : function() {
		this.transitionToRoute('fridge', App.Dao.get("fridgeId"));
	},

	deleteById : function(id) {
		var postToDelete = this.findProperty('id', id);
		if (postToDelete !== undefined){
			console.log('Delete '+ id );
			infoMessage("Post from " + postToDelete.get('author') + " deleted");
			this.removeObject(postToDelete);
		}
	}
});


text:
ActiveRecord::Schema.define(version: 20170219170109) do

  # These are extensions that must be enabled in order to support this database
  enable_extension "plpgsql"

  create_table "articles", force: :cascade do |t|
    t.string   "name"
    t.float    "votes_score"
    t.float    "comments_score"
    t.datetime "created_at",     null: false
    t.datetime "updated_at",     null: false
  end

  create_table "comments", force: :cascade do |t|
    t.integer "article_id"
    t.text    "content"
  end

  create_table "votes", force: :cascade do |t|
    t.integer  "article_id"
    t.float    "value"
    t.datetime "created_at", null: false
    t.datetime "updated_at", null: false
  end

end


text:
class PointsSetting < ActiveRecord::Base
end


text:
ActionController::Dispatcher.to_prepare do
  Site.has_many :newsletters, :dependent => :destroy, :class_name => "Adva::Newsletter"
end


text:
layout: page
title: Terry Morrow's 29th Birthday
date: 2016-05-24
author: Tiffany Wheeler
tags: weekly links, java
status: published
summary: Interdum et malesuada fames ac.
banner: images/banner/meeting-01.jpg
booking:
  startDate: 10/11/2016
  endDate: 10/14/2016
  ctyhocn: ATLMOHX
  groupCode: TM2B
published: true
---
Suspendisse sit amet elit at purus rhoncus tincidunt eu ac dolor. Morbi quis enim venenatis, ullamcorper ipsum ut, vestibulum metus. Maecenas lacinia dui ac lectus tincidunt maximus. Suspendisse potenti. Nullam tempor sagittis gravida. Fusce ac tempus sem, sed pellentesque ipsum. Nam maximus finibus scelerisque. Phasellus lacus lorem, blandit id augue nec, imperdiet iaculis sapien. Fusce nec maximus justo, eget iaculis elit.

* Aenean eu tellus at nunc laoreet commodo vel ut odio
* In luctus urna ornare urna efficitur, ut dapibus sapien condimentum
* Sed vulputate velit quis sem ornare, sed ultrices ex gravida
* Nullam vehicula sem non lectus posuere fringilla.

Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam rutrum luctus congue. Vivamus vel volutpat quam. Etiam suscipit ultricies feugiat. Aenean pellentesque bibendum egestas. Curabitur nec libero ut arcu semper mattis. Vivamus varius metus mauris, feugiat auctor felis condimentum id. Nulla ac quam erat. Vestibulum dolor ex, maximus nec semper consequat, pellentesque ut justo. Aenean et efficitur purus, eu varius elit. Cras et magna dui. Nunc ac lacus enim. Curabitur luctus pharetra massa, sed dapibus diam cursus sit amet. Pellentesque purus mi, auctor quis dui ut, pulvinar suscipit dui. Nam eleifend id tortor at volutpat.
Suspendisse nec dolor at nulla auctor tristique. Nunc quis erat ultrices, ornare justo a, tincidunt est. Nulla quis placerat neque. Mauris congue dui est. Curabitur maximus nibh nec vestibulum feugiat. Proin fringilla, lectus et consectetur viverra, lacus diam accumsan nisl, placerat accumsan dui diam at ex. Sed egestas ligula in sem gravida mollis. Donec maximus nisi faucibus, pharetra libero nec, cursus odio. Sed elit tortor, dignissim sit amet feugiat sed, viverra quis tortor. Phasellus sem elit, ultrices eu aliquam ac, aliquet eu tortor.


text:
App.factory('Evaluation', function ($resource, API_URL) {
  return $resource(API_URL + '/evaluation', {}, {
    methods: {
      save: {
        method: 'POST'
      }
    }
  })
})


text:
package org.jenkinsci.plugins.pipeline.maven.listeners;

import hudson.Extension;
import hudson.model.Item;
import hudson.model.ItemGroup;
import hudson.model.listeners.ItemListener;
import jenkins.model.Jenkins;
import org.jenkinsci.plugins.pipeline.maven.GlobalPipelineMavenConfig;
import org.jenkinsci.plugins.workflow.flow.FlowExecutionOwner;

import javax.inject.Inject;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * Maintains the database in sync with the jobs and builds.
 *
 * @author Cyrille Le Clerc
 */
@Extension
public class DatabaseSyncItemListener extends ItemListener {
    private final static Logger LOGGER = Logger.getLogger(DatabaseSyncItemListener.class.getName());

    @Inject
    public GlobalPipelineMavenConfig globalPipelineMavenConfig;

    @Override
    public void onDeleted(Item item) {
        if (item instanceof FlowExecutionOwner.Executable) {
            LOGGER.log(Level.FINE, "onDeleted({0})", item);
            globalPipelineMavenConfig.getDao().deleteJob(item.getFullName());
        } else {
            LOGGER.log(Level.FINE, "Ignore onDeleted({0})", new Object[]{item});
        }
    }

    @Override
    public void onRenamed(Item item, String oldName, String newName) {
        if (item instanceof FlowExecutionOwner.Executable) {
            LOGGER.log(Level.FINE, "onRenamed({0}, {1}, {2})", new Object[]{item, oldName, newName});

            String oldFullName;
            ItemGroup parent = item.getParent();
            if (parent.equals(Jenkins.get())) {
                oldFullName = oldName;
            } else {
                oldFullName = parent.getFullName() + "/" + oldName;
            }
            String newFullName = item.getFullName();
            globalPipelineMavenConfig.getDao().renameJob(oldFullName, newFullName);
        } else {
            LOGGER.log(Level.FINE, "Ignore onRenamed({0}, {1}, {2})", new Object[]{item, oldName, newName});
        }
    }

    @Override
    public void onLocationChanged(Item item, String oldFullName, String newFullName) {
        if (item instanceof FlowExecutionOwner.Executable) {
            LOGGER.log(Level.FINE, "onLocationChanged({0}, {1}, {2})", new Object[]{item, oldFullName, newFullName});
            globalPipelineMavenConfig.getDao().renameJob(oldFullName, newFullName);
        } else {
            LOGGER.log(Level.FINE, "Ignore onLocationChanged({0}, {1}, {2})", new Object[]{item, oldFullName, newFullName});
        }
    }

}


text:
If you are interested in developing this project, please get in touch
https://github.com/JamesRamm/longclaw/issues/375

[![Pypi Version](https://badge.fury.io/py/longclaw.svg)](https://badge.fury.io/py/longclaw)
[![Codecov Status](https://codecov.io/gh/JamesRamm/longclaw/branch/master/graph/badge.svg)](https://codecov.io/gh/JamesRamm/longclaw)
[![Build Status](https://travis-ci.org/JamesRamm/longclaw.svg?branch=master)](https://travis-ci.org/JamesRamm/longclaw)
[![Code Health](https://landscape.io/github/JamesRamm/longclaw/master/landscape.svg?style=flat)](https://landscape.io/github/JamesRamm/longclaw/master)

An e-commerce extension for [Wagtail CMS](https://github.com/wagtail/wagtail)

Checkout the [documentation](https://jamesramm.github.io/longclaw/)

![Image of the dashboard](docs/assets/dashboard.png)

## Quickstart

Install Longclaw:

```bash
  $ pip install longclaw
```

Setup a Longclaw project

```bash
  $ longclaw start my_project
```

Go to project directory and create missing migrations

```bash
  $ python manage.py makemigrations home catalog
```

Do migrations for whole project and run

```bash
  $ python manage.py migrate
  $ python manage.py loadcountries
  $ python manage.py createsuperuser
  $ python manage.py runserver
```

## Features

- Tightly integrated with Wagtail. Create products, manage orders, configure shipping and view statistics all from the Wagtail admin.
- Multiple payment backends. Longclaw currently supports Stripe, Braintree and PayPal (v.zero) payments.
- Comprehensive REST API & javascript client easily loaded via a template tag
- Create your catalogue as Wagtail pages, with complete control over your product fields
- Easy setup. Just run `longclaw start my_project` to get going
- Simple to use, simple to change. Write your frontend as you would any other wagtail website. No complicated overriding, forking etc in order to customise behaviour.

### Screenshots

![Order Detail](docs/assets/order_detail.png)


text:
module.exports = function(grunt) {

	var angularJsFiles = [
		// Firstly, init app module
		'webapp/app/app.module.js',
		// Then all sub module
		'webapp/app/**/*.module.js',
		// Core app
		'webapp/app/core/**/*.js',
		// And the last is all other .js
		'webapp/app/**/*.js',
	];

	var jsVendorFiles = [
		'bower_components/jquery/dist/jquery.min.js',
		'bower_components/jquery-ui/jquery-ui.min.js',
		'bower_components/jquery-validation/dist/jquery.validate.min.js',
		'bower_components/jquery-validation/dist/additional-methods.min.js',
		'bower_components/bootstrap/dist/js/bootstrap.min.js',
		'bower_components/angular/angular.min.js',
		'bower_components/angular-animate/angular-animate.min.js',
		'bower_components/angular-cookies/angular-cookies.min.js',
		'bower_components/angular-ui-router/release/angular-ui-router.min.js',
		'bower_components/angular-google-maps/dist/angular-google-maps.min.js',
		'bower_components/angular-busy/dist/angular-busy.min.js',
		'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',
		'bower_components/underscore/underscore.js',
		'bower_components/moment/moment.js',
		'bower_components/slimScroll/jquery.slimscroll.js',
		'bower_components/fastclick/lib/fastclick.js',
		'bower_components/ng-file-upload/angular-file-upload-shim.min.js',
		'bower_components/ng-file-upload/angular-file-upload.min.js',

		'webapp/eplweb_components/js/highcharts.js',
		'webapp/eplweb_components/js/exporting.js',
		'webapp/eplweb_components/js/slider.js',
		'webapp/eplweb_components/js/app.js', //Admin LTE
	];

	var customCss = 'webapp/eplweb_components/css/index.css';

	var cssFiles = [
		'bower_components/jquery-ui/themes/smoothness/jquery-ui.css',
		'bower_components/bootstrap/dist/css/bootstrap.css',
		'bower_components/font-awesome/css/font-awesome.min.css',
		'bower_components/ionicons/css/ionicons.min.css',
		'bower_components/angular-busy/dist/angular-busy.min.css',
		'webapp/eplweb_components/css/AdminLTE.css',
		'webapp/eplweb_components/css/skin-purple.css',
		'webapp/eplweb_components/css/epl-animate.css',
		customCss
	];

	var fontFiles = [
		'bower_components/bootstrap/dist/fonts/**',
		'bower_components/font-awesome/fonts/**',
	];

	var jqueryUiImages = ['bower_components/jquery-ui/themes/base/images/**']

	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		watch: {
			angularJs: {
				files: angularJsFiles,
				tasks: ['concat:appjs']
			},
			customCss: {
				files: [customCss],
				tasks: ['concat:css']
			}
		},
		copy: {
			fonts: {
				expand: true,
				flatten: true,
				src: fontFiles,
				dest: 'webapp/eplweb_components/fonts',
				filter: 'isFile'
			},
			jqueryUiImages: {
				expand: true,
				flatten: true,
				src: jqueryUiImages,
				dest: 'webapp/eplweb_components/css/images',
				filter: 'isFile'
			}
		},
		concat: {
			options: {
				separator: '\n\n'
			},
			vendorjs: {
				src: jsVendorFiles,
				dest: 'webapp/eplweb_components/js/vendors.js'
			},
			appjs: {
				src: angularJsFiles,
				dest: 'webapp/eplweb_components/js/eplweb.js'
			},
			css: {
				src: cssFiles,
				dest: 'webapp/eplweb_components/css/eplweb.css'
			}
		}
	});

	grunt.loadNpmTasks('grunt-contrib-watch');
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-copy');

	grunt.registerTask('default', []);

	grunt.registerTask('all', [
		'concat:vendorjs',
		'concat:appjs',
		'concat:css',
		'copy:fonts',
		'copy:jqueryUiImages'
	]);

}


text:
set -o errexit -o noclobber -o noglob -o nounset -o pipefail

cp --reflink=always --archive "${TR_TORRENT_DIR}/${TR_TORRENT_NAME}" "/torrent/completed/"


text:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>

    <parent>
        <groupId>com.soebes.cienvironment.hudson</groupId>
        <artifactId>hudson-parent</artifactId>
        <version>1.0.0-SNAPSHOT</version>
        <relativePath>..</relativePath>
    </parent>

    <groupId>com.soebes.cienvironment.hudson</groupId>
    <artifactId>cienv-hudson-config</artifactId>
    <packaging>pom</packaging>
    <name>CIEnvironment :: Hudson ::   Configuration</name>

    <description>
        This will define the configuration for Hudson
    </description>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <id>conf-ci001</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>directory-single</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/ci001</outputDirectory>
                            <descriptors>
                                <descriptor>${basedir}/src/main/assembly/ciserver.xml</descriptor>
                            </descriptors>
                            <filters>
                                <filter>${basedir}/src/main/assembly/ci001.properties</filter>
                            </filters>
                        </configuration>
                    </execution>
                    <execution>
                        <id>conf-ci002</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>directory-single</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/ci002</outputDirectory>
                            <descriptors>
                                <descriptor>${basedir}/src/main/assembly/ciserver.xml</descriptor>
                            </descriptors>
                            <filters>
                                <filter>${basedir}/src/main/assembly/ci002.properties</filter>
                            </filters>
                        </configuration>
                    </execution>
                    <execution>
                        <id>conf-ci003</id>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>directory-single</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/ci003</outputDirectory>
                            <descriptors>
                                <descriptor>${basedir}/src/main/assembly/ciserver.xml</descriptor>
                            </descriptors>
                            <filters>
                                <filter>${basedir}/src/main/assembly/ci003.properties</filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>rpm-maven-plugin</artifactId>
                <configuration>
                    <requires>
                        <require>cienv-hudsonuser >= ${project.version}</require>
                        <require>cienv-hudson-plugins >= ${project.version}</require>
                    </requires>
                </configuration>
                <executions>
                    <execution>
                        <id>ci001-conf</id>
                        <goals>
                            <goal>attached-rpm</goal>
                        </goals>
                        <configuration>
                            <classifier>ci001</classifier>
                            <mappings>
                                <mapping>
                                    <directory>${hudson.home}/.hudson</directory>
                                    <filemode>0644</filemode>
                                    <username>${hudson.user}</username>
                                    <groupname>${hudson.group}</groupname>
                                    <directoryIncluded>false</directoryIncluded>
                                    <sources>
                                        <source>
                                            <location>${project.build.directory}/ci001/${project.artifactId}-${project.version}-conf</location>
                                        </source>
                                    </sources>
                                </mapping>
                                <mapping>
                                    <directory>${hudson.home}/.hudson</directory>
                                    <filemode>0755</filemode>
                                    <username>${hudson.user}</username>
                                    <groupname>${hudson.group}</groupname>
                                </mapping>
                            </mappings>
                        </configuration>
                    </execution>
                    <execution>
                        <id>ci002-conf</id>
                        <goals>
                            <goal>attached-rpm</goal>
                        </goals>
                        <configuration>
                            <classifier>ci002</classifier>
                            <mappings>
                                <mapping>
                                    <directory>${hudson.home}/.hudson</directory>
                                    <filemode>0644</filemode>
                                    <username>${hudson.user}</username>
                                    <groupname>${hudson.group}</groupname>
                                    <directoryIncluded>false</directoryIncluded>
                                    <sources>
                                        <source>
                                            <location>${project.build.directory}/ci002/${project.artifactId}-${project.version}-conf</location>
                                        </source>
                                    </sources>
                                </mapping>
                                <mapping>
                                    <directory>${hudson.home}/.hudson</directory>
                                    <filemode>0755</filemode>
                                    <username>${hudson.user}</username>
                                    <groupname>${hudson.group}</groupname>
                                </mapping>
                            </mappings>
                        </configuration>
                    </execution>
                    <execution>
                        <id>ci003-conf</id>
                        <goals>
                            <goal>attached-rpm</goal>
                        </goals>
                        <configuration>
                            <classifier>ci003</classifier>
                            <mappings>
                                <mapping>
                                    <directory>${hudson.home}/.hudson</directory>
                                    <filemode>0644</filemode>
                                    <username>${hudson.user}</username>
                                    <groupname>${hudson.group}</groupname>
                                    <directoryIncluded>false</directoryIncluded>
                                    <sources>
                                        <source>
                                            <location>${project.build.directory}/ci003/${project.artifactId}-${project.version}-conf</location>
                                        </source>
                                    </sources>
                                </mapping>
                                <mapping>
                                    <directory>${hudson.home}/.hudson</directory>
                                    <filemode>0755</filemode>
                                    <username>${hudson.user}</username>
                                    <groupname>${hudson.group}</groupname>
                                </mapping>
                            </mappings>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
null

#### Original name
Verticillium lactescentium Sacc.

### Remarks
null


text:
using System;
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.Standard;

namespace Lucene.Net.Odm.Mapping.Configuration
{
    /// <summary>
    /// Represents the analyzer configuration using fluent interface.
    /// </summary>
    /// <typeparam name="T">The type of part.</typeparam>
    public class AnalyzerConfiguration<T> where T : IHasAnalyzer
    {
        private readonly T _part;

        /// <summary>
        /// Initializes a new instance of the <see cref="Lucene.Net.Odm.Mapping.Configuration.AnalyzerConfiguration{T}" /> class.
        /// </summary>
        /// <param name="part">A part of fluent chain.</param>
        public AnalyzerConfiguration(T part)
        {
            _part = part;
        }

        /// <summary>
        /// Sets the custom analyzer.
        /// </summary>
        /// <typeparam name="TAnalyzer">The type of analyzer.</typeparam>
        /// <returns>part of fluent chain.</returns>
        public T Custom<TAnalyzer>()
        {
            _part.AnalyzerType = typeof(TAnalyzer);
            return _part;
        }

        /// <summary>
        /// Sets the standard analyzer.
        /// </summary>
        /// <returns>part of fluent chain.</returns>
        public T Standard()
        {
            return Custom<StandardAnalyzer>();
        }

        /// <summary>
        /// Sets the keyword analyzer.
        /// </summary>
        /// <returns>part of fluent chain.</returns>
        public T Keyword()
        {
            return Custom<KeywordAnalyzer>();
        }

        /// <summary>
        /// Sets the simple analyzer.
        /// </summary>
        /// <returns>part of fluent chain.</returns>
        public T Simple()
        {
            return Custom<SimpleAnalyzer>();
        }

        /// <summary>
        /// Sets the stop analyzer.
        /// </summary>
        /// <returns>part of fluent chain.</returns>
        public T Stop()
        {
            return Custom<StopAnalyzer>();
        }

        /// <summary>
        /// Sets the whitespace analyzer.
        /// </summary>
        /// <returns>part of fluent chain.</returns>
        public T Whitespace()
        {
            return Custom<WhitespaceAnalyzer>();
        }
    }
}