text:
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
  <bill>
    <createDate>2017-06-30T03:11:33Z</createDate>
    <introducedDate>2017-06-29</introducedDate>
    <committees>
      <billCommittees>
        <item>
          <activities>
            <item>
              <name>Referred to</name>
              <date>2017-06-29T14:07:35Z</date>
            </item>
          </activities>
          <subcommittees>
            <item>
              <activities>
                <item>
                  <name>Referred to</name>
                  <date>2017-06-30T13:59:02Z</date>
                </item>
              </activities>
              <systemCode>hsif14</systemCode>
              <name>Health Subcommittee</name>
            </item>
          </subcommittees>
          <name>Energy and Commerce Committee</name>
          <type>Standing</type>
          <systemCode>hsif00</systemCode>
          <chamber>House</chamber>
        </item>
      </billCommittees>
    </committees>
    <recordedVotes />
    <calendarNumbers />
    <congress>115</congress>
    <title>Expressing support for the designation of "National Eating Disorders Awareness Week" and supporting the goals and ideals to raise awareness and understanding of eating disorders.</title>
    <committeeReports />
    <titles>
      <item>
        <chamberCode />
        <parentTitleType />
        <title>Expressing support for the designation of "National Eating Disorders Awareness Week" and supporting the goals and ideals to raise awareness and understanding of eating disorders.</title>
        <chamberName />
        <titleType>Official Title as Introduced</titleType>
      </item>
      <item>
        <chamberCode />
        <parentTitleType />
        <title>Expressing support for the designation of "National Eating Disorders Awareness Week" and supporting the goals and ideals to raise awareness and understanding of eating disorders.</title>
        <chamberName />
        <titleType>Display Title</titleType>
      </item>
    </titles>
    <relatedBills />
    <subjects>
      <billSubjects>
        <legislativeSubjects>
          <item>
            <name>Commemorative events and holidays</name>
          </item>
          <item>
            <name>Digestive and metabolic diseases</name>
          </item>
          <item>
            <name>Health promotion and preventive care</name>
          </item>
          <item>
            <name>Mental health</name>
          </item>
          <item>
            <name>Nutrition and diet</name>
          </item>
        </legislativeSubjects>
        <policyArea>
          <name>Health</name>
        </policyArea>
      </billSubjects>
    </subjects>
    <policyArea>
      <name>Health</name>
    </policyArea>
    <updateDate>2017-10-13T07:15:36Z</updateDate>
    <notes />
    <originChamber>House</originChamber>
    <summaries>
      <billSummaries>
        <item>
          <actionDesc>Introduced in House</actionDesc>
          <updateDate>2017-06-29T04:00:00Z</updateDate>
          <lastSummaryUpdateDate>2017-09-22T21:45:38Z</lastSummaryUpdateDate>
          <text><![CDATA[
 Recognizes National Eating Disorders Awareness Week.

Recognizes the rate at which individuals are affected by eating disorders and the inadequate rate at which such individuals seek treatment.

Acknowledges that eating disorders can be successfully treated and that individuals with eating disorders can and do recover.
]]></text>
          <name>Introduced in House</name>
          <actionDate>2017-06-29</actionDate>
          <versionCode>00</versionCode>
        </item>
      </billSummaries>
    </summaries>
    <version>1.0.0</version>
    <billNumber>428</billNumber>
    <cosponsors>
      <item>
        <bioguideId>B001251</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>B001251</bioguideId>
          <lisID>1761</lisID>
          <gpoId>8024</gpoId>
        </identifiers>
        <firstName>G. K.</firstName>
        <lastName>Butterfield</lastName>
        <state>NC</state>
        <party>D</party>
        <fullName>Rep. Butterfield, G. K. [D-NC-1]</fullName>
        <district>1</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>N000147</bioguideId>
        <middleName>HOLMES</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>868</lisID>
          <bioguideId>N000147</bioguideId>
          <gpoId>7871</gpoId>
        </identifiers>
        <firstName>ELEANOR</firstName>
        <lastName>NORTON</lastName>
        <state>DC</state>
        <party>D</party>
        <fullName>Rep. Norton, Eleanor Holmes [D-DC-At Large]</fullName>
        <district>0</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>G000580</bioguideId>
        <middleName>A.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>G000580</bioguideId>
          <gpoId />
          <lisID>2353</lisID>
        </identifiers>
        <firstName>Thomas</firstName>
        <lastName>Garrett</lastName>
        <state>VA</state>
        <party>R</party>
        <fullName>Rep. Garrett, Thomas A., Jr. [R-VA-5]</fullName>
        <district>5</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>J000288</bioguideId>
        <middleName>C. "Hank"</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1843</lisID>
          <bioguideId>J000288</bioguideId>
          <gpoId>7901</gpoId>
        </identifiers>
        <firstName>Henry</firstName>
        <lastName>Johnson</lastName>
        <state>GA</state>
        <party>D</party>
        <fullName>Rep. Johnson, Henry C. "Hank," Jr. [D-GA-4]</fullName>
        <district>4</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>J000032</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>588</lisID>
          <gpoId>8174</gpoId>
          <bioguideId>J000032</bioguideId>
        </identifiers>
        <firstName>SHEILA</firstName>
        <lastName>JACKSON LEE</lastName>
        <state>TX</state>
        <party>D</party>
        <fullName>Rep. Jackson Lee, Sheila [D-TX-18]</fullName>
        <district>18</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>S000510</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1528</lisID>
          <bioguideId>S000510</bioguideId>
          <gpoId>8213</gpoId>
        </identifiers>
        <firstName>ADAM</firstName>
        <lastName>SMITH</lastName>
        <state>WA</state>
        <party>D</party>
        <fullName>Rep. Smith, Adam [D-WA-9]</fullName>
        <district>9</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>J000298</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2354</lisID>
          <gpoId />
          <bioguideId>J000298</bioguideId>
        </identifiers>
        <firstName>Pramila</firstName>
        <lastName>Jayapal</lastName>
        <state>WA</state>
        <party>D</party>
        <fullName>Rep. Jayapal, Pramila [D-WA-7]</fullName>
        <district>7</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>C001106</bioguideId>
        <middleName>A.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2266</lisID>
          <gpoId />
          <bioguideId>C001106</bioguideId>
        </identifiers>
        <firstName>Ryan</firstName>
        <lastName>Costello</lastName>
        <state>PA</state>
        <party>R</party>
        <fullName>Rep. Costello, Ryan A. [R-PA-6]</fullName>
        <district>6</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>T000469</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1942</lisID>
          <bioguideId>T000469</bioguideId>
          <gpoId>8082</gpoId>
        </identifiers>
        <firstName>Paul</firstName>
        <lastName>Tonko</lastName>
        <state>NY</state>
        <party>D</party>
        <fullName>Rep. Tonko, Paul [D-NY-20]</fullName>
        <district>20</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>N000179</bioguideId>
        <middleName>F.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>N000179</bioguideId>
          <lisID>1602</lisID>
          <gpoId>7843</gpoId>
        </identifiers>
        <firstName>GRACE</firstName>
        <lastName>NAPOLITANO</lastName>
        <state>CA</state>
        <party>D</party>
        <fullName>Rep. Napolitano, Grace F. [D-CA-32]</fullName>
        <district>32</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>D000610</bioguideId>
        <middleName>E.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1976</lisID>
          <bioguideId>D000610</bioguideId>
          <gpoId>7891</gpoId>
        </identifiers>
        <firstName>Theodore</firstName>
        <lastName>Deutch</lastName>
        <state>FL</state>
        <party>D</party>
        <fullName>Rep. Deutch, Theodore E. [D-FL-22]</fullName>
        <district>22</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>P000597</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>P000597</bioguideId>
          <lisID>1927</lisID>
          <gpoId>7984</gpoId>
        </identifiers>
        <firstName>Chellie</firstName>
        <lastName>Pingree</lastName>
        <state>ME</state>
        <party>D</party>
        <fullName>Rep. Pingree, Chellie [D-ME-1]</fullName>
        <district>1</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>E000215</bioguideId>
        <middleName>G.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>E000215</bioguideId>
          <lisID>355</lisID>
          <gpoId>7819</gpoId>
        </identifiers>
        <firstName>ANNA</firstName>
        <lastName>ESHOO</lastName>
        <state>CA</state>
        <party>D</party>
        <fullName>Rep. Eshoo, Anna G. [D-CA-18]</fullName>
        <district>18</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>W000797</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1777</lisID>
          <bioguideId>W000797</bioguideId>
          <gpoId>7892</gpoId>
        </identifiers>
        <firstName>Debbie</firstName>
        <lastName>Wasserman Schultz</lastName>
        <state>FL</state>
        <party>D</party>
        <fullName>Rep. Wasserman Schultz, Debbie [D-FL-23]</fullName>
        <district>23</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>M001181</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>M001181</bioguideId>
          <lisID>2052</lisID>
          <gpoId>8125</gpoId>
        </identifiers>
        <firstName>Patrick</firstName>
        <lastName>Meehan</lastName>
        <state>PA</state>
        <party>R</party>
        <fullName>Rep. Meehan, Patrick [R-PA-7]</fullName>
        <district>7</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>R000598</bioguideId>
        <middleName>J.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2158</lisID>
          <bioguideId>R000598</bioguideId>
          <gpoId />
        </identifiers>
        <firstName>Keith</firstName>
        <lastName>Rothfus</lastName>
        <state>PA</state>
        <party>R</party>
        <fullName>Rep. Rothfus, Keith J. [R-PA-12]</fullName>
        <district>12</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>K000188</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1498</lisID>
          <bioguideId>K000188</bioguideId>
          <gpoId>8216</gpoId>
        </identifiers>
        <firstName>RON</firstName>
        <lastName>KIND</lastName>
        <state>WI</state>
        <party>D</party>
        <fullName>Rep. Kind, Ron [D-WI-3]</fullName>
        <district>3</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>P000608</bioguideId>
        <middleName>H.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2113</lisID>
          <bioguideId>P000608</bioguideId>
          <gpoId />
        </identifiers>
        <firstName>Scott</firstName>
        <lastName>Peters</lastName>
        <state>CA</state>
        <party>D</party>
        <fullName>Rep. Peters, Scott H. [D-CA-52]</fullName>
        <district>52</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>V000081</bioguideId>
        <middleName>M.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>V000081</bioguideId>
          <lisID>1184</lisID>
          <gpoId>8073</gpoId>
        </identifiers>
        <firstName>NYDIA</firstName>
        <lastName>VELAZQUEZ</lastName>
        <state>NY</state>
        <party>D</party>
        <fullName>Rep. Velazquez, Nydia M. [D-NY-7]</fullName>
        <district>7</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>K000389</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>K000389</bioguideId>
          <gpoId />
          <lisID>2308</lisID>
        </identifiers>
        <firstName>Ro</firstName>
        <lastName>Khanna</lastName>
        <state>CA</state>
        <party>D</party>
        <fullName>Rep. Khanna, Ro [D-CA-17]</fullName>
        <district>17</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>D000619</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2126</lisID>
          <bioguideId>D000619</bioguideId>
          <gpoId />
        </identifiers>
        <firstName>Rodney</firstName>
        <lastName>Davis</lastName>
        <state>IL</state>
        <party>R</party>
        <fullName>Rep. Davis, Rodney [R-IL-13]</fullName>
        <district>13</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>P000604</bioguideId>
        <middleName>M.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2097</lisID>
          <gpoId>8373</gpoId>
          <bioguideId>P000604</bioguideId>
        </identifiers>
        <firstName>Donald</firstName>
        <lastName>Payne</lastName>
        <state>NJ</state>
        <party>D</party>
        <fullName>Rep. Payne, Donald M., Jr. [D-NJ-10]</fullName>
        <district>10</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>E000296</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2298</lisID>
          <bioguideId>E000296</bioguideId>
          <gpoId />
        </identifiers>
        <firstName>Dwight</firstName>
        <lastName>Evans</lastName>
        <state>PA</state>
        <party>D</party>
        <fullName>Rep. Evans, Dwight [D-PA-2]</fullName>
        <district>2</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>B001278</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2092</lisID>
          <gpoId>8367</gpoId>
          <bioguideId>B001278</bioguideId>
        </identifiers>
        <firstName>Suzanne</firstName>
        <lastName>Bonamici</lastName>
        <state>OR</state>
        <party>D</party>
        <fullName>Rep. Bonamici, Suzanne [D-OR-1]</fullName>
        <district>1</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>R000435</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>R000435</bioguideId>
          <lisID>985</lisID>
          <gpoId>7890</gpoId>
        </identifiers>
        <firstName>ILEANA</firstName>
        <lastName>ROS-LEHTINEN</lastName>
        <state>FL</state>
        <party>R</party>
        <fullName>Rep. Ros-Lehtinen, Ileana [R-FL-27]</fullName>
        <district>27</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>C001105</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>C001105</bioguideId>
          <gpoId />
          <lisID>2273</lisID>
        </identifiers>
        <firstName>Barbara</firstName>
        <lastName>Comstock</lastName>
        <state>VA</state>
        <party>R</party>
        <fullName>Rep. Comstock, Barbara [R-VA-10]</fullName>
        <district>10</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>L000397</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>L000397</bioguideId>
          <gpoId>7821</gpoId>
          <lisID>701</lisID>
        </identifiers>
        <firstName>ZOE</firstName>
        <lastName>LOFGREN</lastName>
        <state>CA</state>
        <party>D</party>
        <fullName>Rep. Lofgren, Zoe [D-CA-19]</fullName>
        <district>19</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>F000462</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>F000462</bioguideId>
          <lisID>2119</lisID>
          <gpoId />
        </identifiers>
        <firstName>Lois</firstName>
        <lastName>Frankel</lastName>
        <state>FL</state>
        <party>D</party>
        <fullName>Rep. Frankel, Lois [D-FL-21]</fullName>
        <district>21</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>M000312</bioguideId>
        <middleName>P.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>M000312</bioguideId>
          <lisID>1504</lisID>
          <gpoId>7968</gpoId>
        </identifiers>
        <firstName>JAMES</firstName>
        <lastName>MCGOVERN</lastName>
        <state>MA</state>
        <party>D</party>
        <fullName>Rep. McGovern, James P. [D-MA-2]</fullName>
        <district>2</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>Y000033</bioguideId>
        <middleName>E.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1256</lisID>
          <bioguideId>Y000033</bioguideId>
          <gpoId>7785</gpoId>
        </identifiers>
        <firstName>DON</firstName>
        <lastName>YOUNG</lastName>
        <state>AK</state>
        <party>R</party>
        <fullName>Rep. Young, Don [R-AK-At Large]</fullName>
        <district>0</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>G000582</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2347</lisID>
          <bioguideId>G000582</bioguideId>
          <gpoId />
        </identifiers>
        <firstName>Jenniffer</firstName>
        <lastName>Gonzalez-Colon</lastName>
        <state>PR</state>
        <party>R</party>
        <fullName>Rep. Gonzalez-Colon, Jenniffer [R-PR-At Large]</fullName>
        <district>0</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>M001196</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>M001196</bioguideId>
          <lisID>2246</lisID>
          <gpoId />
        </identifiers>
        <firstName>Seth</firstName>
        <lastName>Moulton</lastName>
        <state>MA</state>
        <party>D</party>
        <fullName>Rep. Moulton, Seth [D-MA-6]</fullName>
        <district>6</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>D000191</bioguideId>
        <middleName>A.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>279</lisID>
          <bioguideId>D000191</bioguideId>
          <gpoId>8117</gpoId>
        </identifiers>
        <firstName>PETER</firstName>
        <lastName>DEFAZIO</lastName>
        <state>OR</state>
        <party>D</party>
        <fullName>Rep. DeFazio, Peter A. [D-OR-4]</fullName>
        <district>4</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>R000583</bioguideId>
        <middleName>J.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1916</lisID>
          <bioguideId>R000583</bioguideId>
          <gpoId>7888</gpoId>
        </identifiers>
        <firstName>Thomas</firstName>
        <lastName>Rooney</lastName>
        <state>FL</state>
        <party>R</party>
        <fullName>Rep. Rooney, Thomas J. [R-FL-17]</fullName>
        <district>17</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>F000466</bioguideId>
        <middleName>K.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2345</lisID>
          <gpoId />
          <bioguideId>F000466</bioguideId>
        </identifiers>
        <firstName>Brian</firstName>
        <lastName>Fitzpatrick</lastName>
        <state>PA</state>
        <party>R</party>
        <fullName>Rep. Fitzpatrick, Brian K. [R-PA-8]</fullName>
        <district>8</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>D000625</bioguideId>
        <middleName>M.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2293</lisID>
          <gpoId />
          <bioguideId>D000625</bioguideId>
        </identifiers>
        <firstName>Daniel</firstName>
        <lastName>Donovan</lastName>
        <state>NY</state>
        <party>R</party>
        <fullName>Rep. Donovan, Daniel M., Jr. [R-NY-11]</fullName>
        <district>11</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>K000210</bioguideId>
        <middleName>T.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>K000210</bioguideId>
          <gpoId>8064</gpoId>
          <lisID>635</lisID>
        </identifiers>
        <firstName>PETER</firstName>
        <lastName>KING</lastName>
        <state>NY</state>
        <party>R</party>
        <fullName>Rep. King, Peter T. [R-NY-2]</fullName>
        <district>2</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>C001078</bioguideId>
        <middleName>E.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>C001078</bioguideId>
          <gpoId>8202</gpoId>
          <lisID>1959</lisID>
        </identifiers>
        <firstName>Gerald</firstName>
        <lastName>Connolly</lastName>
        <state>VA</state>
        <party>D</party>
        <fullName>Rep. Connolly, Gerald E. [D-VA-11]</fullName>
        <district>11</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>W000820</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>W000820</bioguideId>
          <lisID>2232</lisID>
          <gpoId />
        </identifiers>
        <firstName>Mimi</firstName>
        <lastName>Walters</lastName>
        <state>CA</state>
        <party>R</party>
        <fullName>Rep. Walters, Mimi [R-CA-45]</fullName>
        <district>45</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>K000381</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2169</lisID>
          <gpoId />
          <bioguideId>K000381</bioguideId>
        </identifiers>
        <firstName>Derek</firstName>
        <lastName>Kilmer</lastName>
        <state>WA</state>
        <party>D</party>
        <fullName>Rep. Kilmer, Derek [D-WA-6]</fullName>
        <district>6</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>L000567</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1936</lisID>
          <bioguideId>L000567</bioguideId>
          <gpoId>8049</gpoId>
        </identifiers>
        <firstName>Leonard</firstName>
        <lastName>Lance</lastName>
        <state>NJ</state>
        <party>R</party>
        <fullName>Rep. Lance, Leonard [R-NJ-7]</fullName>
        <district>7</district>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <sponsorshipDate>2017-06-29</sponsorshipDate>
      </item>
      <item>
        <bioguideId>P000607</bioguideId>
        <middleName />
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>2171</lisID>
          <bioguideId>P000607</bioguideId>
          <gpoId />
        </identifiers>
        <firstName>Mark</firstName>
        <lastName>Pocan</lastName>
        <state>WI</state>
        <party>D</party>
        <fullName>Rep. Pocan, Mark [D-WI-2]</fullName>
        <district>2</district>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <sponsorshipDate>2017-07-24</sponsorshipDate>
      </item>
      <item>
        <bioguideId>M001199</bioguideId>
        <middleName>J.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>M001199</bioguideId>
          <lisID>2322</lisID>
          <gpoId />
        </identifiers>
        <firstName>Brian</firstName>
        <lastName>Mast</lastName>
        <state>FL</state>
        <party>R</party>
        <fullName>Rep. Mast, Brian J. [R-FL-18]</fullName>
        <district>18</district>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <sponsorshipDate>2017-09-08</sponsorshipDate>
      </item>
      <item>
        <bioguideId>K000379</bioguideId>
        <middleName>P.</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>K000379</bioguideId>
          <gpoId />
          <lisID>2172</lisID>
        </identifiers>
        <firstName>Joseph</firstName>
        <lastName>Kennedy</lastName>
        <state>MA</state>
        <party>D</party>
        <fullName>Rep. Kennedy, Joseph P., III [D-MA-4]</fullName>
        <district>4</district>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <sponsorshipDate>2017-10-12</sponsorshipDate>
      </item>
      <item>
        <bioguideId>R000576</bioguideId>
        <middleName>Dutch</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <lisID>1728</lisID>
          <bioguideId>R000576</bioguideId>
          <gpoId>7977</gpoId>
        </identifiers>
        <firstName>C. A.</firstName>
        <lastName>Ruppersberger</lastName>
        <state>MD</state>
        <party>D</party>
        <fullName>Rep. Ruppersberger, C. A. Dutch [D-MD-2]</fullName>
        <district>2</district>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <sponsorshipDate>2017-10-12</sponsorshipDate>
      </item>
      <item>
        <bioguideId>S000244</bioguideId>
        <middleName>JAMES</middleName>
        <sponsorshipWithdrawnDate />
        <identifiers>
          <bioguideId>S000244</bioguideId>
          <lisID>1041</lisID>
          <gpoId>8218</gpoId>
        </identifiers>
        <firstName>F.</firstName>
        <lastName>SENSENBRENNER</lastName>
        <state>WI</state>
        <party>R</party>
        <fullName>Rep. Sensenbrenner, F. James, Jr. [R-WI-5]</fullName>
        <district>5</district>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <sponsorshipDate>2017-10-12</sponsorshipDate>
      </item>
    </cosponsors>
    <laws />
    <sponsors>
      <item>
        <party>R</party>
        <bioguideId>M001151</bioguideId>
        <firstName>Tim</firstName>
        <fullName>Rep. Murphy, Tim [R-PA-18]</fullName>
        <state>PA</state>
        <identifiers>
          <lisID>1744</lisID>
          <bioguideId>M001151</bioguideId>
          <gpoId>8723</gpoId>
        </identifiers>
        <district>18</district>
        <byRequestType />
        <lastName>Murphy</lastName>
        <middleName />
      </item>
    </sponsors>
    <cboCostEstimates />
    <latestAction>
      <text>Referred to the Subcommittee on Health.</text>
      <links />
      <actionDate>2017-06-30</actionDate>
    </latestAction>
    <billType>HRES</billType>
    <actions>
      <item>
        <actionDate>2017-06-30</actionDate>
        <committee>
          <name>Health Subcommittee</name>
          <systemCode>hsif14</systemCode>
        </committee>
        <links />
        <sourceSystem>
          <name>House committee actions</name>
          1
        </sourceSystem>
        <text>Referred to the Subcommittee on Health.</text>
        <type>Committee</type>
      </item>
      <item>
        <type>IntroReferral</type>
        <actionDate>2017-06-29</actionDate>
        <links />
        <sourceSystem>
          <name>House floor actions</name>
          2
        </sourceSystem>
        <text>Referred to the House Committee on Energy and Commerce.</text>
        <actionCode>H11100</actionCode>
        <committee>
          <name>Energy and Commerce Committee</name>
          <systemCode>hsif00</systemCode>
        </committee>
      </item>
      <item>
        <type>IntroReferral</type>
        <actionDate>2017-06-29</actionDate>
        <links />
        <sourceSystem>
          <name>Library of Congress</name>
          9
        </sourceSystem>
        <text>Introduced in House</text>
        <actionCode>Intro-H</actionCode>
        <committee />
      </item>
      <item>
        <type>IntroReferral</type>
        <actionDate>2017-06-29</actionDate>
        <links />
        <sourceSystem>
          <name>Library of Congress</name>
          9
        </sourceSystem>
        <text>Introduced in House</text>
        <actionCode>1000</actionCode>
        <committee />
      </item>
      <actionTypeCounts>
        <billReferrals>1</billReferrals>
        <introducedInHouse>1</introducedInHouse>
        <placeholderTextForH>1</placeholderTextForH>
        <introducedInTheHouse>1</introducedInTheHouse>
      </actionTypeCounts>
      <actionByCounts>
        <houseOfRepresentatives>4</houseOfRepresentatives>
      </actionByCounts>
    </actions>
    <constitutionalAuthorityStatementText />
    <amendments />
  </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:
package org.apache.camel.component.wordpress.api.service.impl.ignored;

import java.util.List;
import org.apache.camel.component.wordpress.WordpressTestConstants;
import org.apache.camel.component.wordpress.api.WordpressServiceProvider;
import org.apache.camel.component.wordpress.api.model.Category;
import org.apache.camel.component.wordpress.api.model.CategorySearchCriteria;
import org.apache.camel.component.wordpress.api.service.WordpressServiceCategories;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.not;
import static org.hamcrest.CoreMatchers.nullValue;
import static org.hamcrest.Matchers.emptyCollectionOf;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.junit.Assert.assertThat;

@Ignore("Not implemented yet")
public class WordpressServiceCategoriesAdapterIT {

    private static WordpressServiceCategories serviceCategories;

    @BeforeClass
    public static void before() {
        final WordpressServiceProvider serviceProvider = WordpressServiceProvider.getInstance();
        serviceProvider.init(WordpressTestConstants.WORDPRESS_DEMO_URL);
        serviceCategories = serviceProvider.getService(WordpressServiceCategories.class);
    }

    @Test
    public void testRetrieve() {
        final Category cat = serviceCategories.retrieve(1, null);
        assertThat(cat, not(nullValue()));
        assertThat(cat.getId(), is(1));
        assertThat(cat.getName(), not(isEmptyOrNullString()));
    }

    @Test
    public void testList() {
        final CategorySearchCriteria criteria = new CategorySearchCriteria();
        criteria.setPage(1);
        criteria.setPerPage(2);
        final List<Category> revisions = serviceCategories.list(criteria);
        assertThat(revisions, is(not(emptyCollectionOf(Category.class))));
        assertThat(revisions.size(), is(2));
    }
}

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Hops on the Rock Beer Festival on Orcas Island November 11, 2018">
    <meta name="keywords" content="Orcas Island, Hops on the Rock, Beer Festival, Washington, November, Novembeer, brewery, brewing">

    <title>Hops on the Rock</title>

    <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <link href="vendor/fonts/fonts/GothamBookRegular/GothamBookRegular.otf" rel="stylesheet" type="text/css">
    <link href="vendor/fonts/GothamBoldRegular/GothamBoldRegular.ttf" rel="stylesheet" type="text/css">
    <link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="vendor/fonts/josefin-sans/JosefinSans-SemiBold.ttf" rel="stylesheet">
    <link href="vendor/fonts/josefin-sans/JosefinSans-Regular.ttf" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Josefin+Slab" rel="stylesheet">

    <link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet">

    <link href="css/creative.min.css" rel="stylesheet">

      <link href="css/style.css" rel="stylesheet">

                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    Toggle navigation Menu
                </button>

                        About

                        Logistics

                        2017 Beers

Orcas Island's Hops on the Rock Beer Festival

Orcas Island's Hops on the Rock

Breweries: 192, Alsan, Bastion, Farmstrong, Island Hoppin', San Juan, Freemont, and more to come. Updates coming August 15th!

Join us Saturday, November 10th from 11am-5pm.

11/10/17

          <a href="pages/sitemap.html"

Enjoy good beer with friends.


text:
require 'spec_helper'

describe EmployeeAttendanceController do
end


text:
<div id="page" class="<?php print $classes; ?>"<?php print $attributes; ?>>

    <?php if ($logo): ?>
      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
        <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>"/>

    <?php endif; ?>

    <?php if ($site_name || $site_slogan): ?>

        <?php if ($site_name): ?>
          <?php if ($title): ?>

              <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?>

          <?php else: /* Use h1 when the content title is empty */ ?>

              <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><?php print $site_name; ?>

          <?php endif; ?>
        <?php endif; ?>

        <?php if ($site_slogan): ?>

<?php print $site_slogan; ?>

        <?php endif; ?>

    <?php endif; ?>

    <?php if ($page['header']): ?>

        <?php print render($page['header']); ?>

    <?php endif; ?>

  <?php if ($main_menu || $secondary_menu): ?>
    <nav id="navigation" class="menu <?php if (!empty($main_menu)) {print "with-primary";}
      if (!empty($secondary_menu)) {print " with-secondary";} ?>">
      <?php print theme('links', array('links' => $main_menu, 'attributes' => array('id' => 'primary', 'class' => array('links', 'clearfix', 'main-menu')))); ?>
      <?php print theme('links', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary', 'class' => array('links', 'clearfix', 'sub-menu')))); ?>

  <?php endif; ?>

        <?php if ($breadcrumb || $title|| $messages || $tabs || $action_links): ?>

            <?php print $breadcrumb; ?>

            <?php if ($page['highlighted']): ?>

<?php print render($page['highlighted']) ?>

            <?php endif; ?>

            <?php print render($title_prefix); ?>

            <?php if ($title): ?>

<?php print $title; ?>

            <?php endif; ?>

            <?php print render($title_suffix); ?>
            <?php print $messages; ?>
            <?php print render($page['help']); ?>

            <?php if ($tabs): ?>

<?php print render($tabs); ?>

            <?php endif; ?>

            <?php if ($action_links): ?>

<?php print render($action_links); ?>

            <?php endif; ?>

        <?php endif; ?>

          <?php print render($page['content']) ?>

        <?php print $feed_icons; ?>

    <?php if ($page['sidebar_first']): ?>

        <?php print render($page['sidebar_first']); ?>

    <?php endif; ?>

    <?php if ($page['sidebar_second']): ?>

        <?php print render($page['sidebar_second']); ?>

    <?php endif; ?>

  <?php if ($page['footer']): ?>

      <?php print render($page['footer']); ?>

  <?php endif; ?>


text:
//
//  HPURLCache.m
//  HiPDA
//
//  Created by Jichao Wu on 15/5/6.
//  Copyright (c) 2015年 wujichao. All rights reserved.
//

#import "HPURLCache.h"
#import <SDWebImageManager.h>
#import <UIImage+MultiFormat.h>
#import "SDImageCache+URLCache.h"

#if 1
#define NSLog(...) do { } while (0)
#endif

/*
webview 请求一个image
-> 有缓存吗(cachedResponseForRequest)
 -> nil -> get & save it
 -> urlcache mem
 -> sdwebimage (mem/disk)
    source (urlcache/sdwebimage)

    读sdwebimage
    -> mem 无data
    -> disk 有data

-> 存起来(storeCachedResponse:forRequest)
 -> 只有imageData(webview请求得到的)
*/

@interface NSString (hasSuffixes)
- (BOOL)hasSuffixes:(NSArray *)suffixes;
@end
@implementation NSString (hasSuffixes)
- (BOOL)hasSuffixes:(NSArray *)suffixes
{
    __block BOOL f = NO;
    [suffixes enumerateObjectsUsingBlock:^(NSString *suffix, NSUInteger idx, BOOL *stop) {
        if ([self hasSuffix:suffix]) {
            f = YES;
            *stop = YES;
        }
    }];
    return f;
}
@end

@implementation HPURLCache

#pragma mark - NSURLCache

- (NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request
{
    if (![self shouldCache:request]) {
        NSLog(@"should not cache %@ %@", request.URL, @(request.cachePolicy));
        return [super cachedResponseForRequest:request];
    }

    NSLog(@"cachedResponseForRequest for %@ %@", request.URL, @(request.cachePolicy));
    NSCachedURLResponse *memoryResponse = [super cachedResponseForRequest:request];
    if (memoryResponse) {
        NSLog(@"memoryResponse");
        return memoryResponse;
    }

    __block NSCachedURLResponse *cachedResponse = nil;
    dispatch_sync(get_disk_cache_queue(), ^{

        NSString *cacheKey = [[self class] cacheKeyForURL:request.URL];
        UIImage *memCachedImage = [[SDImageCache sharedImageCache] imageFromMemoryCacheForKey:cacheKey];
        NSData *data = nil;
        if (memCachedImage) {
            NSLog(@"get memcache");
            // 无法从uiimage 判断jpeg png gif, 所以俺jpeg处理
            if (!memCachedImage.images) {
                data = UIImageJPEGRepresentation(memCachedImage, 1.f);
            } else {
                data = nil;
                //data = UIImageJPEGRepresentation(memCachedImage, 1.f);
                /*
                 效率太差
                data = [AnimatedGIFImageSerialization animatedGIFDataWithImage:memCachedImage
                                                                      duration:1.0
                                                                     loopCount:1
                                                                         error:nil];
                 */
            }
        } else {
            NSLog(@"get disk cache");
            data = [[SDImageCache sharedImageCache] hp_imageDataFromDiskCacheForKey:cacheKey];
        }

        if (data) {
            //https://github.com/evermeer/EVURLCache/blob/master/EVURLCache.m:87
            NSURLResponse *response = [[NSURLResponse alloc] initWithURL:request.URL MIMEType:@"cache" expectedContentLength:[data length] textEncodingName:nil] ;
            cachedResponse = [[NSCachedURLResponse alloc] initWithResponse:response data:data];
        } else {
            NSLog(@"not get cachedImage");
        }
    });

    return cachedResponse;
}

- (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse forRequest:(NSURLRequest *)request
{
    if ([self shouldCache:request]) {

        NSLog(@"storeCachedResponse %@", request.URL);

        /*
        UIImage *image = [[UIImage alloc] initWithData:cachedResponse.data];
        [[SDWebImageManager sharedManager] saveImageToCache:image forURL:request.URL];
        */

        dispatch_async(get_disk_io_queue(), ^{
            NSString *cacheKey = [self.class cacheKeyForURL:request.URL];
            UIImage *image = [[[SDWebImageManager sharedManager] imageCache] hp_imageWithData:cachedResponse.data key:cacheKey];
            if (image) {
                [[[SDWebImageManager sharedManager] imageCache] storeImage:image recalculateFromImage:NO imageData:cachedResponse.data forKey:cacheKey toDisk:YES];
            } else {
                //404, ...
            }
        });

        return;
    }
    [super storeCachedResponse:cachedResponse forRequest:request];
}

- (void)removeCachedResponseForRequest:(NSURLRequest *)request
{

    [super removeCachedResponseForRequest:request];
}

- (void)removeAllCachedResponses
{

    [super removeAllCachedResponses];
}

#pragma mark -

static dispatch_queue_t get_disk_cache_queue()
{
    static dispatch_once_t onceToken;
    static dispatch_queue_t _diskCacheQueue;
    dispatch_once(&onceToken, ^{
        _diskCacheQueue = dispatch_queue_create("com.jichaowu.disk-cache.processing", NULL);
    });
    return _diskCacheQueue;
}

static dispatch_queue_t get_disk_io_queue() {
    static dispatch_queue_t _diskIOQueue;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        _diskIOQueue = dispatch_queue_create("com.jichaowu.disk-cache.io", NULL);

        // set priority
        dispatch_queue_t globalLowQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0);
        dispatch_set_target_queue(_diskIOQueue, globalLowQueue);
    });
    return _diskIOQueue;
}

- (BOOL)shouldCache:(NSURLRequest *)request
{
    if (request.cachePolicy != NSURLRequestReloadIgnoringLocalCacheData
        && [[request.URL absoluteString] hasSuffixes:@[@".jpg", @".jpeg", @".gif", @".png"]]) {
        return YES;
    }

    return NO;
}

+ (NSString *)cacheKeyForURL:(NSURL *)url {
    return [[SDWebImageManager sharedManager] cacheKeyForURL:url];
}

@end


text:
using System.Buffers;
using System.Text.Json;
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc.Formatters;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging.Console;

using CarShack.Domain.Customer;
using CarShack.Hypermedia;
using CarShack.Util.GlobalExceptionHandler;
using RESTyard.AspNetCore.WebApi.ExtensionMethods;

namespace CarShack
{
    public class Startup
    {
        public IConfigurationRoot Configuration { get; }

        public Startup(IWebHostEnvironment env)
        {
            var builder = new ConfigurationBuilder()
                .SetBasePath(env.ContentRootPath)
                .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
                .AddEnvironmentVariables();

            Configuration = builder.Build();
        }

        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            app.UseCors(builder =>
                {
                    builder
                        .AllowAnyOrigin()
                        .AllowAnyMethod()
                        .AllowAnyHeader()
                        .WithExposedHeaders("Location");
                }
            );
            app.UseMvc();
        }

        public void ConfigureServices(IServiceCollection services)
        {
            var builder = services.AddMvcCore(
                options =>
                {
                    options.OutputFormatters.Clear();
                    options.OutputFormatters.Add(new SystemTextJsonOutputFormatter(
                        new JsonSerializerOptions
                        {
                            DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
                        }));
                    options.Filters.Add(new GlobalExceptionFilter(null));
                    options.EnableEndpointRouting = false;
                });

            // Initializes and adds the Hypermedia Extensions
            builder.Services.AddHypermediaExtensions(o =>
            {
                o.ReturnDefaultRouteForUnknownHto = true;
            });

            // Infrastructure
            services.AddCors();

            // Domain
            services.AddSingleton<HypermediaEntrypointHto>();
            services.AddSingleton<HypermediaCustomersRootHto>();
            services.AddSingleton<HypermediaCarsRootHto>();
            services.AddSingleton<ICustomerRepository, CustomerRepository>();
        }
    }
}


text:
<?php
echo "msgpack extension is available";
?>


text:
package edu.uci.ics.jung.visualization.transform;

import java.awt.Component;
import java.awt.Dimension;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Point2D;

/**
 * LensTransformer wraps a MutableAffineTransformer and modifies
 * the transform and inverseTransform methods so that they create a
 * projection of the graph points within an elliptical lens.
 *
 * LensTransformer uses an
 * affine transform to cause translation, scaling, rotation, and shearing
 * while applying a possibly non-affine filter in its transform and
 * inverseTransform methods.
 *
 * @author Tom Nelson - RABA Technologies
 *
 *
 */
public abstract class LensTransformer extends MutableTransformerDecorator implements MutableTransformer {

    /**
     * the area affected by the transform
     */
    protected Ellipse2D ellipse = new Ellipse2D.Float();

    protected float magnification = 0.7f;

    /**
     * create an instance, setting values from the passed component
     * and registering to listen for size changes on the component
     * @param component
     */
    public LensTransformer(Component component) {
        this(component, new MutableAffineTransformer());
    }
    /**
     * create an instance with a possibly shared transform
     * @param component
     * @param delegate
     */
    public LensTransformer(Component component, MutableTransformer delegate) {
    		super(delegate);
        setComponent(component);
        component.addComponentListener(new ComponentListenerImpl());
   }

    /**
     * set values from the passed component.
     * declared private so it can't be overridden
     * @param component
     */
    private void setComponent(Component component) {
        Dimension d = component.getSize();
        if(d.width <= 0 || d.height <= 0) {
            d = component.getPreferredSize();
        }
        float ewidth = d.width/1.5f;
        float eheight = d.height/1.5f;
        ellipse.setFrame(d.width/2-ewidth/2, d.height/2-eheight/2, ewidth, eheight);
    }

    /**
     * @return Returns the magnification.
     */
    public float getMagnification() {
        return magnification;
    }
    /**
     * @param magnification The magnification to set.
     */
    public void setMagnification(float magnification) {
        this.magnification = magnification;
    }
    /**
     * @return Returns the viewCenter.
     */
    public Point2D getViewCenter() {
        return new Point2D.Double(ellipse.getCenterX(), ellipse.getCenterY());
    }
    /**
     * @param viewCenter The viewCenter to set.
     */
    public void setViewCenter(Point2D viewCenter) {
        double width = ellipse.getWidth();
        double height = ellipse.getHeight();
        ellipse.setFrame(viewCenter.getX()-width/2,
                viewCenter.getY()-height/2,
                width, height);
    }

    /**
     * @return Returns the viewRadius.
     */
    public double getViewRadius() {
        return ellipse.getHeight()/2;
    }
    /**
     * @param viewRadius The viewRadius to set.
     */
    public void setViewRadius(double viewRadius) {
        double x = ellipse.getCenterX();
        double y = ellipse.getCenterY();
        double viewRatio = getRatio();
        ellipse.setFrame(x-viewRadius/viewRatio,
                y-viewRadius,
                2*viewRadius/viewRatio,
                2*viewRadius);
    }

    /**
     * @return Returns the ratio.
     */
    public double getRatio() {
        return ellipse.getHeight()/ellipse.getWidth();
    }

    public void setEllipse(Ellipse2D ellipse) {
        this.ellipse = ellipse;
    }
    public Ellipse2D getEllipse() {
        return ellipse;
    }
    public void setToIdentity() {
        this.delegate.setToIdentity();
    }

    /**
     * react to size changes on a component
     */
    protected class ComponentListenerImpl extends ComponentAdapter {
        public void componentResized(ComponentEvent e) {
            setComponent(e.getComponent());
         }
    }

    /**
     * a convenience class to represent a point in
     * polar coordinates
     */
    protected static class PolarPoint extends Point2D.Double {
        public PolarPoint(double theta, double radius) {
            super(theta, radius);
        }
        public double getTheta() { return getX(); }
        public double getRadius() { return getY(); }
        public void setTheta(double theta) { setLocation(theta, getRadius()); }
        public void setRadius(double radius) { setLocation(getTheta(), radius); }
    }

    /**
     * Returns the result of converting polar to Cartesian coordinates.
     */
    protected Point2D polarToCartesian(PolarPoint polar) {
        return polarToCartesian(polar.getTheta(), polar.getRadius());
    }

    /**
     * Returns the result of converting (theta, radius) to Cartesian coordinates.
     */
     protected Point2D polarToCartesian(double theta, double radius) {
        return new Point2D.Double(radius*Math.cos(theta), radius*Math.sin(theta));
    }

    /**
     * Returns the result of converting point to polar coordinates.
     */
    protected PolarPoint cartesianToPolar(Point2D point) {
        return cartesianToPolar(point.getX(), point.getY());
    }

    /**
     * Returns the result of converting (x, y) to polar coordinates.
     */
    protected PolarPoint cartesianToPolar(double x, double y) {
        double theta = Math.atan2(y,x);
        double radius = Math.sqrt(x*x+y*y);
        return new PolarPoint(theta, radius);
    }

    /**
     * override base class transform to project the fisheye effect
     */
    public abstract Point2D transform(Point2D graphPoint);

    /**
     * override base class to un-project the fisheye effect
     */
    public abstract Point2D inverseTransform(Point2D viewPoint);

    public double getDistanceFromCenter(Point2D p) {
        double dx = ellipse.getCenterX()-p.getX();
        double dy = ellipse.getCenterY()-p.getY();
        dx *= getRatio();
        return Math.sqrt(dx*dx + dy*dy);
    }
}


text:
"""
Created on October 28, 2015

@author: mandd
"""
import os
import numpy as np
from scipy import interpolate
from scipy import integrate
import copy

from .PostProcessorReadyInterface import PostProcessorReadyInterface
from ...utils import InputData, InputTypes

class HistorySetSampling(PostProcessorReadyInterface):
  """
   This Post-Processor performs the conversion from HistorySet to HistorySet
   The conversion is made so that each history H is re-sampled accordingly to a specific sampling strategy.
   It can be used to reduce the amount of space required by the HistorySet.
  """
  @classmethod
  def getInputSpecification(cls):
    """
      Method to get a reference to a class that specifies the input data for
      class cls.
      @ In, cls, the class for which we are retrieving the specification
      @ Out, inputSpecification, InputData.ParameterInput, class to use for
        specifying input of cls.
    """
    inputSpecification = super().getInputSpecification()
    HSSamplingType = InputTypes.makeEnumType("HSSampling", "HSSamplingType", ['uniform','firstDerivative','secondDerivative','filteredFirstDerivative','filteredSecondDerivative'])
    inputSpecification.addSub(InputData.parameterInputFactory("samplingType", contentType=HSSamplingType))
    inputSpecification.addSub(InputData.parameterInputFactory("numberOfSamples", contentType=InputTypes.IntegerType))
    inputSpecification.addSub(InputData.parameterInputFactory("tolerance", contentType=InputTypes.FloatType))
    inputSpecification.addSub(InputData.parameterInputFactory("pivotParameter", contentType=InputTypes.StringType))
    HSInterpolationType = InputTypes.makeEnumType("HSInterpolation", "HSInterpolationType", ['linear', 'nearest', 'zero', 'slinear', 'quadratic', 'cubic', 'intervalAverage'])
    inputSpecification.addSub(InputData.parameterInputFactory("interpolation", contentType=HSInterpolationType))
    return inputSpecification

  def __init__(self):
    """
      Constructor
      @ In, None
      @ Out, None
    """
    super().__init__()
    self.pivotParameter = None #pivotParameter identify the ID of the temporal variabl
    self.setInputDataType('dict')
    self.keepInputMeta(True)
    self.outputMultipleRealizations = True # True indicate multiple realizations are returned
    self.validDataType = ['HistorySet'] # The list of accepted types of DataObject
    self.samplingType    = None
    self.numberOfSamples = None
    self.tolerance       = None
    self.interpolation   = None

  def initialize(self, runInfo, inputs, initDict=None):
    """
      Method to initialize the DataClassifier post-processor.
      @ In, runInfo, dict, dictionary of run info (e.g. working dir, etc)
      @ In, inputs, list, list of inputs
      @ In, initDict, dict, optional, dictionary with initialization options
      @ Out, None
    """
    super().initialize(runInfo, inputs, initDict)
    if len(inputs)>1:
      self.raiseAnError(IOError, 'Post-Processor', self.name, 'accepts only one dataObject')
    if inputs[0].type != 'HistorySet':
      self.raiseAnError(IOError, 'Post-Processor', self.name, 'accepts only HistorySet dataObject, but got "{}"'.format(inputs[0].type))

  def _handleInput(self, paramInput):
    """
      Function to handle the parameter input.
      @ In, paramInput, ParameterInput, the already parsed input.
      @ Out, None
    """
    for child in paramInput.subparts:
      if child.getName() == 'samplingType':
        self.samplingType = child.value
      elif child.getName() == 'numberOfSamples':
        self.numberOfSamples = child.value
      elif child.getName() == 'tolerance':
        self.tolerance = child.value
      elif child.getName() == 'pivotParameter':
        self.pivotParameter = child.value
      elif child.getName() == 'interpolation':
        self.interpolation = child.value
      else:
        self.raiseAnError(IOError, 'HistorySetSampling Interfaced Post-Processor ' + str(self.name) + ' : XML node ' + str(child) + ' is not recognized')

    if self.pivotParameter is None:
      self.raiseAnError(IOError, 'HistorySetSampling Interfaced Post-Processor ' + str(self.name) + ' : time ID is not specified')

    if self.samplingType == 'uniform' or self.samplingType == 'firstDerivative' or self.samplingType == 'secondDerivative':
      if self.numberOfSamples is None or self.numberOfSamples < 0:
        self.raiseAnError(IOError, 'HistorySetSampling Interfaced Post-Processor ' + str(self.name) + ' : number of samples is not specified or less than 0')
    if self.samplingType == 'filteredFirstDerivative' or self.samplingType == 'filteredSecondDerivative':
      if self.tolerance is  None or self.tolerance < 0.0:
        self.raiseAnError(IOError, 'HistorySetSampling Interfaced Post-Processor ' + str(self.name) + ' : tolerance is not specified or less than 0')

  def run(self,inputIn):
    """
      Method to post-process the dataObjects
      @ In, inputIn, dict, dictionaries which contains the data inside the input DataObjects
        inputIn = {'Data':listData, 'Files':listOfFiles},
        listData has the following format: (listOfInputVars, listOfOutVars, DataDict) with
        DataDict is a dictionary that has the format
            dataDict['dims']     = dict {varName:independentDimensions}
            dataDict['metadata'] = dict {metaVarName:metaVarValue}
            dataDict['type'] = str TypeOfDataObject
            dataDict['inpVars'] = list of input variables
            dataDict['outVars'] = list of output variables
            dataDict['numberRealization'] = int SizeOfDataObject
            dataDict['name'] = str DataObjectName
            dataDict['metaKeys'] = list of meta variables
            dataDict['data'] = dict {varName: varValue(1-D or 2-D numpy array)}
      @ Out, outputDic, dict, dictionary of resampled histories
    """
    _, _, inputDic = inputIn['Data'][0]
    outputDic={'data':{}}
    # load up the input data into the output
    for var in inputDic['inpVars']:
      outputDic['data'][var] = copy.deepcopy(inputDic['data'][var])

    # loop over realizations and find the desired sample points
    for hist in range(inputDic['numberRealizations']):
      # set up the realization
      rlz={}
      for var in inputDic['outVars']:
        rlz[var] = inputDic['data'][var][hist]
      rlz[self.pivotParameter]=inputDic['data'][self.pivotParameter][hist]

      # do the sampling based on what the user requested
      if self.samplingType in ['uniform','firstDerivative','secondDerivative']:
        outData = self.varsTimeInterp(rlz)
      elif self.samplingType in ['filteredFirstDerivative','filteredSecondDerivative']:
        outData = timeSeriesFilter(self.pivotParameter,rlz,self.samplingType,self.tolerance)
      else:
        self.raiseAnError(IOError, 'HistorySetSampling Interfaced Post-Processor ' + str(self.name) + ' : not recognized samplingType')

      for var in outData.keys():
        if hist == 0:
          outputDic['data'][var] = np.zeros(inputDic['numberRealizations'], dtype=object)
        outputDic['data'][var][hist] = outData[var]
    # add meta variables back
    for key in inputDic['metaKeys']:
      outputDic['data'][key] = inputDic['data'][key]
    outputDic['dims'] = copy.deepcopy(inputDic['dims'])
    return outputDic

  def varsTimeInterp(self, vars):
    """
      This function samples a multi-variate temporal function
      @ In, vars, dict, data set that contained the information of the multi-variate temporal function (this is supposed to be a dictionary:
                      {'pivotParameter':time_array, 'var1':var1_array, ..., 'varn':varn_array})
      @ Out, newVars, dict, data set that is a sampled version of vars
    """

    localPivotParameter = vars[self.pivotParameter]
    tMin = localPivotParameter[0]
    tMax = localPivotParameter[-1]

    newVars={}

    if self.samplingType == 'uniform':
      if self.interpolation == 'intervalAverage':
        newTime = np.linspace(tMin,tMax,self.numberOfSamples+1)[0:-1]
      else:
        newTime = np.linspace(tMin,tMax,self.numberOfSamples)
    elif self.samplingType == 'firstDerivative' or self.samplingType == 'secondDerivative':
      newTime = self.derivativeTimeValues(vars)
    else:
      self.raiseAnError(RuntimeError,'type ' + self.samplingType + ' is not a valid type. Function: varsTimeInterp (mathUtils)')

    for key in vars.keys():
      if key == self.pivotParameter:
        newVars[key] = newTime
      else:
        if self.interpolation == 'intervalAverage':
          newVars[key] = np.zeros(shape=newTime.shape)
          deltaT = newTime[1]-newTime[0] if len(newTime) > 1 else tMax
          for tIdx in range(len(newTime)):
            t = newTime[tIdx]
            extractCondition = (localPivotParameter>=t) * (localPivotParameter<=t+deltaT)
            extractVar = np.extract(extractCondition, vars[key])
            extractTime = np.extract(extractCondition, localPivotParameter)
            newVars[key][tIdx] = integrate.trapz(extractVar, extractTime) / deltaT
        else:
          interp = interpolate.interp1d(vars[self.pivotParameter], vars[key], self.interpolation)
          newVars[key]=interp(newTime)
    return newVars

  def derivativeTimeValues(self, var):
    """
      This function computes the new temporal variable
      @ In, vars, dict, data set that contained the information of the multi-variate temporal function (this is supposed to be a dictionary:
                      {'pivotParameter':time_array, 'var1':var1_array, ..., 'varn':varn_array})
      @ Out, newTime, list, values of the new temporal variable
    """
    newTime = np.zeros(self.numberOfSamples)
    cumDerivative = np.zeros(var[self.pivotParameter].size)

    normalizedVar = {}

    for keys in var.keys():
      normalizedVar[keys] = var[keys]
      if keys != self.pivotParameter:
        minVal = np.min(var[keys])
        maxVal = np.max(var[keys])
        if not max == min:
          normalizedVar[keys] = (var[keys] - minVal)/(maxVal - minVal)
        else:
          normalizedVar[keys] = var[keys]/np.float64(1.0)
      else:
        normalizedVar[keys]=var[keys]/np.float64(1.0)

    if self.samplingType=='firstDerivative':
      for t in range(1, normalizedVar[self.pivotParameter].shape[0]):
        t_contrib=0.0
        for keys in normalizedVar.keys():
          t_contrib += abs(normalizedVar[keys][t] - normalizedVar[keys][t-1])/(normalizedVar[self.pivotParameter][t]-normalizedVar[self.pivotParameter][t-1])
        cumDerivative[t] = cumDerivative[t-1] + t_contrib

    elif self.samplingType=='secondDerivative':
      for t in range(1, normalizedVar[self.pivotParameter].shape[0]-1):
        t_contrib=0.0
        for keys in normalizedVar.keys():
          t_contrib += abs(normalizedVar[keys][t+1] - 2.0 * normalizedVar[keys][t] + normalizedVar[keys][t-1])/(normalizedVar[self.pivotParameter][t]-normalizedVar[self.pivotParameter][t-1])**2
        cumDerivative[t] = cumDerivative[t-1] + t_contrib
      cumDerivative[-1] = cumDerivative[normalizedVar[self.pivotParameter].shape[0]-2]

    else:
      self.raiseAnError(RuntimeError,'type ' + self.samplingType + ' is not a valid type. Function: derivativeTimeValues')

    cumDamageInstant = np.linspace(cumDerivative[0],cumDerivative[-1],self.numberOfSamples)

    for i in range(self.numberOfSamples-1):
      index = (np.abs(cumDerivative - cumDamageInstant[i])).argmin()
      newTime[i] = var[self.pivotParameter][index]
    newTime[-1] = var[self.pivotParameter][-1]
    return newTime

def timeSeriesFilter(pivotParameter, vars, filterType, filterValue):
  """ This function sample a multi-variate temporal function
  pivotParameter      : the ID of the temporal variable
  vars        : data set that contained the information of the multi-variate temporal function (this is supposed to be a
                dictionary: {'pivotParameter':time_array, 'var1':var1_array, ..., 'varn':varn_array})
  samplingType: type of sampling used to determine the coordinate of the numSamples samples ('firstDerivative', 'secondDerivative')
  filterValue : value associated to the filter
  """
  derivative = np.zeros(vars[pivotParameter].size)

  if filterType=='filteredFirstDerivative':
    for t in range(1, len(vars[pivotParameter])):
      t_contrib=0.0
      for keys in vars.keys():
        if keys != pivotParameter:
          t_contrib += abs((vars[keys][t] - vars[keys][t-1])/(vars[pivotParameter][t] - vars[pivotParameter][t-1]))
      derivative[t] = t_contrib
  elif filterType=='filteredSecondDerivative':
    for t in range(1, vars[pivotParameter].size-1):
      t_contrib=0.0
      for keys in vars.keys():
        t_contrib += abs((vars[keys][t+1] - 2.0 * vars[keys][t] + vars[keys][t-1])/(vars[pivotParameter][t] - vars[pivotParameter][t-1])**2)
      derivative[t] = t_contrib
    derivative[-1] = derivative[len(vars[pivotParameter])-2]

  newVars = {}
  for key in vars:
    newVars[key]=np.array(vars[key][0])

  for t in range(derivative.size):
    if derivative[t] > filterValue:
      for key in vars:
        newVars[key]=np.append(newVars[key],vars[key][t])

  for key in vars:
    newVars[key]=np.append(newVars[key],vars[key][-1])

  return newVars


text:
package com.facebook.buck.cxx.toolchain;

import com.facebook.buck.core.toolchain.tool.DelegatingTool;
import com.facebook.buck.core.toolchain.tool.Tool;
import com.facebook.buck.io.file.MorePaths;
import com.facebook.buck.util.MoreIterables;
import com.google.common.base.Preconditions;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Iterables;
import java.nio.file.Path;

/** Preprocessor implementation for the Clang toolchain. */
public class ClangPreprocessor extends DelegatingTool implements Preprocessor {

  public ClangPreprocessor(Tool tool) {
    super(tool);
  }

  @Override
  public boolean supportsHeaderMaps() {
    return true;
  }

  @Override
  public boolean supportsPrecompiledHeaders() {
    return true;
  }

  @Override
  public final Iterable<String> localIncludeArgs(Iterable<String> includeRoots) {
    return MoreIterables.zipAndConcat(
        Iterables.cycle("-I"),
        Iterables.transform(includeRoots, MorePaths::pathWithUnixSeparators));
  }

  @Override
  public final Iterable<String> systemIncludeArgs(Iterable<String> includeRoots) {
    return MoreIterables.zipAndConcat(
        Iterables.cycle("-isystem"),
        Iterables.transform(includeRoots, MorePaths::pathWithUnixSeparators));
  }

  @Override
  public final Iterable<String> prefixHeaderArgs(Path prefixHeader) {
    Preconditions.checkArgument(
        !prefixHeader.toString().endsWith(".gch"),
        "Expected non-precompiled file, got a '.gch': " + prefixHeader);
    return ImmutableList.of("-include", MorePaths.pathWithUnixSeparators(prefixHeader));
  }

  @Override
  public Iterable<String> precompiledHeaderArgs(Path pchOutputPath) {
    Preconditions.checkArgument(
        pchOutputPath.toString().endsWith(".h.gch"),
        "Expected a precompiled '.gch' file, got: " + pchOutputPath);
    return ImmutableList.of(
        "-include-pch",
        MorePaths.pathWithUnixSeparators(pchOutputPath),
        // Force clang to accept pch even if mtime of its input changes, since buck tracks
        // input contents, this should be safe.
        "-Wp,-fno-validate-pch");
  }

  /** @returns whether this tool requires Unix path separated paths. */
  public boolean getUseUnixPathSeparator() {
    return true;
  }
}


text:
'use strict';

/**
 * @ngdoc directive
 * @name forecastIoServiceApp.directive:weatherIO
 * @description
 * # weatherIO
 */
angular.module('forecastIoServiceApp')
  .directive('weatherIo', ['forecastIo', function () {
    return {
      template: '

',
      restrict: 'E',
      link: function postLink(scope, element, attrs) {

        element.text('Hello weather!');
        console.log(attrs);

      }
    };
  }]);


text:
cask 'xfer-ott' do
  version :latest
  sha256 :no_check

  url 'https://xferrecords.com/product_downloads/24/freeware'
  name 'OTT'
  homepage 'https://xferrecords.com/freeware'

  pkg 'Install_Xfer_OTT.pkg'

  uninstall pkgutil: 'com.xfer.OTT.*'
end


text:
@implementation BOXCollectionListRequest

- (BOXAPIOperation *)createOperation
{
    BOXAPIJSONOperation *operation = nil;

    NSURL *url = [self URLWithResource:BOXAPIResourceCollections
                                    ID:nil
                           subresource:nil
                                 subID:nil];

    operation = [self JSONOperationWithURL:url
                                HTTPMethod:BOXAPIHTTPMethodGET
                     queryStringParameters:nil
                            bodyDictionary:nil
                          JSONSuccessBlock:nil
                              failureBlock:nil];

    return operation;
}

- (void)performRequestWithCompletion:(BOXCollectionArrayBlock)completionBlock
{
    if (completionBlock) {
        BOOL isMainThread = [NSThread isMainThread];
        BOXAPIJSONOperation *collectionListOperation = (BOXAPIJSONOperation *)self.operation;

        collectionListOperation.success = ^(NSURLRequest *request, NSHTTPURLResponse *response, NSDictionary *JSONDictionary) {
            NSArray *collectionsJSON = JSONDictionary[BOXAPICollectionKeyEntries];
            NSMutableArray *collections = [NSMutableArray arrayWithCapacity:collectionsJSON.count];

            for (NSDictionary *dict in collectionsJSON) {
                [collections addObject:[[BOXCollection alloc] initWithJSON:dict]];
            }

            if ([self.cacheClient respondsToSelector:@selector(cacheCollectionListRequest:withCollections:error:)]) {
                [self.cacheClient cacheCollectionListRequest:self
                                             withCollections:collections
                                                       error:nil];
            }

            [BOXDispatchHelper callCompletionBlock:^{
                completionBlock(collections, nil);
            } onMainThread:isMainThread];
        };
        collectionListOperation.failure = ^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, NSDictionary *JSONDictionary) {

            if ([self.cacheClient respondsToSelector:@selector(cacheCollectionListRequest:withCollections:error:)]) {
                [self.cacheClient cacheCollectionListRequest:self
                                             withCollections:nil
                                                       error:error];
            }

            [BOXDispatchHelper callCompletionBlock:^{
                completionBlock(nil,error);
            } onMainThread:isMainThread];
        };
        [self performRequest];
    }
}

- (void)performRequestWithCached:(BOXCollectionArrayBlock)cacheBlock
                       refreshed:(BOXCollectionArrayBlock)refreshBlock
{
    if (cacheBlock) {
        if ([self.cacheClient respondsToSelector:@selector(retrieveCacheForCollectionListRequest:completion:)]) {
            [self.cacheClient retrieveCacheForCollectionListRequest:self completion:cacheBlock];
        } else {
            cacheBlock(nil, nil);
        }
    }

    [self performRequestWithCompletion:refreshBlock];
}

@end


text:
{% extends 'base.html' %}

{% block sidebar %}{% endblock %}

{% block content %}

        {% if form.errors %}

                Hmmm.. there are some errors below {{ form.errors|pluralize }} below.

        {% endif %}

Fancy a new post today?

        <form action="{% url 'blog:new_post' %}" method="post" enctype="multipart/form-data">{% csrf_token %}
                {{ form.as_p }}
            <input type="submit" name="submit" value="Update Blog">
        </form>

{% endblock %}


text:
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* *************** SPS Sampler Information ****************
 *
 * SPS is an always on profiler that takes fast and low overheads samples
 * of the program execution using only userspace functionity for portability.
 * The goal of this module is to provide performance data in a generic
 * cross platform way without requiring custom tools or kernel support.
 *
 * Non goals: Support features that are platform specific or replace
 *            platform specific profilers.
 *
 * Samples are collected to form a timeline with optional timeline event (markers)
 * used for filtering.
 *
 * SPS collects samples in a platform independant way by using a speudo stack abstraction
 * of the real program stack by using 'sample stack frames'. When a sample is collected
 * all active sample stack frames and the program counter are recorded.
 */

/* *************** SPS Sampler File Format ****************
 *
 * Simple new line seperated tag format:
 * S      -> BOF tags EOF
 * tags   -> tag tags
 * tag    -> CHAR - STRING
 *
 * Tags:
 * 's' - Sample tag followed by the first stack frame followed by 0 or more 'c' tags.
 * 'c' - Continue Sample tag gives remaining tag element. If a 'c' tag is seen without
 *         a preceding 's' tag it should be ignored. This is to support the behavior
 *         of circular buffers.
 *         If the 'stackwalk' feature is enabled this tag will have the format
 *         'l-<library name>@<hex address>' and will expect an external tool to translate
 *         the tag into something readable through a symbolication processing step.
 * 'm' - Timeline marker. Zero or more may appear before a 's' tag.
 * 'l' - Information about the program counter library and address. Post processing
 *         can include function and source line. If built with leaf data enabled
 *         this tag will describe the last 'c' tag.
 * 'r' - Responsiveness tag following an 's' tag. Gives an indication on how well the
 *          application is responding to the event loop. Lower is better.
 *
 * NOTE: File format is planned to be extended to include a dictionary to reduce size.
 */

#ifndef SAMPLER_H
#define SAMPLER_H

// Redefine the macros for platforms where SPS is supported.
#ifdef MOZ_ENABLE_PROFILER_SPS

#include "sps_sampler.h"

#else

// Initialize the sampler. Any other calls will be silently discarded
// before the sampler has been initialized (i.e. early start-up code)
#define SAMPLER_INIT()
#define SAMPLER_DEINIT()
#define SAMPLER_START(entries, interval, features, featureCount)
#define SAMPLER_STOP()
#define SAMPLER_IS_ACTIVE() false
#define SAMPLER_SAVE()
// Returned string must be free'ed
#define SAMPLER_GET_PROFILE() NULL
#define SAMPLER_GET_PROFILE_DATA(ctx) NULL
#define SAMPLER_RESPONSIVENESS(time) NULL
#define SAMPLER_GET_RESPONSIVENESS() NULL
#define SAMPLER_GET_FEATURES() NULL
#define SAMPLE_LABEL(name_space, info)
#define SAMPLE_LABEL_FN(name_space, info)
#define SAMPLE_MARKER(info)

#endif

#endif // ifndef SAMPLER_H


text:
describe('angularjs homepage', function() {
    it('should have a title', function() {
        browser.get('http://10.240.13.23:8080/stockmarket/game#/watchList');

        expect(browser.getTitle()).toEqual('VSM - Stock Market League');
    });
});


text:
<?php
namespace MangoPay;

/**
 * PayOut entity
 */
class PayOut extends Transaction
{
    /**
     * Debited wallet Id
     * @var int
     */
    public $DebitedWalletId;

    /**
     * PaymentType (BANK_WIRE, MERCHANT_EXPENSE, AMAZON_GIFTCARD)
     * @var string
     */
    public $PaymentType;

    /**
     * One of PayOutPaymentDetails implementations, depending on $PaymentType
     * @var object
     */
    public $MeanOfPaymentDetails;

    /**
     * Get array with mapping which property depends on other property
     * @return array
     */
    public function GetDependsObjects()
    {
        return array(
            'PaymentType' => array(
                '_property_name' => 'MeanOfPaymentDetails',
                PayOutPaymentType::BankWire => '\MangoPay\PayOutPaymentDetailsBankWire',
                // ...and more in future...
            )
        );
    }

    /**
     * Get array with read-only properties
     * @return array
     */
    public function GetReadOnlyProperties()
    {
        $properties = parent::GetReadOnlyProperties();
        array_push($properties, 'PaymentType');

        return $properties;
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>Statistics of ccomp in UD_Tagalog-TRG</title>
    <link rel="root" href=""/>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="../../css/jquery-ui-redmond.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/style-vis.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/hint.css"/>

          home

          edit page
          issue tracker

          <gcse:search></gcse:search>

        This page pertains to UD version 2.

            It appears that you have Javascript disabled.
            Please consider enabling Javascript for this page to see the visualizations.

Treebank Statistics: UD_Tagalog-TRG: Relations: ccomp

This relation is universal.

2 nodes (0%) are attached to their parents as ccomp.

2 instances of ccomp (100%) are left-to-right (parent precedes child).
Average distance between parent and child is 3.

The following 2 pairs of parts of speech are connected with ccomp: <tt>VERB</tt>-<tt>ADV</tt> (1; 50% instances), <tt>VERB</tt>-<tt>VERB</tt> (1; 50% instances).

# visual-style 4	bgColor:blue
# visual-style 4	fgColor:white
# visual-style 1	bgColor:blue
# visual-style 1	fgColor:white
# visual-style 1 4 ccomp	color:blue
1	Itinanong	tanong	VERB	_	Aspect=Perf|Mood=Ind|Voice=Pass	0	root	_	Gloss=asked
2	ko	ako	PRON	_	Case=Gen|Number=Sing|Person=1|PronType=Prs	1	nsubj	_	Gloss=me
3	kung	kung	SCONJ	_	_	4	mark	_	Gloss=that
4	nasaan	nasaan	ADV	_	PronType=Int	1	ccomp	_	Gloss=where
5	sila	sila	PRON	_	Case=Nom|Number=Plur|Person=3|PronType=Prs	4	nsubj	_	Gloss=they|SpaceAfter=No
6	.	.	PUNCT	_	_	1	punct	_	Gloss=.

# visual-style 4	bgColor:blue
# visual-style 4	fgColor:white
# visual-style 1	bgColor:blue
# visual-style 1	fgColor:white
# visual-style 1 4 ccomp	color:blue
1	Gusto	gusto	VERB	_	Aspect=Hab|Voice=Pass	0	root	_	Gloss=want
2	ni	ni	ADP	_	Case=Gen	3	case	_	Gloss=DET
3	Juan	Juan	PROPN	_	Gender=Masc|Link=Yes	1	obj:agent	_	Gloss=Juan|MGloss=John(LINK)
4	suriin	suri	VERB	_	Aspect=Perf|Mood=Ind|Voice=Pass	1	ccomp	_	Gloss=examine|MSeg=suri-in|MGloss=examine-OP
5	siya	siya	PRON	_	Case=Nom|Number=Sing|Person=3|PronType=Prs	4	nsubj:pass	_	Gloss=he|MGloss=he(PIV)
6	ng	ng	ADP	_	Case=Gen	7	case	_	Gloss=DET|MGloss=ACT
7	doktor	doktor	NOUN	_	_	4	obj:agent	_	Gloss=doctor|SpaceAfter=No
8	.	.	PUNCT	_	_	1	punct	_	Gloss=.

© 2014–2021
            Universal Dependencies contributors.
            Site powered by Annodoc and brat
.


text:
package  week4.calculator;

public class ListStack implements Stack
{

	private Lijst lijst;

	public ListStack()
	{
		lijst = new Lijst();
	}

	public void push(Object o)
	{
		lijst.addFirst(o);
	}

	public Object pop()
	{
		return lijst.removeFirst();
	}

	public Object peek()
	{
		return lijst.getFirst();
	}

	public int size()
	{
		return lijst.size();
	}

	public boolean isEmpty()
	{
		return lijst.isEmpty();
	}

}


text:
"""Variable functions.

@@assert_global_step
@@create_global_step
@@get_global_step
@@local_variable
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.ops import variables
from tensorflow.python.platform import tf_logging as logging

__all__ = [
    'assert_global_step', 'create_global_step', 'get_global_step',
    'local_variable']

def assert_global_step(global_step_tensor):
  """Asserts `global_step_tensor` is a scalar int `Variable` or `Tensor`.

  Args:
    global_step_tensor: `Tensor` to test.
  """
  if not (isinstance(global_step_tensor, variables.Variable) or
          isinstance(global_step_tensor, ops.Tensor)):
    raise TypeError('Existing "global_step" must be a Variable or Tensor.')

  if not global_step_tensor.dtype.base_dtype.is_integer:
    raise TypeError(
        'Existing "global_step" does not have integer type: %s' %
        global_step_tensor.dtype)

  if global_step_tensor.get_shape().ndims != 0:
    raise TypeError(
        'Existing "global_step" is not scalar: %s' %
        global_step_tensor.get_shape())

# TODO(ptucker): Change supervisor to use this when it's migrated to core.
def get_global_step(graph=None):
  """Get the global step tensor.

  The global step tensor must be an integer variable. We first try to find it
  in the collection `GLOBAL_STEP`, or by name `global_step:0`.

  Args:
    graph: The graph to find the global step in. If missing, use default graph.

  Returns:
    The global step variable, or `None` if none was found.

  Raises:
    TypeError: If the global step tensor has a non-integer type, or if it is not
      a `Variable`.
  """
  graph = ops.get_default_graph() if graph is None else graph
  global_step_tensor = None
  global_step_tensors = graph.get_collection(ops.GraphKeys.GLOBAL_STEP)
  if len(global_step_tensors) == 1:
    global_step_tensor = global_step_tensors[0]
  elif not global_step_tensors:
    try:
      global_step_tensor = graph.get_tensor_by_name('global_step:0')
    except KeyError:
      return None
  else:
    logging.error('Multiple tensors in global_step collection.')
    return None

  assert_global_step(global_step_tensor)
  return global_step_tensor

def create_global_step(graph=None):
  """Create global step tensor in graph.

  Args:
    graph: The graph in which to create the global step. If missing, use default
        graph.

  Returns:
    Global step tensor.

  Raises:
    TypeError: if `dtype` is invalid.
    ValueError: if global step key is already defined.
  """
  graph = ops.get_default_graph() if graph is None else graph
  if get_global_step(graph) is not None:
    raise ValueError('"global_step" already exists.')
  # Create in proper graph and base name_scope.
  with graph.as_default() as g, g.name_scope(None):
    result = variables.Variable(
        0, trainable=False, dtype=dtypes.int64, name=ops.GraphKeys.GLOBAL_STEP)
    graph.add_to_collection(ops.GraphKeys.GLOBAL_STEP, result)
    return result

def local_variable(initial_value, validate_shape=True, name=None):
  """Create variable and add it to `GraphKeys.LOCAL_VARIABLES` collection.

  Args:
    initial_value: See variables.Variable.__init__.
    validate_shape: See variables.Variable.__init__.
    name: See variables.Variable.__init__.
  Returns:
    New variable.
  """
  return variables.Variable(
      initial_value, trainable=False,
      collections=[ops.GraphKeys.LOCAL_VARIABLES],
      validate_shape=validate_shape, name=name)


text:
We are glad you want to make a contribution.

Fork this repository and send in a pull request when you are finished with your changes. Link any relevant issues in too.

Before you create a pull request, please review the following points:
* No pep8 warning are introduced - run flake8 to find out.
* Unit test coverage should never go down - if unsure on how to add/change existing unit tests, reach out for help.
* New additions need explanations in details. Update README, have it proof-read and add usage examples under the sample folder.
* Changes to the existing repo should keep the existing styling conventions: the whole code should read as if it were written by the same author.

# Issues
* File the issue and take note of the issue number.
* Create a pull request containing a test failing because of the issue you are reporting. Place your test under the samples folder and name it after your issue: e.g. test_issue_5.py.

## License
By contributing your code, you agree to license your contribution under the terms of the APLv2: http://www.apache.org/licenses/LICENSE-2.0
All files are released with the Apache 2.0 license.
If you are adding a new file it should have a header like this:

```python
#
# Copyright 2015 Skyscanner Limited.
#
# 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.
#
```


text:
<?php

declare(strict_types=1);

namespace Atk4\Ui;

use Atk4\Core\HookTrait;
use Atk4\Data\Model;

class Lister extends View
{
    use HookTrait;

    public const HOOK_BEFORE_ROW = self::class . '@beforeRow';
    public const HOOK_AFTER_ROW = self::class . '@afterRow';

    /**
     * Lister repeats part of it's template. This property will contain
     * the repeating part. Clones from {row}. If your template does not
     * have {row} tag, then entire template will be repeated.
     *
     * @var HtmlTemplate
     */
    public $tRow;

    /** @var HtmlTemplate|null Lister use this part of template in case there are no elements in it. */
    public $tEmpty;

    public $defaultTemplate;

    /** @var JsPaginator|null A dynamic paginator attach to window scroll event. */
    public $jsPaginator;

    /** @var int|null The number of item per page for JsPaginator. */
    public $ipp;

    /** @var Model Current row entity */
    public $currentRow;

    protected function init(): void
    {
        parent::init();

        $this->initChunks();
    }

    /**
     * From the current template will extract {row} into $this->tRowMaster and {empty} into $this->tEmpty.
     */
    protected function initChunks(): void
    {
        if (!$this->template) {
            throw new Exception('Lister does not have default template. Either supply your own HTML or use "defaultTemplate" => "lister.html"');
        }

        // empty row template
        if ($this->template->hasTag('empty')) {
            $this->tEmpty = $this->template->cloneRegion('empty');
            $this->template->del('empty');
        }

        // data row template
        if ($this->template->hasTag('row')) {
            $this->tRow = $this->template->cloneRegion('row');
            $this->template->del('rows');
        } else {
            $this->tRow = clone $this->template;
            $this->template->del('_top');
        }
    }

    /**
     * Add Dynamic paginator when scrolling content via Javascript.
     * Will output x item in lister set per ipp until user scroll content to the end of page.
     * When this happen, content will be reload x number of items.
     *
     * @param int    $ipp          Number of item per page
     * @param array  $options      an array with js Scroll plugin options
     * @param View   $container    The container holding the lister for scrolling purpose. Default to view owner.
     * @param string $scrollRegion A specific template region to render. Render output is append to container html element.
     *
     * @return $this
     */
    public function addJsPaginator($ipp, $options = [], $container = null, $scrollRegion = null)
    {
        $this->ipp = $ipp;
        $this->jsPaginator = JsPaginator::addTo($this, ['view' => $container, 'options' => $options]);

        // set initial model limit. can be overwritten by onScroll
        $this->model->setLimit($ipp);

        // add onScroll callback
        $this->jsPaginator->onScroll(function (int $p) use ($ipp, $scrollRegion) {
            // set/overwrite model limit
            $this->model->setLimit($ipp, ($p - 1) * $ipp);

            // render this View (it will count rendered records !)
            $jsonArr = $this->renderToJsonArr($scrollRegion);

            // let client know that there are no more records
            $jsonArr['noMoreScrollPages'] = $this->_renderedRowsCount < $ipp;

            // return json response
            $this->getApp()->terminateJson($jsonArr);
        });

        return $this;
    }

    /** @var int This will count how many rows are rendered. Needed for JsPaginator for example. */
    protected $_renderedRowsCount = 0;

    protected function renderView(): void
    {
        if (!$this->template) {
            throw new Exception('Lister requires you to specify template explicitly');
        }

        // if no model is set, don't show anything (even warning)
        if (!$this->model) {
            parent::renderView();

            return;
        }

        // Generate template for data row
        $this->tRow->trySet('_id', $this->name);

        // Iterate data rows
        $this->_renderedRowsCount = 0;

        // TODO we should not iterate using $this->model variable,
        // then also backup/tryfinally would be not needed
        // the same in Table class
        $modelBackup = $this->model;
        try {
            foreach ($this->model as $this->model) {
                $this->currentRow = $this->model;
                if ($this->hook(self::HOOK_BEFORE_ROW) === false) {
                    continue;
                }

                $this->renderRow();

                ++$this->_renderedRowsCount;
            }
        } finally {
            $this->model = $modelBackup;
        }

        // empty message
        if ($this->_renderedRowsCount === 0) {
            if (!$this->jsPaginator || !$this->jsPaginator->getPage()) {
                $empty = $this->tEmpty !== null ? $this->tEmpty->renderToHtml() : '';
                if ($this->template->hasTag('rows')) {
                    $this->template->dangerouslyAppendHtml('rows', $empty);
                } else {
                    $this->template->dangerouslyAppendHtml('_top', $empty);
                }
            }
        }

        // stop JsPaginator if there are no more records to fetch
        if ($this->jsPaginator && ($this->_renderedRowsCount < $this->ipp)) {
            $this->jsPaginator->jsIdle();
        }

        parent::renderView();
    }

    /**
     * Render individual row. Override this method if you want to do more
     * decoration.
     */
    public function renderRow(): void
    {
        $this->tRow->trySet($this->currentRow);

        $this->tRow->trySet('_title', $this->model->getTitle());
        $this->tRow->trySet('_href', $this->url(['id' => $this->currentRow->getId()]));
        $this->tRow->trySet('_id', $this->currentRow->getId());

        $html = $this->tRow->renderToHtml();
        if ($this->template->hasTag('rows')) {
            $this->template->dangerouslyAppendHtml('rows', $html);
        } else {
            $this->template->dangerouslyAppendHtml('_top', $html);
        }
    }

    /**
     * Hack - override parent method with region render only support.
     *
     * TODO this hack/method must be removed as rendering HTML only partially but with all JS
     * is wrong by design. Each table row should be probably rendered natively using cloned
     * render tree (instead of cloned template).
     */
    public function renderToJsonArr(string $region = null): array
    {
        $this->renderAll();

        // https://github.com/atk4/ui/issues/1932
        if ($region !== null) {
            $this->_jsActions[true] = array_merge([$this->js()->off()], $this->_jsActions[true]);
        }

        return [
            'success' => true,
            'atkjs' => $this->getJs(),
            'html' => $this->template->renderToHtml($region),
            'id' => $this->name,
        ];
    }
}