text:
<!doctype html>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Slider</title>

    <link href='//fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en' rel='stylesheet' type='text/css'>

    <link rel="stylesheet" href="demo.css">

      <input class="mdl-slider mdl-js-slider" type="range"
        min="0" max="100" value="0" tabindex="0"/>

      <input class="mdl-slider mdl-js-slider" type="range"
        min="0" max="100" value="10" tabindex="0"/>

      <input class="mdl-slider mdl-js-slider" type="range"
        min="0" max="100" value="0" tabindex="0" disabled/>

      <input class="mdl-slider mdl-js-slider" type="range"
        min="0" max="100" value="10" tabindex="0" disabled/>


text:
<?xml version="1.0" encoding="UTF-8"?>
<billStatus>
  <bill>
    <createDate>2017-06-13T03:11:38Z</createDate>
    <summaries>
      <billSummaries />
    </summaries>
    <actions>
      <actionTypeCounts>
        <billReferrals>1</billReferrals>
        <introducedInHouse>1</introducedInHouse>
        <introducedInTheHouse>1</introducedInTheHouse>
      </actionTypeCounts>
      <item>
        <type>IntroReferral</type>
        <sourceSystem>
          <name>House floor actions</name>
          2
        </sourceSystem>
        <actionCode>H11100</actionCode>
        <links />
        <actionDate>2017-06-12</actionDate>
        <text>Referred to the House Committee on Education and the Workforce.</text>
        <committee>
          <name>Education and the Workforce Committee</name>
          <systemCode>hsed00</systemCode>
        </committee>
      </item>
      <item>
        <type>IntroReferral</type>
        <sourceSystem>
          <name>Library of Congress</name>
          9
        </sourceSystem>
        <actionCode>Intro-H</actionCode>
        <links />
        <actionDate>2017-06-12</actionDate>
        <text>Introduced in House</text>
        <committee />
      </item>
      <item>
        <type>IntroReferral</type>
        <sourceSystem>
          <name>Library of Congress</name>
          9
        </sourceSystem>
        <actionCode>1000</actionCode>
        <links />
        <actionDate>2017-06-12</actionDate>
        <text>Introduced in House</text>
        <committee />
      </item>
      <actionByCounts>
        <houseOfRepresentatives>3</houseOfRepresentatives>
      </actionByCounts>
    </actions>
    <title>CARE Act of 2017</title>
    <cboCostEstimates />
    <notes />
    <recordedVotes />
    <version>1.0.0</version>
    <committees>
      <billCommittees>
        <item>
          <chamber>House</chamber>
          <activities>
            <item>
              <date>2017-06-12T16:02:20Z</date>
              <name>Referred to</name>
            </item>
          </activities>
          <subcommittees />
          <type>Standing</type>
          <name>Education and the Workforce Committee</name>
          <systemCode>hsed00</systemCode>
        </item>
      </billCommittees>
    </committees>
    <billType>HR</billType>
    <cosponsors>
      <item>
        <state>CA</state>
        <district>41</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Takano, Mark [D-CA-41]</fullName>
        <identifiers>
          <lisID>2110</lisID>
          <bioguideId>T000472</bioguideId>
          <gpoId />
        </identifiers>
        <lastName>Takano</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>Mark</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>T000472</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>RI</state>
        <district>1</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Cicilline, David N. [D-RI-1]</fullName>
        <identifiers>
          <lisID>2055</lisID>
          <bioguideId>C001084</bioguideId>
          <gpoId>8139</gpoId>
        </identifiers>
        <lastName>Cicilline</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>David</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>C001084</bioguideId>
        <middleName>N.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CT</state>
        <district>3</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. DeLauro, Rosa L. [D-CT-3]</fullName>
        <identifiers>
          <lisID>281</lisID>
          <gpoId>7868</gpoId>
          <bioguideId>D000216</bioguideId>
        </identifiers>
        <lastName>DELAURO</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>ROSA</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>D000216</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>AZ</state>
        <district>7</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Gallego, Ruben [D-AZ-7]</fullName>
        <identifiers>
          <lisID>2226</lisID>
          <gpoId />
          <bioguideId>G000574</bioguideId>
        </identifiers>
        <lastName>Gallego</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>Ruben</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>G000574</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>AZ</state>
        <district>3</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Grijalva, Raul M. [D-AZ-3]</fullName>
        <identifiers>
          <bioguideId>G000551</bioguideId>
          <gpoId>7804</gpoId>
          <lisID>1708</lisID>
        </identifiers>
        <lastName>Grijalva</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>Raul</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>G000551</bioguideId>
        <middleName>M.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>13</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Lee, Barbara [D-CA-13]</fullName>
        <identifiers>
          <lisID>1501</lisID>
          <bioguideId>L000551</bioguideId>
          <gpoId>7814</gpoId>
        </identifiers>
        <lastName>LEE</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>BARBARA</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>L000551</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>MA</state>
        <district>8</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Lynch, Stephen F. [D-MA-8]</fullName>
        <identifiers>
          <bioguideId>L000562</bioguideId>
          <gpoId>7974</gpoId>
          <lisID>1686</lisID>
        </identifiers>
        <lastName>Lynch</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>Stephen</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>L000562</bioguideId>
        <middleName>F.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>47</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Lowenthal, Alan S. [D-CA-47]</fullName>
        <identifiers>
          <gpoId />
          <lisID>2111</lisID>
          <bioguideId>L000579</bioguideId>
        </identifiers>
        <lastName>Lowenthal</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>Alan</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>L000579</bioguideId>
        <middleName>S.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>32</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Napolitano, Grace F. [D-CA-32]</fullName>
        <identifiers>
          <lisID>1602</lisID>
          <gpoId>7843</gpoId>
          <bioguideId>N000179</bioguideId>
        </identifiers>
        <lastName>NAPOLITANO</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>GRACE</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>N000179</bioguideId>
        <middleName>F.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>NY</state>
        <district>15</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Serrano, Jose E. [D-NY-15]</fullName>
        <identifiers>
          <lisID>1042</lisID>
          <gpoId>8077</gpoId>
          <bioguideId>S000248</bioguideId>
        </identifiers>
        <lastName>SERRANO</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>JOSE</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>S000248</bioguideId>
        <middleName>E.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>28</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Schiff, Adam B. [D-CA-28]</fullName>
        <identifiers>
          <gpoId>7834</gpoId>
          <lisID>1635</lisID>
          <bioguideId>S001150</bioguideId>
        </identifiers>
        <lastName>SCHIFF</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>ADAM</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>S001150</bioguideId>
        <middleName>B.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>IL</state>
        <district>4</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Gutierrez, Luis V. [D-IL-4]</fullName>
        <identifiers>
          <lisID>478</lisID>
          <gpoId>7924</gpoId>
          <bioguideId>G000535</bioguideId>
        </identifiers>
        <lastName>GUTIERREZ</lastName>
        <isOriginalCosponsor>True</isOriginalCosponsor>
        <firstName>LUIS</firstName>
        <sponsorshipDate>2017-06-12</sponsorshipDate>
        <bioguideId>G000535</bioguideId>
        <middleName>V.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>DC</state>
        <district>0</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Norton, Eleanor Holmes [D-DC-At Large]</fullName>
        <identifiers>
          <lisID>868</lisID>
          <bioguideId>N000147</bioguideId>
          <gpoId>7871</gpoId>
        </identifiers>
        <lastName>NORTON</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>ELEANOR</firstName>
        <sponsorshipDate>2017-06-20</sponsorshipDate>
        <bioguideId>N000147</bioguideId>
        <middleName>HOLMES</middleName>
        <party>D</party>
      </item>
      <item>
        <state>OH</state>
        <district>9</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Kaptur, Marcy [D-OH-9]</fullName>
        <identifiers>
          <lisID>616</lisID>
          <gpoId>8099</gpoId>
          <bioguideId>K000009</bioguideId>
        </identifiers>
        <lastName>KAPTUR</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>MARCY</firstName>
        <sponsorshipDate>2017-06-20</sponsorshipDate>
        <bioguideId>K000009</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>NJ</state>
        <district>8</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Sires, Albio [D-NJ-8]</fullName>
        <identifiers>
          <lisID>1818</lisID>
          <gpoId>8055</gpoId>
          <bioguideId>S001165</bioguideId>
        </identifiers>
        <lastName>Sires</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Albio</firstName>
        <sponsorshipDate>2017-06-20</sponsorshipDate>
        <bioguideId>S001165</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>18</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Eshoo, Anna G. [D-CA-18]</fullName>
        <identifiers>
          <bioguideId>E000215</bioguideId>
          <gpoId>7819</gpoId>
          <lisID>355</lisID>
        </identifiers>
        <lastName>ESHOO</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>ANNA</firstName>
        <sponsorshipDate>2017-06-27</sponsorshipDate>
        <bioguideId>E000215</bioguideId>
        <middleName>G.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>MP</state>
        <district>0</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Sablan, Gregorio Kilili Camacho [D-MP-At Large]</fullName>
        <identifiers>
          <lisID>1962</lisID>
          <gpoId>8018</gpoId>
          <bioguideId>S001177</bioguideId>
        </identifiers>
        <lastName>Sablan</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Gregorio</firstName>
        <sponsorshipDate>2017-06-27</sponsorshipDate>
        <bioguideId>S001177</bioguideId>
        <middleName>Kilili Camacho</middleName>
        <party>D</party>
      </item>
      <item>
        <state>MA</state>
        <district>2</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. McGovern, James P. [D-MA-2]</fullName>
        <identifiers>
          <lisID>1504</lisID>
          <gpoId>7968</gpoId>
          <bioguideId>M000312</bioguideId>
        </identifiers>
        <lastName>MCGOVERN</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>JAMES</firstName>
        <sponsorshipDate>2017-06-27</sponsorshipDate>
        <bioguideId>M000312</bioguideId>
        <middleName>P.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>17</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Khanna, Ro [D-CA-17]</fullName>
        <identifiers>
          <lisID>2308</lisID>
          <gpoId />
          <bioguideId>K000389</bioguideId>
        </identifiers>
        <lastName>Khanna</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Ro</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>K000389</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>IL</state>
        <district>9</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Schakowsky, Janice D. [D-IL-9]</fullName>
        <identifiers>
          <bioguideId>S001145</bioguideId>
          <lisID>1588</lisID>
          <gpoId>7929</gpoId>
        </identifiers>
        <lastName>SCHAKOWSKY</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>JANICE</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>S001145</bioguideId>
        <middleName>D.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>29</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Cardenas, Tony [D-CA-29]</fullName>
        <identifiers>
          <lisID>2107</lisID>
          <gpoId />
          <bioguideId>C001097</bioguideId>
        </identifiers>
        <lastName>Cardenas</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Tony</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>C001097</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>MO</state>
        <district>1</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Clay, Wm. Lacy [D-MO-1]</fullName>
        <identifiers>
          <gpoId>8009</gpoId>
          <bioguideId>C001049</bioguideId>
          <lisID>1654</lisID>
        </identifiers>
        <lastName>CLAY</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>WM.</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>C001049</bioguideId>
        <middleName>LACY</middleName>
        <party>D</party>
      </item>
      <item>
        <state>MA</state>
        <district>7</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Capuano, Michael E. [D-MA-7]</fullName>
        <identifiers>
          <bioguideId>C001037</bioguideId>
          <gpoId>7973</gpoId>
          <lisID>1564</lisID>
        </identifiers>
        <lastName>CAPUANO</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>MICHAEL</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>C001037</bioguideId>
        <middleName>E.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>GA</state>
        <district>4</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Johnson, Henry C. "Hank," Jr. [D-GA-4]</fullName>
        <identifiers>
          <gpoId>7901</gpoId>
          <bioguideId>J000288</bioguideId>
          <lisID>1843</lisID>
        </identifiers>
        <lastName>Johnson</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Henry</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>J000288</bioguideId>
        <middleName>C. "Hank"</middleName>
        <party>D</party>
      </item>
      <item>
        <state>WI</state>
        <district>4</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Moore, Gwen [D-WI-4]</fullName>
        <identifiers>
          <gpoId>8217</gpoId>
          <bioguideId>M001160</bioguideId>
          <lisID>1811</lisID>
        </identifiers>
        <lastName>Moore</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Gwen</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>M001160</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>NJ</state>
        <district>6</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Pallone, Frank, Jr. [D-NJ-6]</fullName>
        <identifiers>
          <lisID>887</lisID>
          <gpoId>8048</gpoId>
          <bioguideId>P000034</bioguideId>
        </identifiers>
        <lastName>PALLONE</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>FRANK</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>P000034</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>MN</state>
        <district>5</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Ellison, Keith [D-MN-5]</fullName>
        <identifiers>
          <lisID>1857</lisID>
          <gpoId>8005</gpoId>
          <bioguideId>E000288</bioguideId>
        </identifiers>
        <lastName>Ellison</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Keith</firstName>
        <sponsorshipDate>2017-07-11</sponsorshipDate>
        <bioguideId>E000288</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>CA</state>
        <district>44</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Barragan, Nanette Diaz [D-CA-44]</fullName>
        <identifiers>
          <lisID>2311</lisID>
          <bioguideId>B001300</bioguideId>
          <gpoId />
        </identifiers>
        <lastName>Barragan</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Nanette</firstName>
        <sponsorshipDate>2017-09-25</sponsorshipDate>
        <bioguideId>B001300</bioguideId>
        <middleName>Diaz</middleName>
        <party>D</party>
      </item>
      <item>
        <state>OR</state>
        <district>3</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Blumenauer, Earl [D-OR-3]</fullName>
        <identifiers>
          <lisID>99</lisID>
          <gpoId>8116</gpoId>
          <bioguideId>B000574</bioguideId>
        </identifiers>
        <lastName>BLUMENAUER</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>EARL</firstName>
        <sponsorshipDate>2017-09-25</sponsorshipDate>
        <bioguideId>B000574</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>NY</state>
        <district>9</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Clarke, Yvette D. [D-NY-9]</fullName>
        <identifiers>
          <lisID>1864</lisID>
          <bioguideId>C001067</bioguideId>
          <gpoId>8072</gpoId>
        </identifiers>
        <lastName>Clarke</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Yvette</firstName>
        <sponsorshipDate>2017-09-25</sponsorshipDate>
        <bioguideId>C001067</bioguideId>
        <middleName>D.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>PA</state>
        <district>2</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Evans, Dwight [D-PA-2]</fullName>
        <identifiers>
          <gpoId />
          <lisID>2298</lisID>
          <bioguideId>E000296</bioguideId>
        </identifiers>
        <lastName>Evans</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Dwight</firstName>
        <sponsorshipDate>2017-09-25</sponsorshipDate>
        <bioguideId>E000296</bioguideId>
        <middleName />
        <party>D</party>
      </item>
      <item>
        <state>FL</state>
        <district>20</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Hastings, Alcee L. [D-FL-20]</fullName>
        <identifiers>
          <lisID>511</lisID>
          <gpoId>7895</gpoId>
          <bioguideId>H000324</bioguideId>
        </identifiers>
        <lastName>HASTINGS</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>ALCEE</firstName>
        <sponsorshipDate>2017-09-25</sponsorshipDate>
        <bioguideId>H000324</bioguideId>
        <middleName>L.</middleName>
        <party>D</party>
      </item>
      <item>
        <state>FL</state>
        <district>24</district>
        <sponsorshipWithdrawnDate />
        <fullName>Rep. Wilson, Frederica S. [D-FL-24]</fullName>
        <identifiers>
          <gpoId>7889</gpoId>
          <bioguideId>W000808</bioguideId>
          <lisID>2004</lisID>
        </identifiers>
        <lastName>Wilson</lastName>
        <isOriginalCosponsor>False</isOriginalCosponsor>
        <firstName>Frederica</firstName>
        <sponsorshipDate>2017-09-25</sponsorshipDate>
        <bioguideId>W000808</bioguideId>
        <middleName>S.</middleName>
        <party>D</party>
      </item>
    </cosponsors>
    <originChamber>House</originChamber>
    <committeeReports />
    <constitutionalAuthorityStatementText><![CDATA[
From the Congressional Record Online through the Government Publishing Office [www.gpo.gov]By Mr. CURBELO of Florida:H.R. 2901.Congress has the power to enact this legislation pursuantto the following:Article I, Section 8, Clause 18, which states that ``TheCongress shall have power to make all laws which shall benecessary and proper for carrying into execution theforegoing powers, and all other powers vested by theConstitution in the government of the United States, or inany Department or Officer thereof.''[Page H4938]
]]></constitutionalAuthorityStatementText>
    <updateDate>2017-09-26T07:16:56Z</updateDate>
    <relatedBills />
    <latestAction>
      <links />
      <actionDate>2017-06-12</actionDate>
      <text>Referred to the House Committee on Education and the Workforce.</text>
    </latestAction>
    <introducedDate>2017-06-12</introducedDate>
    <sponsors>
      <item>
        <bioguideId>R000486</bioguideId>
        <district>40</district>
        <middleName />
        <fullName>Rep. Roybal-Allard, Lucille [D-CA-40]</fullName>
        <identifiers>
          <gpoId>7839</gpoId>
          <lisID>997</lisID>
          <bioguideId>R000486</bioguideId>
        </identifiers>
        <lastName>ROYBAL-ALLARD</lastName>
        <party>D</party>
        <byRequestType />
        <state>CA</state>
        <firstName>LUCILLE</firstName>
      </item>
    </sponsors>
    <policyArea>
      <name>Labor and Employment</name>
    </policyArea>
    <laws />
    <congress>115</congress>
    <titles>
      <item>
        <chamberName />
        <parentTitleType />
        <chamberCode />
        <titleType>(Extracted from GPO) Short Titles as Introduced</titleType>
        <title>CARE Act of 2017</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <chamberCode />
        <titleType>(Extracted from GPO) Short Titles as Introduced</titleType>
        <title>Children's Act for Responsible Employment of 2017</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <chamberCode />
        <titleType>Short Titles as Introduced</titleType>
        <title>CARE Act of 2017</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <chamberCode />
        <titleType>Short Titles as Introduced</titleType>
        <title>Children's Act for Responsible Employment of 2017</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <chamberCode />
        <titleType>Official Title as Introduced</titleType>
        <title>To amend the Fair Labor Standards Act of 1938 to strengthen the provisions relating to child labor.</title>
      </item>
      <item>
        <chamberName />
        <parentTitleType />
        <chamberCode />
        <titleType>Display Title</titleType>
        <title>CARE Act of 2017</title>
      </item>
    </titles>
    <subjects>
      <billSubjects>
        <policyArea>
          <name>Labor and Employment</name>
        </policyArea>
        <legislativeSubjects />
      </billSubjects>
    </subjects>
    <amendments />
    <calendarNumbers />
    <billNumber>2886</billNumber>
  </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>

redpajama_set_name: RedPajamaGithub


text:
namespace google {
namespace protobuf {
namespace io {

// ===================================================================

// A ZeroCopyInputStream backed by an in-memory array of bytes.
class LIBPROTOBUF_EXPORT ArrayInputStream : public ZeroCopyInputStream {
 public:
  // Create an InputStream that returns the bytes pointed to by "data".
  // "data" remains the property of the caller but must remain valid until
  // the stream is destroyed.  If a block_size is given, calls to Next()
  // will return data blocks no larger than the given size.  Otherwise, the
  // first call to Next() returns the entire array.  block_size is mainly
  // useful for testing; in production you would probably never want to set
  // it.
  ArrayInputStream(const void* data, int size, int block_size = -1);
  ~ArrayInputStream();

  // implements ZeroCopyInputStream ----------------------------------
  bool Next(const void** data, int* size);
  void BackUp(int count);
  bool Skip(int count);
  int64 ByteCount() const;

 private:
  const uint8* const data_;  // The byte array.
  const int size_;           // Total size of the array.
  const int block_size_;     // How many bytes to return at a time.

  int position_;
  int last_returned_size_;   // How many bytes we returned last time Next()
                             // was called (used for error checking only).

  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ArrayInputStream);
};

// ===================================================================

// A ZeroCopyOutputStream backed by an in-memory array of bytes.
class LIBPROTOBUF_EXPORT ArrayOutputStream : public ZeroCopyOutputStream {
 public:
  // Create an OutputStream that writes to the bytes pointed to by "data".
  // "data" remains the property of the caller but must remain valid until
  // the stream is destroyed.  If a block_size is given, calls to Next()
  // will return data blocks no larger than the given size.  Otherwise, the
  // first call to Next() returns the entire array.  block_size is mainly
  // useful for testing; in production you would probably never want to set
  // it.
  ArrayOutputStream(void* data, int size, int block_size = -1);
  ~ArrayOutputStream();

  // implements ZeroCopyOutputStream ---------------------------------
  bool Next(void** data, int* size);
  void BackUp(int count);
  int64 ByteCount() const;

 private:
  uint8* const data_;        // The byte array.
  const int size_;           // Total size of the array.
  const int block_size_;     // How many bytes to return at a time.

  int position_;
  int last_returned_size_;   // How many bytes we returned last time Next()
                             // was called (used for error checking only).

  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ArrayOutputStream);
};

// ===================================================================

// A ZeroCopyOutputStream which appends bytes to a string.
class LIBPROTOBUF_EXPORT StringOutputStream : public ZeroCopyOutputStream {
 public:
  // Create a StringOutputStream which appends bytes to the given string.
  // The string remains property of the caller, but it MUST NOT be accessed
  // in any way until the stream is destroyed.
  //
  // Hint:  If you call target->reserve(n) before creating the stream,
  //   the first call to Next() will return at least n bytes of buffer
  //   space.
  explicit StringOutputStream(string* target);
  ~StringOutputStream();

  // implements ZeroCopyOutputStream ---------------------------------
  bool Next(void** data, int* size);
  void BackUp(int count);
  int64 ByteCount() const;

 private:
  static const int kMinimumSize = 16;

  string* target_;

  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(StringOutputStream);
};

// Note:  There is no StringInputStream.  Instead, just create an
// ArrayInputStream as follows:
//   ArrayInputStream input(str.data(), str.size());

// ===================================================================

// A generic traditional input stream interface.
//
// Lots of traditional input streams (e.g. file descriptors, C stdio
// streams, and C++ iostreams) expose an interface where every read
// involves copying bytes into a buffer.  If you want to take such an
// interface and make a ZeroCopyInputStream based on it, simply implement
// CopyingInputStream and then use CopyingInputStreamAdaptor.
//
// CopyingInputStream implementations should avoid buffering if possible.
// CopyingInputStreamAdaptor does its own buffering and will read data
// in large blocks.
class LIBPROTOBUF_EXPORT CopyingInputStream {
 public:
  virtual ~CopyingInputStream();

  // Reads up to "size" bytes into the given buffer.  Returns the number of
  // bytes read.  Read() waits until at least one byte is available, or
  // returns zero if no bytes will ever become available (EOF), or -1 if a
  // permanent read error occurred.
  virtual int Read(void* buffer, int size) = 0;

  // Skips the next "count" bytes of input.  Returns the number of bytes
  // actually skipped.  This will always be exactly equal to "count" unless
  // EOF was reached or a permanent read error occurred.
  //
  // The default implementation just repeatedly calls Read() into a scratch
  // buffer.
  virtual int Skip(int count);
};

// A ZeroCopyInputStream which reads from a CopyingInputStream.  This is
// useful for implementing ZeroCopyInputStreams that read from traditional
// streams.  Note that this class is not really zero-copy.
//
// If you want to read from file descriptors or C++ istreams, this is
// already implemented for you:  use FileInputStream or IstreamInputStream
// respectively.
class LIBPROTOBUF_EXPORT CopyingInputStreamAdaptor : public ZeroCopyInputStream {
 public:
  // Creates a stream that reads from the given CopyingInputStream.
  // If a block_size is given, it specifies the number of bytes that
  // should be read and returned with each call to Next().  Otherwise,
  // a reasonable default is used.  The caller retains ownership of
  // copying_stream unless SetOwnsCopyingStream(true) is called.
  explicit CopyingInputStreamAdaptor(CopyingInputStream* copying_stream,
                                     int block_size = -1);
  ~CopyingInputStreamAdaptor();

  // Call SetOwnsCopyingStream(true) to tell the CopyingInputStreamAdaptor to
  // delete the underlying CopyingInputStream when it is destroyed.
  void SetOwnsCopyingStream(bool value) { owns_copying_stream_ = value; }

  // implements ZeroCopyInputStream ----------------------------------
  bool Next(const void** data, int* size);
  void BackUp(int count);
  bool Skip(int count);
  int64 ByteCount() const;

 private:
  // Insures that buffer_ is not NULL.
  void AllocateBufferIfNeeded();
  // Frees the buffer and resets buffer_used_.
  void FreeBuffer();

  // The underlying copying stream.
  CopyingInputStream* copying_stream_;
  bool owns_copying_stream_;

  // True if we have seen a permenant error from the underlying stream.
  bool failed_;

  // The current position of copying_stream_, relative to the point where
  // we started reading.
  int64 position_;

  // Data is read into this buffer.  It may be NULL if no buffer is currently
  // in use.  Otherwise, it points to an array of size buffer_size_.
  scoped_array<uint8> buffer_;
  const int buffer_size_;

  // Number of valid bytes currently in the buffer (i.e. the size last
  // returned by Next()).  0 <= buffer_used_ <= buffer_size_.
  int buffer_used_;

  // Number of bytes in the buffer which were backed up over by a call to
  // BackUp().  These need to be returned again.
  // 0 <= backup_bytes_ <= buffer_used_
  int backup_bytes_;

  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CopyingInputStreamAdaptor);
};

// ===================================================================

// A generic traditional output stream interface.
//
// Lots of traditional output streams (e.g. file descriptors, C stdio
// streams, and C++ iostreams) expose an interface where every write
// involves copying bytes from a buffer.  If you want to take such an
// interface and make a ZeroCopyOutputStream based on it, simply implement
// CopyingOutputStream and then use CopyingOutputStreamAdaptor.
//
// CopyingOutputStream implementations should avoid buffering if possible.
// CopyingOutputStreamAdaptor does its own buffering and will write data
// in large blocks.
class LIBPROTOBUF_EXPORT CopyingOutputStream {
 public:
  virtual ~CopyingOutputStream();

  // Writes "size" bytes from the given buffer to the output.  Returns true
  // if successful, false on a write error.
  virtual bool Write(const void* buffer, int size) = 0;
};

// A ZeroCopyOutputStream which writes to a CopyingOutputStream.  This is
// useful for implementing ZeroCopyOutputStreams that write to traditional
// streams.  Note that this class is not really zero-copy.
//
// If you want to write to file descriptors or C++ ostreams, this is
// already implemented for you:  use FileOutputStream or OstreamOutputStream
// respectively.
class LIBPROTOBUF_EXPORT CopyingOutputStreamAdaptor : public ZeroCopyOutputStream {
 public:
  // Creates a stream that writes to the given Unix file descriptor.
  // If a block_size is given, it specifies the size of the buffers
  // that should be returned by Next().  Otherwise, a reasonable default
  // is used.
  explicit CopyingOutputStreamAdaptor(CopyingOutputStream* copying_stream,
                                      int block_size = -1);
  ~CopyingOutputStreamAdaptor();

  // Writes all pending data to the underlying stream.  Returns false if a
  // write error occurred on the underlying stream.  (The underlying
  // stream itself is not necessarily flushed.)
  bool Flush();

  // Call SetOwnsCopyingStream(true) to tell the CopyingOutputStreamAdaptor to
  // delete the underlying CopyingOutputStream when it is destroyed.
  void SetOwnsCopyingStream(bool value) { owns_copying_stream_ = value; }

  // implements ZeroCopyOutputStream ---------------------------------
  bool Next(void** data, int* size);
  void BackUp(int count);
  int64 ByteCount() const;

 private:
  // Write the current buffer, if it is present.
  bool WriteBuffer();
  // Insures that buffer_ is not NULL.
  void AllocateBufferIfNeeded();
  // Frees the buffer.
  void FreeBuffer();

  // The underlying copying stream.
  CopyingOutputStream* copying_stream_;
  bool owns_copying_stream_;

  // True if we have seen a permenant error from the underlying stream.
  bool failed_;

  // The current position of copying_stream_, relative to the point where
  // we started writing.
  int64 position_;

  // Data is written from this buffer.  It may be NULL if no buffer is
  // currently in use.  Otherwise, it points to an array of size buffer_size_.
  scoped_array<uint8> buffer_;
  const int buffer_size_;

  // Number of valid bytes currently in the buffer (i.e. the size last
  // returned by Next()).  When BackUp() is called, we just reduce this.
  // 0 <= buffer_used_ <= buffer_size_.
  int buffer_used_;

  GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(CopyingOutputStreamAdaptor);
};

// ===================================================================

}  // namespace io
}  // namespace protobuf

}  // namespace google
#endif  // GOOGLE_PROTOBUF_IO_ZERO_COPY_STREAM_IMPL_LITE_H__


text:
<!--[metadata]>
+++
title = "Apply rolling updates"
description = "Apply rolling updates to a service on the swarm"
keywords = ["tutorial, cluster management, swarm, service, rolling-update"]
[menu.main]
identifier="swarm-tutorial-rolling-update"
parent="swarm-tutorial"
weight=20
+++
<![end-metadata]-->

# Apply rolling updates to a service

In a previous step of the tutorial, you [scaled](scale-service.md) the number of
instances of a service. In this part of the tutorial, you deploy a service based
on the Redis 3.0.6 container image. Then you upgrade the service to use the
Redis 3.0.7 container image using rolling updates.

1. If you haven't already, open a terminal and ssh into the machine where you
run your manager node. For example, the tutorial uses a machine named
`manager1`.

2. Deploy Redis 3.0.6 to the swarm and configure the swarm with a 10 second
update delay:

    ```bash
    $ docker service create \
      --replicas 3 \
      --name redis \
      --update-delay 10s \
      redis:3.0.6

    0u6a4s31ybk7yw2wyvtikmu50
    ```

    You configure the rolling update policy at service deployment time.

    The `--update-delay` flag configures the time delay between updates to a
    service task or sets of tasks. You can describe the time `T` as a
    combination of the number of seconds `Ts`, minutes `Tm`, or hours `Th`. So
    `10m30s` indicates a 10 minute 30 second delay.

    By default the scheduler updates 1 task at a time. You can pass the
    `--update-parallelism` flag to configure the maximum number of service tasks
    that the scheduler updates simultaneously.

    By default, when an update to an individual task returns a state of
    `RUNNING`, the scheduler schedules another task to update until all tasks
    are updated. If, at any time during an update a task returns `FAILED`, the
    scheduler pauses the update. You can control the behavior using the
    `--update-failure-action` flag for `docker service create` or
    `docker service update`.

3. Inspect the `redis` service:

    ```bash
    $ docker service inspect --pretty redis

    ID:             0u6a4s31ybk7yw2wyvtikmu50
    Name:           redis
    Mode:           Replicated
     Replicas:      3
    Placement:
     Strategy:	    Spread
    UpdateConfig:
     Parallelism:   1
     Delay:         10s
    ContainerSpec:
     Image:         redis:3.0.6
    Resources:
    ```

4. Now you can update the container image for `redis`. The swarm  manager
applies the update to nodes according to the `UpdateConfig` policy:

    ```bash
    $ docker service update --image redis:3.0.7 redis
    redis
    ```

    The scheduler applies rolling updates as follows by default:

    * Stop the first task.
    * Schedule update for the stopped task.
    * Start the container for the updated task.
    * If the update to a task returns `RUNNING`, wait for the
    specified delay period then stop the next task.
    * If, at any time during the update, a task returns `FAILED`, pause the
    update.

5. Run `docker service inspect --pretty redis` to see the new image in the
desired state:

    ```bash
    $ docker service inspect --pretty redis

    ID:             0u6a4s31ybk7yw2wyvtikmu50
    Name:           redis
    Mode:           Replicated
     Replicas:      3
    Placement:
     Strategy:	    Spread
    UpdateConfig:
     Parallelism:   1
     Delay:         10s
    ContainerSpec:
     Image:         redis:3.0.7
    Resources:
    ```

    The output of `service inspect` shows if your update paused due to failure:

    ```bash
    $ docker service inspect --pretty redis

    ID:             0u6a4s31ybk7yw2wyvtikmu50
    Name:           redis
    ...snip...
    Update status:
     State:      paused
     Started:    11 seconds ago
     Message:    update paused due to failure or early termination of task 9p7ith557h8ndf0ui9s0q951b
    ...snip...
    ```

    To restart a paused update run `docker service update <SERVICE-ID>`. For example:

    ```bash
    docker service update redis
    ```

    To avoid repeating certain update failures, you may need to reconfigure the
    service by passing flags to `docker service update`.

6. Run `docker service ps <SERVICE-ID>` to watch the rolling update:

    ```bash
    $ docker service ps redis

    ID                         NAME         IMAGE        NODE       DESIRED STATE  CURRENT STATE            ERROR
    dos1zffgeofhagnve8w864fco  redis.1      redis:3.0.7  worker1    Running        Running 37 seconds
    88rdo6pa52ki8oqx6dogf04fh   \_ redis.1  redis:3.0.6  worker2    Shutdown       Shutdown 56 seconds ago
    9l3i4j85517skba5o7tn5m8g0  redis.2      redis:3.0.7  worker2    Running        Running About a minute
    66k185wilg8ele7ntu8f6nj6i   \_ redis.2  redis:3.0.6  worker1    Shutdown       Shutdown 2 minutes ago
    egiuiqpzrdbxks3wxgn8qib1g  redis.3      redis:3.0.7  worker1    Running        Running 48 seconds
    ctzktfddb2tepkr45qcmqln04   \_ redis.3  redis:3.0.6  mmanager1  Shutdown       Shutdown 2 minutes ago
    ```

    Before Swarm updates all of the tasks, you can see that some are running
    `redis:3.0.6` while others are running `redis:3.0.7`. The output above shows
    the state once the rolling updates are done.

Next, learn about how to [drain a node](drain-node.md) in the swarm.


text:
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{.Code}}</title>
</head>
<body>
    {{ template "content" .}}

    {{block "message" .}}{{end}}
</body>
</html>


text:
layout: post
title: MMTC Manager Rajbhasha posts last date 23rd Oct-2015
date: 2015-10-13 14:17
comments: true
tags: Hindi Manager Public-Sector Rajbhasha
archive: false
---
Requirement of Deputy Manager (Rajbhasha) – 2015

MMTC Limited is looking for bright, committed and energetic professionals to join its fold as Deputy Manager (Rajbhasha) :

- Deputy Manager (Rajbhasha) : 04 posts (UR-2, OBC-1, PwD-1), Pay Scale : Rs. 16400-40500

Application Fee :  Rs.500/-  by way of Demand Draft / Banker's cheque drawn in favour of "MMTC Limited" payable at New Delhi.  SC, ST and PWD candidates are exempted from payment of application fee.

**How to Apply** : Applications complete in all respect may be sent to the Chief General Manager (P), MMTC Limited, SCOPE Complex, Core 1, Institutional Area, Lodi Road, New Delhi-110003 so as to reach him on or before 3123/10/2015.

Please visit <http://www.mmtclimited.gov.in/pages/display/29-careers>  to view details and application format.


text:
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Auth import Auth

from PLC.TagTypes import TagTypes, TagType
from PLC.Nodes import Node
from PLC.Slices import Slice, Slices
from PLC.SliceTags import SliceTag, SliceTags
from PLC.InitScripts import InitScript, InitScripts

from PLC.AuthorizeHelpers import AuthorizeHelpers

# need to import so the core classes get decorated with caller_may_write_tag
from PLC.AuthorizeHelpers import AuthorizeHelpers

class UpdateSliceTag(Method):
    """
    Updates the value of an existing slice or sliver attribute.

    Users may only update attributes of slices or slivers of which
    they are members. PIs may only update attributes of slices or
    slivers at their sites, or of which they are members. Admins may
    update attributes of any slice or sliver.

    Returns 1 if successful, faults otherwise.
    """

    roles = ['admin', 'pi', 'user', 'node']

    accepts = [
        Auth(),
        SliceTag.fields['slice_tag_id'],
        Mixed(SliceTag.fields['value'],
              InitScript.fields['name'])
        ]

    returns = Parameter(int, '1 if successful')

    def call(self, auth, slice_tag_id, value):
        slice_tags = SliceTags(self.api, [slice_tag_id])
        if not slice_tags:
            raise PLCInvalidArgument("No such slice attribute")
        slice_tag = slice_tags[0]

        tag_type_id = slice_tag['tag_type_id']
        tag_type = TagTypes (self.api,[tag_type_id])[0]

        slices = Slices(self.api, [slice_tag['slice_id']])
        if not slices:
            raise PLCInvalidArgument("No such slice %d"%slice_tag['slice_id'])
        slice = slices[0]

        assert slice_tag['slice_tag_id'] in slice['slice_tag_ids']

        # check authorizations
        node_id_or_hostname=slice_tag['node_id']
        nodegroup_id_or_name=slice_tag['nodegroup_id']
        slice.caller_may_write_tag(self.api,self.caller,tag_type,node_id_or_hostname,nodegroup_id_or_name)

        if slice_tag['tagname'] in ['initscript']:
            initscripts = InitScripts(self.api, {'enabled': True, 'name': value})
            if not initscripts:
                raise PLCInvalidArgument("No such plc initscript")

        slice_tag['value'] = str(value)
        slice_tag.sync()
        self.event_objects = {'SliceTag': [slice_tag['slice_tag_id']]}
        return 1


text:
<div [class.table-responsive]="responsive" class="tablesaw-overflow">
  <table
    [ngClass]="classes"
    #table
    [attr.data-tablesaw-mode]="tablesaw || null"
    [attr.data-tablesaw-mode-switch]="tablesawSwitch || null"
    [attr.data-tablesaw-sortable]="tablesaw === 'sortable' ? '' : null"
    [attr.data-tablesaw-sortable-switch]="tablesaw === 'sortable' ? '':null"
  >
    <ng-content></ng-content>
  </table>
</div>


text:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.gopay.api.v3.model.payment;

import cz.gopay.api.v3.Builder;
import cz.gopay.api.v3.model.common.Currency;
import cz.gopay.api.v3.model.payment.support.AdditionalParam;
import cz.gopay.api.v3.model.payment.support.ItemType;
import cz.gopay.api.v3.model.payment.support.OrderItem;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 *
 * @author František Sichinger
 */
public abstract class AbstractPaymentBuilder<T, U extends AbstractPaymentBuilder<T,U>> implements Builder<T> {

    protected Long amount;

    protected Currency currency;

    protected String orderNumber;

    protected String orderDescription;

    protected List<OrderItem> items = new ArrayList<>();

    protected List<AdditionalParam> additionalParams = new ArrayList<>();

    protected abstract U getInstance();

    public U order(String orderNumber, Long amount, Currency currency, String orderDescription) {
        this.orderNumber = orderNumber;
        this.amount = amount;
        this.currency = currency;
        this.orderDescription = orderDescription;
        return getInstance();
    }

    public U addItems(Collection<OrderItem> items) {
        this.items.addAll(items);
        return getInstance();
    }

    public U addItem(String name, Long amount, Long count) {
        this.items.add(OrderItem.of(name, amount, count));
        return getInstance();
    }

    public U addItem(String name, Long amount, Long count, Integer vatRate, ItemType type, String ean, String url) {
        this.items.add(OrderItem.of(name, amount, count, vatRate, type, ean, url));
        return getInstance();
    }

    public U addItem(OrderItem item) {
        this.items.add(item);
        return getInstance();
    }

    public U addAdditionalParameters(Collection<AdditionalParam> params) {
        this.additionalParams.addAll(params);
        return getInstance();
    }

    public U addAdditionalParameter(String key, String value) {
        return addAdditionalParameter(AdditionalParam.of(key, value));
    }

    public U addAdditionalParameter(AdditionalParam param) {
        this.additionalParams.add(param);
        return getInstance();
    }
}


text:
**************************
Diffusion Trend Comparison
**************************

The Diffusion Trend Comparison plot compares the trends of all the statuses allowed by the diffusive model tested.

Each trend line describes the variation of the number of nodes for a given status iteration after iteration.

.. autoclass:: ndlib.viz.mpl.TrendComparison.DiffusionTrendComparison
.. automethod:: ndlib.viz.mpl.TrendComparison.DiffusionTrendComparison.__init__(models, trends, statuses)
.. automethod:: ndlib.viz.mpl.TrendComparison.DiffusionTrendComparison.plot(filename, percentile)

Below is shown an example of Diffusion Trend description and visualization for the SIR model.

.. code-block:: python

    import networkx as nx
    import ndlib.models.ModelConfig as mc
    import ndlib.models.epidemics as ep
    from ndlib.viz.mpl.TrendComparison import DiffusionTrendComparison

    # Network topology
    g = nx.erdos_renyi_graph(1000, 0.1)

    # Model selection
    model = ep.SIRModel(g)

    # Model Configuration
    cfg = mc.Configuration()
    cfg.add_model_parameter('beta', 0.001)
    cfg.add_model_parameter('gamma', 0.01)
    cfg.add_model_parameter("fraction_infected", 0.01)
    model.set_initial_status(cfg)

    # Simulation execution
    iterations = model.iteration_bunch(200)
    trends = model.build_trends(iterations)

    # 2° Model selection
    model1 = ep.SIRModel(g)

    # 2° Model Configuration
    cfg = mc.Configuration()
    cfg.add_model_parameter('beta', 0.001)
    cfg.add_model_parameter('gamma', 0.02)
    cfg.add_model_parameter("fraction_infected", 0.01)
    model1.set_initial_status(cfg)

    # 2° Simulation execution
    iterations = model1.iteration_bunch(200)
    trends1 = model1.build_trends(iterations)

    # Visualization
    viz = DiffusionTrend([model, model1], [trends, trends1])
    viz.plot("trend_comparison.pdf")

.. figure:: trend_comparison.png
   :scale: 80 %
   :align: center
   :alt: SIR-SI Diffusion Trend Comparison Example

   SIR-SI Diffusion Trend Comparison Example.


text:
@interface WLCellSectionBaseModel : NSObject

@property (nonatomic, strong) NSMutableArray *models;

@end


text:
layout: post
title:  "Control Flames"
date:   2015-11-20
tags: [druid, sorcerer, wizard, level0]
---

**Transmutation cantrip**

**Casting Time**: 1 action

**Range**: 60 feet

**Components**: S

**Duration**: Instantaneous or 1 hour (see below)

You choose nonmagical flame that you can see within range and that fits within a 5-foot cube. You affect in in one of the following ways:

* You instantaneously expand the flame 5 feet in one direction, provided that wood or other fuel is present in the new location.
* You instantaneously extinguish the flames within the cube.
* You double or halve the area of bright light and dim light cast by the flame, change its color, or both. The change lasts for 1 hour.
* You cause simple shapes--such as the vague form of a creature, an inanimate object, or a location--to appear within the flames and animate as you like. The shapes last for 1 hour.

If you cast this spell multiple times, you can have up to three of its non-instantaneous effects active at a time, and you can dismiss such an effect as an action.


text:
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Localization;
using Orchard.DisplayManagement.Handlers;
using Orchard.DisplayManagement.ModelBinding;
using Orchard.DisplayManagement.Views;
using Orchard.Queries.ViewModels;

namespace Orchard.Queries.Drivers
{
    public class QueryDisplayDriver : DisplayDriver<Query>
    {
        private readonly IStringLocalizer<QueryDisplayDriver> S;

        public QueryDisplayDriver(IStringLocalizer<QueryDisplayDriver> stringLocalizer)
        {
            S = stringLocalizer;
        }

        public override IDisplayResult Display(Query query, IUpdateModel updater)
        {
            return Combine(
                Shape("Query_Fields_SummaryAdmin", model =>
                {
                    model.Name = query.Name;
                    model.Source = query.Source;
                    model.Query = query;

                    return Task.CompletedTask;
                }).Location("Content:1"),
                Shape("Query_Buttons_SummaryAdmin", model =>
                {
                    model.Name = query.Name;
                    model.Source = query.Source;
                    model.Query = query;

                    return Task.CompletedTask;
                }).Location("Actions:5")
            );
        }

        public override IDisplayResult Edit(Query query, IUpdateModel updater)
        {
            return Combine(
                Shape<EditQueryViewModel>("Query_Fields_Edit", model =>
                {
                    model.Name = query.Name;
                    model.Source = query.Source;
                    model.Query = query;
                }).Location("Content:1"),
                Shape<EditQueryViewModel>("Query_Fields_Buttons", model =>
                {
                    model.Name = query.Name;
                    model.Source = query.Source;
                    model.Query = query;
                }).Location("Actions:5")
            );
        }

        public override async Task<IDisplayResult> UpdateAsync(Query model, IUpdateModel updater)
        {
            await updater.TryUpdateModelAsync(model, Prefix, m => m.Name, m => m.Source);

            if (String.IsNullOrEmpty(model.Name))
            {
                updater.ModelState.AddModelError(nameof(model.Name), S["Name is required"]);
            }

            return await EditAsync(model, updater);
        }
    }
}


text:
Welcome to Calchylus's documentation!
=====================================

``calchylus`` is a computer installable `Hy`_ module that is used to evaluate
Lambda expressions, and furthermore through this documentation, shine light to
the basics of Lambda calculus (also written as λ-calculus).

$$\\Large ϒ = 𝜆x.(𝜆y.x \\space (y \\space y)) \\space (𝜆y.x \\space (y \\space y))$$

Contents
--------

.. toctree::
   :maxdepth: 3

   intro
   quick
   theory/history
   theory/concepts
   expressions
   native
   evaluation
   inits
   macros
   tests
   references

.. _Hy: http://docs.hylang.org


text:
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools" android:id="@+id/fragment"
    android:name="com.heineck.myimageviewsample.MainActivityFragment"
    tools:layout="@layout/fragment_main" android:layout_width="match_parent"
    android:layout_height="match_parent" />


text:
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageFilter.h"
#include "include/core/SkImageInfo.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/effects/SkImageFilters.h"
#include "tools/ToolUtils.h"

#include <initializer_list>
#include <utility>

static sk_sp<SkImage> make_image(SkCanvas* canvas, int direction) {
    SkImageInfo info = SkImageInfo::MakeN32Premul(250, 200);
    auto        surface = ToolUtils::makeSurface(canvas, info);
    SkCanvas* c = surface->getCanvas();
    SkPaint paint;
    paint.setAntiAlias(true);

    const SkColor colors[] = {
        SK_ColorRED, SK_ColorBLUE, SK_ColorGREEN, SK_ColorYELLOW, SK_ColorBLACK
    };

    int width = 25;
    bool xDirection = (direction & 0x1) == 1;
    bool yDirection = (direction & 0x2) == 2;
    if (xDirection) {
        for (int x = 0; x < info.width(); x += width) {
            paint.setColor(colors[x/width % 5]);
            if (yDirection) {
                paint.setAlphaf(0.5f);
            }
            c->drawRect(SkRect::MakeXYWH(x, 0, width, info.height()), paint);
        }
    }

    if (yDirection) {
        for (int y = 0; y < info.height(); y += width) {
            paint.setColor(colors[y/width % 5]);
            if (xDirection) {
                paint.setAlphaf(0.5f);
            }
            c->drawRect(SkRect::MakeXYWH(0, y, info.width(), width), paint);
        }
    }
    return surface->makeImageSnapshot();
}

static void draw_image(SkCanvas* canvas, const sk_sp<SkImage> image, sk_sp<SkImageFilter> filter) {
    SkAutoCanvasRestore acr(canvas, true);
    SkPaint paint;
    paint.setImageFilter(std::move(filter));

    canvas->translate(SkIntToScalar(30), 0);
    canvas->clipRect(SkRect::MakeIWH(image->width(),image->height()));
    canvas->drawImage(image, 0, 0, &paint);
}

namespace skiagm {

// This GM draws a colorful grids with different blur settings.
class ImageBlurRepeatModeGM : public GM {
public:
    ImageBlurRepeatModeGM() {
        this->setBGColor(0xFFCCCCCC);
    }

protected:

    SkString onShortName() override {
        return SkString("imageblurrepeatmode");
    }

    SkISize onISize() override {
        return SkISize::Make(850, 920);
    }

    bool runAsBench() const override { return true; }

    void onDraw(SkCanvas* canvas) override {
        sk_sp<SkImage> image[] =
                { make_image(canvas, 1), make_image(canvas, 2), make_image(canvas, 3) };

        canvas->translate(0, 30);
        // Test different kernel size, including the one to launch 2d Gaussian
        // blur.
        for (auto sigma: { 0.6f, 3.0f, 8.0f, 20.0f }) {
            canvas->save();
            sk_sp<SkImageFilter> filter(
                  SkImageFilters::Blur(sigma, 0.0f, SkTileMode::kRepeat, nullptr));
            draw_image(canvas, image[0], std::move(filter));
            canvas->translate(image[0]->width() + 20, 0);

            filter = SkImageFilters::Blur(0.0f, sigma, SkTileMode::kRepeat, nullptr);
            draw_image(canvas, image[1], std::move(filter));
            canvas->translate(image[1]->width() + 20, 0);

            filter = SkImageFilters::Blur(sigma, sigma, SkTileMode::kRepeat, nullptr);
            draw_image(canvas, image[2], std::move(filter));
            canvas->translate(image[2]->width() + 20, 0);

            canvas->restore();
            canvas->translate(0, image[0]->height() + 20);
        }
    }

private:
    typedef GM INHERITED;
};

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

DEF_GM(return new ImageBlurRepeatModeGM;)
}


text:
'use strict';

var ngModule = require('../module');

ngModule.animation('.slide-animation', [
  function() {
    return {
      enter: function(element, doneFn) {
        $(element).hide().slideDown(350, doneFn);
      },
      leave: function(element, doneFn) {
        $(element).slideUp(350, doneFn);
      }
    };
  }
]);


text:
from __future__ import unicode_literals

from django.apps import AppConfig

class CatalogueConfig(AppConfig):
    name = 'catalogue'


text:
(function(window) {
  var List = (function() {
    function List() {
      this.items = [];
    }
    List.prototype = {
      add: function(item) {
        this.items.push(item);
      },
      remove: function(item) {
        var indexOf = this.items.indexOf(item);
        if (indexOf !== -1) {
          this.items.splice(indexOf, 1);
        }
      },
      find: function(callback, action) {
        var callbackReturn,
            items = this.items,
            length = items.length,
            matches = [],
            i = 0;

        for(; i < length; i++) {
          callbackReturn = callback(items[i], i);
          if (callbackReturn) {
            matches.push(items[i]);
          }
        }

        if (action) {
          action.call(this, matches);
        }

        return matches;
      }
    };
    return List;
  }());

  List.create = function() {
    return new List();
  };

  window.List = List;

}(window));


text:
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))

require "rspec"
require "startup_giraffe/facebook_user"
require "factory_girl"
require "fb_graph"

# Set the database that the spec suite connects to.
Mongoid.configure do |config|
  config.connect_to("facebook_user_test", consistency: :strong)
end

FactoryGirl.definition_file_paths << File.expand_path("../factories", __FILE__)
FactoryGirl.find_definitions

RSpec.configure do |config|
  config.order = "random"

  # Drop all collections and clear the identity map before each spec.
  config.before(:each) do
    Mongoid.purge!
    Mongoid::IdentityMap.clear
  end
end

ENV['FACEBOOK_APP_ID'] ||= "582610595105782"
ENV['FACEBOOK_SECRET'] ||= "bb6671ae47cad793658d5a5816e6f43a"
$fb_app = FbGraph::Application.new( ENV['FACEBOOK_APP_ID'], :secret => ENV['FACEBOOK_SECRET'] )
$fb_auth = FbGraph::Auth.new( ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_SECRET'] )


text:
My config file and install script for:

- [vim](vimrc?raw=true)
- [bash](bashrc?raw=true)
- [tmux](tmux.conf?raw=true)
- [git](gitconfig?raw=true)
- [ssh](sshrc?raw=true)
- [ubuntu-install](ubuntu?raw=true)


text:
using _05.Security_Door.Interfaces;

namespace _05.Security_Door.Controllers
{
    public class SecurityManager
    {
        private IAccessProvider accessProvider;

        public SecurityManager(IAccessProvider accessProvider)
        {
            this.accessProvider = accessProvider;
        }

        public void Check()
        {
            this.accessProvider.ValidateUser();
        }
    }
}


text:
title: Using Objects for Lookups
localeTitle: 使用对象进行查找
---
## 使用对象进行查找

这是一个例子:

```javascript
// Setup
 function phoneticLookup(val) {
  var result = "";

  // Only change code below this line
  switch(val) {
    case "alpha":
      result = "Adams";
      break;
    case "bravo":
      result = "Boston";
      break;
    case "charlie":
      result = "Chicago";
      break;
    case "delta":
      result = "Denver";
      break;
    case "echo":
      result = "Easy";
      break;
    case "foxtrot":
      result = "Frank";
  }

  // Only change code above this line
  return result;
 }

 // Change this value to test
 phoneticLookup("charlie");
```

这是一个解决方案: 我们在这里不做任何改动:

```javascript
function phoneticLookup(val) {
  var result = "";
```

我们需要将switch语句转换为对象。将所有`case`值传输到对象属性:

```javascript
function phoneticLookup(val) {
  var result = "";
  var lookup = {
    "alpha": "Adams",
    "bravo": "Boston",
    "charlie": "Chicago",
    "delta": "Denver",
    "echo": "Easy",
    "foxtrot": "Frank"
  };
  ```
 After converting our case statements into object properties you can make use of the variable `result` to let the function return the correct value.
```

JavaScript的 result = lookup \[val\]; \`\`\`

·在[repl.it上](https://repl.it/@AdrianSkar/Using-objects-for-lookups)运行代码。

### 资源

*   ["JavaScript对象基础" - _MDN JavaScript参考_](https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics)


text:
import logging

from tempest.api.queuing import base
from tempest.common.utils import data_utils
from tempest import config
from tempest import test

LOG = logging.getLogger(__name__)
CONF = config.CONF

class TestMessages(base.BaseQueuingTest):
    _interface = 'json'

    @classmethod
    def setUpClass(cls):
        super(TestMessages, cls).setUpClass()
        cls.queue_name = data_utils.rand_name('Queues-Test')
        # Create Queue
        cls.client.create_queue(cls.queue_name)

    def _post_messages(self, repeat=CONF.queuing.max_messages_per_page):
        message_body = self.generate_message_body(repeat=repeat)
        resp, body = self.post_messages(queue_name=self.queue_name,
                                        rbody=message_body)
        return resp, body

    @test.attr(type='smoke')
    def test_post_messages(self):
        # Post Messages
        resp, _ = self._post_messages()

        # Get on the posted messages
        message_uri = resp['location']
        resp, _ = self.client.get_multiple_messages(message_uri)
        # The test has an assertion here, because the response cannot be 204
        # in this case (the client allows 200 or 204 for this API call).
        self.assertEqual('200', resp['status'])

    @test.attr(type='smoke')
    def test_list_messages(self):
        # Post Messages
        self._post_messages()

        # List Messages
        resp, _ = self.list_messages(queue_name=self.queue_name)
        # The test has an assertion here, because the response cannot be 204
        # in this case (the client allows 200 or 204 for this API call).
        self.assertEqual('200', resp['status'])

    @test.attr(type='smoke')
    def test_get_message(self):
        # Post Messages
        _, body = self._post_messages()
        message_uri = body['resources'][0]

        # Get posted message
        resp, _ = self.client.get_single_message(message_uri)
        # The test has an assertion here, because the response cannot be 204
        # in this case (the client allows 200 or 204 for this API call).
        self.assertEqual('200', resp['status'])

    @test.attr(type='smoke')
    def test_get_multiple_messages(self):
        # Post Messages
        resp, _ = self._post_messages()
        message_uri = resp['location']

        # Get posted messages
        resp, _ = self.client.get_multiple_messages(message_uri)
        # The test has an assertion here, because the response cannot be 204
        # in this case (the client allows 200 or 204 for this API call).
        self.assertEqual('200', resp['status'])

    @test.attr(type='smoke')
    def test_delete_single_message(self):
        # Post Messages
        _, body = self._post_messages()
        message_uri = body['resources'][0]

        # Delete posted message & verify the delete operration
        self.client.delete_messages(message_uri)

        message_uri = message_uri.replace('/messages/', '/messages?ids=')
        resp, _ = self.client.get_multiple_messages(message_uri)
        # The test has an assertion here, because the response has to be 204
        # in this case (the client allows 200 or 204 for this API call).
        self.assertEqual('204', resp['status'])

    @test.attr(type='smoke')
    def test_delete_multiple_messages(self):
        # Post Messages
        resp, _ = self._post_messages()
        message_uri = resp['location']

        # Delete multiple messages
        self.client.delete_messages(message_uri)
        resp, _ = self.client.get_multiple_messages(message_uri)
        # The test has an assertion here, because the response has to be 204
        # in this case (the client allows 200 or 204 for this API call).
        self.assertEqual('204', resp['status'])

    @classmethod
    def tearDownClass(cls):
        cls.delete_queue(cls.queue_name)
        super(TestMessages, cls).tearDownClass()


text:
module TranslationScope

  def ts(what, options = {})
    action = action_name
    # if validation fails we want translation in "new" scope, not "create"
    action = "new" if action == "create"
    action = "edit" if action == "update"

    path = "#{params[:controller]}/#{action}"
    path = "#{params[:controller]}" if options[:action] == false
    path = "#{params[:controller]}/#{options[:action]}" if options[:action].class == String

    path = options[:scope] if options[:scope]
    scope = path.gsub('/','_')

    return I18n.t(scope + "." + what)
  end

end


text:
@class Snake;
@class StarDistributor;

@interface GameScene : SKScene <SKPhysicsContactDelegate> {
    double accelX;
    double accelY;
    CGPoint lastTouchLocation;
    BOOL isTouching;
    int snakeStepsStart;
    int snakeSteps;
}

@property (nonatomic, strong) Snake *snake;
@property (nonatomic, strong) CMMotionManager *motionManager;
@property (nonatomic, strong) id <SnakeControl> snakeController;
@property (nonatomic, strong) StarDistributor* starDistributor;
@property (nonatomic) BOOL snakeIsActive;
@property (nonatomic) BOOL snakeIsDead;
@property (nonatomic, weak) UIViewController *presentingViewController;
@property (nonatomic, strong) SKLabelNode *score;

@end


text:
import '@kitware/vtk.js/favicon';

// Load the rendering pieces we want to use (for both WebGL and WebGPU)
import '@kitware/vtk.js/Rendering/Profiles/Geometry';

import '@kitware/vtk.js/IO/Core/DataAccessHelper/HttpDataAccessHelper'; // HTTP + zip

import vtkActor from '@kitware/vtk.js/Rendering/Core/Actor';
import vtkHttpDataSetReader from '@kitware/vtk.js/IO/Core/HttpDataSetReader';
import vtkFullScreenRenderWindow from '@kitware/vtk.js/Rendering/Misc/FullScreenRenderWindow';
import vtkMapper from '@kitware/vtk.js/Rendering/Core/Mapper';
import vtkCubeSource from '@kitware/vtk.js/Filters/Sources/CubeSource';
import vtkTexture from '@kitware/vtk.js/Rendering/Core/Texture';
import vtkDeviceOrientationToCamera from '@kitware/vtk.js/Interaction/Misc/DeviceOrientationToCamera';

// ----------------------------------------------------------------------------
// Standard rendering code setup
// ----------------------------------------------------------------------------

const fullScreenRenderer = vtkFullScreenRenderWindow.newInstance({
  background: [0, 0, 0],
});
const renderer = fullScreenRenderer.getRenderer();
const renderWindow = fullScreenRenderer.getRenderWindow();
const interactor = fullScreenRenderer.getInteractor();

// ----------------------------------------------------------------------------
// Example code
// ----------------------------------------------------------------------------

let cameraListenerId = -1;

let nbTextureLoaded = 0;
const texture = vtkTexture.newInstance();
const texturePathList = [
  `${__BASE_PATH__}/data/skybox/mountains/right.jpg`,
  `${__BASE_PATH__}/data/skybox/mountains/left.jpg`,
  `${__BASE_PATH__}/data/skybox/mountains/bottom.jpg`,
  `${__BASE_PATH__}/data/skybox/mountains/top.jpg`,
  `${__BASE_PATH__}/data/skybox/mountains/front.jpg`,
  `${__BASE_PATH__}/data/skybox/mountains/back.jpg`,
];

const cube = vtkCubeSource.newInstance();
cube.setGenerate3DTextureCoordinates(true);

const mapper = vtkMapper.newInstance();
mapper.setInputConnection(cube.getOutputPort());

const actor = vtkActor.newInstance();
actor.getProperty().setDiffuse(0.0);
actor.getProperty().setAmbient(1.0);
actor.setMapper(mapper);
actor.addTexture(texture);

function render() {
  renderer.resetCameraClippingRange();
  renderWindow.render();
}

function dataReady() {
  const bounds = renderer.computeVisiblePropBounds();
  const scale = 500;
  cube.setBounds(
    bounds[0] * scale,
    bounds[1] * scale,
    bounds[2] * scale,
    bounds[3] * scale,
    bounds[4] * scale,
    bounds[5] * scale
  );
  renderer.addActor(actor);

  renderer.getActiveCamera().setPhysicalViewUp(0, -1, 0);
  renderer.getActiveCamera().setPhysicalViewNorth(0, 0, 1);
  renderer.getActiveCamera().setFocalPoint(0, 0, 1);
  renderer.getActiveCamera().setPosition(0, 0, -50);
  renderer.getActiveCamera().setViewAngle(80);
  renderer.resetCameraClippingRange();
  render();
}

function loadTexture(url, index) {
  const reader = vtkHttpDataSetReader.newInstance({ fetchGzip: true });
  reader.setUrl(url, { loadData: true }).then(() => {
    const dataset = reader.getOutputData();
    const scalarName = dataset.getPointData().getArrayByIndex(0).getName();
    dataset.getPointData().setActiveScalars(scalarName);
    texture.setInputData(dataset, index);
    nbTextureLoaded += 1;
    if (nbTextureLoaded === texturePathList.length) {
      dataReady();
    }
  });
}

/* eslint-disable no-alert */

function validateMotionDetectionAgain() {
  if (!vtkDeviceOrientationToCamera.isDeviceOrientationSupported()) {
    vtkDeviceOrientationToCamera.removeCameraToSynchronize(cameraListenerId);
    vtkDeviceOrientationToCamera.removeWindowListeners();
    alert('No motion have been detected. Freeing the camera.');
  }
}

// Trigger the loading of the texture in parallel
texturePathList.forEach(loadTexture);

// If device support motion bind it to the camera
if (vtkDeviceOrientationToCamera.isDeviceOrientationSupported()) {
  vtkDeviceOrientationToCamera.addWindowListeners();
  cameraListenerId = vtkDeviceOrientationToCamera.addCameraToSynchronize(
    interactor,
    renderer.getActiveCamera(),
    renderer.resetCameraClippingRange
  );
} else {
  alert(
    'Your device does not support motion detection so regular interaction will be available'
  );
}

/* eslint-enable no-alert */

setTimeout(validateMotionDetectionAgain, 100);


text:
#include <wchar.h>

/* Lower-case digits.  */
const wchar_t _itowa_lower_digits[36] attribute_hidden
	= L"0123456789abcdefghijklmnopqrstuvwxyz";
/* Upper-case digits.  */
const wchar_t _itowa_upper_digits[36] attribute_hidden
	= L"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";


text:
package com.yahoo.vespa.clustercontroller.core;

import com.yahoo.vdslib.state.ClusterState;
import com.yahoo.vdslib.state.Node;
import com.yahoo.vdslib.state.NodeState;
import com.yahoo.vdslib.state.NodeType;
import com.yahoo.vdslib.state.State;
import com.yahoo.vespa.clustercontroller.utils.util.ComponentMetricReporter;
import com.yahoo.vespa.clustercontroller.utils.util.MetricReporter;

import java.time.Duration;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedSet;
import java.util.TreeSet;
import java.util.function.BooleanSupplier;

public class MetricUpdater {

    private final ComponentMetricReporter metricReporter;

    public MetricUpdater(MetricReporter metricReporter, int controllerIndex, String clusterName) {
        this.metricReporter = new ComponentMetricReporter(metricReporter, "cluster-controller.");
        this.metricReporter.addDimension("controller-index", String.valueOf(controllerIndex));
        this.metricReporter.addDimension("clusterid", clusterName);
    }

    public MetricReporter.Context createContext(Map<String, String> dimensions) {
        return metricReporter.createContext(dimensions);
    }

    private static int nodesInAvailableState(Map<State, Integer> nodeCounts) {
        return nodeCounts.getOrDefault(State.INITIALIZING, 0)
                + nodeCounts.getOrDefault(State.RETIRED, 0)
                + nodeCounts.getOrDefault(State.UP, 0)
                // Even though technically not true, we here treat Maintenance as an available state to
                // avoid triggering false alerts when a node is taken down transiently in an orchestrated manner.
                + nodeCounts.getOrDefault(State.MAINTENANCE, 0);
    }

    public void updateClusterStateMetrics(ContentCluster cluster, ClusterState state, ResourceUsageStats resourceUsage) {
        Map<String, String> dimensions = new HashMap<>();
        dimensions.put("cluster", cluster.getName());
        dimensions.put("clusterid", cluster.getName());
        for (NodeType type : NodeType.getTypes()) {
            dimensions.put("node-type", type.toString().toLowerCase());
            MetricReporter.Context context = createContext(dimensions);
            Map<State, Integer> nodeCounts = new HashMap<>();
            for (State s : State.values()) {
                nodeCounts.put(s, 0);
            }
            for (Integer i : cluster.getConfiguredNodes().keySet()) {
                NodeState s = state.getNodeState(new Node(type, i));
                Integer count = nodeCounts.get(s.getState());
                nodeCounts.put(s.getState(), count + 1);
            }
            for (State s : State.values()) {
                String name = s.toString().toLowerCase() + ".count";
                metricReporter.set(name, nodeCounts.get(s), context);
            }

            final int availableNodes = nodesInAvailableState(nodeCounts);
            final int totalNodes = Math.max(cluster.getConfiguredNodes().size(), 1); // Assumes 1-1 between distributor and storage
            metricReporter.set("available-nodes.ratio", (double)availableNodes / totalNodes, context);
        }
        dimensions.remove("node-type");
        MetricReporter.Context context = createContext(dimensions);
        metricReporter.add("cluster-state-change", 1, context);

        metricReporter.set("resource_usage.max_disk_utilization", resourceUsage.getMaxDiskUtilization(), context);
        metricReporter.set("resource_usage.max_memory_utilization", resourceUsage.getMaxMemoryUtilization(), context);
        metricReporter.set("resource_usage.nodes_above_limit", resourceUsage.getNodesAboveLimit(), context);
        metricReporter.set("resource_usage.disk_limit", resourceUsage.getDiskLimit(), context);
        metricReporter.set("resource_usage.memory_limit", resourceUsage.getMemoryLimit(), context);
    }

    public void updateMasterElectionMetrics(Map<Integer, Integer> data) {
        Map<Integer, Integer> voteCounts = new HashMap<>();
        for(Integer i : data.values()) {
            int count = (voteCounts.get(i) == null ? 0 : voteCounts.get(i));
            voteCounts.put(i, count + 1);
        }
        SortedSet<Integer> counts = new TreeSet<>(voteCounts.values());
        if (counts.size() > 1 && counts.first() > counts.last()) {
            throw new IllegalStateException("Assumed smallest count is sorted first");
        }
        int maxCount = counts.isEmpty() ? 0 : counts.last();
        metricReporter.set("agreed-master-votes", maxCount);
    }

    public void updateMasterState(boolean isMaster) {
        metricReporter.set("is-master", isMaster ? 1 : 0);
    }

    public void addTickTime(long millis, boolean didWork) {
        if (didWork) {
            metricReporter.set("busy-tick-time-ms", millis);
        } else {
            metricReporter.set("idle-tick-time-ms", millis);
        }
    }

    public void recordNewNodeEvent() {
        // TODO(hakonhall): Replace add() with a persistent aggregate metric.
        metricReporter.add("node-event", 1);
    }

    public void updateRemoteTaskQueueSize(int size) {
        metricReporter.set("remote-task-queue.size", size);
    }

    public boolean forWork(String workId, BooleanSupplier work) {
        long startNanos = System.nanoTime();
        boolean didWork = work.getAsBoolean();
        double seconds = Duration.ofNanos(System.nanoTime() - startNanos).toMillis() / 1000.;

        MetricReporter.Context context = createContext(Map.of("didWork", Boolean.toString(didWork),
                                                              "workId", workId));
        metricReporter.set("work-ms", seconds, context);

        return didWork;
    }
}


text:
namespace blink {

DOMFileSystem* DevToolsHostFileSystem::isolatedFileSystem(DevToolsHost& host, const String& fileSystemName, const String& rootURL)
{
    ExecutionContext* context = host.frontendFrame()->document();
    return DOMFileSystem::create(context, fileSystemName, FileSystemTypeIsolated, KURL(ParsedURLString, rootURL));
}

void DevToolsHostFileSystem::upgradeDraggedFileSystemPermissions(DevToolsHost& host, DOMFileSystem* domFileSystem)
{
    RefPtr<JSONObject> message = JSONObject::create();
    message->setNumber("id", 0);
    message->setString("method", "upgradeDraggedFileSystemPermissions");
    RefPtr<JSONArray> params = JSONArray::create();
    message->setArray("params", params);
    params->pushString(domFileSystem->rootURL().string());
    host.sendMessageToEmbedder(message->toJSONString());
}

} // namespace blink


text:
import { test } from "@hipanel-core/fixtures";
import {expect, Page} from "@playwright/test";
import BillForm from "@hipanel-module-finance/page/bill/BillForm";
import BillHelper from "@hipanel-module-finance/Helper/BillHelper";
import Bill from "@hipanel-module-finance/model/Bill";
import Charge from "@hipanel-module-finance/model/Charge";
import BillView from "@hipanel-module-finance/page/bill/BillView";
import Index from "@hipanel-core/page/Index";
import Alert from "@hipanel-core/ui/Alert";

let billId;

const bill: Bill = {
  client: "hipanel_test_user",
  type: "Block Storage HDD L2",
  currency: "$",
  sum: -762.7,
  quantity: 1,
  charges: [
    {
      class: "Client",
      object: "hipanel_test_user1",
      type: "Cash",
      sum: 712.80,
      quantity: 1,
    },
    {
      class: "Client",
      object: "hipanel_test_user2",
      type: "PayPal",
      sum: 49.90,
      quantity: 1,
    }
  ],
};

test("Create and copy bill with charges @hipanel-module-finance @seller", async ({ sellerPage }) => {

  const billHelper = new BillHelper(sellerPage);
  const billForm = new BillForm(sellerPage);
  const indexPage = new Index(sellerPage);

  await billHelper.gotoCreateBill();
  await billForm.fillBill(bill);
  const billId = await billForm.saveBill();

  await indexPage.chooseNumberRowOnTable(1);
  await billHelper.copyBill();
  await Alert.on(sellerPage).hasText('Bill was created successfully');
  await expect(sellerPage.url()).toContain("finance/bill?id_in");

  await billHelper.ensureBillDidntChange(bill, billId);

});


text:
using Spark.Engine.Core;
using Spark.Engine.Interfaces;
using Spark.Engine.Model;
using Spark.Engine.Store.Interfaces;

namespace Spark.Store.Sql
{
    public class SqlScopedIndexStore : IIndexStore
    {
        public void Save(IndexValue indexValue)
        {
        }

        public void Delete(Entry entry)
        {
        }

        public void Clean()
        {
        }
    }
}


text:
package com.amazonaws.services.connect.model.transform;

import javax.annotation.Generated;

import com.amazonaws.SdkClientException;
import com.amazonaws.services.connect.model.*;

import com.amazonaws.protocol.*;
import com.amazonaws.annotation.SdkInternalApi;

/**
 * InstanceStatusReasonMarshaller
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
@SdkInternalApi
public class InstanceStatusReasonMarshaller {

    private static final MarshallingInfo<String> MESSAGE_BINDING = MarshallingInfo.builder(MarshallingType.STRING).marshallLocation(MarshallLocation.PAYLOAD)
            .marshallLocationName("Message").build();

    private static final InstanceStatusReasonMarshaller instance = new InstanceStatusReasonMarshaller();

    public static InstanceStatusReasonMarshaller getInstance() {
        return instance;
    }

    /**
     * Marshall the given parameter object.
     */
    public void marshall(InstanceStatusReason instanceStatusReason, ProtocolMarshaller protocolMarshaller) {

        if (instanceStatusReason == null) {
            throw new SdkClientException("Invalid argument passed to marshall(...)");
        }

        try {
            protocolMarshaller.marshall(instanceStatusReason.getMessage(), MESSAGE_BINDING);
        } catch (Exception e) {
            throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
        }
    }

}