text:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ACE2004.entityAnnotation>
	<document docName="20001115_AFP_ARB.0093.eng">
		<annotation>
			<mention>Bandar Seri Begawan</mention>
			<wikiName>Bandar Seri Begawan</wikiName>
			<offset>2</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>29</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>United States</mention>
			<wikiName>United States</wikiName>
			<offset>41</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>James Stewart</mention>
			<wikiName>NIL</wikiName>
			<offset>335</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>White House</mention>
			<wikiName>White House</wikiName>
			<offset>354</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Palestinian Superior Security Council</mention>
			<wikiName>Palestinian National Council</wikiName>
			<offset>1200</offset>
			<length>37</length>
		</annotation>
		<annotation>
			<mention>area "A</mention>
			<wikiName>NIL</wikiName>
			<offset>1307</offset>
			<length>7</length>
		</annotation>
	</document>
	<document docName="PRI20001128.2000.0055">
		<annotation>
			<mention>NPR news</mention>
			<wikiName>NPR</wikiName>
			<offset>18</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>30</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Steve Inski</mention>
			<wikiName>NIL</wikiName>
			<offset>288</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Miami Dade County</mention>
			<wikiName>Miami-Dade County, Florida</wikiName>
			<offset>513</offset>
			<length>17</length>
		</annotation>
		<annotation>
			<mention>Democrats</mention>
			<wikiName>Democratic Party (United States)</wikiName>
			<offset>600</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Palm Beach County</mention>
			<wikiName>Palm Beach County, Florida</wikiName>
			<offset>667</offset>
			<length>17</length>
		</annotation>
		<annotation>
			<mention>Al Gore</mention>
			<wikiName>Al Gore</wikiName>
			<offset>863</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Washington State</mention>
			<wikiName>Washington (state)</wikiName>
			<offset>1925</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Jennifer Nesan</mention>
			<wikiName>NIL</wikiName>
			<offset>2022</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Seattle</mention>
			<wikiName>Seattle</wikiName>
			<offset>2073</offset>
			<length>7</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0072.eng">
		<annotation>
			<mention>Baghdad</mention>
			<wikiName>Baghdad</wikiName>
			<offset>2</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>17</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Iraq</mention>
			<wikiName>Iraq</wikiName>
			<offset>128</offset>
			<length>4</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0210.eng">
		<annotation>
			<mention>Tallahassee</mention>
			<wikiName>Tallahassee, Florida</wikiName>
			<offset>2</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>United States</mention>
			<wikiName>United States</wikiName>
			<offset>15</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>37</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Supreme Court</mention>
			<wikiName>Supreme Court of Florida</wikiName>
			<offset>49</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Florida</mention>
			<wikiName>Florida</wikiName>
			<offset>66</offset>
			<length>7</length>
		</annotation>
	</document>
	<document docName="20000815_AFP_ARB.0071.eng">
		<annotation>
			<mention>Beirut</mention>
			<wikiName>Beirut</wikiName>
			<offset>2</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>15</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Lebanon</mention>
			<wikiName>Lebanon</wikiName>
			<offset>23</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Israel</mention>
			<wikiName>Israel</wikiName>
			<offset>140</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Abbad sector</mention>
			<wikiName>NIL</wikiName>
			<offset>719</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Wadi Marjayoun</mention>
			<wikiName>NIL</wikiName>
			<offset>1501</offset>
			<length>14</length>
		</annotation>
	</document>
	<document docName="VOA20001020.2100.1853">
		<annotation>
			<mention>navy</mention>
			<wikiName>United States Navy</wikiName>
			<offset>8</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>USS Cole</mention>
			<wikiName>USS Cole (DDG-67)</wikiName>
			<offset>26</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Yemen</mention>
			<wikiName>Yemen</wikiName>
			<offset>93</offset>
			<length>5</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0184.eng">
		<annotation>
			<mention>Jerusalem</mention>
			<wikiName>Jerusalem</wikiName>
			<offset>2</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>19</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Hussein Abiyat</mention>
			<wikiName>NIL</wikiName>
			<offset>1408</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>West Bank</mention>
			<wikiName>West Bank</wikiName>
			<offset>1607</offset>
			<length>9</length>
		</annotation>
	</document>
	<document docName="PRI20001122.2000.0320">
		<annotation>
			<mention>Yasser Arafat</mention>
			<wikiName>Yasser Arafat</wikiName>
			<offset>35</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Corey Flintoff</mention>
			<wikiName>Corey Flintoff</wikiName>
			<offset>332</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>NPR news</mention>
			<wikiName>NPR</wikiName>
			<offset>348</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>358</offset>
			<length>10</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0061.eng">
		<annotation>
			<mention>Gaza</mention>
			<wikiName>Gaza</wikiName>
			<offset>2</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>14</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Palestinian Superior Security Council</mention>
			<wikiName>NIL</wikiName>
			<offset>84</offset>
			<length>37</length>
		</annotation>
		<annotation>
			<mention>area "A"</mention>
			<wikiName>NIL</wikiName>
			<offset>191</offset>
			<length>8</length>
		</annotation>
	</document>
	<document docName="20000715_AFP_ARB.0072.eng">
		<annotation>
			<mention>Jerusalem</mention>
			<wikiName>Jerusalem</wikiName>
			<offset>2</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>18</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Iran</mention>
			<wikiName>Iran</wikiName>
			<offset>106</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>Moscow</mention>
			<wikiName>Moscow</wikiName>
			<offset>877</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Ministry of Defense</mention>
			<wikiName>Ministry of Defense and Armed Forces Logistics (Iran)</wikiName>
			<offset>2212</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>Tehran Radio</mention>
			<wikiName>NIL</wikiName>
			<offset>2237</offset>
			<length>12</length>
		</annotation>
	</document>
	<document docName="20001015_AFP_ARB.0053.eng">
		<annotation>
			<mention>Beirut</mention>
			<wikiName>Beirut</wikiName>
			<offset>2</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>16</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Saudi Soccer Federation</mention>
			<wikiName>NIL</wikiName>
			<offset>28</offset>
			<length>23</length>
		</annotation>
		<annotation>
			<mention>Youth and Sports Bureau</mention>
			<wikiName>NIL</wikiName>
			<offset>341</offset>
			<length>23</length>
		</annotation>
		<annotation>
			<mention>Lebanon</mention>
			<wikiName>Lebanon</wikiName>
			<offset>1089</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Emirates</mention>
			<wikiName>United Arab Emirates</wikiName>
			<offset>1231</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Mexico</mention>
			<wikiName>Mexico</wikiName>
			<offset>1362</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Bangkok</mention>
			<wikiName>Bangkok</wikiName>
			<offset>1700</offset>
			<length>7</length>
		</annotation>
	</document>
	<document docName="VOA20001220.2000.0060">
		<annotation>
			<mention>VOA News</mention>
			<wikiName>Voice of America</wikiName>
			<offset>19</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>America</mention>
			<wikiName>United States</wikiName>
			<offset>394</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Texas</mention>
			<wikiName>Texas</wikiName>
			<offset>888</offset>
			<length>5</length>
		</annotation>
	</document>
	<document docName="chtb_165.eng">
		<annotation>
			<mention>Xinhua News Agency</mention>
			<wikiName>Xinhua News Agency</wikiName>
			<offset>2</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Shanghai</mention>
			<wikiName>Shanghai</wikiName>
			<offset>22</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>HSBC</mention>
			<wikiName>HSBC</wikiName>
			<offset>79</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>China Shipping Mansion</mention>
			<wikiName>International Ocean Shipping Building</wikiName>
			<offset>121</offset>
			<length>22</length>
		</annotation>
		<annotation>
			<mention>Pudong Lujiazui financial trading district</mention>
			<wikiName>Lujaizui</wikiName>
			<offset>151</offset>
			<length>42</length>
		</annotation>
		<annotation>
			<mention>Pudong</mention>
			<wikiName>Pudong</wikiName>
			<offset>287</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>US</mention>
			<wikiName>United States</wikiName>
			<offset>404</offset>
			<length>2</length>
		</annotation>
		<annotation>
			<mention>Citibank</mention>
			<wikiName>Citibank</wikiName>
			<offset>409</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Hong Kong</mention>
			<wikiName>Hong Kong</wikiName>
			<offset>419</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Japan</mention>
			<wikiName>Japan</wikiName>
			<offset>437</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Tokyo Mitsubishi Bank</mention>
			<wikiName>The Bank of Tokyo-Mitsubishi UFJ</wikiName>
			<offset>445</offset>
			<length>21</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0089.eng">
		<annotation>
			<mention>Albus</mention>
			<wikiName>NIL</wikiName>
			<offset>2</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Lebanon</mention>
			<wikiName>Lebanon</wikiName>
			<offset>9</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>25</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Palestinian National Council</mention>
			<wikiName>Palestinian National Council</wikiName>
			<offset>198</offset>
			<length>28</length>
		</annotation>
		<annotation>
			<mention>Algeria</mention>
			<wikiName>Algeria</wikiName>
			<offset>230</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Albus Camp</mention>
			<wikiName>NIL</wikiName>
			<offset>292</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Souer</mention>
			<wikiName>Tyre, Lebanon</wikiName>
			<offset>308</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Beirut</mention>
			<wikiName>Beirut</wikiName>
			<offset>330</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Mohamed al-Dura</mention>
			<wikiName>Muhammad al-Durrah incident</wikiName>
			<offset>448</offset>
			<length>15</length>
		</annotation>
		<annotation>
			<mention>Saida</mention>
			<wikiName>Sidon</wikiName>
			<offset>708</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Lebanon</mention>
			<wikiName>Lebanon</wikiName>
			<offset>731</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Khalid Arif</mention>
			<wikiName>NIL</wikiName>
			<offset>966</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Jerusalem</mention>
			<wikiName>Jerusalem</wikiName>
			<offset>1318</offset>
			<length>9</length>
		</annotation>
	</document>
	<document docName="PRI20001201.2000.1828">
		<annotation>
			<mention>BBC News</mention>
			<wikiName>BBC News</wikiName>
			<offset>6</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>London</mention>
			<wikiName>London</wikiName>
			<offset>18</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>US Supreme Court</mention>
			<wikiName>Supreme Court of the United States</wikiName>
			<offset>63</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Judith Spencer</mention>
			<wikiName>NIL</wikiName>
			<offset>185</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Ruth Bater Ginsburg</mention>
			<wikiName>Ruth Bader Ginsburg</wikiName>
			<offset>437</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>Florida Supreme Court</mention>
			<wikiName>Supreme Court of Florida</wikiName>
			<offset>541</offset>
			<length>21</length>
		</annotation>
		<annotation>
			<mention>Sandra Day O'Connor</mention>
			<wikiName>Sandra Day O'Connor</wikiName>
			<offset>776</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>1115</offset>
			<length>10</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0060.eng">
		<annotation>
			<mention>Bandar Seri Begawan</mention>
			<wikiName>Bandar Seri Begawan</wikiName>
			<offset>2</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>29</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Sultanate of Brunei</mention>
			<wikiName>Brunei</wikiName>
			<offset>751</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>Iran</mention>
			<wikiName>Iran</wikiName>
			<offset>2438</offset>
			<length>4</length>
		</annotation>
	</document>
	<document docName="NYT20001124.2050.0257">
		<annotation>
			<mention>HONG KONG</mention>
			<wikiName>Hong Kong</wikiName>
			<offset>112</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Asia</mention>
			<wikiName>Asia</wikiName>
			<offset>147</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>International Monetary Fund</mention>
			<wikiName>International Monetary Fund</wikiName>
			<offset>552</offset>
			<length>27</length>
		</annotation>
		<annotation>
			<mention>David Robinson</mention>
			<wikiName>NIL</wikiName>
			<offset>883</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Philippines</mention>
			<wikiName>Philippines</wikiName>
			<offset>1076</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Taiwan</mention>
			<wikiName>Taiwan</wikiName>
			<offset>1089</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Indonesia</mention>
			<wikiName>Indonesia</wikiName>
			<offset>1101</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Chen Shui-bian</mention>
			<wikiName>Chen Shui-bian</wikiName>
			<offset>1242</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Malaysia</mention>
			<wikiName>Malaysia</wikiName>
			<offset>1358</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>South Korea</mention>
			<wikiName>South Korea</wikiName>
			<offset>1371</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Singapore</mention>
			<wikiName>Singapore</wikiName>
			<offset>1969</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Bloomberg News</mention>
			<wikiName>Bloomberg News</wikiName>
			<offset>2128</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>United States</mention>
			<wikiName>United States</wikiName>
			<offset>2264</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>China</mention>
			<wikiName>China</wikiName>
			<offset>2428</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Ian Perkin</mention>
			<wikiName>NIL</wikiName>
			<offset>2638</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Hong Kong General Chamber of Commerce</mention>
			<wikiName>Hong Kong General Chamber of Commerce</wikiName>
			<offset>2673</offset>
			<length>37</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0217.eng">
		<annotation>
			<mention>Bandar Seri Begawan</mention>
			<wikiName>Bandar Seri Begawan</wikiName>
			<offset>2</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>29</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Russia</mention>
			<wikiName>Russia</wikiName>
			<offset>98</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Coral Islands</mention>
			<wikiName>NIL</wikiName>
			<offset>221</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Brunei</mention>
			<wikiName>Brunei</wikiName>
			<offset>553</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Irkotsik</mention>
			<wikiName>Irkutsk</wikiName>
			<offset>636</offset>
			<length>8</length>
		</annotation>
	</document>
	<document docName="chtb_267.eng">
		<annotation>
			<mention>Xinhua News Agency</mention>
			<wikiName>Xinhua News Agency</wikiName>
			<offset>2</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Beijing</mention>
			<wikiName>Beijing</wikiName>
			<offset>22</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Weir Group</mention>
			<wikiName>Weir Group</wikiName>
			<offset>74</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>US</mention>
			<wikiName>United States</wikiName>
			<offset>92</offset>
			<length>2</length>
		</annotation>
		<annotation>
			<mention>Jiangsu Province</mention>
			<wikiName>Jiangsu</wikiName>
			<offset>155</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Electric Power Department</mention>
			<wikiName>NIL</wikiName>
			<offset>174</offset>
			<length>25</length>
		</annotation>
		<annotation>
			<mention>China</mention>
			<wikiName>China</wikiName>
			<offset>209</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Aixing Dan</mention>
			<wikiName>NIL</wikiName>
			<offset>288</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>International Co-operation Department</mention>
			<wikiName>NIL</wikiName>
			<offset>316</offset>
			<length>37</length>
		</annotation>
		<annotation>
			<mention>Electric Power Industry Ministry</mention>
			<wikiName>NIL</wikiName>
			<offset>361</offset>
			<length>32</length>
		</annotation>
		<annotation>
			<mention>Yizhong Company</mention>
			<wikiName>NIL</wikiName>
			<offset>1700</offset>
			<length>15</length>
		</annotation>
		<annotation>
			<mention>Rudong</mention>
			<wikiName>Rudong County</wikiName>
			<offset>1927</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Renzu Luo</mention>
			<wikiName>NIL</wikiName>
			<offset>2280</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Japan</mention>
			<wikiName>Japan</wikiName>
			<offset>2704</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>South Korea</mention>
			<wikiName>South Korea</wikiName>
			<offset>2711</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Taiwan</mention>
			<wikiName>Taiwan</wikiName>
			<offset>2727</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>John Weir</mention>
			<wikiName>NIL</wikiName>
			<offset>3100</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Brown</mention>
			<wikiName>NIL</wikiName>
			<offset>3174</offset>
			<length>5</length>
		</annotation>
	</document>
	<document docName="20001015_AFP_ARB.0229.eng">
		<annotation>
			<mention>London</mention>
			<wikiName>London</wikiName>
			<offset>2</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>16</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Baghdad</mention>
			<wikiName>Baghdad</wikiName>
			<offset>123</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Riyadh</mention>
			<wikiName>Riyadh</wikiName>
			<offset>164</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Riyadh International Airport</mention>
			<wikiName>King Khalid International Airport</wikiName>
			<offset>370</offset>
			<length>28</length>
		</annotation>
	</document>
	<document docName="chtb_227.eng">
		<annotation>
			<mention>International Correspondence Communication News Agency</mention>
			<wikiName>NIL</wikiName>
			<offset>841</offset>
			<length>54</length>
		</annotation>
		<annotation>
			<mention>Klelov</mention>
			<wikiName>NIL</wikiName>
			<offset>909</offset>
			<length>6</length>
		</annotation>
	</document>
	<document docName="NYT20001129.2040.0383">
		<annotation>
			<mention>TALLAHASSEE</mention>
			<wikiName>Tallahassee, Florida</wikiName>
			<offset>323</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Fla.</mention>
			<wikiName>Florida</wikiName>
			<offset>336</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>Supreme Court</mention>
			<wikiName>Supreme Court of Florida</wikiName>
			<offset>593</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>District Court of Appeal</mention>
			<wikiName>Florida District Courts of Appeal</wikiName>
			<offset>679</offset>
			<length>24</length>
		</annotation>
		<annotation>
			<mention>Barry Richard</mention>
			<wikiName>NIL</wikiName>
			<offset>1591</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Electoral College</mention>
			<wikiName>Electoral College (United States)</wikiName>
			<offset>2896</offset>
			<length>17</length>
		</annotation>
		<annotation>
			<mention>Kendall Coffey</mention>
			<wikiName>NIL</wikiName>
			<offset>2978</offset>
			<length>14</length>
		</annotation>
	</document>
	<document docName="NYT20001217.2241.0165">
		<annotation>
			<mention>Chicago O'Hare</mention>
			<wikiName>O'Hare International Airport</wikiName>
			<offset>539</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>La Guardia</mention>
			<wikiName>LaGuardia Airport</wikiName>
			<offset>558</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>New York</mention>
			<wikiName>New York City</wikiName>
			<offset>572</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>South</mention>
			<wikiName>Southern United States</wikiName>
			<offset>679</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Transportation Department</mention>
			<wikiName>United States Department of Transportation</wikiName>
			<offset>1018</offset>
			<length>25</length>
		</annotation>
		<annotation>
			<mention>Los Angeles International</mention>
			<wikiName>Los Angeles International Airport</wikiName>
			<offset>1664</offset>
			<length>25</length>
		</annotation>
		<annotation>
			<mention>Burbank</mention>
			<wikiName>Bob Hope Airport</wikiName>
			<offset>1725</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>John Wayne Airport</mention>
			<wikiName>John Wayne Airport</wikiName>
			<offset>1736</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Orange County</mention>
			<wikiName>Orange County, California</wikiName>
			<offset>1758</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Calif</mention>
			<wikiName>California</wikiName>
			<offset>1773</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Westchester County Airport</mention>
			<wikiName>Westchester County Airport</wikiName>
			<offset>1788</offset>
			<length>26</length>
		</annotation>
		<annotation>
			<mention>JFK</mention>
			<wikiName>John F. Kennedy International Airport</wikiName>
			<offset>1826</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Federal Aviation Administration</mention>
			<wikiName>Federal Aviation Administration</wikiName>
			<offset>2704</offset>
			<length>31</length>
		</annotation>
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>4586</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Aviation Consumer Protection Div</mention>
			<wikiName>Airline complaints</wikiName>
			<offset>4785</offset>
			<length>32</length>
		</annotation>
		<annotation>
			<mention>400 Seventh St. S.W.</mention>
			<wikiName>NIL</wikiName>
			<offset>4859</offset>
			<length>20</length>
		</annotation>
	</document>
	<document docName="APW20001001.2021.0521">
		<annotation>
			<mention>CAIRO</mention>
			<wikiName>Cairo</wikiName>
			<offset>2</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Egypt</mention>
			<wikiName>Egypt</wikiName>
			<offset>9</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>AP</mention>
			<wikiName>Associated Press</wikiName>
			<offset>16</offset>
			<length>2</length>
		</annotation>
		<annotation>
			<mention>Syria</mention>
			<wikiName>Syria</wikiName>
			<offset>53</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>President</mention>
			<wikiName>President of Egypt</wikiName>
			<offset>110</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Iraq</mention>
			<wikiName>Iraq</wikiName>
			<offset>317</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>West Bank</mention>
			<wikiName>West Bank</wikiName>
			<offset>474</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Gaza Strip</mention>
			<wikiName>Gaza Strip</wikiName>
			<offset>485</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Jerusalem</mention>
			<wikiName>Jerusalem</wikiName>
			<offset>500</offset>
			<length>9</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0212.eng">
		<annotation>
			<mention>Stewart Talbot</mention>
			<wikiName>NIL</wikiName>
			<offset>28</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>America</mention>
			<wikiName>United States</wikiName>
			<offset>44</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>State</mention>
			<wikiName>NIL</wikiName>
			<offset>77</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Madeleine Albright</mention>
			<wikiName>Madeleine Albright</wikiName>
			<offset>136</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Yale University</mention>
			<wikiName>Yale University</wikiName>
			<offset>236</offset>
			<length>15</length>
		</annotation>
		<annotation>
			<mention>northeast</mention>
			<wikiName>NIL</wikiName>
			<offset>281</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Richard Levin</mention>
			<wikiName>Rick Levin</wikiName>
			<offset>295</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Globalization Studies Center</mention>
			<wikiName>Yale Center for the Study of Globalization</wikiName>
			<offset>384</offset>
			<length>28</length>
		</annotation>
		<annotation>
			<mention>Middle East</mention>
			<wikiName>Middle East</wikiName>
			<offset>670</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Time magazine</mention>
			<wikiName>Time (magazine)</wikiName>
			<offset>902</offset>
			<length>13</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0065.eng">
		<annotation>
			<mention>Camp Zeist</mention>
			<wikiName>Zeist</wikiName>
			<offset>2</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Holland</mention>
			<wikiName>Holland</wikiName>
			<offset>14</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>30</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Soviet Union</mention>
			<wikiName>Soviet Union</wikiName>
			<offset>574</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Sweden</mention>
			<wikiName>Sweden</wikiName>
			<offset>841</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Amsterdam</mention>
			<wikiName>Amsterdam</wikiName>
			<offset>870</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Copenhagen</mention>
			<wikiName>Copenhagen</wikiName>
			<offset>881</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Stockholm</mention>
			<wikiName>Stockholm</wikiName>
			<offset>896</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Alameen Khalifa Fahima</mention>
			<wikiName>Lamin Khalifah Fhimah</wikiName>
			<offset>1825</offset>
			<length>22</length>
		</annotation>
		<annotation>
			<mention>Abdulbasit al-Maqrahi</mention>
			<wikiName>Abdelbaset al-Megrahi</wikiName>
			<offset>1852</offset>
			<length>21</length>
		</annotation>
		<annotation>
			<mention>Malta</mention>
			<wikiName>Malta</wikiName>
			<offset>1912</offset>
			<length>5</length>
		</annotation>
	</document>
	<document docName="NYT20001125.1558.0117">
		<annotation>
			<mention>GROSSE POINTE PARK</mention>
			<wikiName>Grosse Pointe Park, Michigan</wikiName>
			<offset>55</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Mich.</mention>
			<wikiName>Michigan</wikiName>
			<offset>75</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>New York</mention>
			<wikiName>New York</wikiName>
			<offset>640</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Pennsylvania</mention>
			<wikiName>Pennsylvania</wikiName>
			<offset>653</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Department of Natural Resources</mention>
			<wikiName>Michigan Department of Natural Resources</wikiName>
			<offset>904</offset>
			<length>31</length>
		</annotation>
		<annotation>
			<mention>Rob Williams</mention>
			<wikiName>NIL</wikiName>
			<offset>2330</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Detroit</mention>
			<wikiName>Detroit</wikiName>
			<offset>2481</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Peter Thompson</mention>
			<wikiName>NIL</wikiName>
			<offset>3719</offset>
			<length>14</length>
		</annotation>
	</document>
	<document docName="VOA20001129.2000.0364">
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>59</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Supreme Court</mention>
			<wikiName>Supreme Court of the United States</wikiName>
			<offset>171</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Joe O'Grossman</mention>
			<wikiName>Joel Grossman</wikiName>
			<offset>345</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Baltimore</mention>
			<wikiName>Baltimore</wikiName>
			<offset>400</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Johns Hopkins University</mention>
			<wikiName>Johns Hopkins University</wikiName>
			<offset>412</offset>
			<length>24</length>
		</annotation>
		<annotation>
			<mention>Lawrence Tribe</mention>
			<wikiName>Laurence Tribe</wikiName>
			<offset>770</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Gore</mention>
			<wikiName>Al Gore</wikiName>
			<offset>838</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>legislature</mention>
			<wikiName>Florida Legislature</wikiName>
			<offset>2981</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Congress</mention>
			<wikiName>United States Congress</wikiName>
			<offset>3237</offset>
			<length>8</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0030.eng">
		<annotation>
			<mention>Gaza</mention>
			<wikiName>Gaza</wikiName>
			<offset>2</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>14</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Egypt</mention>
			<wikiName>Egypt</wikiName>
			<offset>490</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Nitsarim</mention>
			<wikiName>Netzarim (settlement)</wikiName>
			<offset>1026</offset>
			<length>8</length>
		</annotation>
	</document>
	<document docName="NYT20001101.2212.0429">
		<annotation>
			<mention>Time Warner</mention>
			<wikiName>Time Warner</wikiName>
			<offset>508</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Larry Haverty</mention>
			<wikiName>NIL</wikiName>
			<offset>820</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>State Street Research</mention>
			<wikiName>State Street Corporation</wikiName>
			<offset>862</offset>
			<length>21</length>
		</annotation>
		<annotation>
			<mention>Boston</mention>
			<wikiName>Boston</wikiName>
			<offset>887</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Tom Wolzien</mention>
			<wikiName>NIL</wikiName>
			<offset>1577</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Sanford C. Bernstein</mention>
			<wikiName>Sanford Bernstein</wikiName>
			<offset>1592</offset>
			<length>20</length>
		</annotation>
		<annotation>
			<mention>Disney</mention>
			<wikiName>The Walt Disney Company</wikiName>
			<offset>1883</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Capital Cities/ABC</mention>
			<wikiName>Capital Cities Communications</wikiName>
			<offset>1921</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Time</mention>
			<wikiName>Time Inc.</wikiName>
			<offset>2036</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>Warner</mention>
			<wikiName>Warner Communications</wikiName>
			<offset>2045</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Roger McNamee</mention>
			<wikiName>Roger McNamee</wikiName>
			<offset>2128</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Integral Capital</mention>
			<wikiName>NIL</wikiName>
			<offset>2145</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Jessica Reif</mention>
			<wikiName>NIL</wikiName>
			<offset>2449</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Merrill Lynch</mention>
			<wikiName>Merrill Lynch</wikiName>
			<offset>2465</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>NBC</mention>
			<wikiName>NBC</wikiName>
			<offset>2665</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>2682</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>John Schreiber</mention>
			<wikiName>NIL</wikiName>
			<offset>2698</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Janus Capital</mention>
			<wikiName>Janus Capital Group</wikiName>
			<offset>2748</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Comcast</mention>
			<wikiName>Comcast</wikiName>
			<offset>3974</offset>
			<length>7</length>
		</annotation>
	</document>
	<document docName="20001115_AFP_ARB.0013.eng">
		<annotation>
			<mention>Bandar Seri Begawan</mention>
			<wikiName>Bandar Seri Begawan</wikiName>
			<offset>2</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>AFP</mention>
			<wikiName>Agence France-Presse</wikiName>
			<offset>29</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>State of Florida</mention>
			<wikiName>Florida</wikiName>
			<offset>333</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Brunei</mention>
			<wikiName>Brunei</wikiName>
			<offset>456</offset>
			<length>6</length>
		</annotation>
	</document>
	<document docName="PRI20001031.2000.1824">
		<annotation>
			<mention>BBC News</mention>
			<wikiName>BBC News</wikiName>
			<offset>6</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>London</mention>
			<wikiName>London</wikiName>
			<offset>18</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Taiwan</mention>
			<wikiName>Taiwan</wikiName>
			<offset>97</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Los Angeles</mention>
			<wikiName>Los Angeles</wikiName>
			<offset>107</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>David Chezan</mention>
			<wikiName>NIL</wikiName>
			<offset>330</offset>
			<length>12</length>
		</annotation>
	</document>
	<document docName="NYT20001106.1705.0187">
		<annotation>
			<mention>CHATTANOOGA</mention>
			<wikiName>Chattanooga, Tennessee</wikiName>
			<offset>317</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Tenn.</mention>
			<wikiName>Tennessee</wikiName>
			<offset>330</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Washington</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>544</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Arkansas</mention>
			<wikiName>Arkansas</wikiName>
			<offset>881</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>White House</mention>
			<wikiName>White House</wikiName>
			<offset>1175</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Wisconsin</mention>
			<wikiName>Wisconsin</wikiName>
			<offset>2196</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Iowa</mention>
			<wikiName>Iowa</wikiName>
			<offset>2210</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>Michigan</mention>
			<wikiName>Michigan</wikiName>
			<offset>2365</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Pennsylvania</mention>
			<wikiName>Pennsylvania</wikiName>
			<offset>2378</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Green Bay</mention>
			<wikiName>Green Bay, Wisconsin</wikiName>
			<offset>3041</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>D.C.</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>3951</offset>
			<length>4</length>
		</annotation>
	</document>
	<document docName="NYT20001109.1946.0315">
		<annotation>
			<mention>WASHINGTON</mention>
			<wikiName>Washington, D.C.</wikiName>
			<offset>88</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Ralph Nader</mention>
			<wikiName>Ralph Nader</wikiName>
			<offset>101</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>America</mention>
			<wikiName>United States</wikiName>
			<offset>469</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Noni</mention>
			<wikiName>NIL</wikiName>
			<offset>815</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>White House</mention>
			<wikiName>White House</wikiName>
			<offset>1081</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Florida</mention>
			<wikiName>Florida</wikiName>
			<offset>1390</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>John Ruth</mention>
			<wikiName>NIL</wikiName>
			<offset>1636</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Oregon</mention>
			<wikiName>Oregon</wikiName>
			<offset>2068</offset>
			<length>6</length>
		</annotation>
		<annotation>
			<mention>Julie Quastler</mention>
			<wikiName>NIL</wikiName>
			<offset>2243</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Portland</mention>
			<wikiName>Portland, Oregon</wikiName>
			<offset>2286</offset>
			<length>8</length>
		</annotation>
		<annotation>
			<mention>Dorothy Byrne</mention>
			<wikiName>NIL</wikiName>
			<offset>3463</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Green Party</mention>
			<wikiName>Green Party of Florida</wikiName>
			<offset>3514</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Barbara Lange</mention>
			<wikiName>NIL</wikiName>
			<offset>3931</offset>
			<length>13</length>
		</annotation>
		<annotation>
			<mention>Sierra Club</mention>
			<wikiName>Sierra Club</wikiName>
			<offset>4003</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Patricia Newell</mention>
			<wikiName>NIL</wikiName>
			<offset>4242</offset>
			<length>15</length>
		</annotation>
		<annotation>
			<mention>University of Florida</mention>
			<wikiName>University of Florida</wikiName>
			<offset>4289</offset>
			<length>21</length>
		</annotation>
		<annotation>
			<mention>Gainesville</mention>
			<wikiName>Gainesville, Florida</wikiName>
			<offset>4314</offset>
			<length>11</length>
		</annotation>
	</document>
	<document docName="NYT20001123.1511.0062">
		<annotation>
			<mention>ABC</mention>
			<wikiName>American Broadcasting Company</wikiName>
			<offset>285</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Fox Sports</mention>
			<wikiName>Fox Sports (United States)</wikiName>
			<offset>766</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Sun Microsystems</mention>
			<wikiName>Sun Microsystems</wikiName>
			<offset>790</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Fidelity Investments</mention>
			<wikiName>Fidelity Investments</wikiName>
			<offset>932</offset>
			<length>20</length>
		</annotation>
		<annotation>
			<mention>Ocean Spray Cranberries</mention>
			<wikiName>Ocean Spray (cooperative)</wikiName>
			<offset>1435</offset>
			<length>23</length>
		</annotation>
		<annotation>
			<mention>In Style Entertaining 2000 magazine</mention>
			<wikiName>InStyle</wikiName>
			<offset>1729</offset>
			<length>35</length>
		</annotation>
		<annotation>
			<mention>PepsiCo</mention>
			<wikiName>PepsiCo</wikiName>
			<offset>1985</offset>
			<length>7</length>
		</annotation>
		<annotation>
			<mention>Jack Nicholson</mention>
			<wikiName>Jack Nicholson</wikiName>
			<offset>2127</offset>
			<length>14</length>
		</annotation>
		<annotation>
			<mention>Helen Hunt</mention>
			<wikiName>Helen Hunt</wikiName>
			<offset>2143</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Greg Kinnear</mention>
			<wikiName>Greg Kinnear</wikiName>
			<offset>2155</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>James L. Brooks</mention>
			<wikiName>James L. Brooks</wikiName>
			<offset>2172</offset>
			<length>15</length>
		</annotation>
		<annotation>
			<mention>Campbell Soup Co</mention>
			<wikiName>Campbell Soup Company</wikiName>
			<offset>2214</offset>
			<length>16</length>
		</annotation>
		<annotation>
			<mention>Roundabout Theater Company</mention>
			<wikiName>Roundabout Theatre Company</wikiName>
			<offset>2346</offset>
			<length>26</length>
		</annotation>
		<annotation>
			<mention>Times Square</mention>
			<wikiName>Times Square</wikiName>
			<offset>2404</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Reader's Digest Association</mention>
			<wikiName>Reader's Digest Association</wikiName>
			<offset>2519</offset>
			<length>27</length>
		</annotation>
		<annotation>
			<mention>Reader's Digest magazine</mention>
			<wikiName>Reader's Digest</wikiName>
			<offset>2692</offset>
			<length>24</length>
		</annotation>
		<annotation>
			<mention>Levi</mention>
			<wikiName>Levi Strauss & Co.</wikiName>
			<offset>2793</offset>
			<length>4</length>
		</annotation>
		<annotation>
			<mention>Empire Blue Cross Blue Shield</mention>
			<wikiName>Blue Cross Blue Shield Association</wikiName>
			<offset>3075</offset>
			<length>29</length>
		</annotation>
		<annotation>
			<mention>MSN network</mention>
			<wikiName>MSN</wikiName>
			<offset>3113</offset>
			<length>11</length>
		</annotation>
		<annotation>
			<mention>Microsoft</mention>
			<wikiName>Microsoft</wikiName>
			<offset>3128</offset>
			<length>9</length>
		</annotation>
		<annotation>
			<mention>Land Rover</mention>
			<wikiName>Land Rover</wikiName>
			<offset>3278</offset>
			<length>10</length>
		</annotation>
		<annotation>
			<mention>Volvo</mention>
			<wikiName>Volvo</wikiName>
			<offset>3293</offset>
			<length>5</length>
		</annotation>
		<annotation>
			<mention>Sprint Communications Co</mention>
			<wikiName>Sprint Nextel</wikiName>
			<offset>3698</offset>
			<length>24</length>
		</annotation>
		<annotation>
			<mention>John Corbett</mention>
			<wikiName>John Corbett (actor)</wikiName>
			<offset>3879</offset>
			<length>12</length>
		</annotation>
		<annotation>
			<mention>Houston Grand Opera</mention>
			<wikiName>Houston Grand Opera</wikiName>
			<offset>4040</offset>
			<length>19</length>
		</annotation>
		<annotation>
			<mention>CBS</mention>
			<wikiName>CBS</wikiName>
			<offset>4238</offset>
			<length>3</length>
		</annotation>
		<annotation>
			<mention>Brooklyn</mention>
			<wikiName>Brooklyn</wikiName>
			<offset>4633</offset>
			<length>8</length>
		</annotation>
	</document>
	<document docName="VOA20001223.2000.0139">
		<annotation>
			<mention>Democratic opposition</mention>
			<wikiName>Democratic Opposition of Serbia</wikiName>
			<offset>138</offset>
			<length>21</length>
		</annotation>
		<annotation>
			<mention>Slobodan Milosevic</mention>
			<wikiName>Slobodan Milošević</wikiName>
			<offset>325</offset>
			<length>18</length>
		</annotation>
		<annotation>
			<mention>Socialist Party</mention>
			<wikiName>Socialist Party of Serbia</wikiName>
			<offset>372</offset>
			<length>15</length>
		</annotation>
	</document>
</ACE2004.entityAnnotation>


text:
package com.intellij.codeInsight.completion.impl;

import com.intellij.codeInsight.lookup.Classifier;
import com.intellij.codeInsight.lookup.LookupElement;
import com.intellij.openapi.util.Condition;
import com.intellij.util.ProcessingContext;
import com.intellij.util.containers.*;
import gnu.trove.THashMap;
import gnu.trove.THashSet;
import org.jetbrains.annotations.Nullable;

import java.util.*;
import java.util.LinkedHashMap;

import static com.intellij.util.containers.ContainerUtil.newIdentityHashMap;
import static com.intellij.util.containers.ContainerUtil.newIdentityTroveSet;

/**
* @author peter
*/
public class LiftShorterItemsClassifier extends Classifier<LookupElement> {
  private final TreeSet<String> mySortedStrings = new TreeSet<String>();
  private final MultiMap<String, LookupElement> myElements = new MultiMap<String, LookupElement>() {
    @Override
    protected Map<String, Collection<LookupElement>> createMap() {
      return new THashMap<String, Collection<LookupElement>>();
    }

    @Override
    protected Collection<LookupElement> createCollection() {
      return new ArrayList<LookupElement>(1);
    }
  };
  private final Map<LookupElement, FList<LookupElement>> myToLift = newIdentityHashMap();
  private final IdentityHashMap<FList<LookupElement>, IdentityHashMap<LookupElement, FList<LookupElement>>> myPrepends = newIdentityHashMap();
  private final String myName;
  private final Classifier<LookupElement> myNext;
  private final LiftingCondition myCondition;
  private final boolean myLiftBefore;
  private int myCount = 0;

  public LiftShorterItemsClassifier(String name, Classifier<LookupElement> next, LiftingCondition condition, boolean liftBefore) {
    myName = name;
    myNext = next;
    myCondition = condition;
    myLiftBefore = liftBefore;
  }

  @Override
  public void addElement(LookupElement added) {
    myCount++;

    final Set<String> strings = added.getAllLookupStrings();
    for (String string : strings) {
      if (string.length() == 0) continue;

      myElements.putValue(string, added);
      mySortedStrings.add(string);
      final NavigableSet<String> after = mySortedStrings.tailSet(string, false);
      for (String s : after) {
        if (!s.startsWith(string)) {
          break;
        }
        for (LookupElement longer : myElements.get(s)) {
          updateLongerItem(added, longer);
        }
      }
    }
    myNext.addElement(added);

    calculateToLift(added);
  }

  private void updateLongerItem(LookupElement shorter, LookupElement longer) {
    if (myCondition.shouldLift(shorter, longer)) {
      FList<LookupElement> oldValue = ContainerUtil.getOrElse(myToLift, longer, FList.<LookupElement>emptyList());
      myToLift.put(longer, prependOrReuse(oldValue, shorter));
    }
  }

  private FList<LookupElement> prependOrReuse(FList<LookupElement> tail, LookupElement head) {
    IdentityHashMap<LookupElement, FList<LookupElement>> cache = myPrepends.get(tail);
    if (cache == null) {
      myPrepends.put(tail, cache = newIdentityHashMap());
    }
    FList<LookupElement> result = cache.get(head);
    if (result == null) {
      cache.put(head, result = tail.getHead() == head ? tail : tail.prepend(head));
    }
    return result;
  }

  private void calculateToLift(LookupElement element) {
    FList<LookupElement> toLift = FList.emptyList();

    for (String string : element.getAllLookupStrings()) {
      for (int len = 1; len < string.length(); len++) {
        String prefix = string.substring(0, len);
        for (LookupElement shorterElement : myElements.get(prefix)) {
          if (myCondition.shouldLift(shorterElement, element)) {
            toLift = prependOrReuse(toLift, shorterElement);
          }
        }
      }
    }

    if (!toLift.isEmpty()) {
      myToLift.put(element, toLift);
    }
  }

  @Override
  public Iterable<LookupElement> classify(Iterable<LookupElement> source, ProcessingContext context) {
    return liftShorterElements(source, null, context);
  }

  private Iterable<LookupElement> liftShorterElements(final Iterable<LookupElement> source,
                                                      @Nullable final THashSet<LookupElement> lifted, final ProcessingContext context) {
    final Set<LookupElement> srcSet = newIdentityTroveSet(source instanceof Collection ? ((Collection)source).size() : myCount);
    ContainerUtil.addAll(srcSet, source);

    if (srcSet.size() < 2) {
      return myNext.classify(source, context);
    }

    return new LiftingIterable(srcSet, context, source, lifted);
  }

  @Override
  public void describeItems(LinkedHashMap<LookupElement, StringBuilder> map, ProcessingContext context) {
    final THashSet<LookupElement> lifted = newIdentityTroveSet();
    ContainerUtil.newArrayList(liftShorterElements(new ArrayList<LookupElement>(map.keySet()), lifted, context));
    if (!lifted.isEmpty()) {
      for (LookupElement element : map.keySet()) {
        final StringBuilder builder = map.get(element);
        if (builder.length() > 0) {
          builder.append(", ");
        }

        builder.append(myName).append("=").append(lifted.contains(element));
      }
    }
    myNext.describeItems(map, context);
  }

  public static class LiftingCondition {
    public boolean shouldLift(LookupElement shorterElement, LookupElement longerElement) {
      return true;
    }
  }

  private class LiftingIterable implements Iterable<LookupElement> {
    private final Set<LookupElement> mySrcSet;
    private final ProcessingContext myContext;
    private final Iterable<LookupElement> mySource;
    private final THashSet<LookupElement> myLifted;

    public LiftingIterable(Set<LookupElement> srcSet,
                           ProcessingContext context,
                           Iterable<LookupElement> source,
                           THashSet<LookupElement> lifted) {
      mySrcSet = srcSet;
      myContext = context;
      mySource = source;
      myLifted = lifted;
    }

    @Override
    public Iterator<LookupElement> iterator() {
      final Set<LookupElement> processed = newIdentityTroveSet(mySrcSet.size());
      final Set<FList<LookupElement>> arraysProcessed = newIdentityTroveSet();

      final Iterable<LookupElement> next = myNext.classify(mySource, myContext);
      Iterator<LookupElement> base = FilteringIterator.create(next.iterator(), new Condition<LookupElement>() {
        @Override
        public boolean value(LookupElement element) {
          return processed.add(element);
        }
      });
      return new FlatteningIterator<LookupElement, LookupElement>(base) {
        @Override
        protected Iterator<LookupElement> createValueIterator(LookupElement element) {
          List<LookupElement> shorter = addShorterElements(null, myToLift.get(element));
          List<LookupElement> singleton = Collections.singletonList(element);
          if (shorter != null) {
            if (myLifted != null) {
              myLifted.addAll(shorter);
            }
            Iterable<LookupElement> lifted = myNext.classify(shorter, myContext);
            return (myLiftBefore ? ContainerUtil.concat(lifted, singleton) : ContainerUtil.concat(singleton, lifted)).iterator();
          }
          return singleton.iterator();
        }

        @Nullable
        private List<LookupElement> addShorterElements(@Nullable List<LookupElement> toLift,
                                                       @Nullable FList<LookupElement> from) {
          if (from == null) {
            return toLift;
          }

          FList<LookupElement> each = from;
          while (!each.isEmpty() && arraysProcessed.add(each)) {
            LookupElement shorterElement = each.getHead();
            if (mySrcSet.contains(shorterElement) && processed.add(shorterElement)) {
              if (toLift == null) {
                toLift = new ArrayList<LookupElement>();
              }
              toLift.add(shorterElement);
            }
            each = each.getTail();
          }
          return toLift;
        }

      };
    }
  }
}

redpajama_set_name: RedPajamaGithub


text:
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>basic_serial_port::operator=</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="../../../boost_asio.html" title="Boost.Asio">
<link rel="up" href="../basic_serial_port.html" title="basic_serial_port">
<link rel="prev" href="open/overload2.html" title="basic_serial_port::open (2 of 2 overloads)">
<link rel="next" href="read_some.html" title="basic_serial_port::read_some">

Home
Libraries
People
FAQ
More

basic_serial_port::operator=

Move-assign a basic_serial_port from another.

basic_serial_port & operator=(
    basic_serial_port && other);

          This assignment operator moves a serial port from one object to another.

          Parameters

other

                The other basic_serial_port object
                from which the move will occur.

          Remarks

          Following the move, the moved-from object is in the same state as if constructed
          using the basic_serial_port(io_service&) constructor.

Copyright © 2003-2012 Christopher M. Kohlhoff

        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)


text:
<?php

/**
 * profile module configuration.
 *
 * @package    Huemul
 * @subpackage profile
 * @author     Damian Suarez
 * @version    SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class profileGeneratorConfiguration extends BaseProfileGeneratorConfiguration
{
}


text:
    A unit cube with colors mapped to vertex values.

    The same array is used to populate both the vertex locations
    and vertex colors resulting in a cube xyz<->rgb. Face indices
    are stored in an element array buffer and drawn with glDrawElements.
]]
colorcube = {}

local openGL = require("opengl")
local ffi = require("ffi")
local mm = require("util.matrixmath")
local sf = require("util.shaderfunctions")

local glIntv     = ffi.typeof('GLint[?]')
local glUintv    = ffi.typeof('GLuint[?]')
local glFloatv   = ffi.typeof('GLfloat[?]')

local vbos = {}
local vao = 0
local prog = 0
local rotation = 0

local basic_vert = [[
#version 310 es

in vec4 vPosition;
in vec4 vColor;

out vec3 vfColor;

uniform mat4 mvmtx;
uniform mat4 prmtx;

void main()
{
    vfColor = vColor.xyz;
    gl_Position = prmtx * mvmtx * vPosition;
}
]]

local basic_frag = [[
#version 310 es

#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif

in vec3 vfColor;
out vec4 fragColor;

void main()
{
    fragColor = vec4(vfColor, 1.0);
}
]]

local function init_cube_attributes()
    local verts = glFloatv(3*8, {
        0,0,0,
        1,0,0,
        1,1,0,
        0,1,0,
        0,0,1,
        1,0,1,
        1,1,1,
        0,1,1
        })

    local vpos_loc = gl.glGetAttribLocation(prog, "vPosition")
    local vcol_loc = gl.glGetAttribLocation(prog, "vColor")

    local vvbo = glIntv(0)
    gl.glGenBuffers(1, vvbo)
    gl.glBindBuffer(GL.GL_ARRAY_BUFFER, vvbo[0])
    gl.glBufferData(GL.GL_ARRAY_BUFFER, ffi.sizeof(verts), verts, GL.GL_STATIC_DRAW)
    gl.glVertexAttribPointer(vpos_loc, 3, GL.GL_FLOAT, GL.GL_FALSE, 0, nil)
    table.insert(vbos, vvbo)

    local cvbo = glIntv(0)
    gl.glGenBuffers(1, cvbo)
    gl.glBindBuffer(GL.GL_ARRAY_BUFFER, cvbo[0])
    gl.glBufferData(GL.GL_ARRAY_BUFFER, ffi.sizeof(verts), verts, GL.GL_STATIC_DRAW)
    gl.glVertexAttribPointer(vcol_loc, 3, GL.GL_FLOAT, GL.GL_FALSE, 0, nil)
    table.insert(vbos, cvbo)

    gl.glEnableVertexAttribArray(vpos_loc)
    gl.glEnableVertexAttribArray(vcol_loc)

    local quads = glUintv(6*6, {
        0,3,2, 1,0,2,
        4,5,6, 7,4,6,
        1,2,6, 5,1,6,
        2,3,7, 6,2,7,
        3,0,4, 7,3,4,
        0,1,5, 4,0,5
    })
    local qvbo = glIntv(0)
    gl.glGenBuffers(1, qvbo)
    gl.glBindBuffer(GL.GL_ELEMENT_ARRAY_BUFFER, qvbo[0])
    gl.glBufferData(GL.GL_ELEMENT_ARRAY_BUFFER, ffi.sizeof(quads), quads, GL.GL_STATIC_DRAW)
    table.insert(vbos, qvbo)
end

function colorcube.initGL()
    local vaoId = ffi.new("int[1]")
    gl.glGenVertexArrays(1, vaoId)
    vao = vaoId[0]
    gl.glBindVertexArray(vao)

    prog = sf.make_shader_from_source({
        vsrc = basic_vert,
        fsrc = basic_frag,
        })

    init_cube_attributes()
    gl.glBindVertexArray(0)
end

function colorcube.exitGL()
    gl.glBindVertexArray(vao)
    for _,v in pairs(vbos) do
        gl.glDeleteBuffers(1,v)
    end
    vbos = {}
    gl.glDeleteProgram(prog)
    local vaoId = ffi.new("GLuint[1]", vao)
    gl.glDeleteVertexArrays(1, vaoId)
end

function colorcube.render_for_one_eye(view, proj)
    -- Rotate the cube slowly around its center
    local m = {}
    for i=1,16 do m[i] = view[i] end
    mm.glh_rotate(m, 30*rotation, 0,1,0)
    mm.glh_rotate(m, 13*rotation, 1,0,0)
    mm.glh_translate(m, -.5,-.5,-.5)

    local umv_loc = gl.glGetUniformLocation(prog, "mvmtx")
    local upr_loc = gl.glGetUniformLocation(prog, "prmtx")
    gl.glUseProgram(prog)
    gl.glUniformMatrix4fv(upr_loc, 1, GL.GL_FALSE, glFloatv(16, proj))
    gl.glUniformMatrix4fv(umv_loc, 1, GL.GL_FALSE, glFloatv(16, m))
    gl.glBindVertexArray(vao)
    gl.glDrawElements(GL.GL_TRIANGLES, 6*3*2, GL.GL_UNSIGNED_INT, nil)
    gl.glBindVertexArray(0)
    gl.glUseProgram(0)
end

function colorcube.timestep(absTime, dt)
    rotation = absTime
end

return colorcube


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Extensions;
using Microsoft.CodeAnalysis.Internal.Log;
using Microsoft.CodeAnalysis.Text;

namespace Microsoft.CodeAnalysis.CodeRefactorings
{
    internal abstract partial class AbstractCodeRefactoringService : ICodeRefactoringService
    {
        private static readonly Func<CodeRefactoringProvider, TextSpan, string> codeRefactoringDescription =
            (p, s) => string.Format("{0} ({1})", p.ToString(), s);

        public abstract IEnumerable<CodeRefactoringProvider> GetDefaultCodeRefactoringProviders();

        public async Task<IEnumerable<CodeRefactoring>> GetRefactoringsAsync(
            Document document,
            TextSpan textSpan,
            IEnumerable<CodeRefactoringProvider> providers,
            CancellationToken cancellationToken)
        {
            providers = providers ?? this.GetDefaultCodeRefactoringProviders();

            var result = new List<CodeRefactoring>();
            var extensionManager = document.GetExtensionManager();
            var context = new CodeRefactoringContext(document, textSpan, cancellationToken);

            foreach (var provider in providers)
            {
                await AddRefactoringAsync(provider, result, extensionManager, context).ConfigureAwait(false);
            }

            return result;
        }

        private async Task AddRefactoringAsync(
            CodeRefactoringProvider provider,
            List<CodeRefactoring> allRefactorings,
            IExtensionManager extensionManager,
            CodeRefactoringContext context)
        {
            try
            {
                if (!extensionManager.IsDisabled(provider))
                {
                    using (Logger.LogBlock(FeatureId.CodeActions, FunctionId.CodeAction_AddRefactoring, codeRefactoringDescription, provider, context.Span, context.CancellationToken))
                    {
                        var actions = await provider.GetRefactoringsAsync(context).ConfigureAwait(false);
                        if (actions != null && actions.Count() > 0)
                        {
                            allRefactorings.Add(new CodeRefactoring(provider, actions));
                        }
                    }
                }
            }
            catch (OperationCanceledException)
            {
                throw;
            }
            catch (Exception e)
            {
                extensionManager.HandleException(provider, e);
            }
        }
    }
}


text:
package com.mongodb.internal;

import com.mongodb.annotations.Immutable;

import java.util.Objects;
import java.util.concurrent.TimeUnit;

import static com.mongodb.assertions.Assertions.assertFalse;
import static com.mongodb.assertions.Assertions.assertNotNull;
import static com.mongodb.assertions.Assertions.assertTrue;
import static com.mongodb.internal.VisibleForTesting.AccessModifier.PRIVATE;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static java.util.concurrent.TimeUnit.NANOSECONDS;

/**
 * A value-based class
 * useful for tracking timeouts.
 *
 *
This class is not part of the public API and may be removed or changed at any time

 */
@Immutable
public final class Timeout {
    private static final Timeout INFINITE = new Timeout(-1, 0);
    private static final Timeout IMMEDIATE = new Timeout(0, 0);

    private final long durationNanos;
    private final long startNanos;

    private Timeout(final long durationNanos, final long startNanos) {
        this.durationNanos = durationNanos;
        this.startNanos = startNanos;
    }

    /**
     * Converts the specified {@code duration} from {@code unit}s to {@link TimeUnit#NANOSECONDS} via {@link TimeUnit#toNanos(long)}
     * and then acts identically to {@link #startNow(long)}.
     *

     * Note that the contract of this method is also used in some places to specify the behavior of methods that accept
     * {@code (long timeout, TimeUnit unit)}, e.g., {@link com.mongodb.internal.connection.ConcurrentPool#get(long, TimeUnit)},
     * so it cannot be changed without updating those methods.
     * @see #startNow(long)
     */
    public static Timeout startNow(final long duration, final TimeUnit unit) {
        assertNotNull(unit);
        return startNow(unit.toNanos(duration));
    }

    /**
     * Returns an {@linkplain #isInfinite() infinite} timeout if {@code durationNanos} is either negative
     * or is equal to {@link Long#MAX_VALUE},
     * an {@linkplain #isImmediate() immediate} timeout if {@code durationNanos} is 0,
     * otherwise an object that represents the specified {@code durationNanos}.
     *

     * Note that the contract of this method is also used in some places to specify the behavior of methods that accept
     * {@code (long timeout, TimeUnit unit)}, e.g., {@link com.mongodb.internal.connection.ConcurrentPool#get(long, TimeUnit)},
     * so it cannot be changed without updating those methods.
     */
    public static Timeout startNow(final long durationNanos) {
        if (durationNanos < 0 || durationNanos == Long.MAX_VALUE) {
            return infinite();
        } else if (durationNanos == 0) {
            return immediate();
        } else {
            return new Timeout(durationNanos, System.nanoTime());
        }
    }

    /**
     * @see #startNow(long)
     */
    public static Timeout infinite() {
        return INFINITE;
    }

    /**
     * @see #startNow(long)
     */
    public static Timeout immediate() {
        return IMMEDIATE;
    }

    /**
     * Must not be called on {@linkplain #isInfinite() infinite} or {@linkplain #isImmediate() immediate} timeouts.
     *

     * Returns {@code currentNanos} - {@link #startNanos}:
     *

     *

     *         A negative value means either of the following
     *

     *
the clock from which {@code currentNanos} was read jumped backwards,
     *             in which case the behaviour of this class is undefined;

     *
(n * 263 - 1; (n + 1) * 263)(*) nanoseconds has elapsed,
     *             in which case the timeout has expired.

     *

     *

     *

     *         0 means either of the following
     *

     *
0 nanoseconds has elapsed;

     *
(n + 1) * 263(*) nanoseconds has elapsed,
     *             in which case the timeout has expired.

     *

     *         Since it is impossible to differentiate the former from the latter, and the former is much more likely to happen in practice,
     *         this class interprets 0 value as 0 elapsed nanoseconds.
     *

     *

     *         A positive value means either of the following
     *

     *
this exact number of nanoseconds has elapsed;

     *
((n + 1) * 263; (n + 2) * 263 - 1](*) nanoseconds has elapsed,
     *             in which case the timeout has expired.

     *

     *         Since it is impossible to differentiate the former from the latter, and the former is much more likely to happen in practice,
     *         this class interprets a positive value as the exact number of elapsed nanoseconds.
     *

     *

     *

     * (*) n is positive and odd.
     */
    private long elapsedNanos(final long currentNanos) {
        assertFalse(isInfinite() || isImmediate());
        return currentNanos - startNanos;
    }

    /**
     * Returns 0 or a positive value.
     * 0 means that the timeout has expired.
     *

     * Must not be called on {@linkplain #isInfinite() infinite} timeouts.
     */
    @VisibleForTesting(otherwise = PRIVATE)
    long remainingNanos(final long currentNanos) {
        assertFalse(isInfinite() || isImmediate());
        long elapsedNanos = elapsedNanos(currentNanos);
        return elapsedNanos < 0 ? 0 : Math.max(0, durationNanos - elapsedNanos);
    }

    /**
     * Returns 0 or a positive value converted to the specified {@code unit}s.
     * Use {@link #expired(long)} to check if the returned value signifies that a timeout is expired.
     *
     * @param unit If not {@link TimeUnit#NANOSECONDS}, then coarsening conversion is done that may result in returning a value
     *             that represents a longer time duration than is actually remaining (this is done to prevent treating a timeout as
     *             {@linkplain #expired(long) expired} when it is not). Consequently, one should specify {@code unit} as small as
     *             practically possible. Such rounding up happens if and only if the remaining time cannot be
     *             represented exactly as an integral number of the {@code unit}s specified. It may result in
     *             {@link #expired()} returning {@code true} and after that (in the happens-before order)
     *             {@link #expired(long) expired}{@code (}{@link #remaining(TimeUnit) remaining(...)}{@code )}
     *             returning {@code false}. If such a discrepancy is observed,
     *             the result of the {@link #expired()} method should be preferred.
     *
     * @throws UnsupportedOperationException If the timeout is {@linkplain #isInfinite() infinite}.
     * @see #remainingOrInfinite(TimeUnit)
     */
    public long remaining(final TimeUnit unit) throws UnsupportedOperationException {
        assertNotNull(unit);
        if (isInfinite()) {
            throw new UnsupportedOperationException();
        }
        return isImmediate() ? 0 : convertRoundUp(remainingNanos(System.nanoTime()), unit);
    }

    /**
     * Returns a negative value for {@linkplain #isInfinite() infinite} timeouts,
     * otherwise behaves identically to {@link #remaining(TimeUnit)}.
     * Use {@link #expired(long)} to check if the returned value signifies that a timeout is expired.
     *
     * @see #remaining(TimeUnit)
     */
    public long remainingOrInfinite(final TimeUnit unit) {
        assertNotNull(unit);
        return isInfinite() ? -1 : remaining(unit);
    }

    /**
     * @see #expired(long)
     */
    public boolean expired() {
        return expired(remainingOrInfinite(NANOSECONDS));
    }

    /**
     * Returns {@code true} if and only if the {@code remaining} time is 0 (the time unit is irrelevant).
     *
     * @see #remaining(TimeUnit)
     * @see #remainingOrInfinite(TimeUnit)
     * @see #expired()
     */
    public static boolean expired(final long remaining) {
        return remaining == 0;
    }

    /**
     * @return {@code true} if and only if the timeout duration is considered to be infinite.
     */
    public boolean isInfinite() {
        return equals(INFINITE);
    }

    /**
     * @return {@code true} if and only if the timeout duration is 0.
     */
    public boolean isImmediate() {
        return equals(IMMEDIATE);
    }

    @Override
    public boolean equals(final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        final Timeout other = (Timeout) o;
        return durationNanos == other.durationNanos && startNanos == other.startNanos;
    }

    @Override
    public int hashCode() {
        return Objects.hash(durationNanos, startNanos);
    }

    /**
     * This method is useful for debugging.
     *
     * @see #toUserString()
     */
    @Override
    public String toString() {
        return "Timeout{"
                + "durationNanos=" + durationNanos
                + ", startNanos=" + startNanos
                + '}';
    }

    /**
     * Returns a user-friendly representation. Examples: 1500 ms, infinite, 0 ms (immediate).
     *
     * @see #toString()
     */
    public String toUserString() {
        if (isInfinite()) {
            return "infinite";
        } else if (isImmediate()) {
            return "0 ms (immediate)";
        } else {
            return convertRoundUp(durationNanos, MILLISECONDS) + " ms";
        }
    }

    @VisibleForTesting(otherwise = PRIVATE)
    long durationNanos() {
        return durationNanos;
    }

    @VisibleForTesting(otherwise = PRIVATE)
    long startNanos() {
        return startNanos;
    }

    @VisibleForTesting(otherwise = PRIVATE)
    static long convertRoundUp(final long nonNegativeNanos, final TimeUnit unit) {
        assertTrue(nonNegativeNanos >= 0);
        if (unit == NANOSECONDS) {
            return nonNegativeNanos;
        } else {
            long trimmed = unit.convert(nonNegativeNanos, NANOSECONDS);
            return NANOSECONDS.convert(trimmed, unit) < nonNegativeNanos ? trimmed + 1 : trimmed;
        }
    }
}


text:
package org.glyptodon.guacamole.environment;

import java.io.File;
import java.util.Map;
import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.properties.BooleanGuacamoleProperty;
import org.glyptodon.guacamole.properties.GuacamoleProperty;
import org.glyptodon.guacamole.properties.IntegerGuacamoleProperty;
import org.glyptodon.guacamole.properties.StringGuacamoleProperty;
import org.glyptodon.guacamole.protocols.ProtocolInfo;

/**
 * The environment of an arbitrary Guacamole instance, describing available
 * protocols, configuration parameters, and the GUACAMOLE_HOME directory.
 *
 * @author Michael Jumper
 */
public interface Environment {

    /**
     * The hostname of the server where guacd (the Guacamole proxy server) is
     * running.
     */
    public static final StringGuacamoleProperty GUACD_HOSTNAME = new StringGuacamoleProperty() {

        @Override
        public String getName() { return "guacd-hostname"; }

    };

    /**
     * The port that guacd (the Guacamole proxy server) is listening on.
     */
    public static final IntegerGuacamoleProperty GUACD_PORT = new IntegerGuacamoleProperty() {

        @Override
        public String getName() { return "guacd-port"; }

    };

    /**
     * Whether guacd requires SSL/TLS on connections.
     */
    public static final BooleanGuacamoleProperty GUACD_SSL = new BooleanGuacamoleProperty() {

        @Override
        public String getName() { return "guacd-ssl"; }

    };

    /**
     * Returns the Guacamole home directory as determined when this Environment
     * object was created. The Guacamole home directory is found by checking, in
     * order: the guacamole.home system property, the GUACAMOLE_HOME environment
     * variable, and finally the .guacamole directory in the home directory of
     * the user running the servlet container.
     *
     * @return The File representing the Guacamole home directory, which may
     *         or may not exist, and may turn out to not be a directory.
     */
    public File getGuacamoleHome();

    /**
     * Returns a map of all available protocols, where each key is the name of
     * that protocol as would be passed to guacd during connection.
     *
     * @return A map of all available protocols.
     */
    public Map<String, ProtocolInfo> getProtocols();

    /**
     * Returns the protocol having the given name. The name must be the
     * protocol name as would be passed to guacd during connection.
     *
     * @param name The name of the protocol.
     * @return The protocol having the given name, or null if no such
     *         protocol is registered.
     */
    public ProtocolInfo getProtocol(String name);

    /**
     * Given a GuacamoleProperty, parses and returns the value set for that
     * property in guacamole.properties, if any.
     *
     * @param <Type> The type that the given property is parsed into.
     * @param property The property to read from guacamole.properties.
     * @return The parsed value of the property as read from
     *         guacamole.properties.
     * @throws GuacamoleException If an error occurs while parsing the value
     *                            for the given property in
     *                            guacamole.properties.
     */
    public <Type> Type getProperty(GuacamoleProperty<Type> property)
            throws GuacamoleException;

    /**
     * Given a GuacamoleProperty, parses and returns the value set for that
     * property in guacamole.properties, if any. If no value is found, the
     * provided default value is returned.
     *
     * @param <Type> The type that the given property is parsed into.
     * @param property The property to read from guacamole.properties.
     * @param defaultValue The value to return if no value was given in
     *                     guacamole.properties.
     * @return The parsed value of the property as read from
     *         guacamole.properties, or the provided default value if no value
     *         was found.
     * @throws GuacamoleException If an error occurs while parsing the value
     *                            for the given property in
     *                            guacamole.properties.
     */
    public <Type> Type getProperty(GuacamoleProperty<Type> property,
            Type defaultValue) throws GuacamoleException;

    /**
     * Given a GuacamoleProperty, parses and returns the value set for that
     * property in guacamole.properties. An exception is thrown if the value
     * is not provided.
     *
     * @param <Type> The type that the given property is parsed into.
     * @param property The property to read from guacamole.properties.
     * @return The parsed value of the property as read from
     *         guacamole.properties.
     * @throws GuacamoleException If an error occurs while parsing the value
     *                            for the given property in
     *                            guacamole.properties, or if the property is
     *                            not specified.
     */
    public <Type> Type getRequiredProperty(GuacamoleProperty<Type> property)
            throws GuacamoleException;

}


text:
using namespace std; // So we can see cout and endl

int main ()
{
	int x = 0;  // Don't forget to declare variables

	while ( x < 10 ) // While x is less than 10
	{
		cout << x << '\n';
		x++;             // Update x so the condition can be met eventually
	}
}


text:
'use strict';

angular.module('learningMeanListsApp')
  .controller('ListListCtrl', function ($scope, $http, $routeParams, Auth, socket) {

    $scope.getCurrentUser = Auth.getCurrentUser;
    $scope.isLoggedIn = Auth.isLoggedIn;
    $scope.providerEnable = {};

    $scope.isOwner = function () {
      var currentUser = Auth.getCurrentUser();
      if (!currentUser || !$scope.list || !$scope.list.owner)
        return false;

      return $scope.list.owner._id == currentUser._id;
    }

    //initialize the scope
    $scope.list= {};
    $scope.lookupProviders = [];

    //get the list of lookup providers
    $http.get('/api/lookup/providers').success(function(lookupProviders) {
      $scope.lookupProviders = lookupProviders;
      //socket.syncUpdates('thing', $scope.awesomeThings);
    });

    //get the list specified by routeParams
    $http.get('/api/lists/'+$routeParams.id).success(function(list) {
      $scope.list = list;

      //is this even right?
      socket.syncUpdates('list', $scope.list);
   });

    //add a new list item
    $scope.addListItem = function() {
      //only if not empty
      if($scope.newTerm === '') {
        return;
      }

      var list = $scope.list;
      //save the item to the list
      $http.post('/api/lists/'+$scope.list._id+'/items', { term:$scope.newTerm })
      .success(function(item) {

        //and add it to the scope list
        //(is this even necessary? does socket.io magic obviate this?)
        list.items.push(item);

        /* no longer retrieving results automatically!

        //retrieve the results for this item
        // !!! it is inefficient to wait until the list api has returned to start this lookup
        // !!! to do: use oboe and/or angular-oboe for streaming json requests
        $http.get('/api/lookup/'+item.term)
        .success(function(response) {
          //get all the proper results
          item['results'] = response.results;

          //save them to the database
          $http.put('/api/lists/'+list._id+'/items/'+item._id, item);
        });
        */
      })

      $scope.newTerm = '';
    };

    //delete the list item
    $scope.deleteListItem = function(item) {
      $http.delete('/api/lists/' + $scope.list._id + '/items/' + item._id);

      //(is this even necessary? does socket.io magic obviate this?)
      _.remove($scope.list.items, item);
    };

    $scope.$on('$destroy', function () {
      socket.unsyncUpdates('list');
    });
  });


text:
package com.jamierf.mediamanager.config;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.dropwizard.Configuration;
import io.dropwizard.client.JerseyClientConfiguration;

import java.util.Collections;
import java.util.Map;

public class MediaManagerConfiguration extends Configuration {

    @JsonProperty
    private JerseyClientConfiguration httpClient = new JerseyClientConfiguration();

    @JsonProperty
    private RetryConfiguration retryManager = new RetryConfiguration();

    @JsonProperty
    private DatabaseConfiguration database = new DatabaseConfiguration();

    @JsonProperty
    private TorrentConfiguration torrents = new TorrentConfiguration();

    @JsonProperty
    private CalendarConfiguration calendars = new CalendarConfiguration();

    @JsonProperty
    private FileConfiguration files = new FileConfiguration();

    @JsonProperty
    private Map<String, String> aliases = Collections.emptyMap();

    public JerseyClientConfiguration getHttpClientConfiguration() {
        return httpClient;
    }

    public RetryConfiguration getRetryConfiguration() {
        return retryManager;
    }

    public DatabaseConfiguration getDatabaseConfiguration() {
        return database;
    }

    public TorrentConfiguration getTorrentConfiguration() {
        return torrents;
    }

    public CalendarConfiguration getCalendarConfiguration() {
        return calendars;
    }

    public FileConfiguration getFileConfiguration() {
        return files;
    }

    public Map<String, String> getAliases() {
        return aliases;
    }
}


text:
title: "中华会馆 (CCBA)"
sidebar:
  - title: "Address"
    text: "315 NW Davis St, Portland, OR 97209"
  - title: "Phone"
    text: "(503) 223-9070"
  - title: "Website"
    text: "[http://www.oregonccba.org](http://www.oregonccba.org)"
---

![]({{ site.url }}/assets/images/communities/ccba.png)

CCBA is an organization for the Chinese community, serving all Chinese people living in the Portland and greater Oregon region through its education and cultural appreciation programs. The CCBA Building is a shared resource for all Chinese people, no matter where they come from. It mission is to strengthen ties within the Chinese Community toward the common goal of improving the greater community as a whole.


text:
Generate css code to place things in a perfect circle in your html.

Live: http://nobitagit.github.io/radial/

Some demos of usage: [1](http://codepen.io/nobitagit/pen/OVOMMo), [2](http://codepen.io/nobitagit/pen/QbOyER).


text:
ACCEPTED

#### According to
The Catalogue of Life, 3rd January 2011

#### Published in
Bull. Soc. mycol. Fr. 5(2,3): 66 (1889)

#### Original name
Ganoderma carnosum Pat., 1889

### Remarks
null


text:
(function() {

  ViewTest = TestCase("ViewTest")

  ViewTest.prototype.setup = function() {
    this.server = sinon.fakeServer.create()
    server.respondWith( "/views/tests/index.html"
                      , [ 400
                        , {}
                        , "

"])
  }

  ViewTest.prototype.teardown = function() {
    this.server.restore()
  }

  ViewTest.prototype.testSetVariable = function() {
    /*:DOC +=

*/
    new LiveView("#template", {}, function(view) {
      view.set("variable", "value")
      assertEquals("Variable was not set", $("#template .variable").html(), "value")
    })
  }

  ViewTest.prototype.testSetAttribute = function() {
    /*:DOC +=

*/
    new LiveView($("#template"), {}, function(view) {
      view.set("variable", {"content":"googs", "href": "http://google.com"})
      assertEquals("Variable was not set", $("#template .variable").attr("href"), "http://google.com")
    })
  }

  ViewTest.prototype.testAddIterable = function() {
    /*:DOC +=

*/
    new LiveView("#templateIterable", {
      "things": [{"variable": "A variable"}]
    }, function(template) {
      template.col("things").append({"variable": "A value"})

      assertEquals("Variable was not set", $("#templateIterable li:nth-child(1) .variable").html(), "A variable")
      assertEquals("Variable was not set", $("#templateIterable li:nth-child(2) .variable").html(), "A value")
    })
  }

  ViewTest.prototype.testAddIterable = function() {
    /*:DOC +=

*/
    new LiveView("#templateIterable", {
      "things": [{"variable": "A variable"},{"variable": "A variable"}]
    }, function(template) {
      template.col("things").insert({"variable": "An inserted variable"}, 0)
      assertEquals("Variable was not set", $("#templateIterable li:nth-child(1) .variable").html(), "An inserted variable")
    })
  }

  ViewTest.prototype.testUpdateIterable = function() {
    /*:DOC +=

*/
    new LiveView("#templateCollection", {
      "things": []
    }, function(template) {
      var thing = template.col("things").append({"variable": "value"})
      thing.set({"variable": "newValue"})
      assertEquals("Variable was not set", $("#templateCollection .variable").html(), "newValue")
    })
  }

  ViewTest.prototype.testDeleteIterable = function() {
    /*:DOC +=

*/
    new LiveView($("#templateDelete"), {
      "things": [{"variable": "A variable", _id: "identifier"}]
    }, function(template) {
      template.col("things").remove("identifier")
      assertEquals("Not deleted", 0, $("#templateDelete .thing .variable").length)
    })
  }

  ViewTest.prototype.testHidingElement = function() {
    /*:DOC +=

*/
    new LiveView($("#template"), {"hideme": false, "andme": false}, function(template) {
      assertEquals("Elements were removed not hidden", 2, $("#template span").length)
      assertEquals("Elements not hidden", 0, $("#template span:visible").length)
    })
  }

  ViewTest.prototype.testSettingHiddenElement = function() {
    /*:DOC +=

 */
    new LiveView($("#template"), {"hideme": true, "updateme": "foo"}, function(template) {
      template.set("hideme", false)
      template.set("updateme", "bar")
      template.set("hideme", true)
      assertEquals("Not Set", "bar", $("#template .updateme").html())
    })
  }

  ViewTest.prototype.testSetClassAttribute = function() {
    /*:DOC +=

*/
    new LiveView($("#template"), {}, function(view) {
      view.set("variable", {"class": "add cool"})
      assertEquals("Variable was not set", $("#template .variable").attr("class"), "variable add cool")
    })
  }

  ViewTest.prototype.testSetClassAttribute = function() {
    /*:DOC +=

*/
    new LiveView($("#template"), {}, function(view) {
      view.set("variable", {"class": "add cool"})
      assertEquals("Variable was not set", $("#template .variable").attr("class"), "variable add cool")
    })
  }

  ViewTest.prototype.testSelfIsIterable = function() {
    /*:DOC +=

              */
    new LiveView(".things", {
      "things": [{"variable": "A variable"}]
    }, function() {
      assertEquals("Variable was not set", $(".things li:nth-child(1) .variable").html(), "A variable")
    })
  }

  ViewTest.prototype.testAddDifferentType = function() {
    /*:DOC +=

            */
    new LiveView(".things", {
      "things": [{"variable": "A variable"}]
    }, function(template) {
      var notherthing = new LiveView(".notherthing", {"value":"val"}, function(notherthing) {
        template.col("things").appendView(notherthing)
        assertEquals("Wrong value", "val", $(".things .notherthing .value").html())
      })
    })
  }

  ViewTest.prototype.testPolymorphicBlocks = function() {
    /*:DOC +=

            */

    new LiveView(".things", {
      "things": [ {"type": "awesome", "awesomeo": "awesome thing"}
                , {"type": "cool", "coolio": "cool thing"} ]
    }, function() {
      assertEquals("Wrong value", "cool thing", $(".things .thing.cool .coolio").html())
      assertEquals("Wrong value", "awesome thing", $(".things .thing.awesome .awesomeo").html())
    })

  }

  ViewTest.prototype.testArrayShorthand = function() {
    /*:DOC +=

            */

    new LiveView(".things", {
      "things": [ "one", "two" ]
    }, function(template) {
      template.col("things").append("three")

      assertEquals("Wrong value", "one", $(".things .value:nth-child(1)").html())
      assertEquals("Wrong value", "two", $(".things .value:nth-child(2)").html())
      assertEquals("Wrong value", "three", $(".things .value:nth-child(3)").html())
    })
  }

  ViewTest.prototype.testAttributeInterpolation = function() {
    /*:DOC +=

            */
    new LiveView($(".template"), {id: 123}, function(template) {
      assertEquals("Wrong value", "/things/123", $(".template a").attr("href"))
    })
  }

  ViewTest.prototype.testAttributeInterpolationMultipleTimes = function() {
    /*:DOC +=

            */
    new LiveView($(".template"), {id: 123}, function(template) {
      template.set("id", 124)
      assertEquals("Wrong value", "/things/124", $(".template a").attr("href"))
    })
  }

  ViewTest.prototype.testAttributeInterpolationMultipleTimesOnIterable = function() {
    /*:DOC +=

            */
    new LiveView($(".templates"), {templates: [{id: 1}, {id: 2}] }, function(template) {
      template.set("templates", [{id: 3}, {id: 4}])
      assertEquals("Wrong value", "/things/3", $($(".templates a")[0]).attr("href"))
      assertEquals("Wrong value", "/things/4", $($(".templates a")[1]).attr("href"))
    })
  }

  ViewTest.prototype.testTemplateFile = function() {
    new LiveView("/views/tests/index.html", {id: 123}, function() {
      assertEquals("Wrong value", "derp", $(".thing").html())
      assertEquals("Wrong value", "herp", $(".thing2").html())
    })
  }

  ViewTest.prototype.testPartial = function() {
    /*:DOC +=

 */
    new LiveView("/views/tests/index.html", {id: 123}, function() {
      assertEquals("Wrong value", "derp", $(".thing").html())
      assertEquals("Wrong value", "herp", $(".thing2").html())
    })
  }

  ViewTest.prototype.testUpdateAttributeMultipleTime = function() {

  }

  ViewTest.prototype.testInputElement = function() {
    /*:DOC +=

                <input class = "thing">

 */
    new LiveView("#template", {}, function(view) {
      view.set("thing", "myvalue")
      assertEquals("Variable was not set", $("#template .thing").val(), "myvalue")
    })
  }

}())


text:
class AddDefaultMenu < ActiveRecord::Migration
  def up
    Spree::MegaMenu.where(name: "Shop", enabled: true).first_or_create;
  end
  def down
    Spree::MegaMenu.where(name: "Shop").delete;
  end
end


text:
Chef::Recipe.send(:include, Chef::Util::Selinux)

module AlAgents
  # Al Agents Helpers
  module Helpers
    def al_agent
      node['al_agents']['package']['name']
    end

    def agent_file(uri)
      require 'pathname'
      require 'uri'
      Pathname.new(URI.parse(uri).path).basename.to_s
    end

    def agent_basename
      agent_file(node['al_agents']['package']['url'])
    end

    def al_agent_service
      node['al_agents']['agent']['al_agent_service']
    end

    def windows_install_guard
      node['al_agents']['windows_install_guard']
    end

    def registration_key
      node['al_agents']['agent']['registration_key']
    end

    # for_imaging: configure ~> run just the configure commands, provision ~> run the provision command
    def for_imaging
      node['al_agents']['agent']['for_imaging']
    end

    def rsyslog_detected?
      file_path = "#{node['rsyslog']['config_prefix']}/rsyslog.conf"
      ::File.exist?(file_path)
    end

    def syslogng_detected?
      ::File.exist?('/etc/syslog-ng/syslog-ng.conf')
    end

    def syslog_ng_pre33
      vers = Mixlib::ShellOut.new('syslog-ng -V')
      vers.run_command
      syslog_ng_version(vers.stdout) <= 3.2
    end

    def syslog_ng_version(sver)
      version = sver.split(/\n/)[0]
      version_value = version.split[1].to_f
      version_value
    end

    def proxy_url
      node['al_agents']['agent']['proxy_url']
    end

    def configure_options
      egress = Chef::Recipe::Egress.new(node)
      options = []
      options << "--proxy #{proxy_url}" unless proxy_url.nil?
      options << "--host #{egress.host} --port #{egress.port}"
      options.join(' ')
    end

    def provision_options
      options = []
      options << "--key #{registration_key}"
      options << '--inst-type host'
      options.join(' ')
    end

    def windows_options
      egress = Chef::Recipe::Egress.new(node)
      windows_options = ["/quiet prov_key=#{registration_key}"]
      windows_options << 'prov_only=host' unless for_imaging == false
      windows_options << "USE_PROXY=#{proxy_url}" unless proxy_url.nil?
      windows_options << 'install_only=1' if for_imaging
      windows_options << "sensor_host=#{egress.sensor_host}"
      windows_options << "sensor_port=#{egress.sensor_port}"
      windows_options.join(' ')
    end
  end
end


text:
namespace Ditto.Resolvers
{
    internal class OverrideablePropertyNameResolver:PropertyNameResolver,IOverrideable
    {
        public OverrideablePropertyNameResolver(string sourcePropertyName) : base(sourcePropertyName)
        {
        }
    }
}


text:
import hasOwnProp from 'utils/hasOwnProp';
import walk from 'utils/ast/walk';

/**
 * Sorts an array of modules such that dependencies come before
   their dependents, handling complex cases of cyclical dependencies
 * @param {object} entry - the bundle's 'entry module'
 * @returns {array} - the sorted module list
 */
export default function sortModules ( entry ) {
	let seen = {};
	let ordered = [];
	let hasCycles;

	let strongDeps = {};
	let stronglyDependsOn = {};

	function visit ( mod ) {
		const { id } = mod;

		seen[ id ] = true;

		strongDeps[ id ] = [];
		stronglyDependsOn[ id ] = {};

		mod.imports.forEach( x => {
			const imported = x.module;

			if ( imported.isExternal || imported.isSkipped ) return;

			// if `mod` references a binding from `imported` at the top
			// level (i.e. outside function bodies), we say that `mod`
			// strongly depends on `imported. If two modules depend on
			// each other, this helps us order them such that if a
			// strongly depends on b, and b weakly depends on a, b
			// goes first
			if ( referencesAtTopLevel( mod, imported ) ) {
				strongDeps[ id ].push( imported );
			}

			if ( hasOwnProp.call( seen, imported.id ) ) {
				// we need to prevent an infinite loop, and note that
				// we need to check for strong/weak dependency relationships
				hasCycles = true;
				return;
			}

			visit( imported );
		});

		// add second (and third...) order dependencies
		function addStrongDependencies ( dependency ) {
			if ( hasOwnProp.call( stronglyDependsOn[ id ], dependency.id ) ) return;

			stronglyDependsOn[ id ][ dependency.id ] = true;
			strongDeps[ dependency.id ].forEach( addStrongDependencies );
		}

		strongDeps[ id ].forEach( addStrongDependencies );

		ordered.push( mod );
	}

	visit( entry );

	let unordered;

	if ( hasCycles ) {
		unordered = ordered;
		ordered = [];

		// unordered is actually semi-ordered, as [ fewer dependencies ... more dependencies ]
		unordered.forEach( x => {
			// ensure strong dependencies of x that don't strongly depend on x go first
			strongDeps[ x.id ].forEach( place );

			function place ( dep ) {
				if ( !stronglyDependsOn[ dep.id ][ x.id ] && !~ordered.indexOf( dep ) ) {
					strongDeps[ dep.id ].forEach( place );
					ordered.push( dep );
				}
			}

			if ( !~ordered.indexOf( x ) ) {
				ordered.push( x );
			}
		});
	}

	return ordered;
}

function referencesAtTopLevel ( a, b ) {
	let bindings = [];

	// find out which bindings a imports from b
	let i = a.imports.length;
	while ( i-- ) {
		if ( a.imports[i].module === b ) {
			bindings.push.apply( bindings, a.imports[i].specifiers.map( x => x.as ) );
		}
	}

	// see if any of those bindings are referenced at the top level
	let referencedAtTopLevel = false;

	walk( a.ast, {
		enter ( node ) {
			if ( /^Import/.test( node.type ) || ( node._scope && node._scope.parent ) ) {
				return this.skip();
			}

			if ( node.type === 'Identifier' && ~bindings.indexOf( node.name ) ) {
				referencedAtTopLevel = true;
				this.abort();
			}
		}
	});

	return referencedAtTopLevel;
}


text:
require 'spec_helper'

describe UBImporter do

  let(:importer) { UBImporter.new('spec/fixtures/sample.csv') }

  describe "#original_lines" do
    it "should load the file" do
      expect(importer.changed_lines.length).to eq(2)
    end

    it "should change the last few parts of the first line" do
      expect(importer.changed_lines.first.length).to eq(4)
      expect(importer.changed_lines.first[0]).to eq('29/11/2010')
      expect(importer.changed_lines.first[1]).to eq('-900.00')
    end

    it "should change the last few parts of the second line" do
      expect(importer.changed_lines[1].length).to eq(4)
      expect(importer.changed_lines[1][0]).to eq('26/11/2010')
      expect(importer.changed_lines[1][1]).to eq('3811.50')
    end
  end

  describe "#output" do
    it "should output the file correctly" do
      expect(importer.output).to eq(File.read('spec/fixtures/sample_output.csv'))
    end
  end

end


text:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Gara Sandbox</title>
    <link>/index.xml</link>
    <description>Recent content on Gara Sandbox</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>es-MX</language>
    <atom:link href="/index.xml" rel="self" type="application/rss+xml" />

  </channel>
</rss>