text:
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
  <bill>
    <relatedBills>
      <item>
        <type>HJRES</type>
        <congress>115</congress>
        <number>3</number>
        <relationshipDetails>
          <item>
            <type>Related bill</type>
            <identifiedBy>CRS</identifiedBy>
          </item>
          <item>
            <type>Related bill</type>
            <identifiedBy>House</identifiedBy>
          </item>
        </relationshipDetails>
        <latestTitle>Approving the location of a memorial to commemorate and honor the members of the Armed Forces who served on active duty in support of Operation Desert Storm or Operation Desert Shield.</latestTitle>
        <latestAction>
          <text>Received in the Senate and Read twice and referred to the Committee on Energy and Natural Resources.</text>
          <actionDate>2017-01-05</actionDate>
        </latestAction>
      </item>
    </relatedBills>
    <latestAction>
      <actionDate>2017-03-31</actionDate>
      <text>Became Public Law No: 115-18.</text>
      <links />
    </latestAction>
    <billNumber>1</billNumber>
    <summaries>
      <billSummaries>
        <item>
          <actionDate>2017-01-03</actionDate>
          <lastSummaryUpdateDate>2017-01-09T20:49:53Z</lastSummaryUpdateDate>
          <actionDesc>Introduced in Senate</actionDesc>
          <updateDate>2017-01-03T05:00:00Z</updateDate>
          <text><![CDATA[
This joint resolution approves the location within Washington, D.C. and the surrounding area of the National Desert Storm and Desert Shield Memorial authorized to be established under the Carl Levin and Howard P. `Buck' McKeon National Defense Authorization Act for Fiscal Year 2015.
]]></text>
          <versionCode>00</versionCode>
          <name>Introduced in Senate</name>
        </item>
        <item>
          <actionDate>2017-03-08</actionDate>
          <lastSummaryUpdateDate>2017-03-11T16:15:37Z</lastSummaryUpdateDate>
          <actionDesc>Passed Senate without amendment</actionDesc>
          <updateDate>2017-03-08T14:41:58Z</updateDate>
          <text><![CDATA[
(This measure has not been amended since it was introduced. The summary of that version is repeated here.)

This joint resolution approves the location within Washington, D.C. and the surrounding area of the National Desert Storm and Desert Shield Memorial authorized to be established under the Carl Levin and Howard P. `Buck' McKeon National Defense Authorization Act for Fiscal Year 2015.
]]></text>
          <versionCode>82</versionCode>
          <name>Passed Senate without amendment</name>
        </item>
        <item>
          <actionDate>2017-03-15</actionDate>
          <lastSummaryUpdateDate>2017-03-18T15:18:27Z</lastSummaryUpdateDate>
          <actionDesc>Passed House without amendment</actionDesc>
          <updateDate>2017-03-15T13:37:04Z</updateDate>
          <text><![CDATA[
(This measure has not been amended since it was introduced. The summary of that version is repeated here.)

This joint resolution approves the location within Washington, D.C. and the surrounding area of the National Desert Storm and Desert Shield Memorial authorized to be established under the Carl Levin and Howard P. `Buck' McKeon National Defense Authorization Act for Fiscal Year 2015.
]]></text>
          <versionCode>81</versionCode>
          <name>Passed House without amendment</name>
        </item>
        <item>
          <actionDate>2017-03-31</actionDate>
          <lastSummaryUpdateDate>2017-04-08T14:42:36Z</lastSummaryUpdateDate>
          <actionDesc>Public Law</actionDesc>
          <updateDate>2017-04-01T03:59:58Z</updateDate>
          <text><![CDATA[
(This measure has not been amended since it was introduced. The summary of that version is repeated here.)

This joint resolution approves the location within Washington, DC and the surrounding area of the National Desert Storm and Desert Shield Memorial authorized to be established under the Carl Levin and Howard P. `Buck' McKeon National Defense Authorization Act for Fiscal Year 2015.
]]></text>
          <versionCode>49</versionCode>
          <name>Public Law</name>
        </item>
      </billSummaries>
    </summaries>
    <subjects>
      <billSubjects>
        <policyArea>
          <name>Armed Forces and National Security</name>
        </policyArea>
        <legislativeSubjects>
          <item>
            <name>Conflicts and wars</name>
          </item>
          <item>
            <name>District of Columbia</name>
          </item>
          <item>
            <name>Iraq</name>
          </item>
          <item>
            <name>Kuwait</name>
          </item>
          <item>
            <name>Middle East</name>
          </item>
          <item>
            <name>Military operations and strategy</name>
          </item>
          <item>
            <name>Military personnel and dependents</name>
          </item>
          <item>
            <name>Monuments and memorials</name>
          </item>
        </legislativeSubjects>
      </billSubjects>
    </subjects>
    <originChamber>Senate</originChamber>
    <laws>
      <item>
        <type>Public Law</type>
        <number>115-18</number>
      </item>
    </laws>
    <createDate>2017-01-04T04:47:42Z</createDate>
    <actions>
      <item>
        <type>President</type>
        <committee />
        <actionCode>E40000</actionCode>
        <actionDate>2017-03-31</actionDate>
        <text>Became Public Law No: 115-18.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>BecameLaw</type>
        <committee />
        <actionCode>36000</actionCode>
        <actionDate>2017-03-31</actionDate>
        <text>Became Public Law No: 115-18.</text>
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <item>
        <type>President</type>
        <committee />
        <actionCode>E30000</actionCode>
        <actionDate>2017-03-31</actionDate>
        <text>Signed by President.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>BecameLaw</type>
        <committee />
        <actionCode>36000</actionCode>
        <actionDate>2017-03-31</actionDate>
        <text>Signed by President.</text>
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionCode>E20000</actionCode>
        <actionDate>2017-03-20</actionDate>
        <text>Presented to President.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>President</type>
        <committee />
        <actionCode>28000</actionCode>
        <actionDate>2017-03-20</actionDate>
        <text>Presented to President.</text>
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>16:50:23</actionTime>
        <actionCode>H38310</actionCode>
        <actionDate>2017-03-15</actionDate>
        <text>Motion to reconsider laid on the table Agreed to without objection.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>16:50:21</actionTime>
        <actionCode>H37100</actionCode>
        <actionDate>2017-03-15</actionDate>
        <text>On passage Passed without objection. (text: CR H2063)</text>
        <links>
          <link>
            <url>https://www.congress.gov/congressional-record/volume-163/house-section/page/H2063</url>
            <name>H2063</name>
          </link>
        </links>
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>16:50:21</actionTime>
        <actionCode>8000</actionCode>
        <actionDate>2017-03-15</actionDate>
        <text>Passed/agreed to in House: On passage Passed without objection.(text: CR H2063)</text>
        <links>
          <link>
            <url>https://www.congress.gov/congressional-record/volume-163/house-section/page/H2063</url>
            <name>H2063</name>
          </link>
        </links>
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>16:49:50</actionTime>
        <actionCode>H30000</actionCode>
        <actionDate>2017-03-15</actionDate>
        <text>Considered by unanimous consent. (consideration: CR H2063-2064)</text>
        <links>
          <link>
            <url>https://www.congress.gov/congressional-record/volume-163/house-section/page/H2063-2064</url>
            <name>H2063-2064</name>
          </link>
        </links>
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>16:49:50</actionTime>
        <actionCode>H30200</actionCode>
        <actionDate>2017-03-15</actionDate>
        <text>Mr. Tipton asked unanimous consent to take from the Speaker's table and consider.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>14:10:38</actionTime>
        <actionCode>H15000</actionCode>
        <actionDate>2017-03-09</actionDate>
        <text>Held at the desk.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionTime>12:02:25</actionTime>
        <actionCode>H14000</actionCode>
        <actionDate>2017-03-09</actionDate>
        <text>Received in the House.</text>
        <links />
        <sourceSystem>
          2
          <name>House floor actions</name>
        </sourceSystem>
      </item>
      <item>
        <actionDate>2017-03-09</actionDate>
        <committee />
        <links />
        <sourceSystem>
          0
          <name>Senate</name>
        </sourceSystem>
        <text>Message on Senate action sent to the House.</text>
        <type>Floor</type>
      </item>
      <item>
        <actionDate>2017-03-08</actionDate>
        <committee />
        <links>
          <link>
            <url>https://www.congress.gov/congressional-record/volume-163/senate-section/page/S1695</url>
            <name>S1695</name>
          </link>
        </links>
        <sourceSystem>
          0
          <name>Senate</name>
        </sourceSystem>
        <text>Passed Senate without amendment and with a preamble by Unanimous Consent. (consideration: CR S1695; text: CR S1695)</text>
        <type>Floor</type>
      </item>
      <item>
        <type>Floor</type>
        <committee />
        <actionCode>17000</actionCode>
        <actionDate>2017-03-08</actionDate>
        <text>Passed/agreed to in Senate: Passed Senate without amendment and with a preamble by Unanimous Consent.(consideration: CR S1695; text: CR S1695)</text>
        <links>
          <link>
            <url>https://www.congress.gov/congressional-record/volume-163/senate-section/page/S1695</url>
            <name>S1695</name>
          </link>
        </links>
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <item>
        <actionDate>2017-03-08</actionDate>
        <committee>
          <name>Energy and Natural Resources Committee</name>
          <systemCode>sseg00</systemCode>
        </committee>
        <links />
        <sourceSystem>
          0
          <name>Senate</name>
        </sourceSystem>
        <text>Senate Committee on Energy and Natural Resources discharged by Unanimous Consent.</text>
        <type>Discharge</type>
      </item>
      <item>
        <type>Committee</type>
        <committee>
          <name>Energy and Natural Resources Committee</name>
          <systemCode>sseg00</systemCode>
        </committee>
        <actionCode>14500</actionCode>
        <actionDate>2017-03-08</actionDate>
        <text>Senate Committee on Energy and Natural Resources discharged by Unanimous Consent.</text>
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <item>
        <actionDate>2017-01-03</actionDate>
        <committee>
          <name>Energy and Natural Resources Committee</name>
          <systemCode>sseg00</systemCode>
        </committee>
        <links />
        <sourceSystem>
          0
          <name>Senate</name>
        </sourceSystem>
        <text>Read twice and referred to the Committee on Energy and Natural Resources.</text>
        <type>IntroReferral</type>
      </item>
      <item>
        <type>IntroReferral</type>
        <committee />
        <actionCode>10000</actionCode>
        <actionDate>2017-01-03</actionDate>
        <text>Introduced in Senate</text>
        <links />
        <sourceSystem>
          9
          <name>Library of Congress</name>
        </sourceSystem>
      </item>
      <actionTypeCounts>
        <referredToCommittee>1</referredToCommittee>
        <passedSenate>1</passedSenate>
        <introducedInSenate>1</introducedInSenate>
        <heldAtTheDesk>1</heldAtTheDesk>
        <unanimousConsentRequestToConsider>1</unanimousConsentRequestToConsider>
        <sentToHouse>1</sentToHouse>
        <presentedToPresident>1</presentedToPresident>
        <passageOfAMeasure>1</passageOfAMeasure>
        <passedAgreedToInHouse>1</passedAgreedToInHouse>
        <passedAgreedToInSenate>1</passedAgreedToInSenate>
        <considerationByHouse>1</considerationByHouse>
        <motionToReconsiderResults>1</motionToReconsiderResults>
        <becamePublicLaw>2</becamePublicLaw>
        <committeeDischarged>1</committeeDischarged>
        <placeholderTextForE>3</placeholderTextForE>
        <senateCommitteeDischarged>1</senateCommitteeDischarged>
        <receivedInTheHouse>1</receivedInTheHouse>
      </actionTypeCounts>
      <actionByCounts>
        <senate>7</senate>
        <houseOfRepresentatives>7</houseOfRepresentatives>
      </actionByCounts>
    </actions>
    <cboCostEstimates />
    <recordedVotes />
    <version>1.0.0</version>
    <congress>115</congress>
    <amendments />
    <cosponsors>
      <item>
        <state>IN</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>Donnelly</lastName>
        <firstName>Joe</firstName>
        <fullName>Sen. Donnelly, Joe [D-IN]</fullName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <identifiers>
          <lisID>1850</lisID>
          <gpoId>7941</gpoId>
          <bioguideId>D000607</bioguideId>
        </identifiers>
        <bioguideId>D000607</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-03</sponsorshipDate>
      </item>
      <item>
        <state>NC</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>Tillis</lastName>
        <firstName>Thomas</firstName>
        <fullName>Sen. Tillis, Thom [R-NC]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <bioguideId>T000476</bioguideId>
          <gpoId />
          <lisID>2291</lisID>
        </identifiers>
        <bioguideId>T000476</bioguideId>
        <middleName>Roland</middleName>
        <sponsorshipDate>2017-01-05</sponsorshipDate>
      </item>
      <item>
        <state>OK</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>INHOFE</lastName>
        <firstName>JIM</firstName>
        <fullName>Sen. Inhofe, James M. [R-OK]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>583</lisID>
          <gpoId>8322</gpoId>
          <bioguideId>I000024</bioguideId>
        </identifiers>
        <bioguideId>I000024</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-05</sponsorshipDate>
      </item>
      <item>
        <state>KS</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>MORAN</lastName>
        <firstName>JERRY</firstName>
        <fullName>Sen. Moran, Jerry [R-KS]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>1507</lisID>
          <gpoId>8307</gpoId>
          <bioguideId>M000934</bioguideId>
        </identifiers>
        <bioguideId>M000934</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-05</sponsorshipDate>
      </item>
      <item>
        <state>WV</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>CAPITO</lastName>
        <firstName>SHELLEY</firstName>
        <fullName>Sen. Capito, Shelley Moore [R-WV]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>1676</lisID>
          <gpoId>8223</gpoId>
          <bioguideId>C001047</bioguideId>
        </identifiers>
        <bioguideId>C001047</bioguideId>
        <middleName>MOORE</middleName>
        <sponsorshipDate>2017-01-05</sponsorshipDate>
      </item>
      <item>
        <state>UT</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>HATCH</lastName>
        <firstName>ORRIN</firstName>
        <fullName>Sen. Hatch, Orrin G. [R-UT]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <gpoId>8314</gpoId>
          <bioguideId>H000338</bioguideId>
          <lisID>1351</lisID>
        </identifiers>
        <bioguideId>H000338</bioguideId>
        <middleName>GRANT</middleName>
        <sponsorshipDate>2017-01-09</sponsorshipDate>
      </item>
      <item>
        <state>SD</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>Rounds</lastName>
        <firstName>Mike</firstName>
        <fullName>Sen. Rounds, Mike  [R-SD]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <bioguideId>R000605</bioguideId>
          <gpoId />
          <lisID>2288</lisID>
        </identifiers>
        <bioguideId>R000605</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-11</sponsorshipDate>
      </item>
      <item>
        <state>AR</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>Cotton</lastName>
        <firstName>Tom</firstName>
        <fullName>Sen. Cotton, Tom [R-AR]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>2098</lisID>
          <gpoId />
          <bioguideId>C001095</bioguideId>
        </identifiers>
        <bioguideId>C001095</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-23</sponsorshipDate>
      </item>
      <item>
        <state>IA</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>Ernst</lastName>
        <firstName>Joni</firstName>
        <fullName>Sen. Ernst, Joni  [R-IA]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>2283</lisID>
          <gpoId />
          <bioguideId>E000295</bioguideId>
        </identifiers>
        <bioguideId>E000295</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-23</sponsorshipDate>
      </item>
      <item>
        <state>ME</state>
        <party>I</party>
        <sponsorshipWithdrawnDate />
        <lastName>King</lastName>
        <firstName>Angus</firstName>
        <fullName>Sen. King, Angus S., Jr. [I-ME]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <gpoId />
          <bioguideId>K000383</bioguideId>
          <lisID>2185</lisID>
        </identifiers>
        <bioguideId>K000383</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-23</sponsorshipDate>
      </item>
      <item>
        <state>MA</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>Warren</lastName>
        <firstName>Elizabeth</firstName>
        <fullName>Sen. Warren, Elizabeth [D-MA]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>2182</lisID>
          <gpoId />
          <bioguideId>W000817</bioguideId>
        </identifiers>
        <bioguideId>W000817</bioguideId>
        <middleName>A.</middleName>
        <sponsorshipDate>2017-01-23</sponsorshipDate>
      </item>
      <item>
        <state>WI</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>BALDWIN</lastName>
        <firstName>TAMMY</firstName>
        <fullName>Sen. Baldwin, Tammy [D-WI]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>1558</lisID>
          <gpoId>8215</gpoId>
          <bioguideId>B001230</bioguideId>
        </identifiers>
        <bioguideId>B001230</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-30</sponsorshipDate>
      </item>
      <item>
        <state>SD</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>THUNE</lastName>
        <firstName>JOHN</firstName>
        <fullName>Sen. Thune, John [R-SD]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>1534</lisID>
          <gpoId>8257</gpoId>
          <bioguideId>T000250</bioguideId>
        </identifiers>
        <bioguideId>T000250</bioguideId>
        <middleName>R.</middleName>
        <sponsorshipDate>2017-01-30</sponsorshipDate>
      </item>
      <item>
        <state>NC</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>BURR</lastName>
        <firstName>RICHARD</firstName>
        <fullName>Sen. Burr, Richard [R-NC]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>153</lisID>
          <gpoId>8286</gpoId>
          <bioguideId>B001135</bioguideId>
        </identifiers>
        <bioguideId>B001135</bioguideId>
        <middleName />
        <sponsorshipDate>2017-01-30</sponsorshipDate>
      </item>
      <item>
        <state>MT</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>Tester</lastName>
        <firstName>Jon</firstName>
        <fullName>Sen. Tester, Jon [D-MT]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <bioguideId>T000464</bioguideId>
          <gpoId>8258</gpoId>
          <lisID>1829</lisID>
        </identifiers>
        <bioguideId>T000464</bioguideId>
        <middleName />
        <sponsorshipDate>2017-02-02</sponsorshipDate>
      </item>
      <item>
        <state>IL</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>DURBIN</lastName>
        <firstName>RICHARD</firstName>
        <fullName>Sen. Durbin, Richard J. [D-IL]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>326</lisID>
          <gpoId>8326</gpoId>
          <bioguideId>D000563</bioguideId>
        </identifiers>
        <bioguideId>D000563</bioguideId>
        <middleName>J.</middleName>
        <sponsorshipDate>2017-02-06</sponsorshipDate>
      </item>
      <item>
        <state>GA</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>Perdue</lastName>
        <firstName>David</firstName>
        <fullName>Sen. Perdue, David [R-GA]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>2286</lisID>
          <gpoId />
          <bioguideId>P000612</bioguideId>
        </identifiers>
        <bioguideId>P000612</bioguideId>
        <middleName>Alfred</middleName>
        <sponsorshipDate>2017-02-15</sponsorshipDate>
      </item>
      <item>
        <state>ID</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>CRAPO</lastName>
        <firstName>MICHAEL</firstName>
        <fullName>Sen. Crapo, Mike [R-ID]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <bioguideId>C000880</bioguideId>
          <gpoId>8289</gpoId>
          <lisID>250</lisID>
        </identifiers>
        <bioguideId>C000880</bioguideId>
        <middleName>D.</middleName>
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
      <item>
        <state>FL</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>NELSON</lastName>
        <firstName>CLARENCE</firstName>
        <fullName>Sen. Nelson, Bill [D-FL]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <gpoId>8236</gpoId>
          <bioguideId>N000032</bioguideId>
          <lisID>859</lisID>
        </identifiers>
        <bioguideId>N000032</bioguideId>
        <middleName>WILLIAM</middleName>
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
      <item>
        <state>MT</state>
        <party>R</party>
        <sponsorshipWithdrawnDate />
        <lastName>Daines</lastName>
        <firstName>Steve</firstName>
        <fullName>Sen. Daines, Steve [R-MT]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>2138</lisID>
          <gpoId />
          <bioguideId>D000618</bioguideId>
        </identifiers>
        <bioguideId>D000618</bioguideId>
        <middleName />
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
      <item>
        <state>PA</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>Casey</lastName>
        <firstName>Bob</firstName>
        <fullName>Sen. Casey, Robert P., Jr. [D-PA]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <gpoId>8282</gpoId>
          <bioguideId>C001070</bioguideId>
          <lisID>1828</lisID>
        </identifiers>
        <bioguideId>C001070</bioguideId>
        <middleName />
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
      <item>
        <state>IL</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>Duckworth</lastName>
        <firstName>Tammy</firstName>
        <fullName>Sen. Duckworth, Tammy [D-IL]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>2123</lisID>
          <gpoId />
          <bioguideId>D000622</bioguideId>
        </identifiers>
        <bioguideId>D000622</bioguideId>
        <middleName />
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
      <item>
        <state>WV</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>Manchin</lastName>
        <firstName>Joe</firstName>
        <fullName>Sen. Manchin, Joe, III [D-WV]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <gpoId>8256</gpoId>
          <bioguideId>M001183</bioguideId>
          <lisID>1983</lisID>
        </identifiers>
        <bioguideId>M001183</bioguideId>
        <middleName />
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
      <item>
        <state>NJ</state>
        <party>D</party>
        <sponsorshipWithdrawnDate />
        <lastName>MENENDEZ</lastName>
        <firstName>ROBERT</firstName>
        <fullName>Sen. Menendez, Robert [D-NJ]</fullName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <identifiers>
          <lisID>791</lisID>
          <gpoId>8239</gpoId>
          <bioguideId>M000639</bioguideId>
        </identifiers>
        <bioguideId>M000639</bioguideId>
        <middleName />
        <sponsorshipDate>2017-03-07</sponsorshipDate>
      </item>
    </cosponsors>
    <billType>SJRES</billType>
    <calendarNumbers />
    <committeeReports />
    <sponsors>
      <item>
        <identifiers>
          <lisID>1687</lisID>
          <gpoId>8247</gpoId>
          <bioguideId>B001236</bioguideId>
        </identifiers>
        <lastName>Boozman</lastName>
        <state>AR</state>
        <firstName>John</firstName>
        <party>R</party>
        <fullName>Sen. Boozman, John [R-AR]</fullName>
        <middleName />
        <bioguideId>B001236</bioguideId>
        <byRequestType />
      </item>
    </sponsors>
    <titles>
      <item>
        <parentTitleType />
        <chamberCode />
        <title>A joint resolution approving the location of a memorial to commemorate and honor the members of the Armed Forces who served on active duty in support of Operation Desert Storm or Operation Desert Shield.</title>
        <titleType>Official Title as Introduced</titleType>
        <chamberName />
      </item>
      <item>
        <parentTitleType />
        <chamberCode />
        <title>A joint resolution approving the location of a memorial to commemorate and honor the members of the Armed Forces who served on active duty in support of Operation Desert Storm or Operation Desert Shield.</title>
        <titleType>Display Title</titleType>
        <chamberName />
      </item>
    </titles>
    <title>A joint resolution approving the location of a memorial to commemorate and honor the members of the Armed Forces who served on active duty in support of Operation Desert Storm or Operation Desert Shield.</title>
    <policyArea>
      <name>Armed Forces and National Security</name>
    </policyArea>
    <notes />
    <updateDate>2017-05-04T00:17:57Z</updateDate>
    <introducedDate>2017-01-03</introducedDate>
    <committees>
      <billCommittees>
        <item>
          <chamber>Senate</chamber>
          <activities>
            <item>
              <date>2017-03-08T23:38:46Z</date>
              <name>Discharged from</name>
            </item>
            <item>
              <date>2017-01-03T19:17:29Z</date>
              <name>Referred to</name>
            </item>
          </activities>
          <type>Standing</type>
          <systemCode>sseg00</systemCode>
          <subcommittees />
          <name>Energy and Natural Resources Committee</name>
        </item>
      </billCommittees>
    </committees>
  </bill>
  <dublinCore xmlns:dc="http://purl.org/dc/elements/1.1/">
    <dc:format>text/xml</dc:format>
    <dc:language>EN</dc:language>
    <dc:rights>Pursuant to Title 17 Section 105 of the United States Code, this file is not subject to copyright protection and is in the public domain.</dc:rights>
    <dc:contributor>Congressional Research Service, Library of Congress</dc:contributor>
    <dc:description>This file contains bill summaries and statuses for federal legislation. A bill summary describes the most significant provisions of a piece of legislation and details the effects the legislative text may have on current law and federal programs. Bill summaries are authored by the Congressional Research Service (CRS) of the Library of Congress. As stated in Public Law 91-510 (2 USC 166 (d)(6)), one of the duties of CRS is "to prepare summaries and digests of bills and resolutions of a public general nature introduced in the Senate or House of Representatives". For more information, refer to the User Guide that accompanies this file.</dc:description>
  </dublinCore>
</billStatus>


text:
const struct SNRThumbnailArtworkAttributes SNRThumbnailArtworkAttributes = {
	.data = @"data",
};

const struct SNRThumbnailArtworkRelationships SNRThumbnailArtworkRelationships = {
	.album = @"album",
};

@implementation SNRThumbnailArtworkID
@end

@implementation _SNRThumbnailArtwork

+ (id)insertInManagedObjectContext:(NSManagedObjectContext*)moc_ {
	NSParameterAssert(moc_);
	return [NSEntityDescription insertNewObjectForEntityForName:@"SNRThumbnailArtwork" inManagedObjectContext:moc_];
}

+ (NSString*)entityName {
	return @"SNRThumbnailArtwork";
}

+ (NSEntityDescription*)entityInManagedObjectContext:(NSManagedObjectContext*)moc_ {
	NSParameterAssert(moc_);
	return [NSEntityDescription entityForName:@"SNRThumbnailArtwork" inManagedObjectContext:moc_];
}

- (SNRThumbnailArtworkID*)objectID {
	return (SNRThumbnailArtworkID*)[super objectID];
}

+ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
	NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];

	return keyPaths;
}

@dynamic data;

@dynamic album;

@end

redpajama_set_name: RedPajamaGithub


text:
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));

var _jsxRuntime = require("react/jsx-runtime");

var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
  d: "M18 4v16H6V4h12M4 2v20h16V2H4zm3 17h10v-6H7v6zm3-9h4v1h3V5H7v6h3v-1z"
}), 'SensorWindowSharp');

exports.default = _default;


text:
  Project spacebuild extensions                                                =
  Copyright Spacebuild project (http://github.com/spacebuild)                  =
                                                                               =
  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.                                              =
  ============================================================================]]
AddCSLuaFile()
local function initTools(SB)
    if not SB then SB = SPACEBUILD end
    if not SB then print("Could not register spacebuild life support extensions\n") return end
    SB:registerExtensionsLS()
end
if SPACEBUILD then
    initTools(SPACEBUILD)
else
    hook.Add("onSpacebuildLoaded", "spacebuild.loaded.extensions.ls", initTools)
end


text:
export * from './datasources-view/datasources-view';
export * from './home-view/home-view';
export * from './ingestion-view/ingestion-view';
export * from './load-data-view/load-data-view';
export * from './lookups-view/lookups-view';
export * from './segments-view/segments-view';
export * from './services-view/services-view';
export * from './sql-data-loader-view/sql-data-loader-view';
export * from './workbench-view/workbench-view';


text:
import { Meteor } from 'meteor/meteor';
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';

import AppContainer from '../containers/AppContainer';
import AboutPage from '../pages/AboutPage';
import NotFoundPage from '../pages/NotFoundPage';

const route = (path, component, onEnter) => (
  <Route path={path} component={component} onEnter={onEnter} />
);

const renderRoutes = () => {
  render(
    <Router onUpdate={() => window.scrollTo(0, 0)} history={browserHistory}>
      <Route path="/" component={AppContainer}>
        <IndexRoute component={AboutPage} />
        {route('home', AboutPage)}
      </Route>
      {route('*', NotFoundPage)}
    </Router>,
    document.getElementById('react-root')
  );
};

export default renderRoutes;


text:
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

namespace Microsoft.Azure.EventHubs.Processor
{
    using System;
    using System.Collections.Generic;
    using System.Text.RegularExpressions;
    using System.Threading.Tasks;

    using Newtonsoft.Json;

    using WindowsAzure.Storage;
    using WindowsAzure.Storage.Blob;
    using WindowsAzure.Storage.Blob.Protocol;

    sealed class AzureStorageCheckpointLeaseManager : ICheckpointManager, ILeaseManager
    {
        EventProcessorHost host;
        readonly string storageConnectionString;
        string leaseContainerName = null;
        string storageBlobPrefix;

        CloudBlobClient storageClient;
        CloudBlobContainer eventHubContainer;
        CloudBlobDirectory consumerGroupDirectory;

        static readonly TimeSpan storageMaximumExecutionTime = TimeSpan.FromMinutes(2);
        static readonly TimeSpan leaseDuration = TimeSpan.FromSeconds(30);
        static readonly TimeSpan leaseRenewInterval = TimeSpan.FromSeconds(10);
        readonly BlobRequestOptions renewRequestOptions = new BlobRequestOptions();

        internal AzureStorageCheckpointLeaseManager(string storageConnectionString, string leaseContainerName, string storageBlobPrefix)
        {
            if (string.IsNullOrEmpty(storageConnectionString))
            {
                throw new ArgumentNullException(nameof(storageConnectionString));
            }

            // Validate lease container name.
            if (!Regex.IsMatch(leaseContainerName, @"^[a-z0-9](([a-z0-9\-[^\-])){1,61}[a-z0-9]$"))
            {
                throw new ArgumentException(
                    "Azure Storage lease container name is invalid. Please check naming conventions at https://msdn.microsoft.com/en-us/library/azure/dd135715.aspx",
                   nameof(leaseContainerName));
            }

            this.storageConnectionString = storageConnectionString;
            this.leaseContainerName = leaseContainerName;

            // Convert all-whitespace prefix to empty string. Convert null prefix to empty string.
            // Then the rest of the code only has one case to worry about.
            this.storageBlobPrefix = (storageBlobPrefix != null) ? storageBlobPrefix.Trim() : "";
        }

        // The EventProcessorHost can't pass itself to the AzureStorageCheckpointLeaseManager constructor
        // because it is still being constructed. Do other initialization here also because it might throw and
        // hence we don't want it in the constructor.
        internal void Initialize(EventProcessorHost host) // throws InvalidKeyException, URISyntaxException, StorageException
        {
            this.host = host;
            this.storageClient = CloudStorageAccount.Parse(this.storageConnectionString).CreateCloudBlobClient();
            BlobRequestOptions options = new BlobRequestOptions();
            options.MaximumExecutionTime = AzureStorageCheckpointLeaseManager.storageMaximumExecutionTime;
            this.storageClient.DefaultRequestOptions = options;
            this.eventHubContainer = this.storageClient.GetContainerReference(this.leaseContainerName);
            this.consumerGroupDirectory = this.eventHubContainer.GetDirectoryReference(this.storageBlobPrefix + this.host.ConsumerGroupName);
        }

        //
        // In this implementation, checkpoints are data that's actually in the lease blob, so checkpoint operations
        // turn into lease operations under the covers.
        //
        public Task<bool> CheckpointStoreExistsAsync()
        {
            return LeaseStoreExistsAsync();
        }

        public Task<bool> CreateCheckpointStoreIfNotExistsAsync()
        {
            return CreateLeaseStoreIfNotExistsAsync();
        }

        public async Task<Checkpoint> GetCheckpointAsync(string partitionId)
        {
    	    AzureBlobLease lease = (AzureBlobLease)await GetLeaseAsync(partitionId).ConfigureAwait(false);
            Checkpoint checkpoint = null;
            if (lease?.Offset != null)
            {
                checkpoint = new Checkpoint(partitionId)
                {
                    Offset = lease.Offset,
                    SequenceNumber = lease.SequenceNumber
                };
            }

    	    return checkpoint;
        }

        public async Task<Checkpoint> CreateCheckpointIfNotExistsAsync(string partitionId)
        {
    	    // Normally the lease will already be created, checkpoint store is initialized after lease store.
    	    AzureBlobLease lease = (AzureBlobLease)await CreateLeaseIfNotExistsAsync(partitionId).ConfigureAwait(false);
            Checkpoint checkpoint = new Checkpoint(partitionId, lease.Offset, lease.SequenceNumber);

            return checkpoint;
        }

        public async Task UpdateCheckpointAsync(Checkpoint checkpoint)
        {
            // Need to fetch the most current lease data so that we can update it correctly.
            AzureBlobLease lease = (AzureBlobLease)await GetLeaseAsync(checkpoint.PartitionId).ConfigureAwait(false);
            lease.Offset = checkpoint.Offset;
            lease.SequenceNumber = checkpoint.SequenceNumber;
            await UpdateLeaseAsync(lease).ConfigureAwait(false);
        }

        public Task DeleteCheckpointAsync(string partitionId)
        {
            // Make this a no-op to avoid deleting leases by accident.
            return Task.FromResult(0);
        }

        //
        // Lease operations.
        //
        public TimeSpan LeaseRenewInterval
        {
            get
            {
                return AzureStorageCheckpointLeaseManager.leaseRenewInterval;
            }
        }

        public TimeSpan LeaseDuration
        {
            get
            {
                return AzureStorageCheckpointLeaseManager.leaseDuration;
            }
        }

        public Task<bool> LeaseStoreExistsAsync()
        {
            return this.eventHubContainer.ExistsAsync();
        }

        public Task<bool> CreateLeaseStoreIfNotExistsAsync()
        {
            return this.eventHubContainer.CreateIfNotExistsAsync();
        }

        public async Task<bool> DeleteLeaseStoreAsync()
        {
            bool retval = true;

            BlobContinuationToken outerContinuationToken = null;
            do
            {
                BlobResultSegment outerResultSegment = await this.eventHubContainer.ListBlobsSegmentedAsync(outerContinuationToken).ConfigureAwait(false);
                outerContinuationToken = outerResultSegment.ContinuationToken;
                foreach (IListBlobItem blob in outerResultSegment.Results)
                {
                    if (blob is CloudBlobDirectory)
                    {
                        BlobContinuationToken innerContinuationToken = null;
                        do
                        {
                            BlobResultSegment innerResultSegment = await ((CloudBlobDirectory)blob).ListBlobsSegmentedAsync(innerContinuationToken).ConfigureAwait(false);
                            innerContinuationToken = innerResultSegment.ContinuationToken;
                            foreach (IListBlobItem subBlob in innerResultSegment.Results)
                            {
                                try
                                {
                                    await ((CloudBlockBlob)subBlob).DeleteIfExistsAsync().ConfigureAwait(false);
                                }
                                catch (StorageException e)
                                {
                                    ProcessorEventSource.Log.AzureStorageManagerWarning(this.host.Id, "N/A", "Failure while deleting lease store:", e.ToString());
                                    retval = false;
                                }
                            }
                        }
                        while (innerContinuationToken != null);
                    }
    		        else if (blob is CloudBlockBlob)
                    {
                        try
                        {
                            await ((CloudBlockBlob)blob).DeleteIfExistsAsync().ConfigureAwait(false);
                        }
                        catch (StorageException e)
                        {
                            ProcessorEventSource.Log.AzureStorageManagerWarning(this.host.Id, "N/A", "Failure while deleting lease store:", e.ToString());
                            retval = false;
                        }
                    }
                }
            }
            while (outerContinuationToken != null);

            return retval;
        }

        public async Task<Lease> GetLeaseAsync(string partitionId) // throws URISyntaxException, IOException, StorageException
        {
    	    AzureBlobLease retval = null;

            CloudBlockBlob leaseBlob = this.consumerGroupDirectory.GetBlockBlobReference(partitionId);
            if (await leaseBlob.ExistsAsync().ConfigureAwait(false))
		    {
                retval = await DownloadLeaseAsync(partitionId, leaseBlob).ConfigureAwait(false);
		    }

            return retval;
        }

        public IEnumerable<Task<Lease>> GetAllLeases()
        {
            List<Task<Lease>> leaseFutures = new List<Task<Lease>>();
            IEnumerable<string> partitionIds = this.host.PartitionManager.GetPartitionIdsAsync().Result;
            foreach (string id in partitionIds)
            {
                leaseFutures.Add(GetLeaseAsync(id));
            }

            return leaseFutures;
        }

        public async Task<Lease> CreateLeaseIfNotExistsAsync(string partitionId) // throws URISyntaxException, IOException, StorageException
        {
        	AzureBlobLease returnLease;
    	    try
    	    {
    		    CloudBlockBlob leaseBlob = this.consumerGroupDirectory.GetBlockBlobReference(partitionId);
                returnLease = new AzureBlobLease(partitionId, leaseBlob);
                string jsonLease = JsonConvert.SerializeObject(returnLease);

                ProcessorEventSource.Log.AzureStorageManagerInfo(
                    this.host.Id,
                    partitionId,
                    "CreateLeaseIfNotExist - leaseContainerName: " + this.leaseContainerName +
                    " consumerGroupName: " + this.host.ConsumerGroupName + " storageBlobPrefix: " + this.storageBlobPrefix);
                await leaseBlob.UploadTextAsync(jsonLease, null, AccessCondition.GenerateIfNoneMatchCondition("*"), null, null).ConfigureAwait(false);
            }
    	    catch (StorageException se)
    	    {
    		    StorageExtendedErrorInformation extendedErrorInfo = se.RequestInformation.ExtendedErrorInformation;
    		    if (extendedErrorInfo != null &&
        		    (extendedErrorInfo.ErrorCode == BlobErrorCodeStrings.BlobAlreadyExists ||
    	    	     extendedErrorInfo.ErrorCode == BlobErrorCodeStrings.LeaseIdMissing)) // occurs when somebody else already has leased the blob
    		    {
                    // The blob already exists.
                    ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "Lease already exists");
                    returnLease = (AzureBlobLease)await GetLeaseAsync(partitionId).ConfigureAwait(false);
                }
    		    else
    		    {
                    ProcessorEventSource.Log.AzureStorageManagerError(
                        this.host.Id,
                        partitionId,
                        "CreateLeaseIfNotExist StorageException - leaseContainerName: " + this.leaseContainerName +
                        " consumerGroupName: " + this.host.ConsumerGroupName + " storageBlobPrefix: " + this.storageBlobPrefix,
                        se.ToString());
    			    throw;
                }
    	    }

    	    return returnLease;
        }

        public Task DeleteLeaseAsync(Lease lease)
        {
            var azureBlobLease = (AzureBlobLease)lease;
            ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, azureBlobLease.PartitionId, "Deleting lease");
            return azureBlobLease.Blob.DeleteIfExistsAsync();
        }

        public Task<bool> AcquireLeaseAsync(Lease lease)
        {
            return AcquireLeaseCoreAsync((AzureBlobLease)lease);
        }

        async Task<bool> AcquireLeaseCoreAsync(AzureBlobLease lease)
        {
            CloudBlockBlob leaseBlob = lease.Blob;
            bool retval = true;
            string newLeaseId = Guid.NewGuid().ToString();
            string partitionId = lease.PartitionId;
        	try
            {
                string newToken;
                await leaseBlob.FetchAttributesAsync().ConfigureAwait(false);
                if (leaseBlob.Properties.LeaseState == LeaseState.Leased)
                {
                    ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, lease.PartitionId, "Need to ChangeLease");
                    newToken = await leaseBlob.ChangeLeaseAsync(newLeaseId, AccessCondition.GenerateLeaseCondition(lease.Token)).ConfigureAwait(false);
                }
                else
                {
                    ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, lease.PartitionId, "Need to AcquireLease");
                    newToken = await leaseBlob.AcquireLeaseAsync(leaseDuration, newLeaseId).ConfigureAwait(false);
                }

                lease.Token = newToken;
                lease.Owner = this.host.HostName;
                lease.IncrementEpoch(); // Increment epoch each time lease is acquired or stolen by a new host
                await leaseBlob.UploadTextAsync(JsonConvert.SerializeObject(lease), null, AccessCondition.GenerateLeaseCondition(lease.Token), null, null).ConfigureAwait(false);
            }
    	    catch (StorageException se)
            {
                if (WasLeaseLost(partitionId, se))
                {
                    retval = false;
                }
                else
                {
                    throw;
                }
            }

    	    return retval;
        }

        public Task<bool> RenewLeaseAsync(Lease lease)
        {
            return RenewLeaseCoreAsync((AzureBlobLease)lease);
        }

        async Task<bool> RenewLeaseCoreAsync(AzureBlobLease lease)
        {
            CloudBlockBlob leaseBlob = lease.Blob;
            bool retval = true;
            string partitionId = lease.PartitionId;
    	    try
            {
                await leaseBlob.RenewLeaseAsync(AccessCondition.GenerateLeaseCondition(lease.Token), this.renewRequestOptions, null).ConfigureAwait(false);
            }
    	    catch (StorageException se)
            {
                if (WasLeaseLost(partitionId, se))
                {
                    retval = false;
                }
                else
                {
                    throw;
                }
            }

 	        return retval;
        }

        public Task<bool> ReleaseLeaseAsync(Lease lease)
        {
            return ReleaseLeaseCoreAsync((AzureBlobLease)lease);
        }

        async Task<bool> ReleaseLeaseCoreAsync(AzureBlobLease lease)
        {
            ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, lease.PartitionId, "Releasing lease");

            CloudBlockBlob leaseBlob = lease.Blob;
            bool retval = true;
            string partitionId = lease.PartitionId;
        	try
            {
                string leaseId = lease.Token;
                AzureBlobLease releasedCopy = new AzureBlobLease(lease)
                {
                    Token = string.Empty,
                    Owner = string.Empty
                };
                await leaseBlob.UploadTextAsync(JsonConvert.SerializeObject(releasedCopy), null, AccessCondition.GenerateLeaseCondition(leaseId), null, null).ConfigureAwait(false);
                await leaseBlob.ReleaseLeaseAsync(AccessCondition.GenerateLeaseCondition(leaseId)).ConfigureAwait(false);
            }
    	    catch (StorageException se)
            {
                if (WasLeaseLost(partitionId, se))
                {
                    retval = false;
                }
                else
                {
                    throw;
                }
            }

        	return retval;
        }

        public Task<bool> UpdateLeaseAsync(Lease lease)
        {
            return UpdateLeaseCoreAsync((AzureBlobLease)lease);
        }

        async Task<bool> UpdateLeaseCoreAsync(AzureBlobLease lease)
        {
    	    if (lease == null)
            {
                return false;
            }

            string partitionId = lease.PartitionId;
            ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "Updating lease");

            string token = lease.Token;
    	    if (string.IsNullOrEmpty(token))
            {
                return false;
            }

        	// First, renew the lease to make sure the update will go through.
    	    if (!await this.RenewLeaseAsync(lease).ConfigureAwait(false))
            {
                return false;
            }

            CloudBlockBlob leaseBlob = lease.Blob;
    	    try
            {
                string jsonToUpload = JsonConvert.SerializeObject(lease);
                ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, lease.PartitionId, $"Raw JSON uploading: {jsonToUpload}");
                await leaseBlob.UploadTextAsync(jsonToUpload, null, AccessCondition.GenerateLeaseCondition(token), null, null).ConfigureAwait(false);
            }
    	    catch (StorageException se)
	        {
	            if (WasLeaseLost(partitionId, se))
                {
                    throw new LeaseLostException(lease, se);
                }

                throw;
	        }

        	return true;
        }

        async Task<AzureBlobLease> DownloadLeaseAsync(string partitionId, CloudBlockBlob blob) // throws StorageException, IOException
        {
            string jsonLease = await blob.DownloadTextAsync().ConfigureAwait(false);

            ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "Raw JSON downloaded: " + jsonLease);
            AzureBlobLease rehydrated = (AzureBlobLease)JsonConvert.DeserializeObject(jsonLease, typeof(AzureBlobLease));
    	    AzureBlobLease blobLease = new AzureBlobLease(rehydrated, blob);
    	    return blobLease;
        }

        bool WasLeaseLost(string partitionId, StorageException se)
        {
            bool retval = false;
            ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "WAS LEASE LOST?");
            ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "HttpStatusCode " + se.RequestInformation.HttpStatusCode);
            if (se.RequestInformation.HttpStatusCode == 409 || // conflict
                se.RequestInformation.HttpStatusCode == 412) // precondition failed
            {
                StorageExtendedErrorInformation extendedErrorInfo = se.RequestInformation.ExtendedErrorInformation;
                if (extendedErrorInfo != null)
                {
                    string errorCode = extendedErrorInfo.ErrorCode;
                    ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "Error code: " + errorCode);
                    ProcessorEventSource.Log.AzureStorageManagerInfo(this.host.Id, partitionId, "Error message: " + extendedErrorInfo.ErrorMessage);
                    if (errorCode == BlobErrorCodeStrings.LeaseLost ||
                        errorCode == BlobErrorCodeStrings.LeaseIdMismatchWithLeaseOperation ||
                        errorCode == BlobErrorCodeStrings.LeaseIdMismatchWithBlobOperation)
                    {
                        retval = true;
                    }
                }
            }
            return retval;
        }
    }
}


text:
import { application } from 'tizen-common-web';
import { ApplicationControlLaunchMode, ApplicationInformation, ApplicationControl } from 'tizen-common-web/application';
import { WebAPIError } from 'tizen-common-web/tizen';

const app = application.getCurrentApplication();
const watchId = app.addEventListener({ appId: app.appInfo.id, name: 'custom_user_event' }, (event, data) => {
    console.log('Data: ' + JSON.stringify(data));
    // Do something.
});

ApplicationControlLaunchMode.GROUP;
ApplicationControlLaunchMode.SINGLE;

const appControl = new ApplicationControl('http://tizen.org/appcontrol/operation/pick', 'null', 'image/jpeg', 'null');

function successCB(appInfos: ApplicationInformation[], appControl: ApplicationControl) {
    // appControl is same object with the value passed as first parameter to findAppControl().
    const appControlReplyCallback = {
        // Callee sent a reply.
        onsuccess: () => {
            // for (var i = 0; i < data.length; i++) {
            //     if (
            //         data[i].key ==
            //         'http://tizen.org/appcontrol/data/selected'
            //     ) {
            //         console.log(
            //             'Selected image is ' + data[i].value[0]
            //         );
            //     }
            // }
            console.log('[222]success');
        },
        // Callee returned failure.
        onfailure: () => {
            console.log('The launch application control failed');
        },
    };

    const appId = appInfos[0].id; // Select first app's id.

    application.launchAppControl(
        appControl,
        appId,
        () => {
            console.log('Launch application control succeed');
        },
        (e: WebAPIError) => {
            console.log('Launch application control failed, reason: ' + e.message);
        },
        appControlReplyCallback,
    );
}

application.findAppControl(appControl, successCB);


text:
import Provider from './components/Provider'
import connect from './components/connect'
import filterConnect from './components/filterConnect'
import filter from './components/filter'

export { Provider, connect, filter, filterConnect }


text:
package org.ovirt.engine.ui.common;

import com.google.gwt.user.cellview.client.CellTable;

public interface MainTableResources extends CellTable.Resources {

    interface TableStyle extends CellTable.Style {
    }

    @Override
    @Source({ CellTable.Style.DEFAULT_CSS, "org/ovirt/engine/ui/common/css/TabCellTable.css" })
    TableStyle cellTableStyle();

}


text:
package validators

import (
    "errors"

    "github.com/matthewvalimaki/cas-server/types"
)

// ValidateFormat validates that format is of correct value
func ValidateFormat(format string) *types.CasError {
    if format != "XML" && format != "JSON" {
        return &types.CasError{Error: errors.New("Query parameter `format` contained illegal value. Allowed values are `XML' and `JSON`."), CasErrorCode: types.CAS_ERROR_CODE_INVALID_PROXY_CALLBACK}
    }

    return nil
}


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace TODOAzureSample.Converters
{

    public class DateTimeToDateTimeOffsetConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            try
            {
                DateTime date = (DateTime)value;
                return new DateTimeOffset(date);
            }

            catch (Exception)
            {
                return DateTimeOffset.MinValue;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            try
            {
                DateTimeOffset dto = (DateTimeOffset)value;
                return dto.DateTime;
            }
            catch (Exception)
            {
                return DateTime.MinValue;
            }
        }
    }
}


text:
OFFSET is a flash filesystem specially designed for embedded devices with small size of NAND/NOR flash (and of course tiny amount of RAM). It's suitable for situations that you need to store small pieces of data beside your existing firmware inside your chipset (or even in an external flash chip) and you need to access, modify or delete this data frequently, easily and rapidly.
OFFSET is an object-based filesystem, it means that each file is supposed as an independent object with a unique handle and some special attributes that can be added, edited or deleted independently. You can search for objects by their unique handle or iterate on all existing objects in filesystem. You can also iterate on each object's attributes or search for an special attribute by its type.
OFFSET supports 4 levels of caching in order to maximize access and search speed that makes it a really fast filesystem. OFFSET also supports data wear leveling to prolong device life, in addition to automatic garbage collection, power failure recovery, authorized data access and strong data encryption. It's compatible with any standard C++ compiler, easy to config, easy to use and it eventually makes the life more beautiful!

### Features
* Supports NAND/NOR flash types
* Up to 4 levels of caching in order to minimize data access time
* Data wear leveling that prolongs device life
* Automatic garbage collection
* Automatic power failure recovery
* Authorized data access
* Strong data encryption using any optional block cipher algorithm
* Compatible with any standard C++ compiler
* Easy to config and use
* Tiny footprint

### Requirements
* Any MCU with a standard C++ compiler (ARM, AVR, MSP, etc.)
* Any flash chipset with at least two continuous independently formattable sectors
* A geek guy, a cup of coffee and a big piece of creamy cake!

### How to start ?
See [Getting Started](https://github.com/khodarahmi/OFFSET/wiki/Getting-Started) page.


text:
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright 2014 toxbee.se
  ~
  ~ 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.
  -->
<resources>
    <string name="challenge_sort_ascending">Tryck panelerna från lågt till högt</string>
    <string name="challenge_sort_descending">Tryck panelerna från högt till lågt</string>
    <string name="challenge_sort_done">Klar!</string>

       <string name="challenge_sort_settings_title">Utmaning sortering inställningar</string>
    <string name="challenge_sort_color_confusion_title">Färgförvirrning</string>
    <string name="challenge_sort_color_confusion_summary">Om inställningen är på, kommer siffrornas backgrunder ha olika färger.</string>

</resources>


text:
<?php

declare(strict_types=1);

namespace Cortex\Auth\Http\Controllers\Managerarea;

use Cortex\Auth\Models\Manager;
use Spatie\MediaLibrary\Models\Media;
use Cortex\Foundation\Http\Controllers\AuthenticatedController;

class AccountMediaController extends AuthenticatedController
{
    /**
     * Destroy given manager media.
     *
     * @param \Cortex\Auth\Models\Manager       $manager
     * @param \Spatie\MediaLibrary\Models\Media $media
     *
     * @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
     */
    public function destroy(Manager $manager, Media $media)
    {
        $manager->media()->where($media->getKeyName(), $media->getKey())->first()->delete();

        return intend([
            'url' => route('managerarea.account.settings'),
            'with' => [
                'warning' => trans('cortex/foundation::messages.resource_deleted', [
                    'resource' => trans('cortex/foundation::common.media'),
                    'identifier' => $media->getRouteKey(),
                ]),
            ],
        ]);
    }
}


text:
namespace ks_admin
{
    partial class Explorer
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.Windows.Forms.TreeNode treeNode1 = new System.Windows.Forms.TreeNode("TestPC");
            System.Windows.Forms.TreeNode treeNode2 = new System.Windows.Forms.TreeNode("Library", new System.Windows.Forms.TreeNode[] {
            treeNode1});
            System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("Problems");
            System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("Troubles");
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Explorer));
            this.treeView1 = new System.Windows.Forms.TreeView();
            this.ilImages = new System.Windows.Forms.ImageList(this.components);
            this.SuspendLayout();
            //
            // treeView1
            //
            this.treeView1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.treeView1.ImageIndex = 0;
            this.treeView1.ImageList = this.ilImages;
            this.treeView1.Indent = 19;
            this.treeView1.Location = new System.Drawing.Point(0, 24);
            this.treeView1.Name = "treeView1";
            treeNode1.ImageKey = "Iconfactory.ico";
            treeNode1.Name = "TestPC";
            treeNode1.SelectedImageKey = "Iconfactory.ico";
            treeNode1.Text = "TestPC";
            treeNode2.Name = "Library";
            treeNode2.Text = "Library";
            treeNode3.ImageKey = "Public Folder.png";
            treeNode3.Name = "Problems";
            treeNode3.SelectedImageKey = "Public Folder.png";
            treeNode3.StateImageKey = "(none)";
            treeNode3.Text = "Problems";
            treeNode4.ImageKey = "Burnable Folder.png";
            treeNode4.Name = "Troubles";
            treeNode4.SelectedImageKey = "Burnable Folder.png";
            treeNode4.Text = "Troubles";
            this.treeView1.Nodes.AddRange(new System.Windows.Forms.TreeNode[] {
            treeNode2,
            treeNode3,
            treeNode4});
            this.treeView1.SelectedImageIndex = 0;
            this.treeView1.Size = new System.Drawing.Size(245, 297);
            this.treeView1.TabIndex = 0;
            //
            // ilImages
            //
            this.ilImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilImages.ImageStream")));
            this.ilImages.TransparentColor = System.Drawing.Color.Transparent;
            this.ilImages.Images.SetKeyName(0, "Library Folder.png");
            this.ilImages.Images.SetKeyName(1, "Public Folder.png");
            this.ilImages.Images.SetKeyName(2, "Burnable Folder.png");
            this.ilImages.Images.SetKeyName(3, "Iconfactory.ico");
            //
            // Explorer
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.ClientSize = new System.Drawing.Size(245, 322);
            this.Controls.Add(this.treeView1);
            this.DockAreas = ((WeifenLuo.WinFormsUI.Docking.DockAreas)((WeifenLuo.WinFormsUI.Docking.DockAreas.DockLeft | WeifenLuo.WinFormsUI.Docking.DockAreas.DockRight)));
            this.HideOnClose = true;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.Name = "Explorer";
            this.Padding = new System.Windows.Forms.Padding(0, 24, 0, 1);
            this.ShowHint = WeifenLuo.WinFormsUI.Docking.DockState.DockLeft;
            this.TabText = "Explorer";
            this.Text = "Explorer";
            this.Load += new System.EventHandler(this.Explorer_Load);
            this.ResumeLayout(false);

		}
		#endregion

        private System.Windows.Forms.TreeView treeView1;
        private System.Windows.Forms.ImageList ilImages;
    }
}


text:
using System;
using System.Linq;

namespace LiveDemoRecords.App.Macros
{
  public class StopMacro : IMacro
  {
    /// <inheritdoc />
    public string Description
    {
      get { return "\u25A0"; }
    }

    /// <inheritdoc />
    public void Execute ()
    {
      throw new NotSupportedException();
    }
  }
}


text:
<link rel="stylesheet" href="http://kiemtraweb.vn/application/libraries/javascript/js/jquery-ui-1.11.1.custom/jquery-ui.min.css"/>

<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" />

<link rel="stylesheet" href="/application/views/css/default.css"/>

Search the picture that you want for your products, shops, services...or idea for a promotion campaign.
                        <input type="text" class="form-control" size="30" maxlength="30"/>
                        <input type="button" class="form-control" value="Search"/>

   <?php
                    $i=round($offset /VIEW_IMAGE_PER_ROW ,0)+1;
                    $j=0;
                    while ((($i-1)*VIEW_IMAGE_PER_ROW) <count($images) AND ((($i-1)*VIEW_IMAGE_PER_ROW)) < ($offset)+$perpage)
                    {

                    echo('
');
                    echo ('
');
                    echo('

');

                    echo ('
');
                    for ($j=0; $j <VIEW_IMAGE_PER_ROW AND ((($i-1)*VIEW_IMAGE_PER_ROW)+$j)<count($images) ;$j++)
                    {
                        $image_item = $images[(($i-1)*VIEW_IMAGE_PER_ROW)+$j];
                        if ($j==0)
                        {?>

                                        <img class="img-thumbnail" src="../../products/thumb/<?php echo $image_item['path'].$image_item['image_id'].".jpg";?>" width="300" height="300"/>

                        <?php
                        }
                        else {
                ?>

                                        <img class="img-thumbnail" src="../../products/thumb/<?php echo $image_item['path'].$image_item['image_id'].".jpg";?>" width="300" height="300"/>

                 <?php } }
                 echo ('
');
                 echo ('

                        Previous

                        Next

');
                 echo ('
');
                 $i++; }
                   ?>


text:
namespace monik {

bool time_util::safe_gmtime(struct tm & dest, const time_t value) {
    memset_zero(dest);
#if defined(MONIK_OS_WIN32)
    const errno_t err = ::gmtime_s(&dest, &value);
    MONIK_ASSERT(!err);
    return !err;
#else
    struct tm * ptm = ::gmtime_r(&value, &dest);
    MONIK_ASSERT(ptm);
    return ptm != nullptr;
#endif
}

} // monik