text:
<?xml version="1.0" encoding="UTF-8"?>
<es:job-bag xmlns:es="http://www.marklogic.com/enhanced-search#">

         <meta property="rnews:description"
               content="A study of seismic record shows that earthquakes can be triggered at the sites of wastewater injection by quakes on the other side of the world."/>
         <meta property="rnews:datePublished" content="2013-07-12T02:38:35"/>
         <meta property="rnews:thumbnailUrl"
               content="http://news.bbcimg.co.uk/media/images/68683000/jpg/_68683776_e3750065-seismograph-spl.jpg"/>
         <meta property="rnews:headline" content="Distant quakes linked by wastewater"/>
         <meta name="CPS_SECTION_PATH" content="Science and Environment"/>
         <meta property="rnews:creator" content="http://www.bbc.co.uk#org"/>
         <link rel="copyright"
               href="http://www.bbc.co.uk/terms/"
               title="Terms of Use"/>
         <link rel="http://purl.org/dc/terms/source"
               href="http://www.bbc.co.uk/news/science-environment-23271168"/>
         <title>BBC News - Distant quakes 'can trigger wastewater-site
temblors'</title>

               12 July 2013
               Last updated
at
               03:38

Distant quakes 'can trigger
wastewater-site temblors'

               By Jason
Palmer
               Science and technology
reporter, BBC News

               Wastewater from drilling and hydraulic fracturing is
stored in open pits before being pumped into the
ground

Earthquakes can be
triggered at the sites of wastewater injection by quakes on the
other side of the world, research suggests.

The injection of wastewater from underground operations such as
oil drilling is known to increase local seismic activity.

Now a study in Science suggests that waves from the most distant
temblors can cause quakes at wastewater sites.

Researchers suggest this can act as a kind of "stress meter" for
the sites.

The notion of natural earthquake triggering is not new; in
hydrothermal and volcanic areas, tremors can be triggered by large,
distant earthquakes. But the new study suggests what is in effect a
new category: natural triggering of seismic events primed by human
activity.

Injection of wastewater from operations such as drilling,
geothermal, or hydraulic fracturing ("fracking") is banned in the
UK and many European countries, but it has become increasingly
prevalent in the US.

In the state of Texas alone, more
than 7,000 such wells are in operation and the link between
injection wells and even large seismic events is strengthening.

In March, researchers linked a 5.7-magnitude event in
Oklahoma to waste water injection that had been going on for
nearly two decades.

"In some cases of induced earthquakes you drill a well, you
start pumping, and a week or two later you start having earthquakes
on a very nearby fault - we saw this in Arkansas in 2011, and a
site in Ohio," explained lead author of the study Nicholas van der
Elst of the Lamont-Doherty Earth Observatory at Columbia
University, New York.

The team scoured the seismic records for three wastewater
injection sites in the US states of Oklahoma, Colorado and Texas,
looking for signs of the smallest earthquakes that could be
detected.

"In the sites we looked at, the connection hadn't been quite as
straightforward, so we were looking for additional evidence that
fluids were bringing these regions to the tipping point," Dr van
der Elst told BBC News.

When compared with global records of larger earthquakes, a
pattern became clear: there was a pronounced increase in
earthquakes of magnitude 3 or greater following large events
elsewhere in the world, such as the February 2010 event in Chile
or the March 2011 Tohoku
event off Japan.

"When you have a really big earthquake somewhere else on the
planet, this sets up big seismic waves that spread out like ripples
over the surface of the Earth. When these seismic waves pass faults
that are already very near to failure, these seismic waves can give
that additional push that sets off an earthquake."

Dr van der Elst said that these correlations of mid-size
earthquakes with distant events could be used as a useful test of a
site's integrity.

"If you've had a quiet injection site in the past, you'd like to
be able to know if that site has transitioned, reached some
critical threshold where larger earthquakes are possible," he
said.

               Small to mid-size quakes could be used as a sign of
the health of waste water wells

"If you can use this method as a kind of stress meter to show
where the stresses are building, that might be really useful for
making policy decisions about whether to keep pumping there or
whether to try a different site."

Richard Davies, director of the Durham Energy Institute at the
University of Durham, called the paper "an exciting, interesting
result".

"Seismologists have known for some time that there are transient
stresses from earthquakes that can potentially cause other faults
to slip, causing an earthquake," Prof Davies told BBC News.

"But this paper is a very interesting contribution, as it
proposes that mankind can artificially 'prime the faults' by
injecting wastewater over long periods under the ground.

"Mankind is essentially lubricating the faults enough so that
they are eventually triggered by a distant, natural earthquake.
Think of a hovercraft - the air pumped into the base of the craft
means that even small forces allow the heavy vehicle to move - the
physics is the same."

Related Stories

                  US quake linked to oil
wastewater

"Start Quote

Think of a hovercraft - the air pumped into
the base of the craft means that even small forces allow the heavy
vehicle to move - the physics is the same"

            End Quote
            Richard Davies
            Durham Energy Institute

   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:og="http://opengraphprotocol.org/schema/"
            xmlns:rnews="http://iptc.org/std/rNews/2011-10-07#">
      <rdf:Description rdf:about="http://www.bbc.co.uk/news/science-environment-23271168">
         <rdf:type rdf:resource="http://iptc.org/std/rNews/2011-10-07#NewsItem"/>
         <rnews:identifier rdf:resource="http://www.bbc.co.uk/news/science-environment-23271168"/>
         <rnews:usageTerms rdf:resource="http://www.bbc.co.uk/terms/"/>
         <rnews:description xml:lang="en-GB">A study of seismic record shows that earthquakes can be triggered at the sites of wastewater injection by quakes on the other side of the world.</rnews:description>
         <rnews:datePublished rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2013-07-12T02:38:35</rnews:datePublished>
         <rnews:thumbnailUrl rdf:resource="http://news.bbcimg.co.uk/media/images/68683000/jpg/_68683776_e3750065-seismograph-spl.jpg"/>
         <rnews:headline xml:lang="en-GB">Distant quakes linked by wastewater</rnews:headline>
         <rnews:articleSection rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Science and Environment</rnews:articleSection>
         <rnews:creator rdf:resource="http://www.bbc.co.uk#org"/>
      </rdf:Description>
      <rdf:Description rdf:about="http://news.bbcimg.co.uk/media/images/68669000/jpg/_68669125_img_4946.jpg">
         <rdf:type rdf:resource="http://iptc.org/std/rNews/2011-10-07#ImageObject"/>
         <rnews:associatedArticle rdf:resource="http://www.bbc.co.uk/news/science-environment-23271168"/>
         <rnews:width rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">624</rnews:width>
         <rnews:height rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">320</rnews:height>
         <rnews:description xml:lang="en-GB">Fracking wastewater</rnews:description>
         <rnews:encodingFormat rdf:resource="http://cv.iptc.org/newscodes/format/JPEG_Baseline"/>
      </rdf:Description>
      <rdf:Description rdf:about="http://news.bbcimg.co.uk/media/images/68683000/jpg/_68683770_e3750065-seismograph-spl.jpg">
         <rdf:type rdf:resource="http://iptc.org/std/rNews/2011-10-07#ImageObject"/>
         <rnews:associatedArticle rdf:resource="http://www.bbc.co.uk/news/science-environment-23271168"/>
         <rnews:width rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">304</rnews:width>
         <rnews:height rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">171</rnews:height>
         <rnews:description xml:lang="en-GB">Seismograph</rnews:description>
         <rnews:encodingFormat rdf:resource="http://cv.iptc.org/newscodes/format/JPEG_Baseline"/>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       c:allowDistribution="true"
                       c:allowSearch="false"
                       c:calaisRequestID="5bdc36ae-ac0d-2d87-13fd-215e10433e3f"
                       c:externalID="mluces"
                       c:id="http://id.opencalais.com/baCkGwelZiakG4soKAMnow"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/DocInfo"/>
         <c:docDate rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2013-07-12</c:docDate>
         <c:submitter>ml</c:submitter>
         <owl:sameAs xmlns:owl="http://www.w3.org/2002/07/owl#"
                     rdf:resource="http://www.bbc.co.uk/news/science-environment-23271168"/>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       c:contentType="TEXT/HTML"
                       c:emVer="7.1.1103.5"
                       c:langIdVer="DefaultLangId"
                       c:language="English"
                       c:processingVer="CalaisJob01"
                       c:submissionDate="2013-07-12 04:53:36.644"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/meta">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/DocInfoMeta"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:submitterCode>c2b78ae4-093d-1686-b3f0-28ae1ba30b6e</c:submitterCode>
         <c:signature>digestalg-1|azRyCo10bNJrBx92RDizw5YtIW8=|EaWUmZdTU/AZUQ4FWXr1wcreGuQISxZ3kc+EdFg/d8nWCKsd5TajYw==</c:signature>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/lid/DefaultLangId">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/lid/DefaultLangId"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:lang rdf:resource="http://d.opencalais.com/lid/DefaultLangId/English"/>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/cat/1">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/cat/DocCat"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:category rdf:resource="http://d.opencalais.com/cat/Calais/Environment"/>
         <c:classifierName>Calais</c:classifierName>
         <c:categoryName>Environment</c:categoryName>
         <c:score rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.956</c:score>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/cat/2">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/cat/DocCat"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:category rdf:resource="http://d.opencalais.com/cat/Calais/Disaster_Accident"/>
         <c:classifierName>Calais</c:classifierName>
         <c:categoryName>Disaster_Accident</c:categoryName>
         <c:score rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.891</c:score>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/84a1d40c-4275-329c-aaef-ed95059f50a7">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Facility"/>
         <c:name>Lamont-Doherty Earth Observatory</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/1">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/84a1d40c-4275-329c-aaef-ed95059f50a7"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/b6607136-0945-32d7-b4fa-a99019467fd9">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/ProvinceOrState"/>
         <c:name>Texas</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/2">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/b6607136-0945-32d7-b4fa-a99019467fd9"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.285</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/4e31417f-0912-362e-b8c9-1aea70d89959">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/ProvinceOrState"/>
         <c:name>Oklahoma</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/3">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/4e31417f-0912-362e-b8c9-1aea70d89959"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.261</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/country/ralg-geo1/578ed5a4-eecf-5a15-803a-bdc49f6152d6">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/ed1c9b63-4b8e-311f-b8db-0f90ea812660"/>
         <c:name>Japan</c:name>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">35.4111749285</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">135.833685568</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/fd09093c-00c3-3d65-8475-b9f87c77bd9d">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Position"/>
         <c:name>lead author</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/4">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/fd09093c-00c3-3d65-8475-b9f87c77bd9d"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/pershash-1/f985d1ef-4703-34fa-bd77-f8d1065e179b">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Person"/>
         <c:name>Richard Davies</c:name>
         <c:persontype>entertainment</c:persontype>
         <c:nationality>N/A</c:nationality>
         <c:commonname>Richard Davies</c:commonname>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/5">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/pershash-1/f985d1ef-4703-34fa-bd77-f8d1065e179b"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.105</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/cc88b155-205c-3676-a151-d45f473f0b16">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Country"/>
         <c:name>United Kingdom</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/6">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/cc88b155-205c-3676-a151-d45f473f0b16"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.271</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/pershash-1/d7feb1b0-2f23-32d1-bee7-fea9390baf51">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Person"/>
         <c:name>Nicholas van der Elst</c:name>
         <c:persontype>N/A</c:persontype>
         <c:nationality>N/A</c:nationality>
         <c:commonname>Nicholas van der Elst</c:commonname>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/7">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/pershash-1/d7feb1b0-2f23-32d1-bee7-fea9390baf51"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.452</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/ec325bc6-6e87-3bbf-9f5f-bb84fc6d7abe">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/r/PersonCareer"/>
         <c:person rdf:resource="http://d.opencalais.com/pershash-1/f985d1ef-4703-34fa-bd77-f8d1065e179b"/>
         <c:position rdf:resource="http://d.opencalais.com/genericHasher-1/68cbfc21-4f67-3079-a374-e5621d7f15a5"/>
         <c:organization rdf:resource="http://d.opencalais.com/genericHasher-1/b64e82dc-91b9-3d87-b5d4-ee36ead52154"/>
         <c:careertype>professional</c:careertype>
         <c:status>current</c:status>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/9c29523b-122b-3bea-8b38-1e96027d5162">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Technology"/>
         <c:name>fracturing</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/8">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/9c29523b-122b-3bea-8b38-1e96027d5162"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.271</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/comphash-1/33d20acf-9f02-3410-98ed-eedc9165cc7d">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Company"/>
         <c:name>BBC News</c:name>
         <c:nationality>N/A</c:nationality>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/9">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/comphash-1/33d20acf-9f02-3410-98ed-eedc9165cc7d"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.274</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/c787b333-56c4-3d9b-8b1b-ad1bd4ddd7e6">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/r/PersonCommunication"/>
         <c:person rdf:resource="http://d.opencalais.com/pershash-1/d7feb1b0-2f23-32d1-bee7-fea9390baf51"/>
         <c:organizationorcompany rdf:resource="http://d.opencalais.com/comphash-1/33d20acf-9f02-3410-98ed-eedc9165cc7d"/>
         <c:status>announced</c:status>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/3464e47d-a869-3783-8fdc-d17cb8f13c2e">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/ProvinceOrState"/>
         <c:name>Ohio</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/10">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/3464e47d-a869-3783-8fdc-d17cb8f13c2e"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/provinceorstate/ralg-geo1/c8ff68c4-bb14-b2db-4b27-924496d2fa2f">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/ProvinceOrState"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/693b9b27-4f42-328f-8fcd-34d3f5c08cc5"/>
         <c:name>Arkansas,United States</c:name>
         <c:shortname>Arkansas</c:shortname>
         <c:containedbycountry>United States</c:containedbycountry>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">34.8</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-92.2</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/provinceorstate/ralg-geo1/4e995033-70d0-4e35-245c-2de99045b623">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/ProvinceOrState"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/3464e47d-a869-3783-8fdc-d17cb8f13c2e"/>
         <c:name>Ohio,United States</c:name>
         <c:shortname>Ohio</c:shortname>
         <c:containedbycountry>United States</c:containedbycountry>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">40.5</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-82.5</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/ed1c9b63-4b8e-311f-b8db-0f90ea812660">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Country"/>
         <c:name>Japan</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/11">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/ed1c9b63-4b8e-311f-b8db-0f90ea812660"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.174</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/54b583f9-8c35-33df-89c2-6537ea00657a">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Facility"/>
         <c:name>Columbia University</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/12">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/54b583f9-8c35-33df-89c2-6537ea00657a"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/b64e82dc-91b9-3d87-b5d4-ee36ead52154">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Organization"/>
         <c:name>Durham Energy Institute</c:name>
         <c:organizationtype>N/A</c:organizationtype>
         <c:nationality>British</c:nationality>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/13">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/b64e82dc-91b9-3d87-b5d4-ee36ead52154"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.091</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/b7c9078a-19d1-32d4-946e-98c17b7b0aba">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/r/NaturalDisaster"/>
         <c:effect>cause other faults to slip</c:effect>
         <c:naturaldisaster>earthquake</c:naturaldisaster>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/country/ralg-geo1/fd317045-cbdc-d260-54de-08112d6031b4">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/537f7f73-aa05-3d35-95ca-31eb2a1eb5b4"/>
         <c:name>Chile</c:name>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-35.1234449318</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-71.5719660819</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/78b9f68f-64d0-390f-87ff-83954ca802a1">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/r/PersonCommunication"/>
         <c:person rdf:resource="http://d.opencalais.com/pershash-1/f985d1ef-4703-34fa-bd77-f8d1065e179b"/>
         <c:organizationorcompany rdf:resource="http://d.opencalais.com/comphash-1/33d20acf-9f02-3410-98ed-eedc9165cc7d"/>
         <c:status>announced</c:status>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/5fc67ecf-e49d-3ab4-aaad-9cff97f00ffe">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/ProvinceOrState"/>
         <c:name>New York</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/14">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/5fc67ecf-e49d-3ab4-aaad-9cff97f00ffe"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/provinceorstate/ralg-geo1/e9e27c26-4013-8712-a5f0-97dcdc412c26">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/ProvinceOrState"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/4e31417f-0912-362e-b8c9-1aea70d89959"/>
         <c:name>Oklahoma,United States</c:name>
         <c:shortname>Oklahoma</c:shortname>
         <c:containedbycountry>United States</c:containedbycountry>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">35.5607802899</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-96.8460570462</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/country/ralg-geo1/152649df-347e-e289-1a9e-acc883e07d17">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/a54ac18b-a956-3b5c-b235-0609ca899305"/>
         <c:name>United States</c:name>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">40.4230003233</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-98.7372244786</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/68cbfc21-4f67-3079-a374-e5621d7f15a5">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Position"/>
         <c:name>director</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/15">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/68cbfc21-4f67-3079-a374-e5621d7f15a5"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.091</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/provinceorstate/ralg-geo1/62914270-0a1c-1bcc-880e-6dbe9fb82eb9">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/ProvinceOrState"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/b6607136-0945-32d7-b4fa-a99019467fd9"/>
         <c:name>Texas,United States</c:name>
         <c:shortname>Texas</c:shortname>
         <c:containedbycountry>United States</c:containedbycountry>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">31.4484328889</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-97.7816569778</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/a54ac18b-a956-3b5c-b235-0609ca899305">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Country"/>
         <c:name>United States</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/16">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/a54ac18b-a956-3b5c-b235-0609ca899305"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.308</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/537f7f73-aa05-3d35-95ca-31eb2a1eb5b4">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Country"/>
         <c:name>Chile</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/17">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/537f7f73-aa05-3d35-95ca-31eb2a1eb5b4"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.174</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/fd9f4a81-63da-3328-8939-f4f685e04e52">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Facility"/>
         <c:name>University of Durham</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/18">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/fd9f4a81-63da-3328-8939-f4f685e04e52"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.091</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/096a73ce-884f-33d7-9375-ac1c8ec74b16">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/ProvinceOrState"/>
         <c:name>Colorado</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/19">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/096a73ce-884f-33d7-9375-ac1c8ec74b16"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.208</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/fe37ef09-faf2-3270-a797-674c14f737b4">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/IndustryTerm"/>
         <c:name>oil drilling</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/20">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/fe37ef09-faf2-3270-a797-674c14f737b4"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.315</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/12e3b989-e5d2-3cbc-8ef1-7ec4ce7b1cdb">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/r/NaturalDisaster"/>
         <c:date rdf:datatype="http://www.w3.org/2001/XMLSchema#date">2013-07-12</c:date>
         <c:datestring>12 July 2013</c:datestring>
         <c:naturaldisaster>earthquake</c:naturaldisaster>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/provinceorstate/ralg-geo1/2464781f-2743-853b-bb3a-0b37152c849e">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/ProvinceOrState"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/5fc67ecf-e49d-3ab4-aaad-9cff97f00ffe"/>
         <c:name>New York,United States</c:name>
         <c:shortname>New York</c:shortname>
         <c:containedbycountry>United States</c:containedbycountry>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">42.3481810333</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-75.1889929444</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/693b9b27-4f42-328f-8fcd-34d3f5c08cc5">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/ProvinceOrState"/>
         <c:name>Arkansas</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/21">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/693b9b27-4f42-328f-8fcd-34d3f5c08cc5"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/63e68c26-2d34-32c9-a039-7a82deaacdbb">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/IndustryTerm"/>
         <c:name>quiet injection site</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/22">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/63e68c26-2d34-32c9-a039-7a82deaacdbb"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.114</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/country/ralg-geo1/9cdc126f-6826-0cbd-df3a-00a4032f0e7e">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/Country"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/cc88b155-205c-3676-a151-d45f473f0b16"/>
         <c:name>United Kingdom</c:name>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">53.1142456495</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-2.57711368423</c:longitude>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/6ace82b9-9bd9-3d9e-bafc-af74c8aa7168">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Facility"/>
         <c:name>Durham Energy Institute</c:name>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/23">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/6ace82b9-9bd9-3d9e-bafc-af74c8aa7168"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.091</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/972eb5b8-b41e-33e9-92c0-66de9c11d6e7">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Organization"/>
         <c:name>University of Durham</c:name>
         <c:organizationtype>N/A</c:organizationtype>
         <c:nationality>British</c:nationality>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/24">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/972eb5b8-b41e-33e9-92c0-66de9c11d6e7"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.091</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/genericHasher-1/d5f5430a-9983-31d1-bde5-36702a34ce92">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/em/e/Organization"/>
         <c:name>Columbia University, New York</c:name>
         <c:organizationtype>N/A</c:organizationtype>
         <c:nationality>N/A</c:nationality>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff/Relevance/25">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/sys/RelevanceInfo"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/d5f5430a-9983-31d1-bde5-36702a34ce92"/>
         <c:relevance rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0.225</c:relevance>
      </rdf:Description>
      <rdf:Description xmlns:c="http://s.opencalais.com/1/pred/"
                       rdf:about="http://d.opencalais.com/er/geo/provinceorstate/ralg-geo1/e088028d-cdce-c4fa-c28a-cf7a54cc36b7">
         <rdf:type rdf:resource="http://s.opencalais.com/1/type/er/Geo/ProvinceOrState"/>
         <c:docId rdf:resource="http://d.opencalais.com/dochash-1/e55f4b9d-f563-31a0-80e1-dabec7425aff"/>
         <c:subject rdf:resource="http://d.opencalais.com/genericHasher-1/096a73ce-884f-33d7-9375-ac1c8ec74b16"/>
         <c:name>Colorado,United States</c:name>
         <c:shortname>Colorado</c:shortname>
         <c:containedbycountry>United States</c:containedbycountry>
         <c:latitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">39.0473491002</c:latitude>
         <c:longitude rdf:datatype="http://www.w3.org/2001/XMLSchema#double">-105.465397491</c:longitude>
      </rdf:Description>
   </rdf:RDF>
</es:job-bag>


text:
#include "phd.h"

#if defined (__linux__) || defined (__APPLE__) || defined (__FreeBSD__)

#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <errno.h>

wxArrayString SerialPortPosix::GetSerialPortList(void)
{
    wxArrayString ret;

    // TODO generate this list
    ret.Add("/dev/ttyS0");
    ret.Add("/dev/ttyS1");
    ret.Add("/dev/ttyUSB0");
    ret.Add("/dev/ttyUSB1");
    ret.Add("/dev/sx-ao-lf");

    return ret;
}

SerialPortPosix::SerialPortPosix(void)
{
    m_fd = -1;
}

SerialPortPosix::~SerialPortPosix(void)
{
    if (m_fd > 0) {
        close(m_fd);
        m_fd = -1;
    }
}

bool SerialPortPosix::Connect(const wxString& portName, int baud, int dataBits, int stopBits, PARITY Parity, bool useRTS, bool useDTR)
{
    bool bError = false;

    try
    {
        if ((m_fd = open(portName.mb_str(), O_RDWR|O_NOCTTY)) < 0) {
            wxString exposeToUser = wxString::Format("open %s failed %s(%d)", portName, strerror((int)errno), (int)errno);
            throw ERROR_INFO("SerialPortPosix::Connect " + exposeToUser);
        }

        struct termios attr;

        if (tcgetattr(m_fd, &attr) < 0) {
            wxString errorWxs = wxString::Format("tcgetattr failed %s(%d)", strerror((int)errno), (int)errno);
            throw ERROR_INFO("SerialPortPosix::Connect " + errorWxs);
        }

#if defined (__APPLE__)
        m_originalAttrs = attr;
        cfmakeraw(&attr);
#endif

        attr.c_iflag = 0; // input modes
        attr.c_oflag = 0; // output modes
        attr.c_cflag = CLOCAL;  // CLOCAL == Ignore modem control lines.
        attr.c_cflag |= CREAD ; // CREAD == Enable receiver.
        switch (dataBits) {
        case 7:
            attr.c_cflag |= CS7;    // 7 bit Character size mask.
            break;
        case 8:
            attr.c_cflag |= CS8;    // 8 bit Character size mask.
            break;
        default:
            throw ERROR_INFO("SerialPortPosix::Connect unsupported amount of dataBits");
            break;
        }
        switch (stopBits) {
        case 1:
            break;
        case 2:
            attr.c_cflag |= CSTOPB; // 2 stop bits
            break;
        default:
            throw ERROR_INFO("SerialPortPosix::Connect invalid amount of stopBits");
            break;
        }
        switch (Parity) {
        case ParityNone:
            break;
        case ParityOdd:
            attr.c_cflag |= PARENB | PARODD;
            break;
        case ParityEven:
            attr.c_cflag |= PARENB; // Enable parity generation on output and parity checking for input.
            break;
        case ParityMark:  // TODO, not in POSIX. CMSPAR
        case ParitySpace: // TODO, not in POSIX. CMSPAR
        default:
            throw ERROR_INFO("SerialPortPosix::Connect invalid parity");
            break;
        }
        attr.c_lflag &= ~ICANON; // Do not wait for a line delimiter. Work in noncanonical mode.
        attr.c_lflag &= ~( ECHO | ECHOE | ISIG | IEXTEN | NOFLSH | TOSTOP); // local modes
        attr.c_lflag |=  NOFLSH;
        attr.c_cc[VTIME] = (uint8_t)0; // timeout in deciseconds
        attr.c_cc[VMIN]  = (uint8_t)0; // minimum number of characters for noncanonical read

        unsigned int speed = B0;
        switch (baud) {
        case 9600:   speed =   B9600; break;
        case 19200:  speed =  B19200; break;
        case 38400:  speed =  B38400; break;
        case 57600:  speed =  B57600; break;
        case 115200: speed = B115200; break;
        case 230400: speed = B230400; break;
        default:
            throw ERROR_INFO("SerialPortPosix::Connect unsupported baudrate");
            break;
        }
        if (cfsetispeed(&attr, speed) < 0 || cfsetospeed(&attr, speed) < 0) {
            throw ERROR_INFO("cfsetispeed failed");
        }

        if (tcsetattr(m_fd, TCSAFLUSH, &attr) < 0 ) {
            wxString errowWxs = wxString::Format("tcsetattr failed %s(%d)", strerror((int)errno), (int)errno);
            throw ERROR_INFO("SerialPortPosix::Connect " + errowWxs);
        }

        int ioctl_ret = 0;
        unsigned int argp;

        if ((ioctl_ret = ioctl(m_fd, TIOCMGET, &argp)) < 0) {
            throw ERROR_INFO("ioctl TIOCMGET");
        }
        if (useDTR) {
            argp |= TIOCM_DTR;
        }
        if (useRTS) {
            argp |= TIOCM_RTS;
        }
        if ((ioctl_ret = ioctl(m_fd, TIOCMSET, &argp)) < 0) {
            throw ERROR_INFO("ioctl TIOCMSET");
        }
    }
    catch (const wxString& Msg)
    {
        POSSIBLY_UNUSED(Msg);
        bError = true;
    }

    return bError;
}

bool SerialPortPosix::Disconnect(void)
{
    bool bError = false;

    try
    {
#if defined (__APPLE__)
        if (tcdrain(m_fd) == -1) {
            fprintf(stderr,"Error waiting for drain - %s(%d).\n",strerror(errno), errno);
        }
        if (tcsetattr(m_fd, TCSANOW, &m_originalAttrs) == -1) {
            fprintf(stderr,"Error resetting tty attributes - %s(%d).\n",strerror(errno),errno);
        }
#endif
        if (close(m_fd) == -1) {
            throw ERROR_INFO("SerialPortPosix: close failed");
        }
    }
    catch (const wxString& Msg)
    {
        POSSIBLY_UNUSED(Msg);
        bError = true;
    }

    m_fd = -1;

    return bError;
}

bool SerialPortPosix::SetReceiveTimeout(int timeoutMilliSeconds)
{
    bool bError = false;

    Debug.Write(wxString::Format("SerialPortPosix::SetReceiveTimeout %d ms\n", timeoutMilliSeconds));

    try
    {
        struct termios attr;

        if (tcgetattr(m_fd, &attr) < 0) {
            throw ERROR_INFO("tcgetattr failed");
        }
        int timeoutDeciSeconds = (timeoutMilliSeconds + 99) / 100;
        attr.c_cc[VTIME] = (uint8_t)timeoutDeciSeconds;
        if (tcsetattr(m_fd, TCSAFLUSH, &attr) < 0) {
            throw ERROR_INFO("tcsetattr failed");
        }
    }
    catch (const wxString& Msg)
    {
        POSSIBLY_UNUSED(Msg);
        bError = true;
    }

    return bError;
}

bool SerialPortPosix::Send(const unsigned char *pData, unsigned int count)
{
    bool bError = false;

    try
    {
        Debug.AddBytes("SerialPortPosix::Send", pData, count);

        size_t rem = count;
        while (rem > 0)
        {
            ssize_t const nBytesWritten = write(m_fd, pData, rem);

            if (nBytesWritten < 0)
                throw ERROR_INFO("SerialPortPosix: write failed");

            rem -= nBytesWritten;
            pData += nBytesWritten;
        }
    }
    catch (const wxString& Msg)
    {
        POSSIBLY_UNUSED(Msg);
        bError = true;
    }

    return bError;
}

bool SerialPortPosix::Receive(unsigned char *pData, unsigned int count)
{
    bool bError = false;

    try
    {
        size_t rem = count;

        while (rem > 0)
        {
            ssize_t const receiveCount = read(m_fd, pData, rem);

            if (receiveCount == -1)
                throw ERROR_INFO("SerialPortPosix: read Failed");

            if (receiveCount == 0)
                break; // eof

            Debug.AddBytes("SerialPortPosix::Receive", pData, receiveCount);

            rem -= receiveCount;
            pData += receiveCount;
        }

        if (rem > 0) {
            throw ERROR_INFO("SerialPortPosix: " + wxString::Format(wxT("%i"), rem) + " remaining bytes to read at eof " + ", expected total of " + wxString::Format(wxT("%i"), count));
        }
    }
    catch (const wxString& Msg)
    {
        POSSIBLY_UNUSED(Msg);
        bError = true;
    }

    return bError;
}

bool SerialPortPosix::SetRTS(bool asserted)
{
    return true; // TODO
}

bool SerialPortPosix::SetDTR(bool asserted)
{
    return true; // TODO
}

#endif // __linux__

redpajama_set_name: RedPajamaGithub


text:
using IAmNotified.ClientSDK.Notification;

namespace IAmNotified.ClientSDK
{
    public interface IMessageBroker
    {
        void SendNotifications();
    }
}


text:
<?php

namespace Cartalyst\Stripe\Api;

class Subscriptions extends Api
{
    /**
     * Creates a new subscription on the given customer.
     *
     * @param  string  $customerId
     * @param  array  $parameters
     * @return array
     */
    public function create($customerId, array $parameters = [])
    {
        $parameters['customer'] = $customerId;

        return $this->_post('subscriptions', $parameters);
    }

    /**
     * Retrieves an existing subscription from the given customer.
     *
     * @param  string  $customerId
     * @param  string  $subscriptionId
     * @return array
     */
    public function find($customerId, $subscriptionId)
    {
        return $this->_get("subscriptions/{$subscriptionId}");
    }

    /**
     * Updates an existing subscription from the given customer.
     *
     * @param  string  $customerId
     * @param  string  $subscriptionId
     * @param  array  $parameters
     * @return array
     */
    public function update($customerId, $subscriptionId, array $parameters = [])
    {
        return $this->_post("subscriptions/{$subscriptionId}", $parameters);
    }

    /**
     * Cancels an existing subscription from the given customer.
     *
     * @param  string  $customerId
     * @param  string  $subscriptionId
     * @param  bool  $atPeriodEnd
     * @return array
     */
    public function cancel($customerId, $subscriptionId, $atPeriodEnd = false)
    {
        return $this->_delete("subscriptions/{$subscriptionId}", [
            'at_period_end' => (bool) $atPeriodEnd,
        ]);
    }

    /**
     * Reactivates an existing canceled subscription from the given customer.
     *
     * @param  string  $customerId
     * @param  string  $subscriptionId
     * @param  array  $attributes
     * @return array
     */
    public function reactivate($customerId, $subscriptionId, array $attributes = [])
    {
        if (! isset($attributes['plan'])) {
            $subscription = $this->find($customerId, $subscriptionId);

            $attributes['plan'] = $subscription['plan']['id'];
        }

        return $this->update($customerId, $subscriptionId, $attributes);
    }

    /**
     * Applies the given discount on the given subscription.
     *
     * @param  string  $customerId
     * @param  string  $subscriptionId
     * @param  string  $couponId
     * @return array
     */
    public function applyDiscount($customerId, $subscriptionId, $couponId)
    {
        return $this->update($customerId, $subscriptionId, [
            'coupon' => $couponId,
        ]);
    }

    /**
     * Deletes an existing subscription discount.
     *
     * @param  string  $customerId
     * @param  string  $subscriptionId
     * @return array
     */
    public function deleteDiscount($customerId, $subscriptionId)
    {
        return $this->_delete("subscriptions/{$subscriptionId}/discount");
    }

    /**
     * Lists all subscriptions for the given customer or
     * all the subscriptions for the Stripe account.
     *
     * @param  string|null  $customerId
     * @param  array  $parameters
     * @return array
     */
    public function all($customerId = null, array $parameters = [])
    {
        if ($customerId !== null) {
            $parameters = array_merge($parameters, [
                'customer' => $customerId,
            ]);
        }

        return $this->_get('subscriptions', $parameters);
    }
}


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package zappos2.requests;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author RoyZheng
 */
public class Search {

    int statusCode;
    List<SearchEntry> results = new ArrayList<SearchEntry>();

    public String toString() {
        StringBuilder b = new StringBuilder();
        b.append("Statuscode:");
        b.append(this.statusCode);
        b.append(',');
        for (SearchEntry s : this.results) {
            b.append('[');
            b.append(s.toString());
            b.append(']');
        }
        return b.toString();
    }

    public List<SearchEntry> getEntries() {
        return this.results;
    }

    public void removeDuplicates() {
        List<SearchEntry> nr = new ArrayList<SearchEntry>();
        for (SearchEntry se : this.results) {
            boolean uniq = true;
            for (SearchEntry nre : nr) {
                if (nre.getProductId() == se.getProductId()) {
                    uniq = false;
                    break;
                }
            }
            if (uniq) {
                nr.add(se);;
            }
        }
        this.results=nr;
    }
}

/*
{
"statusCode": "200",
"results":
[
 {
   "styleId": "556677",
   "productId": "123456",
   "brandName": "Ugg",
   "productName": "Classic Tall",
   "thumbnailImageUrl": "http://www.zappos.com/images/image.jpg",
   "originalPrice": "$198.00",
   "price": "$198.00",
   "percentOff": "19%",
   "productUrl": "http://www.zappos.com/product/101183/color/381"
 },
 {
   "styleId": "556678",
   "productId": "123457",
   "brandName": "Ugg",
   "productName": "Classic Short",
   "thumbnailImageUrl": "http://www.zappos.com/images/image.jpg",
   "originalPrice": "$158.00",
   "price": "$140.00",
   "percentOff": "19%",
   "productUrl": "http://www.zappos.com/product/101183/color/381"
 },
 {
   "styleId": "556679",
   "productId": "234567",
   "brandName": "Frye",
   "productName": "Engineer 12R W",
   "thumbnailImageUrl": "http://www.zappos.com/images/image.jpg",
   "originalPrice": "$300.00",
   "price": "$300.00",
   "percentOff": "19%",
   "productUrl": "http://www.zappos.com/product/101183/color/381"
 }
]
}
*
*/


text:
#ifndef __GST_VIDEO_OVERLAY_COMPOSITION_H__
#define __GST_VIDEO_OVERLAY_COMPOSITION_H__

#include <gst/gst.h>
#include <gst/video/video.h>

G_BEGIN_DECLS

/**
 * GstVideoOverlayRectangle:
 *
 * An opaque video overlay rectangle object. A rectangle contains a single
 * overlay rectangle which can be added to a composition.
 */
#define GST_TYPE_VIDEO_OVERLAY_RECTANGLE			\
  (gst_video_overlay_rectangle_get_type ())
#define GST_VIDEO_OVERLAY_RECTANGLE_CAST(obj)			\
  ((GstVideoOverlayRectangle *)(obj))
#define GST_VIDEO_OVERLAY_RECTANGLE(obj)			\
  (GST_VIDEO_OVERLAY_RECTANGLE_CAST(obj))
#define GST_IS_VIDEO_OVERLAY_RECTANGLE(obj)			\
  (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_VIDEO_OVERLAY_RECTANGLE))

typedef struct _GstVideoOverlayRectangle      GstVideoOverlayRectangle;

/**
 * gst_video_overlay_rectangle_ref:
 * @comp: a a #GstVideoOverlayRectangle.
 *
 * Increases the refcount of the given rectangle by one.
 *
 * Note that the refcount affects the writeability
 * of @comp, use gst_video_overlay_rectangle_copy() to ensure a rectangle can
 * be modified (there is no gst_video_overlay_rectangle_make_writable() because
 * it is unlikely that someone will hold the single reference to the rectangle
 * and not know that that's the case).
 *
 * Returns: (transfer full): @comp
 */
static inline GstVideoOverlayRectangle *
gst_video_overlay_rectangle_ref (GstVideoOverlayRectangle * comp)
{
  return (GstVideoOverlayRectangle *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (comp));
}

/**
 * gst_video_overlay_rectangle_unref:
 * @comp: (transfer full): a #GstVideoOverlayRectangle.
 *
 * Decreases the refcount of the rectangle. If the refcount reaches 0, the
 * rectangle will be freed.
 */
static inline void
gst_video_overlay_rectangle_unref (GstVideoOverlayRectangle * comp)
{
  gst_mini_object_unref (GST_MINI_OBJECT_CAST (comp));
}

/**
 * GstVideoOverlayFormatFlags:
 * @GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE: no flags
 * @GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA: RGB are premultiplied by A/255.
 * @GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA: a global-alpha value != 1 is set.
 *
 * Overlay format flags.
 */
typedef enum {
  GST_VIDEO_OVERLAY_FORMAT_FLAG_NONE = 0,
  GST_VIDEO_OVERLAY_FORMAT_FLAG_PREMULTIPLIED_ALPHA = (1<<0),
  GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA = (1<<1)
} GstVideoOverlayFormatFlags;

#define GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION "meta:GstVideoOverlayComposition"

/**
  * GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB:
  *
  * Supported RGB overlay video format.
  */
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
#define GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB      GST_VIDEO_FORMAT_BGRA
#else
#define GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_RGB      GST_VIDEO_FORMAT_ARGB
#endif

/**
  * GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_YUV:
  *
  * Supported YUV overlay video format.
  */
#define GST_VIDEO_OVERLAY_COMPOSITION_FORMAT_YUV      GST_VIDEO_FORMAT_AYUV

/**
 * GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS:
 *
 * Video formats supported by gst_video_overlay_composition_blend(), for
 * use in overlay elements' pad template caps.
 *
 * Since: 1.2
 */
#define GST_VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS \
    "{ BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR," \
     " I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444," \
     " NV12, NV21, A420, YUV9, YVU9, IYU1, GRAY8 }"

GST_VIDEO_API
GType                        gst_video_overlay_rectangle_get_type (void);

GST_VIDEO_API
GstVideoOverlayRectangle *   gst_video_overlay_rectangle_new_raw  (GstBuffer * pixels,
                                                                   gint render_x, gint render_y,
                                                                   guint render_width, guint render_height,
                                                                   GstVideoOverlayFormatFlags flags);

GST_VIDEO_API
GstVideoOverlayRectangle *   gst_video_overlay_rectangle_copy     (GstVideoOverlayRectangle * rectangle);

GST_VIDEO_API
guint                        gst_video_overlay_rectangle_get_seqnum (GstVideoOverlayRectangle  * rectangle);

GST_VIDEO_API
void                         gst_video_overlay_rectangle_set_render_rectangle     (GstVideoOverlayRectangle  * rectangle,
                                                                                gint                        render_x,
                                                                                gint                        render_y,
                                                                                guint                       render_width,
                                                                                guint                       render_height);

GST_VIDEO_API
gboolean                     gst_video_overlay_rectangle_get_render_rectangle     (GstVideoOverlayRectangle  * rectangle,
                                                                                gint                      * render_x,
                                                                                gint                      * render_y,
                                                                                guint                     * render_width,
                                                                                guint                     * render_height);

GST_VIDEO_API
GstBuffer *                  gst_video_overlay_rectangle_get_pixels_raw           (GstVideoOverlayRectangle  * rectangle,
                                                                                GstVideoOverlayFormatFlags  flags);

GST_VIDEO_API
GstBuffer *                  gst_video_overlay_rectangle_get_pixels_argb          (GstVideoOverlayRectangle  * rectangle,
                                                                                GstVideoOverlayFormatFlags  flags);

GST_VIDEO_API
GstBuffer *                  gst_video_overlay_rectangle_get_pixels_ayuv          (GstVideoOverlayRectangle  * rectangle,
                                                                                GstVideoOverlayFormatFlags  flags);

GST_VIDEO_API
GstBuffer *                  gst_video_overlay_rectangle_get_pixels_unscaled_raw  (GstVideoOverlayRectangle  * rectangle,
                                                                                GstVideoOverlayFormatFlags  flags);

GST_VIDEO_API
GstBuffer *                  gst_video_overlay_rectangle_get_pixels_unscaled_argb (GstVideoOverlayRectangle  * rectangle,
                                                                                GstVideoOverlayFormatFlags  flags);

GST_VIDEO_API
GstBuffer *                  gst_video_overlay_rectangle_get_pixels_unscaled_ayuv (GstVideoOverlayRectangle  * rectangle,
                                                                                GstVideoOverlayFormatFlags  flags);

GST_VIDEO_API
GstVideoOverlayFormatFlags   gst_video_overlay_rectangle_get_flags                (GstVideoOverlayRectangle  * rectangle);

GST_VIDEO_API
gfloat                       gst_video_overlay_rectangle_get_global_alpha         (GstVideoOverlayRectangle  * rectangle);

GST_VIDEO_API
void                         gst_video_overlay_rectangle_set_global_alpha         (GstVideoOverlayRectangle  * rectangle,
                                                                                gfloat                      global_alpha);

/**
 * GstVideoOverlayComposition:
 *
 * An opaque video overlay composition object. A composition contains
 * multiple overlay rectangles.
 */
#define GST_TYPE_VIDEO_OVERLAY_COMPOSITION			\
  (gst_video_overlay_composition_get_type ())
#define GST_VIDEO_OVERLAY_COMPOSITION_CAST(obj)			\
  ((GstVideoOverlayComposition *)(obj))
#define GST_VIDEO_OVERLAY_COMPOSITION(obj)			\
  (GST_VIDEO_OVERLAY_COMPOSITION_CAST(obj))
#define GST_IS_VIDEO_OVERLAY_COMPOSITION(obj)			\
  (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_VIDEO_OVERLAY_COMPOSITION))

typedef struct _GstVideoOverlayComposition      GstVideoOverlayComposition;

/**
 * gst_video_overlay_composition_ref:
 * @comp: a a #GstVideoOverlayComposition.
 *
 * Increases the refcount of the given composition by one.
 *
 * Note that the refcount affects the writeability
 * of @comp, use gst_video_overlay_composition_make_writable() to ensure
 * a composition and its rectangles can be modified.
 *
 * Returns: (transfer full): @comp
 */
static inline GstVideoOverlayComposition *
gst_video_overlay_composition_ref (GstVideoOverlayComposition * comp)
{
  return (GstVideoOverlayComposition *) gst_mini_object_ref (GST_MINI_OBJECT_CAST (comp));
}

/**
 * gst_video_overlay_composition_unref:
 * @comp: (transfer full): a #GstVideoOverlayComposition.
 *
 * Decreases the refcount of the composition. If the refcount reaches 0, the
 * composition will be freed.
 */
static inline void
gst_video_overlay_composition_unref (GstVideoOverlayComposition * comp)
{
  gst_mini_object_unref (GST_MINI_OBJECT_CAST (comp));
}

GST_VIDEO_API
GType                        gst_video_overlay_composition_get_type (void);

GST_VIDEO_API
GstVideoOverlayComposition * gst_video_overlay_composition_copy          (GstVideoOverlayComposition * comp);

GST_VIDEO_API
GstVideoOverlayComposition * gst_video_overlay_composition_make_writable (GstVideoOverlayComposition * comp);

GST_VIDEO_API
GstVideoOverlayComposition * gst_video_overlay_composition_new           (GstVideoOverlayRectangle * rectangle);

GST_VIDEO_API
void                         gst_video_overlay_composition_add_rectangle (GstVideoOverlayComposition * comp,
                                                                          GstVideoOverlayRectangle   * rectangle);

GST_VIDEO_API
guint                        gst_video_overlay_composition_n_rectangles  (GstVideoOverlayComposition * comp);

GST_VIDEO_API
GstVideoOverlayRectangle *   gst_video_overlay_composition_get_rectangle (GstVideoOverlayComposition * comp, guint n);

GST_VIDEO_API
guint                        gst_video_overlay_composition_get_seqnum    (GstVideoOverlayComposition * comp);

/* blend composition onto raw video buffer */

GST_VIDEO_API
gboolean                     gst_video_overlay_composition_blend         (GstVideoOverlayComposition * comp,
                                                                          GstVideoFrame              * video_buf);

/* attach/retrieve composition from buffers */

#define GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE \
    (gst_video_overlay_composition_meta_api_get_type())
#define GST_VIDEO_OVERLAY_COMPOSITION_META_INFO \
    (gst_video_overlay_composition_meta_get_info())

typedef struct _GstVideoOverlayCompositionMeta GstVideoOverlayCompositionMeta;

/**
 * GstVideoOverlayCompositionMeta:
 * @meta: parent #GstMeta
 * @overlay: the attached #GstVideoOverlayComposition
 *
 * Extra buffer metadata describing image overlay data.
 */
struct _GstVideoOverlayCompositionMeta
{
  GstMeta meta;

  GstVideoOverlayComposition *overlay;
};

GST_VIDEO_API
GType gst_video_overlay_composition_meta_api_get_type (void);

GST_VIDEO_API
const GstMetaInfo *gst_video_overlay_composition_meta_get_info (void);

GST_VIDEO_API
GstVideoOverlayCompositionMeta * gst_buffer_add_video_overlay_composition_meta (GstBuffer                  * buf,
                                                                                GstVideoOverlayComposition * comp);

#define gst_buffer_get_video_overlay_composition_meta(b) \
  ((GstVideoOverlayCompositionMeta*)gst_buffer_get_meta((b),GST_VIDEO_OVERLAY_COMPOSITION_META_API_TYPE))
#define gst_buffer_remove_video_overlay_composition_meta(b,m) \
  gst_buffer_remove_meta((b),((GstMeta *) m))

#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoOverlayComposition, gst_video_overlay_composition_unref)
#endif

#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoOverlayRectangle, gst_video_overlay_rectangle_unref)
#endif

G_END_DECLS

#endif /* __GST_VIDEO_OVERLAY_COMPOSITION_H__ */


text:
package logs

import (
	"fmt"
	"io"
	"os"
	"strings"
	"sync"
	"time"

	"github.com/containers/podman/v3/libpod/logs/reversereader"
	"github.com/hpcloud/tail"
	"github.com/pkg/errors"
	"github.com/sirupsen/logrus"
)

const (
	// LogTimeFormat is the time format used in the log.
	// It is a modified version of RFC3339Nano that guarantees trailing
	// zeroes are not trimmed, taken from
	// https://github.com/golang/go/issues/19635
	LogTimeFormat = "2006-01-02T15:04:05.000000000Z07:00"

	// PartialLogType signifies a log line that exceeded the buffer
	// length and needed to spill into a new line
	PartialLogType = "P"

	// FullLogType signifies a log line is full
	FullLogType = "F"
)

// LogOptions is the options you can use for logs
type LogOptions struct {
	Details    bool
	Follow     bool
	Since      time.Time
	Until      time.Time
	Tail       int64
	Timestamps bool
	Multi      bool
	WaitGroup  *sync.WaitGroup
	UseName    bool
}

// LogLine describes the information for each line of a log
type LogLine struct {
	Device       string
	ParseLogType string
	Time         time.Time
	Msg          string
	CID          string
	CName        string
}

// GetLogFile returns an hp tail for a container given options
func GetLogFile(path string, options *LogOptions) (*tail.Tail, []*LogLine, error) {
	var (
		whence  int
		err     error
		logTail []*LogLine
	)
	// whence 0=origin, 2=end
	if options.Tail >= 0 {
		whence = 2
	}
	if options.Tail > 0 {
		logTail, err = getTailLog(path, int(options.Tail))
		if err != nil {
			return nil, nil, err
		}
	}
	seek := tail.SeekInfo{
		Offset: 0,
		Whence: whence,
	}

	t, err := tail.TailFile(path, tail.Config{MustExist: true, Poll: true, Follow: options.Follow, Location: &seek, Logger: tail.DiscardingLogger, ReOpen: options.Follow})
	return t, logTail, err
}

func getTailLog(path string, tail int) ([]*LogLine, error) {
	var (
		nlls       []*LogLine
		nllCounter int
		leftover   string
		partial    string
		tailLog    []*LogLine
	)
	f, err := os.Open(path)
	if err != nil {
		return nil, err
	}
	rr, err := reversereader.NewReverseReader(f)
	if err != nil {
		return nil, err
	}

	inputs := make(chan []string)
	go func() {
		for {
			s, err := rr.Read()
			if err != nil {
				if errors.Cause(err) == io.EOF {
					inputs <- []string{leftover}
				} else {
					logrus.Error(err)
				}
				close(inputs)
				if err := f.Close(); err != nil {
					logrus.Error(err)
				}
				break
			}
			line := strings.Split(s+leftover, "\n")
			if len(line) > 1 {
				inputs <- line[1:]
			}
			leftover = line[0]
		}
	}()

	for i := range inputs {
		// the incoming array is FIFO; we want FIFO so
		// reverse the slice read order
		for j := len(i) - 1; j >= 0; j-- {
			// lines that are "" are junk
			if len(i[j]) < 1 {
				continue
			}
			// read the content in reverse and add each nll until we have the same
			// number of F type messages as the desired tail
			nll, err := NewLogLine(i[j])
			if err != nil {
				return nil, err
			}
			nlls = append(nlls, nll)
			if !nll.Partial() {
				nllCounter++
			}
		}
		// if we have enough log lines, we can hangup
		if nllCounter >= tail {
			break
		}
	}

	// re-assemble the log lines and trim (if needed) to the
	// tail length
	for _, nll := range nlls {
		if nll.Partial() {
			partial += nll.Msg
		} else {
			nll.Msg += partial
			// prepend because we need to reverse the order again to FIFO
			tailLog = append([]*LogLine{nll}, tailLog...)
			partial = ""
		}
		if len(tailLog) == tail {
			break
		}
	}
	return tailLog, nil
}

// String converts a log line to a string for output given whether a detail
// bool is specified.
func (l *LogLine) String(options *LogOptions) string {
	var out string
	if options.Multi {
		if options.UseName {
			out = l.CName + " "
		} else {
			cid := l.CID
			if len(cid) > 12 {
				cid = cid[:12]
			}
			out = fmt.Sprintf("%s ", cid)
		}
	}
	if options.Timestamps {
		out += fmt.Sprintf("%s ", l.Time.Format(LogTimeFormat))
	}
	return out + l.Msg
}

// Since returns a bool as to whether a log line occurred after a given time
func (l *LogLine) Since(since time.Time) bool {
	return l.Time.After(since) || since.IsZero()
}

// Until returns a bool as to whether a log line occurred before a given time
func (l *LogLine) Until(until time.Time) bool {
	return l.Time.Before(until) || until.IsZero()
}

// NewLogLine creates a logLine struct from a container log string
func NewLogLine(line string) (*LogLine, error) {
	splitLine := strings.Split(line, " ")
	if len(splitLine) < 4 {
		return nil, errors.Errorf("'%s' is not a valid container log line", line)
	}
	logTime, err := time.Parse(LogTimeFormat, splitLine[0])
	if err != nil {
		return nil, errors.Wrapf(err, "unable to convert time %s from container log", splitLine[0])
	}
	l := LogLine{
		Time:         logTime,
		Device:       splitLine[1],
		ParseLogType: splitLine[2],
		Msg:          strings.Join(splitLine[3:], " "),
	}
	return &l, nil
}

// NewJournaldLogLine creates a LogLine from the specified line from journald.
// Note that if withID is set, the first item of the message is considerred to
// be the container ID and set as such.
func NewJournaldLogLine(line string, withID bool) (*LogLine, error) {
	splitLine := strings.Split(line, " ")
	if len(splitLine) < 4 {
		return nil, errors.Errorf("'%s' is not a valid container log line", line)
	}
	logTime, err := time.Parse(LogTimeFormat, splitLine[0])
	if err != nil {
		return nil, errors.Wrapf(err, "unable to convert time %s from container log", splitLine[0])
	}
	var msg, id string
	if withID {
		id = splitLine[3]
		msg = strings.Join(splitLine[4:], " ")
	} else {
		msg = strings.Join(splitLine[3:], " ")
		// NO ID
	}
	l := LogLine{
		Time:         logTime,
		Device:       splitLine[1],
		ParseLogType: splitLine[2],
		Msg:          msg,
		CID:          id,
	}
	return &l, nil
}

// Partial returns a bool if the log line is a partial log type
func (l *LogLine) Partial() bool {
	return l.ParseLogType == PartialLogType
}

func (l *LogLine) Write(stdout io.Writer, stderr io.Writer, logOpts *LogOptions) {
	switch l.Device {
	case "stdout":
		if stdout != nil {
			fmt.Fprintln(stdout, l.String(logOpts))
		}
	case "stderr":
		if stderr != nil {
			fmt.Fprintln(stderr, l.String(logOpts))
		}
	default:
		// Warn the user if the device type does not match. Most likely the file is corrupted.
		logrus.Warnf("unknown Device type '%s' in log file from Container %s", l.Device, l.CID)
	}
}


text:
package bio.terra.service.load;

import java.util.UUID;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class Load {
  private UUID id;
  private String loadTag;
  private boolean locked;
  private String lockingFlightId;

  public UUID getId() {
    return id;
  }

  public Load id(UUID id) {
    this.id = id;
    return this;
  }

  public String getLoadTag() {
    return loadTag;
  }

  public Load loadTag(String loadTag) {
    this.loadTag = loadTag;
    return this;
  }

  public boolean isLocked() {
    return locked;
  }

  public Load locked(boolean locked) {
    this.locked = locked;
    return this;
  }

  public String getLockingFlightId() {
    return lockingFlightId;
  }

  public Load lockingFlightId(String lockingFlightId) {
    this.lockingFlightId = lockingFlightId;
    return this;
  }

  @Override
  public String toString() {
    return new ToStringBuilder(this, ToStringStyle.JSON_STYLE)
        .append("id", id)
        .append("loadTag", loadTag)
        .append("locked", locked)
        .append("lockingFlightId", lockingFlightId)
        .toString();
  }
}


text:
/*
 *  This is the speedo control on the main window. Takes a speed and draws an arc
 *  with an angle dependant on the speed. Also displays speed in mph.
 *  Actually it's two arcs - one blue, one purple.
 */

#include "Speedo.h"
#include <cairomm/context.h>
#include <cmath>

using namespace std;

Speedo::Speedo(BaseObjectType* cobject, Glib::RefPtr<Gtk::Builder> &builder): Gtk::DrawingArea(cobject)
{
}

Speedo::~Speedo()
{
}

bool Speedo::on_draw(const Cairo::RefPtr<Cairo::Context>& cr)
{
	// GPS speed in in meters/sec so convert
	double speedMph = speed * 2.2369;

	// Angle is in radians. 0.018 is 1% of the available angle, so we have a range of 0-100mph
	double angle = (speedMph * 0.018) + 0.6;

	// Convert to int for display
	int speedInt = static_cast<int>(speedMph + 0.5);

	// Display the arcs
	cr->set_line_width(17.0);

	cr->arc(48, 48, 35, (0.6 * M_PI), angle * M_PI);
	cr->set_source_rgb(0.39, 0.6, 1);
	cr->stroke();

	cr->arc(48, 48, 35, (angle) * M_PI, (2.4 * M_PI));
	cr->set_source_rgb(0.67, 0.458, 1);
	cr->stroke();

	// Draw the speed as text
	Pango::FontDescription font;
	font.set_family("LCARS");
	font.set_absolute_size(1024 * 30);

	Glib::RefPtr<Pango::Layout> layout = create_pango_layout(to_string(speedInt));
	layout->set_font_description(font);

	int w, h;
	layout->get_pixel_size(w, h);

	cr->set_source_rgb(1, 0.6, 0);
	cr->move_to((95 - w) / 2, (95 - h) / 2);
	layout->show_in_cairo_context(cr);

	return true;
}

void Speedo::SetSpeed(double speedMps)
{
	if (std::isnan(speedMps))
	{
		return;
	}

	speed = speedMps;
	queue_draw();
}