text:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="CoreNLP-to-HTML.xsl" type="text/xsl"?>
<root>
  <document>
    <sentences>
      <sentence id="1">
        <tokens>
          <token id="1">
            <word>New</word>
            <lemma>New</lemma>
            <CharacterOffsetBegin>0</CharacterOffsetBegin>
            <CharacterOffsetEnd>3</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="2">
            <word>Zealand</word>
            <lemma>Zealand</lemma>
            <CharacterOffsetBegin>4</CharacterOffsetBegin>
            <CharacterOffsetEnd>11</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="3">
            <word>yesterday</word>
            <lemma>yesterday</lemma>
            <CharacterOffsetBegin>12</CharacterOffsetBegin>
            <CharacterOffsetEnd>21</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="4">
            <word>legalised</word>
            <lemma>legalise</lemma>
            <CharacterOffsetBegin>22</CharacterOffsetBegin>
            <CharacterOffsetEnd>31</CharacterOffsetEnd>
            <POS>VBD</POS>
          </token>
          <token id="5">
            <word>same-sex</word>
            <lemma>same-sex</lemma>
            <CharacterOffsetBegin>32</CharacterOffsetBegin>
            <CharacterOffsetEnd>40</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="6">
            <word>marriage</word>
            <lemma>marriage</lemma>
            <CharacterOffsetBegin>41</CharacterOffsetBegin>
            <CharacterOffsetEnd>49</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="7">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>49</CharacterOffsetBegin>
            <CharacterOffsetEnd>50</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="8">
            <word>with</word>
            <lemma>with</lemma>
            <CharacterOffsetBegin>51</CharacterOffsetBegin>
            <CharacterOffsetEnd>55</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="9">
            <word>a</word>
            <lemma>a</lemma>
            <CharacterOffsetBegin>56</CharacterOffsetBegin>
            <CharacterOffsetEnd>57</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="10">
            <word>surge</word>
            <lemma>surge</lemma>
            <CharacterOffsetBegin>58</CharacterOffsetBegin>
            <CharacterOffsetEnd>63</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="11">
            <word>in</word>
            <lemma>in</lemma>
            <CharacterOffsetBegin>64</CharacterOffsetBegin>
            <CharacterOffsetEnd>66</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="12">
            <word>marriage</word>
            <lemma>marriage</lemma>
            <CharacterOffsetBegin>67</CharacterOffsetBegin>
            <CharacterOffsetEnd>75</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="13">
            <word>applications</word>
            <lemma>application</lemma>
            <CharacterOffsetBegin>76</CharacterOffsetBegin>
            <CharacterOffsetEnd>88</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="14">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>88</CharacterOffsetBegin>
            <CharacterOffsetEnd>89</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="15">
            <word>according</word>
            <lemma>accord</lemma>
            <CharacterOffsetBegin>90</CharacterOffsetBegin>
            <CharacterOffsetEnd>99</CharacterOffsetEnd>
            <POS>VBG</POS>
          </token>
          <token id="16">
            <word>to</word>
            <lemma>to</lemma>
            <CharacterOffsetBegin>100</CharacterOffsetBegin>
            <CharacterOffsetEnd>102</CharacterOffsetEnd>
            <POS>TO</POS>
          </token>
          <token id="17">
            <word>New</word>
            <lemma>New</lemma>
            <CharacterOffsetBegin>103</CharacterOffsetBegin>
            <CharacterOffsetEnd>106</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="18">
            <word>Zealand</word>
            <lemma>Zealand</lemma>
            <CharacterOffsetBegin>107</CharacterOffsetBegin>
            <CharacterOffsetEnd>114</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="19">
            <word>'s</word>
            <lemma>'s</lemma>
            <CharacterOffsetBegin>114</CharacterOffsetBegin>
            <CharacterOffsetEnd>116</CharacterOffsetEnd>
            <POS>POS</POS>
          </token>
          <token id="20">
            <word>Department</word>
            <lemma>Department</lemma>
            <CharacterOffsetBegin>117</CharacterOffsetBegin>
            <CharacterOffsetEnd>127</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="21">
            <word>of</word>
            <lemma>of</lemma>
            <CharacterOffsetBegin>128</CharacterOffsetBegin>
            <CharacterOffsetEnd>130</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="22">
            <word>Internal</word>
            <lemma>Internal</lemma>
            <CharacterOffsetBegin>131</CharacterOffsetBegin>
            <CharacterOffsetEnd>139</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="23">
            <word>Affairs</word>
            <lemma>Affairs</lemma>
            <CharacterOffsetBegin>140</CharacterOffsetBegin>
            <CharacterOffsetEnd>147</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="24">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>147</CharacterOffsetBegin>
            <CharacterOffsetEnd>148</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (NNP New) (NNP Zealand)) (NP-TMP (NN yesterday)) (VP (VBD legalised) (NP (JJ same-sex) (NN marriage)) (, ,) (PP (IN with) (NP (NP (DT a) (NN surge)) (PP (IN in) (NP (NN marriage) (NNS applications))))) (, ,) (PP (VBG according) (PP (TO to) (NP (NP (NP (NNP New) (NNP Zealand) (POS 's)) (NNP Department)) (PP (IN of) (NP (NNP Internal) (NNP Affairs))))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="4">legalised</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">Zealand</governor>
            <dependent idx="1">New</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">legalised</governor>
            <dependent idx="2">Zealand</dependent>
          </dep>
          <dep type="tmod">
            <governor idx="4">legalised</governor>
            <dependent idx="3">yesterday</dependent>
          </dep>
          <dep type="amod">
            <governor idx="6">marriage</governor>
            <dependent idx="5">same-sex</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="4">legalised</governor>
            <dependent idx="6">marriage</dependent>
          </dep>
          <dep type="prep">
            <governor idx="4">legalised</governor>
            <dependent idx="8">with</dependent>
          </dep>
          <dep type="det">
            <governor idx="10">surge</governor>
            <dependent idx="9">a</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="8">with</governor>
            <dependent idx="10">surge</dependent>
          </dep>
          <dep type="prep">
            <governor idx="10">surge</governor>
            <dependent idx="11">in</dependent>
          </dep>
          <dep type="nn">
            <governor idx="13">applications</governor>
            <dependent idx="12">marriage</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="11">in</governor>
            <dependent idx="13">applications</dependent>
          </dep>
          <dep type="prep">
            <governor idx="4">legalised</governor>
            <dependent idx="15">according</dependent>
          </dep>
          <dep type="pcomp">
            <governor idx="15">according</governor>
            <dependent idx="16">to</dependent>
          </dep>
          <dep type="nn">
            <governor idx="18">Zealand</governor>
            <dependent idx="17">New</dependent>
          </dep>
          <dep type="poss">
            <governor idx="20">Department</governor>
            <dependent idx="18">Zealand</dependent>
          </dep>
          <dep type="possessive">
            <governor idx="18">Zealand</governor>
            <dependent idx="19">'s</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="16">to</governor>
            <dependent idx="20">Department</dependent>
          </dep>
          <dep type="prep">
            <governor idx="20">Department</governor>
            <dependent idx="21">of</dependent>
          </dep>
          <dep type="nn">
            <governor idx="23">Affairs</governor>
            <dependent idx="22">Internal</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="21">of</governor>
            <dependent idx="23">Affairs</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="4">legalised</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">Zealand</governor>
            <dependent idx="1">New</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">legalised</governor>
            <dependent idx="2">Zealand</dependent>
          </dep>
          <dep type="tmod">
            <governor idx="4">legalised</governor>
            <dependent idx="3">yesterday</dependent>
          </dep>
          <dep type="amod">
            <governor idx="6">marriage</governor>
            <dependent idx="5">same-sex</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="4">legalised</governor>
            <dependent idx="6">marriage</dependent>
          </dep>
          <dep type="det">
            <governor idx="10">surge</governor>
            <dependent idx="9">a</dependent>
          </dep>
          <dep type="prep_with">
            <governor idx="4">legalised</governor>
            <dependent idx="10">surge</dependent>
          </dep>
          <dep type="nn">
            <governor idx="13">applications</governor>
            <dependent idx="12">marriage</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="10">surge</governor>
            <dependent idx="13">applications</dependent>
          </dep>
          <dep type="prepc_according_to">
            <governor idx="4">legalised</governor>
            <dependent idx="16">to</dependent>
          </dep>
          <dep type="nn">
            <governor idx="18">Zealand</governor>
            <dependent idx="17">New</dependent>
          </dep>
          <dep type="poss">
            <governor idx="20">Department</governor>
            <dependent idx="18">Zealand</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="4">legalised</governor>
            <dependent idx="20">Department</dependent>
          </dep>
          <dep type="nn">
            <governor idx="23">Affairs</governor>
            <dependent idx="22">Internal</dependent>
          </dep>
          <dep type="prep_of">
            <governor idx="20">Department</governor>
            <dependent idx="23">Affairs</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="4">legalised</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">Zealand</governor>
            <dependent idx="1">New</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="4">legalised</governor>
            <dependent idx="2">Zealand</dependent>
          </dep>
          <dep type="tmod">
            <governor idx="4">legalised</governor>
            <dependent idx="3">yesterday</dependent>
          </dep>
          <dep type="amod">
            <governor idx="6">marriage</governor>
            <dependent idx="5">same-sex</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="4">legalised</governor>
            <dependent idx="6">marriage</dependent>
          </dep>
          <dep type="det">
            <governor idx="10">surge</governor>
            <dependent idx="9">a</dependent>
          </dep>
          <dep type="prep_with">
            <governor idx="4">legalised</governor>
            <dependent idx="10">surge</dependent>
          </dep>
          <dep type="nn">
            <governor idx="13">applications</governor>
            <dependent idx="12">marriage</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="10">surge</governor>
            <dependent idx="13">applications</dependent>
          </dep>
          <dep type="prepc_according_to">
            <governor idx="4">legalised</governor>
            <dependent idx="16">to</dependent>
          </dep>
          <dep type="nn">
            <governor idx="18">Zealand</governor>
            <dependent idx="17">New</dependent>
          </dep>
          <dep type="poss">
            <governor idx="20">Department</governor>
            <dependent idx="18">Zealand</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="4">legalised</governor>
            <dependent idx="20">Department</dependent>
          </dep>
          <dep type="nn">
            <governor idx="23">Affairs</governor>
            <dependent idx="22">Internal</dependent>
          </dep>
          <dep type="prep_of">
            <governor idx="20">Department</governor>
            <dependent idx="23">Affairs</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="2">
        <tokens>
          <token id="1">
            <word>New</word>
            <lemma>New</lemma>
            <CharacterOffsetBegin>149</CharacterOffsetBegin>
            <CharacterOffsetEnd>152</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="2">
            <word>Zealand</word>
            <lemma>Zealand</lemma>
            <CharacterOffsetBegin>153</CharacterOffsetBegin>
            <CharacterOffsetEnd>160</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="3">
            <word>is</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>161</CharacterOffsetBegin>
            <CharacterOffsetEnd>163</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="4">
            <word>now</word>
            <lemma>now</lemma>
            <CharacterOffsetBegin>164</CharacterOffsetBegin>
            <CharacterOffsetEnd>167</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="5">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>168</CharacterOffsetBegin>
            <CharacterOffsetEnd>171</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="6">
            <word>first</word>
            <lemma>first</lemma>
            <CharacterOffsetBegin>172</CharacterOffsetBegin>
            <CharacterOffsetEnd>177</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="7">
            <word>country</word>
            <lemma>country</lemma>
            <CharacterOffsetBegin>178</CharacterOffsetBegin>
            <CharacterOffsetEnd>185</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="8">
            <word>in</word>
            <lemma>in</lemma>
            <CharacterOffsetBegin>186</CharacterOffsetBegin>
            <CharacterOffsetEnd>188</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="9">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>189</CharacterOffsetBegin>
            <CharacterOffsetEnd>192</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="10">
            <word>Asia-Pacific</word>
            <lemma>asia-pacific</lemma>
            <CharacterOffsetBegin>193</CharacterOffsetBegin>
            <CharacterOffsetEnd>205</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="11">
            <word>region</word>
            <lemma>region</lemma>
            <CharacterOffsetBegin>206</CharacterOffsetBegin>
            <CharacterOffsetEnd>212</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="12">
            <word>to</word>
            <lemma>to</lemma>
            <CharacterOffsetBegin>213</CharacterOffsetBegin>
            <CharacterOffsetEnd>215</CharacterOffsetEnd>
            <POS>TO</POS>
          </token>
          <token id="13">
            <word>legalise</word>
            <lemma>legalise</lemma>
            <CharacterOffsetBegin>216</CharacterOffsetBegin>
            <CharacterOffsetEnd>224</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="14">
            <word>same-sex</word>
            <lemma>same-sex</lemma>
            <CharacterOffsetBegin>225</CharacterOffsetBegin>
            <CharacterOffsetEnd>233</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="15">
            <word>marriage</word>
            <lemma>marriage</lemma>
            <CharacterOffsetBegin>234</CharacterOffsetBegin>
            <CharacterOffsetEnd>242</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="16">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>242</CharacterOffsetBegin>
            <CharacterOffsetEnd>243</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="17">
            <word>and</word>
            <lemma>and</lemma>
            <CharacterOffsetBegin>244</CharacterOffsetBegin>
            <CharacterOffsetEnd>247</CharacterOffsetEnd>
            <POS>CC</POS>
          </token>
          <token id="18">
            <word>the</word>
            <lemma>the</lemma>
            <CharacterOffsetBegin>248</CharacterOffsetBegin>
            <CharacterOffsetEnd>251</CharacterOffsetEnd>
            <POS>DT</POS>
          </token>
          <token id="19">
            <word>fourteenth</word>
            <lemma>fourteenth</lemma>
            <CharacterOffsetBegin>252</CharacterOffsetBegin>
            <CharacterOffsetEnd>262</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="20">
            <word>country</word>
            <lemma>country</lemma>
            <CharacterOffsetBegin>263</CharacterOffsetBegin>
            <CharacterOffsetEnd>270</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="21">
            <word>to</word>
            <lemma>to</lemma>
            <CharacterOffsetBegin>271</CharacterOffsetBegin>
            <CharacterOffsetEnd>273</CharacterOffsetEnd>
            <POS>TO</POS>
          </token>
          <token id="22">
            <word>do</word>
            <lemma>do</lemma>
            <CharacterOffsetBegin>274</CharacterOffsetBegin>
            <CharacterOffsetEnd>276</CharacterOffsetEnd>
            <POS>VB</POS>
          </token>
          <token id="23">
            <word>so</word>
            <lemma>so</lemma>
            <CharacterOffsetBegin>277</CharacterOffsetBegin>
            <CharacterOffsetEnd>279</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="24">
            <word>worldwide</word>
            <lemma>worldwide</lemma>
            <CharacterOffsetBegin>280</CharacterOffsetBegin>
            <CharacterOffsetEnd>289</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="25">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>289</CharacterOffsetBegin>
            <CharacterOffsetEnd>290</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (NNP New) (NNP Zealand)) (VP (VBZ is) (ADVP (RB now)) (NP (NP (NP (DT the) (JJ first) (NN country)) (PP (IN in) (NP (DT the) (JJ Asia-Pacific) (NN region) (S (VP (TO to) (VP (VB legalise) (NP (JJ same-sex) (NN marriage)))))))) (, ,) (CC and) (NP (DT the) (JJ fourteenth) (NN country) (S (VP (TO to) (VP (VB do) (NP (RB so) (JJ worldwide)))))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="7">country</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">Zealand</governor>
            <dependent idx="1">New</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">country</governor>
            <dependent idx="2">Zealand</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">country</governor>
            <dependent idx="3">is</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="7">country</governor>
            <dependent idx="4">now</dependent>
          </dep>
          <dep type="det">
            <governor idx="7">country</governor>
            <dependent idx="5">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="7">country</governor>
            <dependent idx="6">first</dependent>
          </dep>
          <dep type="prep">
            <governor idx="7">country</governor>
            <dependent idx="8">in</dependent>
          </dep>
          <dep type="det">
            <governor idx="11">region</governor>
            <dependent idx="9">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="11">region</governor>
            <dependent idx="10">Asia-Pacific</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="8">in</governor>
            <dependent idx="11">region</dependent>
          </dep>
          <dep type="aux">
            <governor idx="13">legalise</governor>
            <dependent idx="12">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="11">region</governor>
            <dependent idx="13">legalise</dependent>
          </dep>
          <dep type="amod">
            <governor idx="15">marriage</governor>
            <dependent idx="14">same-sex</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="13">legalise</governor>
            <dependent idx="15">marriage</dependent>
          </dep>
          <dep type="cc">
            <governor idx="7">country</governor>
            <dependent idx="17">and</dependent>
          </dep>
          <dep type="det">
            <governor idx="20">country</governor>
            <dependent idx="18">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="20">country</governor>
            <dependent idx="19">fourteenth</dependent>
          </dep>
          <dep type="conj">
            <governor idx="7">country</governor>
            <dependent idx="20">country</dependent>
          </dep>
          <dep type="aux">
            <governor idx="22">do</governor>
            <dependent idx="21">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="20">country</governor>
            <dependent idx="22">do</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="24">worldwide</governor>
            <dependent idx="23">so</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="22">do</governor>
            <dependent idx="24">worldwide</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="7">country</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">Zealand</governor>
            <dependent idx="1">New</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">country</governor>
            <dependent idx="2">Zealand</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">country</governor>
            <dependent idx="3">is</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="7">country</governor>
            <dependent idx="4">now</dependent>
          </dep>
          <dep type="det">
            <governor idx="7">country</governor>
            <dependent idx="5">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="7">country</governor>
            <dependent idx="6">first</dependent>
          </dep>
          <dep type="det">
            <governor idx="11">region</governor>
            <dependent idx="9">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="11">region</governor>
            <dependent idx="10">Asia-Pacific</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="7">country</governor>
            <dependent idx="11">region</dependent>
          </dep>
          <dep type="aux">
            <governor idx="13">legalise</governor>
            <dependent idx="12">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="11">region</governor>
            <dependent idx="13">legalise</dependent>
          </dep>
          <dep type="amod">
            <governor idx="15">marriage</governor>
            <dependent idx="14">same-sex</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="13">legalise</governor>
            <dependent idx="15">marriage</dependent>
          </dep>
          <dep type="det">
            <governor idx="20">country</governor>
            <dependent idx="18">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="20">country</governor>
            <dependent idx="19">fourteenth</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="7">country</governor>
            <dependent idx="20">country</dependent>
          </dep>
          <dep type="aux">
            <governor idx="22">do</governor>
            <dependent idx="21">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="20">country</governor>
            <dependent idx="22">do</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="24">worldwide</governor>
            <dependent idx="23">so</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="22">do</governor>
            <dependent idx="24">worldwide</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="7">country</dependent>
          </dep>
          <dep type="nn">
            <governor idx="2">Zealand</governor>
            <dependent idx="1">New</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="7">country</governor>
            <dependent idx="2">Zealand</dependent>
          </dep>
          <dep type="cop">
            <governor idx="7">country</governor>
            <dependent idx="3">is</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="7">country</governor>
            <dependent idx="4">now</dependent>
          </dep>
          <dep type="det">
            <governor idx="7">country</governor>
            <dependent idx="5">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="7">country</governor>
            <dependent idx="6">first</dependent>
          </dep>
          <dep type="det">
            <governor idx="11">region</governor>
            <dependent idx="9">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="11">region</governor>
            <dependent idx="10">Asia-Pacific</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="7">country</governor>
            <dependent idx="11">region</dependent>
          </dep>
          <dep type="aux">
            <governor idx="13">legalise</governor>
            <dependent idx="12">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="11">region</governor>
            <dependent idx="13">legalise</dependent>
          </dep>
          <dep type="amod">
            <governor idx="15">marriage</governor>
            <dependent idx="14">same-sex</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="13">legalise</governor>
            <dependent idx="15">marriage</dependent>
          </dep>
          <dep type="det">
            <governor idx="20">country</governor>
            <dependent idx="18">the</dependent>
          </dep>
          <dep type="amod">
            <governor idx="20">country</governor>
            <dependent idx="19">fourteenth</dependent>
          </dep>
          <dep type="conj_and">
            <governor idx="7">country</governor>
            <dependent idx="20">country</dependent>
          </dep>
          <dep type="aux">
            <governor idx="22">do</governor>
            <dependent idx="21">to</dependent>
          </dep>
          <dep type="vmod">
            <governor idx="20">country</governor>
            <dependent idx="22">do</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="24">worldwide</governor>
            <dependent idx="23">so</dependent>
          </dep>
          <dep type="dobj">
            <governor idx="22">do</governor>
            <dependent idx="24">worldwide</dependent>
          </dep>
        </dependencies>
      </sentence>
      <sentence id="3">
        <tokens>
          <token id="1">
            <word>Same</word>
            <lemma>same</lemma>
            <CharacterOffsetBegin>291</CharacterOffsetBegin>
            <CharacterOffsetEnd>295</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="2">
            <word>sex</word>
            <lemma>sex</lemma>
            <CharacterOffsetBegin>296</CharacterOffsetBegin>
            <CharacterOffsetEnd>299</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="3">
            <word>marriages</word>
            <lemma>marriage</lemma>
            <CharacterOffsetBegin>300</CharacterOffsetBegin>
            <CharacterOffsetEnd>309</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="4">
            <word>are</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>310</CharacterOffsetBegin>
            <CharacterOffsetEnd>313</CharacterOffsetEnd>
            <POS>VBP</POS>
          </token>
          <token id="5">
            <word>gradually</word>
            <lemma>gradually</lemma>
            <CharacterOffsetBegin>314</CharacterOffsetBegin>
            <CharacterOffsetEnd>323</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="6">
            <word>becoming</word>
            <lemma>become</lemma>
            <CharacterOffsetBegin>324</CharacterOffsetBegin>
            <CharacterOffsetEnd>332</CharacterOffsetEnd>
            <POS>VBG</POS>
          </token>
          <token id="7">
            <word>more</word>
            <lemma>more</lemma>
            <CharacterOffsetBegin>333</CharacterOffsetBegin>
            <CharacterOffsetEnd>337</CharacterOffsetEnd>
            <POS>RBR</POS>
          </token>
          <token id="8">
            <word>widely</word>
            <lemma>widely</lemma>
            <CharacterOffsetBegin>338</CharacterOffsetBegin>
            <CharacterOffsetEnd>344</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="9">
            <word>accepted</word>
            <lemma>accept</lemma>
            <CharacterOffsetBegin>345</CharacterOffsetBegin>
            <CharacterOffsetEnd>353</CharacterOffsetEnd>
            <POS>VBN</POS>
          </token>
          <token id="10">
            <word>in</word>
            <lemma>in</lemma>
            <CharacterOffsetBegin>354</CharacterOffsetBegin>
            <CharacterOffsetEnd>356</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="11">
            <word>modern</word>
            <lemma>modern</lemma>
            <CharacterOffsetBegin>357</CharacterOffsetBegin>
            <CharacterOffsetEnd>363</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="12">
            <word>society</word>
            <lemma>society</lemma>
            <CharacterOffsetBegin>364</CharacterOffsetBegin>
            <CharacterOffsetEnd>371</CharacterOffsetEnd>
            <POS>NN</POS>
          </token>
          <token id="13">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>371</CharacterOffsetBegin>
            <CharacterOffsetEnd>372</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="14">
            <word>particularly</word>
            <lemma>particularly</lemma>
            <CharacterOffsetBegin>373</CharacterOffsetBegin>
            <CharacterOffsetEnd>385</CharacterOffsetEnd>
            <POS>RB</POS>
          </token>
          <token id="15">
            <word>in</word>
            <lemma>in</lemma>
            <CharacterOffsetBegin>386</CharacterOffsetBegin>
            <CharacterOffsetEnd>388</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="16">
            <word>countries</word>
            <lemma>country</lemma>
            <CharacterOffsetBegin>389</CharacterOffsetBegin>
            <CharacterOffsetEnd>398</CharacterOffsetEnd>
            <POS>NNS</POS>
          </token>
          <token id="17">
            <word>where</word>
            <lemma>where</lemma>
            <CharacterOffsetBegin>399</CharacterOffsetBegin>
            <CharacterOffsetEnd>404</CharacterOffsetEnd>
            <POS>WRB</POS>
          </token>
          <token id="18">
            <word>it</word>
            <lemma>it</lemma>
            <CharacterOffsetBegin>405</CharacterOffsetBegin>
            <CharacterOffsetEnd>407</CharacterOffsetEnd>
            <POS>PRP</POS>
          </token>
          <token id="19">
            <word>is</word>
            <lemma>be</lemma>
            <CharacterOffsetBegin>408</CharacterOffsetBegin>
            <CharacterOffsetEnd>410</CharacterOffsetEnd>
            <POS>VBZ</POS>
          </token>
          <token id="20">
            <word>legalised</word>
            <lemma>legalise</lemma>
            <CharacterOffsetBegin>411</CharacterOffsetBegin>
            <CharacterOffsetEnd>420</CharacterOffsetEnd>
            <POS>VBN</POS>
          </token>
          <token id="21">
            <word>,</word>
            <lemma>,</lemma>
            <CharacterOffsetBegin>420</CharacterOffsetBegin>
            <CharacterOffsetEnd>421</CharacterOffsetEnd>
            <POS>,</POS>
          </token>
          <token id="22">
            <word>such</word>
            <lemma>such</lemma>
            <CharacterOffsetBegin>422</CharacterOffsetBegin>
            <CharacterOffsetEnd>426</CharacterOffsetEnd>
            <POS>JJ</POS>
          </token>
          <token id="23">
            <word>as</word>
            <lemma>as</lemma>
            <CharacterOffsetBegin>427</CharacterOffsetBegin>
            <CharacterOffsetEnd>429</CharacterOffsetEnd>
            <POS>IN</POS>
          </token>
          <token id="24">
            <word>New</word>
            <lemma>New</lemma>
            <CharacterOffsetBegin>430</CharacterOffsetBegin>
            <CharacterOffsetEnd>433</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="25">
            <word>Zealand</word>
            <lemma>Zealand</lemma>
            <CharacterOffsetBegin>434</CharacterOffsetBegin>
            <CharacterOffsetEnd>441</CharacterOffsetEnd>
            <POS>NNP</POS>
          </token>
          <token id="26">
            <word>.</word>
            <lemma>.</lemma>
            <CharacterOffsetBegin>441</CharacterOffsetBegin>
            <CharacterOffsetEnd>442</CharacterOffsetEnd>
            <POS>.</POS>
          </token>
        </tokens>
        <parse>(ROOT (S (NP (JJ Same) (NN sex) (NNS marriages)) (VP (VBP are) (ADVP (RB gradually)) (VP (VBG becoming) (ADVP (RBR more)) (S (ADVP (RB widely)) (VP (VBN accepted) (PP (IN in) (NP (JJ modern) (NN society))))) (, ,) (ADVP (RB particularly)) (PP (IN in) (NP (NP (NNS countries)) (SBAR (WHADVP (WRB where)) (S (NP (PRP it)) (VP (VBZ is) (VP (VBN legalised))))) (, ,) (PP (JJ such) (IN as) (NP (NNP New) (NNP Zealand))))))) (. .))) </parse>
        <dependencies type="basic-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">becoming</dependent>
          </dep>
          <dep type="amod">
            <governor idx="3">marriages</governor>
            <dependent idx="1">Same</dependent>
          </dep>
          <dep type="nn">
            <governor idx="3">marriages</governor>
            <dependent idx="2">sex</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">becoming</governor>
            <dependent idx="3">marriages</dependent>
          </dep>
          <dep type="aux">
            <governor idx="6">becoming</governor>
            <dependent idx="4">are</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="5">gradually</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="7">more</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="9">accepted</governor>
            <dependent idx="8">widely</dependent>
          </dep>
          <dep type="dep">
            <governor idx="6">becoming</governor>
            <dependent idx="9">accepted</dependent>
          </dep>
          <dep type="prep">
            <governor idx="9">accepted</governor>
            <dependent idx="10">in</dependent>
          </dep>
          <dep type="amod">
            <governor idx="12">society</governor>
            <dependent idx="11">modern</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="10">in</governor>
            <dependent idx="12">society</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="14">particularly</dependent>
          </dep>
          <dep type="prep">
            <governor idx="6">becoming</governor>
            <dependent idx="15">in</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="15">in</governor>
            <dependent idx="16">countries</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="20">legalised</governor>
            <dependent idx="17">where</dependent>
          </dep>
          <dep type="nsubjpass">
            <governor idx="20">legalised</governor>
            <dependent idx="18">it</dependent>
          </dep>
          <dep type="auxpass">
            <governor idx="20">legalised</governor>
            <dependent idx="19">is</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="16">countries</governor>
            <dependent idx="20">legalised</dependent>
          </dep>
          <dep type="mwe">
            <governor idx="23">as</governor>
            <dependent idx="22">such</dependent>
          </dep>
          <dep type="prep">
            <governor idx="16">countries</governor>
            <dependent idx="23">as</dependent>
          </dep>
          <dep type="nn">
            <governor idx="25">Zealand</governor>
            <dependent idx="24">New</dependent>
          </dep>
          <dep type="pobj">
            <governor idx="23">as</governor>
            <dependent idx="25">Zealand</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">becoming</dependent>
          </dep>
          <dep type="amod">
            <governor idx="3">marriages</governor>
            <dependent idx="1">Same</dependent>
          </dep>
          <dep type="nn">
            <governor idx="3">marriages</governor>
            <dependent idx="2">sex</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">becoming</governor>
            <dependent idx="3">marriages</dependent>
          </dep>
          <dep type="aux">
            <governor idx="6">becoming</governor>
            <dependent idx="4">are</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="5">gradually</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="7">more</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="9">accepted</governor>
            <dependent idx="8">widely</dependent>
          </dep>
          <dep type="dep">
            <governor idx="6">becoming</governor>
            <dependent idx="9">accepted</dependent>
          </dep>
          <dep type="amod">
            <governor idx="12">society</governor>
            <dependent idx="11">modern</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="9">accepted</governor>
            <dependent idx="12">society</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="14">particularly</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="6">becoming</governor>
            <dependent idx="16">countries</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="20">legalised</governor>
            <dependent idx="17">where</dependent>
          </dep>
          <dep type="nsubjpass">
            <governor idx="20">legalised</governor>
            <dependent idx="18">it</dependent>
          </dep>
          <dep type="auxpass">
            <governor idx="20">legalised</governor>
            <dependent idx="19">is</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="16">countries</governor>
            <dependent idx="20">legalised</dependent>
          </dep>
          <dep type="nn">
            <governor idx="25">Zealand</governor>
            <dependent idx="24">New</dependent>
          </dep>
          <dep type="prep_such_as">
            <governor idx="16">countries</governor>
            <dependent idx="25">Zealand</dependent>
          </dep>
        </dependencies>
        <dependencies type="collapsed-ccprocessed-dependencies">
          <dep type="root">
            <governor idx="0">ROOT</governor>
            <dependent idx="6">becoming</dependent>
          </dep>
          <dep type="amod">
            <governor idx="3">marriages</governor>
            <dependent idx="1">Same</dependent>
          </dep>
          <dep type="nn">
            <governor idx="3">marriages</governor>
            <dependent idx="2">sex</dependent>
          </dep>
          <dep type="nsubj">
            <governor idx="6">becoming</governor>
            <dependent idx="3">marriages</dependent>
          </dep>
          <dep type="aux">
            <governor idx="6">becoming</governor>
            <dependent idx="4">are</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="5">gradually</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="7">more</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="9">accepted</governor>
            <dependent idx="8">widely</dependent>
          </dep>
          <dep type="dep">
            <governor idx="6">becoming</governor>
            <dependent idx="9">accepted</dependent>
          </dep>
          <dep type="amod">
            <governor idx="12">society</governor>
            <dependent idx="11">modern</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="9">accepted</governor>
            <dependent idx="12">society</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="6">becoming</governor>
            <dependent idx="14">particularly</dependent>
          </dep>
          <dep type="prep_in">
            <governor idx="6">becoming</governor>
            <dependent idx="16">countries</dependent>
          </dep>
          <dep type="advmod">
            <governor idx="20">legalised</governor>
            <dependent idx="17">where</dependent>
          </dep>
          <dep type="nsubjpass">
            <governor idx="20">legalised</governor>
            <dependent idx="18">it</dependent>
          </dep>
          <dep type="auxpass">
            <governor idx="20">legalised</governor>
            <dependent idx="19">is</dependent>
          </dep>
          <dep type="rcmod">
            <governor idx="16">countries</governor>
            <dependent idx="20">legalised</dependent>
          </dep>
          <dep type="nn">
            <governor idx="25">Zealand</governor>
            <dependent idx="24">New</dependent>
          </dep>
          <dep type="prep_such_as">
            <governor idx="16">countries</governor>
            <dependent idx="25">Zealand</dependent>
          </dep>
        </dependencies>
      </sentence>
    </sentences>
  </document>
</root>


text:
#ifndef __G_SRV_TARGET_H__
#define __G_SRV_TARGET_H__

#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
#error "Only <gio/gio.h> can be included directly."
#endif

#include <gio/giotypes.h>

G_BEGIN_DECLS

GLIB_AVAILABLE_IN_ALL
GType g_srv_target_get_type (void) G_GNUC_CONST;
#define G_TYPE_SRV_TARGET (g_srv_target_get_type ())

GLIB_AVAILABLE_IN_ALL
GSrvTarget  *g_srv_target_new          (const gchar *hostname,
				        guint16      port,
				        guint16      priority,
				        guint16      weight);
GLIB_AVAILABLE_IN_ALL
GSrvTarget  *g_srv_target_copy         (GSrvTarget  *target);
GLIB_AVAILABLE_IN_ALL
void         g_srv_target_free         (GSrvTarget  *target);

GLIB_AVAILABLE_IN_ALL
const gchar *g_srv_target_get_hostname (GSrvTarget  *target);
GLIB_AVAILABLE_IN_ALL
guint16      g_srv_target_get_port     (GSrvTarget  *target);
GLIB_AVAILABLE_IN_ALL
guint16      g_srv_target_get_priority (GSrvTarget  *target);
GLIB_AVAILABLE_IN_ALL
guint16      g_srv_target_get_weight   (GSrvTarget  *target);

GLIB_AVAILABLE_IN_ALL
GList       *g_srv_target_list_sort    (GList       *targets);

G_END_DECLS

#endif /* __G_SRV_TARGET_H__ */

redpajama_set_name: RedPajamaGithub


text:
<!DOCTYPE html>

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

<title>Import SQL table that is result of SELECT SQL query into H2O — h2o.import_sql_select • h2o</title>

<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">

<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">

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

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

      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar">

      </button>
      H2O.ai

  The H2O-R Package

  Getting Started

  R Reference Guide

Import SQL table that is result of SELECT SQL query into H2O

Creates a temporary SQL table from the specified sql_query.
Runs multiple SELECT SQL queries on the temporary table concurrently for parallel ingestion, then drops the table.
Be sure to start the h2o.jar in the terminal with your downloaded JDBC driver in the classpath:
   `java -cp <path_to_h2o_jar>:<path_to_jdbc_driver_jar> water.H2OApp`
Also see h2o.import_sql_table.
Currently supported SQL databases are MySQL, PostgreSQL, and MariaDB. Support for Oracle 12g and Microsoft SQL Server

h2o.import_sql_select(connection_url, select_query, username, password,
  optimize = NULL)

 Arguments

    <colgroup><col class="name" /><col class="desc" /></colgroup>

      connection_url

URL of the SQL database connection as specified by the Java Database Connectivity (JDBC) Driver.
For example, "jdbc:mysql://localhost:3306/menagerie?&useSSL=false"

      select_query

SQL query starting with `SELECT` that returns rows from one or more database tables.

      username

Username for SQL server

      password

Password for SQL server

      optimize

(Optional) Optimize import of SQL table for faster imports. Experimental. Default is true.

Details

For example,
   my_sql_conn_url <- "jdbc:mysql://172.16.2.178:3306/ingestSQL?&useSSL=false"
   select_query <- "SELECT bikeid from citibike20k"
   username <- "root"
   password <- "abc123"
   my_citibike_data <- h2o.import_sql_select(my_sql_conn_url, select_query, username, password)

Contents

Arguments

Details

Developed by The H2O.ai team.

Site built with pkgdown.


text:
package net.ontrack.extension.jira.db;

import net.ontrack.core.model.Entity;
import net.ontrack.dao.AbstractJdbcDao;
import net.ontrack.extension.api.property.PropertiesService;
import net.ontrack.service.StartupService;
import net.ontrack.extension.jira.JIRAConfigurationPropertyExtension;
import net.ontrack.extension.jira.JIRAExtension;
import net.ontrack.extension.jira.dao.ExclusionsParser;
import net.ontrack.extension.jira.dao.JIRAConfigurationDao;
import net.ontrack.extension.jira.service.model.JIRAConfigurationForm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import javax.sql.DataSource;
import java.util.*;

/**
 * Applies some code to convert existing JIRA configurations stored at global level
 * into a list of configurations, plus making sure that each project that was using
 * JIRA gets now associated with the correct JIRA configuration.
 */
@Component
public class JIRAConfigDBMigration extends AbstractJdbcDao implements StartupService {

    public static final String MIGRATION_OLD_CONFIGURATION_TEST = "SELECT COUNT(*) FROM CONFIGURATION WHERE NAME LIKE 'x-jira-configuration-%'";
    public static final String MIGRATION_OLD_CONFIGURATION_VALUES = "SELECT NAME, VALUE FROM CONFIGURATION WHERE NAME LIKE 'x-jira-configuration-%'";
    public static final String MIGRATION_OLD_CONFIGURATION_DELETE = "DELETE FROM CONFIGURATION WHERE NAME LIKE 'x-jira-configuration-%'";
    private final PropertiesService propertiesService;
    private final JIRAConfigurationDao jiraConfigurationDao;

    @Autowired
    public JIRAConfigDBMigration(DataSource dataSource, PropertiesService propertiesService, JIRAConfigurationDao jiraConfigurationDao) {
        super(dataSource);
        this.propertiesService = propertiesService;
        this.jiraConfigurationDao = jiraConfigurationDao;
    }

    @Override
    public String getName() {
        return JIRAConfigDBMigration.class.getSimpleName();
    }

    @Override
    public int startupOrder() {
        return 20;
    }

    /**
     * Performs the migration.
     *

     * The migration must be performed if some JIRA properties remain
     * in the general configuration table.
     *

     * If the migration must be done, the existing properties are converted
     * into a normal configuration using the name default and
     * added into the list of JIRA configurations.
     *

     * When it is done, all projects and branches are scanned to check if any
     * Subversion-related property is registered. If yes, the corresponding project
     * is associated with the default JIRA configuration property.
     */
    @Override
    @Transactional
    public void start() {
        int count = getJdbcTemplate().queryForObject(
                MIGRATION_OLD_CONFIGURATION_TEST,
                Integer.class
        );
        if (count > 0) {
            // Gets the configuration attributes
            List<Map<String, Object>> rows = getJdbcTemplate().queryForList(MIGRATION_OLD_CONFIGURATION_VALUES);
            Map<String, String> configuration = new HashMap<>();
            for (Map<String, Object> row : rows) {
                configuration.put((String) row.get("name"), (String) row.get("value"));
            }
            // Exclusions
            ExclusionsParser exclusionsParser = new ExclusionsParser(configuration.get("x-jira-configuration-exclusions")).invoke();
            Set<String> excludedProjects = exclusionsParser.getExcludedProjects();
            Set<String> excludedIssues = exclusionsParser.getExcludedIssues();
            // Creates a new JIRA configuration and saves it with name `default`
            int configurationId = jiraConfigurationDao.create(
                    new JIRAConfigurationForm(
                            "default",
                            configuration.get("x-jira-configuration-url"),
                            configuration.get("x-jira-configuration-user"),
                            configuration.get("x-jira-configuration-password"),
                            excludedProjects,
                            excludedIssues
                    )
            ).getId();
            // Gets all projects which have (them or one of their branches) a SVNExplorer or SVN-related property.
            Set<Integer> projectIds = new HashSet<>();
            projectIds.addAll(
                    getJdbcTemplate().queryForList(
                            "SELECT PROJECT FROM PROPERTIES WHERE PROJECT IS NOT NULL AND (EXTENSION = 'svn' OR EXTENSION = 'svnexplorer')",
                            Integer.class
                    )
            );
            Collection<Integer> branchIds =
                    getJdbcTemplate().queryForList(
                            "SELECT BRANCH FROM PROPERTIES WHERE BRANCH IS NOT NULL AND (EXTENSION = 'svn' OR EXTENSION = 'svnexplorer')",
                            Integer.class
                    );
            for (int branchId : branchIds) {
                int projectId = getNamedParameterJdbcTemplate().queryForObject(
                        "SELECT PROJECT FROM BRANCH WHERE ID = :id",
                        params("id", branchId),
                        Integer.class
                );
                projectIds.add(projectId);
            }
            // Adds the JIRA configuration to the projects
            for (int projectId : projectIds) {
                propertiesService.saveProperty(
                        Entity.PROJECT,
                        projectId,
                        JIRAExtension.EXTENSION,
                        JIRAConfigurationPropertyExtension.NAME,
                        String.valueOf(configurationId)
                );
            }
            // Migration OK, erasing previous configuration data
            getJdbcTemplate().update(MIGRATION_OLD_CONFIGURATION_DELETE);
        }
    }
}


text:
pysvccache
==========

Python caching utilities

# Run tests

Requires coverage. `pip install coverage`

	make test

# Build a source distribution file:

	make spkg

# Install

	make install

# Install for development (files are linked to so changes are live)

	python setup.py develop


text:
package com.ionoclast.camera;

import android.graphics.ImageFormat;
import android.hardware.Camera;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

import java.io.IOException;
import java.util.List;

public class CameraController implements SurfaceHolder.Callback
{
	private static final String TAG = CameraController.class.getSimpleName();

	private SurfaceHolder mHolder;
	private Camera mCamera;

	private ICameraTwiddler mTwiddler;

	public CameraController(SurfaceView pViewViewfinder)
	{
		mHolder = pViewViewfinder.getHolder();
		mHolder.addCallback(this);

		mCamera = Camera.open();

		// set Camera parameters
		Camera.Parameters tParams = mCamera.getParameters();
		tParams.setFocusMode(Camera.Parameters.FOCUS_MODE_CONTINUOUS_PICTURE);
		tParams.setPreviewFormat(ImageFormat.NV21);

		List<Camera.Size> tSupportedSizes = tParams.getSupportedPictureSizes();
		Camera.Size tSmallest = tSupportedSizes.get(tSupportedSizes.size() - 1);
		tParams.setPictureSize(tSmallest.width, tSmallest.height);

		tSupportedSizes = tParams.getSupportedPreviewSizes();
		tSmallest = tSupportedSizes.get(tSupportedSizes.size() - 1);
		tParams.setPreviewSize(tSmallest.width, tSmallest.height);

		try
		{
			// this can throw if the camera doesn't like our settings
			mCamera.setParameters(tParams);
		}
		catch(RuntimeException e)
		{
			Log.e(TAG, "Error setting camera params; attempting to proceed", e);
		}
		mCamera.setDisplayOrientation(90);
	}

	public void SetTwiddler(ICameraTwiddler pTwiddler)
	{
		if(mCamera != null)
		{
			mTwiddler = pTwiddler;
			if(pTwiddler != null)
			{
				pTwiddler.AttachCamera(mCamera);
			}
		}
	}

	public void TakePhoto()
	{
		mCamera.takePicture(null, null, mTwiddler);
	}

	public void CloseCamera()
	{
		try
		{
			if (mCamera != null)
			{
				mCamera.stopPreview();
				mCamera.setPreviewCallback(null);
				mCamera.setPreviewDisplay(null);
				mCamera.release();
			}
		}
		catch (Exception e)
		{
			Log.e(TAG, "Camera.release() failed", e);
		}
		finally
		{
			mTwiddler.CleanUp();
			mTwiddler = null;
			mCamera = null;
			mHolder.removeCallback(this);
		}
	}

	@Override
	public void surfaceCreated(SurfaceHolder holder)
	{
		Log.d(TAG, "surfaceCreated()");
		try {
			mCamera.setPreviewDisplay(mHolder);
			mCamera.startPreview();
		}
		catch (IOException e)
		{
			Log.w(TAG, "Error starting preview", e);
		}
	}

	@Override
	public void surfaceChanged(SurfaceHolder holder, int format, int width, int height)
	{
		Log.d(TAG, String.format("surfaceChanged(%d x %d)", width, height));
	}

	@Override
	public void surfaceDestroyed(SurfaceHolder holder)
	{
		Log.d(TAG, "surfaceDestroyed()");
	}
}


text:
<?php

/**
 * This code was generated by
 * \ / _    _  _|   _  _
 * | (_)\/(_)(_|\/| |(/_  v1.0.0
 * /       /
 */

namespace Twilio\Rest\Numbers\V2\RegulatoryCompliance;

use Twilio\Options;
use Twilio\Values;

abstract class EndUserOptions {
    /**
     * @param array $attributes The set of parameters that compose the End User
     *                          resource
     * @return CreateEndUserOptions Options builder
     */
    public static function create($attributes = Values::NONE) {
        return new CreateEndUserOptions($attributes);
    }

    /**
     * @param string $friendlyName The string that you assigned to describe the
     *                             resource
     * @param array $attributes The set of parameters that compose the End User
     *                          resource
     * @return UpdateEndUserOptions Options builder
     */
    public static function update($friendlyName = Values::NONE, $attributes = Values::NONE) {
        return new UpdateEndUserOptions($friendlyName, $attributes);
    }
}

class CreateEndUserOptions extends Options {
    /**
     * @param array $attributes The set of parameters that compose the End User
     *                          resource
     */
    public function __construct($attributes = Values::NONE) {
        $this->options['attributes'] = $attributes;
    }

    /**
     * The set of parameters that are the attributes of the End User resource which are derived End User Types.
     *
     * @param array $attributes The set of parameters that compose the End User
     *                          resource
     * @return $this Fluent Builder
     */
    public function setAttributes($attributes) {
        $this->options['attributes'] = $attributes;
        return $this;
    }

    /**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    public function __toString() {
        $options = array();
        foreach ($this->options as $key => $value) {
            if ($value != Values::NONE) {
                $options[] = "$key=$value";
            }
        }
        return '[Twilio.Numbers.V2.CreateEndUserOptions ' . \implode(' ', $options) . ']';
    }
}

class UpdateEndUserOptions extends Options {
    /**
     * @param string $friendlyName The string that you assigned to describe the
     *                             resource
     * @param array $attributes The set of parameters that compose the End User
     *                          resource
     */
    public function __construct($friendlyName = Values::NONE, $attributes = Values::NONE) {
        $this->options['friendlyName'] = $friendlyName;
        $this->options['attributes'] = $attributes;
    }

    /**
     * The string that you assigned to describe the resource.
     *
     * @param string $friendlyName The string that you assigned to describe the
     *                             resource
     * @return $this Fluent Builder
     */
    public function setFriendlyName($friendlyName) {
        $this->options['friendlyName'] = $friendlyName;
        return $this;
    }

    /**
     * The set of parameters that are the attributes of the End User resource which are derived End User Types.
     *
     * @param array $attributes The set of parameters that compose the End User
     *                          resource
     * @return $this Fluent Builder
     */
    public function setAttributes($attributes) {
        $this->options['attributes'] = $attributes;
        return $this;
    }

    /**
     * Provide a friendly representation
     *
     * @return string Machine friendly representation
     */
    public function __toString() {
        $options = array();
        foreach ($this->options as $key => $value) {
            if ($value != Values::NONE) {
                $options[] = "$key=$value";
            }
        }
        return '[Twilio.Numbers.V2.UpdateEndUserOptions ' . \implode(' ', $options) . ']';
    }
}


text:
package jxl;

import java.io.File;
import java.net.URL;

/**
 * Hyperlink information.  Only URLs or file links are supported
 *
 * Hyperlinks may apply to a range of cells; in such cases the methods
 * getRow and getColumn return the cell at the top left of the range
 * the hyperlink refers to.  Hyperlinks have no specific cell format
 * information applied to them, so the getCellFormat method will return null
 */
public interface Hyperlink
{
  /**
   * Returns the row number of this cell
   *
   * @return the row number of this cell
   */
  public int getRow();

  /**
   * Returns the column number of this cell
   *
   * @return the column number of this cell
   */
  public int getColumn();

  /**
   * Gets the range of cells which activate this hyperlink
   * The get sheet index methods will all return -1, because the
   * cells will all be present on the same sheet
   *
   * @return the range of cells which activate the hyperlink
   */
  public Range getRange();

  /**
   * Determines whether this is a hyperlink to a file
   *
   * @return TRUE if this is a hyperlink to a file, FALSE otherwise
   */
  public boolean isFile();

  /**
   * Determines whether this is a hyperlink to a web resource
   *
   * @return TRUE if this is a URL
   */
  public boolean isURL();

  /**
   * Determines whether this is a hyperlink to a location in this workbook
   *
   * @return TRUE if this is a link to an internal location
   */
  public boolean isLocation();

  /**
   * Returns the row number of the bottom right cell
   *
   * @return the row number of this cell
   */
  public int getLastRow();

  /**
   * Returns the column number of the bottom right cell
   *
   * @return the column number of this cell
   */
  public int getLastColumn();

  /**
   * Gets the URL referenced by this Hyperlink
   *
   * @return the URL, or NULL if this hyperlink is not a URL
   */
  public URL getURL();

  /**
   * Returns the local file eferenced by this Hyperlink
   *
   * @return the file, or NULL if this hyperlink is not a file
   */
  public File getFile();
}


text:
#pragma once

#include "geode_defs.hpp"
#include "begin_native.hpp"
#include <geode/PoolManager.hpp>
#include "end_native.hpp"

using namespace System;

namespace Apache
{
  namespace Geode
  {
    namespace Client
    {

      //generic<class TKey, class TValue>
      ref class Pool;
     // generic<class TKey, class TValue>
      ref class PoolFactory;

      namespace native = apache::geode::client;

      /// <summary>
      /// This interface provides for the configuration and creation of instances of PoolFactory.
      /// </summary>
     // generic<class TKey, class TValue>
      public ref class PoolManager
      {
      public:

        /// <summary>
        /// Creates a new PoolFactory which is used to configure and create Pools.
        /// </summary>
        PoolFactory/*<TKey, TValue>*/^ CreateFactory();

        /// <summary>
        /// Returns a map containing all the pools in this manager.
        /// The keys are pool names and the values are Pool instances.
        /// </summary>
        const Dictionary<String^, Pool/*<TKey, TValue>*/^>^ GetAll();

        /// <summary>
        /// Find by name an existing connection pool.
        /// </summary>
        Pool/*<TKey, TValue>*/^ Find(String^ name);

        /// <summary>
        /// Find the pool used by the given region.
        /// </summary>
        Pool/*<TKey, TValue>*/^ Find(Client::Region<Object^, Object^>^ region);

        /// <summary>
        /// Destroys all created pools.
        /// </summary>
        void Close(Boolean KeepAlive);

        /// <summary>
        /// Destroys all created pools.
        /// </summary>
        void Close();

      internal:

        native::PoolManager& GetNative()
        {
          return m_nativeref;
        }

        /// <summary>
        /// Private constructor to wrap a native object pointer
        /// </summary>
        /// <param name="nativeptr">The native object pointer</param>
        inline PoolManager(native::PoolManager& nativeref)
          : m_nativeref(nativeref)
        {
        }

        native::PoolManager& m_nativeref;
      };
    }  // namespace Client
  }  // namespace Geode
}  // namespace Apache


text:
require 'spec_helper'

describe 'gluster', type: :class do
  on_supported_os.each do |os, facts|
    context "on #{os}" do
      let(:facts) do
        facts
      end
      case facts[:osfamily]
      when 'Redhat'
        context 'with all defaults' do
          it { should contain_class('gluster') }
          it { should contain_class('gluster::params') }
          it { should compile.with_all_deps }

          it 'includes classes' do
            should contain_class('gluster::install')
            should contain_class('gluster::service')
          end
          it 'creates gluster::install' do
            should create_class('gluster::install').with(
              server: true,
              server_package: 'glusterfs',
              client: true,
              client_package: 'glusterfs-fuse',
              version: 'LATEST',
              repo: true
            )
          end
          it 'manages the Gluster service' do
            should create_class('gluster::service').with(
              ensure: true
            )
          end
        end
        context 'specific version and package names defined' do
          let :params do
            {
              server_package: 'custom-gluster-server',
              client_package: 'custom-gluster-client',
              version: '3.1.4',
              repo: false
            }
          end
          it 'creates gluster::install' do
            should create_class('gluster::install').with(
              server: true,
              server_package: 'custom-gluster-server',
              client: true,
              client_package: 'custom-gluster-client',
              version: '3.1.4',
              repo: false
            )
          end
          it 'manages the Gluster service' do
            should create_class('gluster::service').with(
              ensure: true
            )
          end
          it 'installs custom-gluster-client and custom-gluster-server' do
            should create_package('custom-gluster-client')
            should create_package('custom-gluster-server')
          end
        end
      when 'Debian'
        context 'with all defaults' do
          it { should contain_class('gluster') }
          it { should contain_class('gluster::params') }
          it { should compile.with_all_deps }

          it 'includes classes' do
            should contain_class('gluster::install')
            should contain_class('gluster::service')
          end
          it 'creates gluster::install' do
            should create_class('gluster::install').with(
              server: true,
              server_package: 'glusterfs-server',
              client: true,
              client_package: 'glusterfs-client',
              version: 'LATEST',
              repo: true
            )
          end
          it 'manages the Gluster service' do
            should create_class('gluster::service').with(
              ensure: true
            )
          end
        end
        context 'specific version and package names defined' do
          let :params do
            {
              server_package: 'custom-gluster-server',
              client_package: 'custom-gluster-client',
              version: '3.1.4',
              repo: false
            }
          end
          it 'creates gluster::install' do
            should create_class('gluster::install').with(
              server: true,
              server_package: 'custom-gluster-server',
              client: true,
              client_package: 'custom-gluster-client',
              version: '3.1.4',
              repo: false
            )
          end
          it 'manages the Gluster service' do
            should create_class('gluster::service').with(
              ensure: true
            )
          end
          it 'installs custom-gluster-client and custom-gluster-server' do
            should create_package('custom-gluster-client')
            should create_package('custom-gluster-server')
          end
        end
      end

      context 'when volumes defined' do
        let :facts do
          super().merge(
            gluster_binary: '/sbin/gluster',
            gluster_peer_list: 'example1,example2',
            gluster_volume_list: 'gl1.example.com:/glusterfs/backup,gl2.example.com:/glusterfs/backup'
          )
        end
        let :params do
          {
            volumes:
            {
              'data1' => {
                'replica' => 2,
                'bricks'  => ['srv1.local:/brick1/brick', 'srv2.local:/brick1/brick'],
                'options' => ['server.allow-insecure: on']
              }
            }
          }
        end
        it 'creates gluster::volume' do
          should contain_gluster__volume('data1').with(
            name: 'data1',
            replica: 2,
            bricks: ['srv1.local:/brick1/brick', 'srv2.local:/brick1/brick'],
            options: ['server.allow-insecure: on']
          )
        end
      end

      context 'when volumes incorrectly defined' do
        let :params do
          {
            volumes: { 'data1' => %w(this is an array) }
          }
        end
        it 'fails' do
          expect do
            should contain_gluster__volume('data1')
          end.to raise_error(Puppet::Error, %r{})
        end
      end
    end
  end
end


text:
.class Landroid/accounts/AccountManager$AmsTask$Response;
.super Landroid/accounts/IAccountManagerResponse$Stub;
.source "AccountManager.java"

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Landroid/accounts/AccountManager$AmsTask;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "Response"
.end annotation

# instance fields
.field final synthetic this$1:Landroid/accounts/AccountManager$AmsTask;

# direct methods
.method private constructor <init>(Landroid/accounts/AccountManager$AmsTask;)V
    .registers 2
    .param p1, "this$1"    # Landroid/accounts/AccountManager$AmsTask;

    .prologue
    .line 1965
    iput-object p1, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    invoke-direct {p0}, Landroid/accounts/IAccountManagerResponse$Stub;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Landroid/accounts/AccountManager$AmsTask;Landroid/accounts/AccountManager$AmsTask$Response;)V
    .registers 3
    .param p1, "this$1"    # Landroid/accounts/AccountManager$AmsTask;

    .prologue
    invoke-direct {p0, p1}, Landroid/accounts/AccountManager$AmsTask$Response;-><init>(Landroid/accounts/AccountManager$AmsTask;)V

    return-void
.end method

# virtual methods
.method public onError(ILjava/lang/String;)V
    .registers 5
    .param p1, "code"    # I
    .param p2, "message"    # Ljava/lang/String;

    .prologue
    .line 1986
    const/4 v0, 0x4

    if-eq p1, v0, :cond_7

    const/16 v0, 0x64

    if-ne p1, v0, :cond_e

    .line 1990
    :cond_7
    iget-object v0, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/accounts/AccountManager$AmsTask;->cancel(Z)Z

    .line 1991
    return-void

    .line 1987
    :cond_e
    const/16 v0, 0x65

    if-eq p1, v0, :cond_7

    .line 1993
    iget-object v0, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    iget-object v1, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    iget-object v1, v1, Landroid/accounts/AccountManager$AmsTask;->this$0:Landroid/accounts/AccountManager;

    invoke-static {v1, p1, p2}, Landroid/accounts/AccountManager;->-wrap0(Landroid/accounts/AccountManager;ILjava/lang/String;)Ljava/lang/Exception;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/accounts/AccountManager$AmsTask;->-wrap0(Landroid/accounts/AccountManager$AmsTask;Ljava/lang/Throwable;)V

    .line 1985
    return-void
.end method

.method public onResult(Landroid/os/Bundle;)V
    .registers 5
    .param p1, "bundle"    # Landroid/os/Bundle;

    .prologue
    .line 1967
    const-string/jumbo v2, "intent"

    invoke-virtual {p1, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v1

    check-cast v1, Landroid/content/Intent;

    .line 1968
    .local v1, "intent":Landroid/content/Intent;
    if-eqz v1, :cond_19

    iget-object v2, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    iget-object v2, v2, Landroid/accounts/AccountManager$AmsTask;->mActivity:Landroid/app/Activity;

    if-eqz v2, :cond_19

    .line 1971
    iget-object v2, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    iget-object v2, v2, Landroid/accounts/AccountManager$AmsTask;->mActivity:Landroid/app/Activity;

    invoke-virtual {v2, v1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V

    .line 1966
    :goto_18
    return-void

    .line 1973
    :cond_19
    const-string/jumbo v2, "retry"

    invoke-virtual {p1, v2}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_2a

    .line 1975
    :try_start_22
    iget-object v2, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    invoke-virtual {v2}, Landroid/accounts/AccountManager$AmsTask;->doWork()V
    :try_end_27
    .catch Landroid/os/RemoteException; {:try_start_22 .. :try_end_27} :catch_28

    goto :goto_18

    .line 1976
    :catch_28
    move-exception v0

    .local v0, "e":Landroid/os/RemoteException;
    goto :goto_18

    .line 1981
    .end local v0    # "e":Landroid/os/RemoteException;
    :cond_2a
    iget-object v2, p0, Landroid/accounts/AccountManager$AmsTask$Response;->this$1:Landroid/accounts/AccountManager$AmsTask;

    invoke-virtual {v2, p1}, Landroid/accounts/AccountManager$AmsTask;->set(Landroid/os/Bundle;)V

    goto :goto_18
.end method


text:
package flex.tools.debugger.cli;

/**
 * An singleton object that doles out unique identifiers to breakpoints and watchpoints
 */
public class BreakIdentifier
{
	private static int s_uniqueIdentifier  = 1;

	public static int next() { return s_uniqueIdentifier++; }
}


text:
package org.decimal4j.arithmetic;

import java.math.BigDecimal;
import java.math.RoundingMode;

import org.decimal4j.scale.ScaleMetrics;
import org.decimal4j.truncate.CheckedRounding;
import org.decimal4j.truncate.DecimalRounding;
import org.decimal4j.truncate.OverflowMode;

/**
 * Arithmetic implementation with rounding and overflow check for scales other
 * than zero. An exception is thrown if an operation leads to an overflow.
 */
public final class CheckedScaleNfRoundingArithmetic extends AbstractCheckedScaleNfArithmetic {

	private final DecimalRounding rounding;

	/**
	 * Constructor for decimal arithmetic with given scale, rounding mode and
	 * {@link OverflowMode#CHECKED} overflow mode.
	 *
	 * @param scaleMetrics
	 *            the scale metrics for this decimal arithmetic
	 * @param roundingMode
	 *            the rounding mode to use for all decimal arithmetic
	 */
	public CheckedScaleNfRoundingArithmetic(ScaleMetrics scaleMetrics, RoundingMode roundingMode) {
		this(scaleMetrics, DecimalRounding.valueOf(roundingMode));
	}

	/**
	 * Constructor for decimal arithmetic with given scale, rounding mode and
	 * {@link OverflowMode#CHECKED} overflow mode.
	 *
	 * @param scaleMetrics
	 *            the scale metrics for this decimal arithmetic
	 * @param rounding
	 *            the rounding mode to use for all decimal arithmetic
	 */
	public CheckedScaleNfRoundingArithmetic(ScaleMetrics scaleMetrics, DecimalRounding rounding) {
		super(scaleMetrics);
		this.rounding = rounding;
	}

	@Override
	public final RoundingMode getRoundingMode() {
		return rounding.getRoundingMode();
	}

	@Override
	public final CheckedRounding getTruncationPolicy() {
		return CheckedRounding.valueOf(getRoundingMode());
	}

	@Override
	public final long addUnscaled(long uDecimal, long unscaled, int scale) {
		return Add.addUnscaledUnscaledChecked(this, rounding, uDecimal, unscaled, scale);
	}

	@Override
	public final long subtractUnscaled(long uDecimal, long unscaled, int scale) {
		return Sub.subtractUnscaledUnscaledChecked(this, rounding, uDecimal, unscaled, scale);
	}

	@Override
	public final long multiplyByUnscaled(long uDecimal, long unscaled, int scale) {
		return Mul.multiplyByUnscaledChecked(this, rounding, uDecimal, unscaled, scale);
	}

	@Override
	public final long divideByUnscaled(long uDecimal, long unscaled, int scale) {
		return Div.divideByUnscaledChecked(this, rounding, uDecimal, unscaled, scale);
	}

	@Override
	public final long avg(long uDecimal1, long uDecimal2) {
		return Avg.avg(this, rounding, uDecimal1, uDecimal2);
	}

	@Override
	public final long invert(long uDecimal) {
		return Invert.invert(this, rounding, uDecimal);
	}

	@Override
	public final long multiply(long uDecimal1, long uDecimal2) {
		return Mul.multiplyChecked(this, rounding, uDecimal1, uDecimal2);
	}

	@Override
	public final long multiplyByPowerOf10(long uDecimal, int n) {
		return Pow10.multiplyByPowerOf10Checked(this, rounding, uDecimal, n);
	}

	@Override
	public final long divide(long uDecimalDividend, long uDecimalDivisor) {
		return Div.divideChecked(this, rounding, uDecimalDividend, uDecimalDivisor);
	}

	@Override
	public final long divideByLong(long uDecimalDividend, long lDivisor) {
		return Div.divideByLongChecked(this, rounding, uDecimalDividend, lDivisor);
	}

	@Override
	public final long divideByPowerOf10(long uDecimal, int n) {
		return Pow10.divideByPowerOf10Checked(this, rounding, uDecimal, n);
	}

	@Override
	public final long square(long uDecimal) {
		return Square.squareChecked(this, rounding, uDecimal);
	}

	@Override
	public final long sqrt(long uDecimal) {
		return Sqrt.sqrt(this, rounding, uDecimal);
	}

	@Override
	public final long pow(long uDecimalBase, int exponent) {
		return Pow.pow(this, rounding, uDecimalBase, exponent);
	}

	@Override
	public final long shiftLeft(long uDecimal, int n) {
		return Shift.shiftLeftChecked(this, rounding, uDecimal, n);
	}

	@Override
	public final long shiftRight(long uDecimal, int n) {
		return Shift.shiftRightChecked(this, rounding, uDecimal, n);
	}

	@Override
	public final long round(long uDecimal, int precision) {
		return Round.round(this, rounding, uDecimal, precision);
	}

	@Override
	public final long fromLong(long value) {
		return LongConversion.longToUnscaled(getScaleMetrics(), value);
	}

	@Override
	public final long fromFloat(float value) {
		return FloatConversion.floatToUnscaled(this, rounding, value);
	}

	@Override
	public final long fromDouble(double value) {
		return DoubleConversion.doubleToUnscaled(this, rounding, value);
	}

	@Override
	public final long fromUnscaled(long unscaledValue, int scale) {
		return UnscaledConversion.unscaledToUnscaled(this, rounding, unscaledValue, scale);
	}

	@Override
	public final long fromBigDecimal(BigDecimal value) {
		return BigDecimalConversion.bigDecimalToUnscaled(getScaleMetrics(), getRoundingMode(), value);
	}

	@Override
	public final long toLong(long uDecimal) {
		return LongConversion.unscaledToLong(getScaleMetrics(), rounding, uDecimal);
	}

	@Override
	public final float toFloat(long uDecimal) {
		return FloatConversion.unscaledToFloat(this, rounding, uDecimal);
	}

	@Override
	public final double toDouble(long uDecimal) {
		return DoubleConversion.unscaledToDouble(this, rounding, uDecimal);
	}

	@Override
	public final long toUnscaled(long uDecimal, int scale) {
		return UnscaledConversion.unscaledToUnscaled(rounding, scale, this, uDecimal);
	}

	@Override
	public final long parse(String value) {
		return StringConversion.parseUnscaledDecimal(this, rounding, value, 0, value.length());
	}

	@Override
	public final long parse(CharSequence value, int start, int end) {
		return StringConversion.parseUnscaledDecimal(this, rounding, value, start, end);
	}
}


text:
drop table if exists bitcoin_in;
drop table if exists bitcoin_out;
drop table if exists bitcoin_inout;
drop table if exists bitcoin_inout_edges;

set hive.exec.reducers.max = 24;
set mapred.reduce.tasks=24;

create table bitcoin_in as
select
    count (distinct (source_edge_ID)) as in_degree,
    cast (0 as bigint) as out_degree,
    destination_edge_ID as node,
    sum (amount) as incoming_amount,
    cast (0 as bigint) as outgoing_amount
from bitcoin
group by
destination_edge_ID;

create table bitcoin_out as
select
    cast (0 as bigint) as in_degree,
    count (distinct (destination_edge_ID)) as out_degree,
    source_edge_ID as node,
    cast (0 as bigint) as incoming_amount,
    sum (amount) as outgoing_amount
from bitcoin
group by
source_edge_ID;

create table bitcoin_inout as
select
    sum (COALESCE (in_degree, cast (0 as bigint))) as in_degree,
    sum (COALESCE (out_degree, cast (0 as bigint))) as out_degree,
    node,
    sum (COALESCE (incoming_amount, cast (0 as float))) as incoming_amount,
    sum (COALESCE (outgoing_amount, cast (0 as float))) as outgoing_amount
from (
    select in_degree, out_degree, node,
        incoming_amount,
        cast (0 as float) as outgoing_amount
    from bitcoin_in
UNION ALL
    select in_degree, out_degree, node,
        cast (0 as float) as incoming_amount,
        outgoing_amount
    from bitcoin_out
) blah
group by
node;

create table bitcoin_inout_edges as
select
    id,
    source_edge_ID,
    destination_edge_ID,
    dtg,
    amount,
    in_degree,
    out_degree,
    node,
    incoming_amount,
    outgoing_amount
from (
    select
    null as id,
    node as source_edge_ID,
    null as destination_edge_ID,
    null as dtg,
    null as amount,
    in_degree,
    out_degree,
    node,
    incoming_amount,
    outgoing_amount
    from bitcoin_inout
UNION ALL
    select
    id,
    source_edge_ID,
    destination_edge_ID,
    dtg,
    amount,
    null as in_degree,
    null as out_degree,
    null as node,
    null as incoming_amount,
    null as outgoing_amount
    from bitcoin
) blah
ORDER BY source_edge_ID, in_degree DESC;


text:
import { OptionValue } from '../models/models'

// Generic toBinary and fromBinary definitions
const optionToBinaryFunctions = {}
const optionFromBinaryFunctions = {}

// list of options silently ignored
const ignoredOptions = {}

export function toBinary (name: string, value: Buffer | any): Buffer {
    if (Buffer.isBuffer(value)) {
        return value
    }

    if (optionToBinaryFunctions[name] == null) {
        throw new Error('Unknown string to Buffer converter for option: ' + name)
    }

    return optionToBinaryFunctions[name](value)
}

export function fromBinary (name: string, value: Buffer): any {
    const convert = optionFromBinaryFunctions[name]

    if (convert == null) {
        return value
    }

    return convert(value)
}

export function registerOption (name: string, toBinary: (value: OptionValue) => Buffer | null, fromBinary: (value: Buffer) => OptionValue | null): void {
    optionFromBinaryFunctions[name] = fromBinary
    optionToBinaryFunctions[name] = toBinary
}

export function ignoreOption (name: string): void {
    ignoredOptions[name] = true
}

ignoreOption('Cache-Control')
ignoreOption('Content-Length')
ignoreOption('Accept-Ranges')

export function isIgnored (name: string): boolean {
    return ignoredOptions[name] != null
}

// ETag option registration
const fromString = (result: string): Buffer => {
    return Buffer.from(result)
}

const toString = (value: Buffer): string => {
    return value.toString()
}

registerOption('ETag', fromString, toString)
registerOption('Location-Path', fromString, toString)
registerOption('Location-Query', fromString, toString)
registerOption('Proxy-Uri', fromString, toString)

const fromUint = (result: number): Buffer => {
    let uint = Number(result)
    if (!isFinite(uint) || Math.floor(uint) !== uint || uint < 0) {
        throw TypeError(`Expected uint, got ${result}`)
    }
    const parts: number[] = []
    while (uint > 0) {
        parts.unshift(uint % 256)
        uint = Math.floor(uint / 256)
    }
    return Buffer.from(parts)
}

const toUint = (value: Buffer): number => {
    let result = 0
    for (let i = 0; i < value.length; ++i) {
        result = 256 * result + value[i]
    }
    return result
}

registerOption('Max-Age', fromUint, toUint)
registerOption('Size2', fromUint, toUint)
registerOption('Size1', fromUint, toUint)

// Content-Format and Accept options registration
const formatsString = {}
const formatsBinaries = {}

/**
 * Registers a new Content-Format.
 *
 * @param name Media-Type and parameters.
 * @param value The numeric code of the Content-Format.
 */
export function registerFormat (name: string, value: number): void {
    let bytes: Buffer

    if (value > 255) {
        bytes = Buffer.alloc(2)
        bytes.writeUInt16BE(value, 0)
    } else {
        bytes = Buffer.of(value)
    }

    formatsString[name] = bytes
    formatsBinaries[value] = name
}

module.exports.registerFormat = registerFormat

// See https://www.iana.org/assignments/core-parameters/core-parameters.xhtml#content-formats
// for a list of all registered content-formats
const supportedContentFormats = {
    'text/plain': 0,
    'application/cose; cose-type="cose-encrypt0"': 16,
    'application/cose; cose-type="cose-mac0"': 17,
    'application/cose; cose-type="cose-sign1"': 18,
    'application/link-format': 40,
    'application/xml': 41,
    'application/octet-stream': 42,
    'application/exi': 47,
    'application/json': 50,
    'application/json-patch+json': 51,
    'application/merge-patch+json': 52,
    'application/cbor': 60,
    'application/cwt': 61,
    'application/multipart-core': 62,
    'application/cbor-seq': 63,
    'application/cose-key': 101,
    'application/cose-key-set': 102,
    'application/senml+json': 110,
    'application/sensml+json': 111,
    'application/senml+cbor': 112,
    'application/sensml+cbor': 113,
    'application/senml-exi': 114,
    'application/sensml-exi': 115,
    'application/coap-group+json': 256,
    'application/dots+cbor': 271,
    'application/missing-blocks+cbor-seq': 272,
    'application/pkcs7-mime; smime-type=server-generated-key': 280,
    'application/pkcs7-mime; smime-type=certs-only': 281,
    'application/pkcs8': 284,
    'application/csrattrs': 285,
    'application/pkcs10': 286,
    'application/pkix-cert': 287,
    'application/senml+xml': 310,
    'application/sensml+xml': 311,
    'application/senml-etch+json': 320,
    'application/senml-etch+cbor': 322,
    'application/td+json': 432,
    'application/vnd.ocf+cbor': 10000,
    'application/oscore': 10001,
    'application/javascript': 10002,
    'application/vnd.oma.lwm2m+tlv': 11542,
    'application/vnd.oma.lwm2m+json': 11543,
    'application/vnd.oma.lwm2m+cbor': 11544,
    'text/css': 20000,
    'image/svg+xml': 30000
}

for (const [name, value] of Object.entries(supportedContentFormats)) {
    registerFormat(name, value)
}

function contentFormatToBinary (value: string): Buffer {
    if (formatsString[value] != null) {
        return formatsString[value]
    }

    const result = formatsString[value.split(';')[0]]
    if (result == null) {
        throw new Error('Unknown Content-Format: ' + value)
    }

    return result
}

function contentFormatToString (value: Buffer): string | number | null {
    if (value.length === 0) {
        return formatsBinaries[0]
    }

    let numericValue: number
    if (value.length === 1) {
        numericValue = value.readUInt8(0)
    } else if (value.length === 2) {
        numericValue = value.readUInt16BE(0)
    } else {
        return null
    }

    const result = formatsBinaries[numericValue]

    if (result == null) {
        return numericValue
    }

    return result
}

registerOption('Content-Format', contentFormatToBinary, contentFormatToString)
registerOption('Accept', contentFormatToBinary, contentFormatToString)
registerOption('Observe', (sequence: number) => {
    let buf: Buffer

    if (sequence == null) {
        buf = Buffer.alloc(0)
    } else if (sequence <= 0xff) {
        buf = Buffer.of(sequence)
    } else if (sequence <= 0xffff) {
        buf = Buffer.of(sequence >> 8, sequence)
    } else {
        buf = Buffer.of(sequence >> 16, sequence >> 8, sequence)
    }

    return buf
}, (buf) => {
    let result = 0

    if (buf.length === 1) {
        result = buf.readUInt8(0)
    } else if (buf.length === 2) {
        result = buf.readUInt16BE(0)
    } else if (buf.length === 3) {
        result = (buf.readUInt8(0) << 16) | buf.readUInt16BE(1)
    }

    return result
})


text:
@implementation BYStyleCustomizer {
    NSMutableDictionary *_customizedProperties;
    id<BYStyleProtocol> _customizedStyle;
}

-(id)initWithStyle:(id<BYStyleProtocol>)style {
    if (self = [super init]) {
        _customizedStyle = style;
    }
    return self;
}

-(void)updateWithStyle:(id<BYStyleProtocol>)style {
    _customizedStyle = style;
}

-(void)setPropertyValue:(id)value forName:(NSString*)name {
    if(!_customizedProperties) {
        _customizedProperties = [NSMutableDictionary new];
    }
    _customizedProperties[name] = value;
}

-(void)removePropertyValueForName:(NSString*)name {
    [_customizedProperties removeObjectForKey:name];
}

-(id)propertyValueForName:(NSString*)name {
    id value = _customizedProperties[name];
    if (value == nil) {
        value = [_customizedStyle propertyValueForName:name];
    }
    return value;
}

@end


text:
package com.nuclearthinking.game.characters.stats.calcstats;

import com.nuclearthinking.game.characters.CharacterObject;
import com.nuclearthinking.game.characters.interfaces.IBaseStat;
import com.nuclearthinking.game.enums.BaseStats;

/**
 * Created by kuksin-mv on 14.01.2016.
 */
public class Dexterity implements IBaseStat {
    @Override
    public double calcBonus(CharacterObject characterObject) {
        return BaseStats.DEXbonus[characterObject.getDEX()];
    }
}


text:
layout: simple
id: fortbildung
permalink: /fortbildung
lang: de
translationAvailable: false
---
<script type="text/javascript" src="https://form.jotformeu.com/jsform/91814880708364"></script>