text:
<?xml version="1.0" encoding="ISO-8859-1"?>
<geo:GeodesyML xsi:schemaLocation="urn:xml-gov-au:icsm:egeodesy:0.3" xmlns:geo="urn:xml-gov-au:icsm:egeodesy:0.3" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:ns9="http://www.w3.org/1999/xlink" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:om="http://www.opengis.net/om/2.0" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" gml:id="GeodesyMLType_360">
   <geo:siteLog gml:id="SiteLogType_360">
      <geo:formInformation>
         <geo:preparedBy>Robert Khachikyan</geo:preparedBy>
         <geo:datePrepared>2013-08-08T14:00:00Z</geo:datePrepared>
         <geo:reportType>UPDATE</geo:reportType>
      </geo:formInformation>
      <geo:siteIdentification>
         <geo:siteName>McDonald Observatory Site</geo:siteName>
         <geo:fourCharacterID>MDO1</geo:fourCharacterID>
         <geo:monumentInscription>4011-S McDonald Observatory GPS Station</geo:monumentInscription>
         <geo:iersDOMESNumber>40442M012</geo:iersDOMESNumber>
         <geo:cdpNumber>none</geo:cdpNumber>
         <geo:monumentDescription>CONCRETE PILLAR</geo:monumentDescription>
         <geo:heightOfTheMonument>0.5</geo:heightOfTheMonument>
         <geo:markerDescription>STAINLESS STEEL PLATE</geo:markerDescription>
         <geo:dateInstalled>1993-06-02T14:00:00Z</geo:dateInstalled>
         <geo:notes>(multiple lines) 0.457m diameter stainless steel plate set flush in center of a 0.762m diameter concrete monolith that projects 0.5m above ground.</geo:notes>
      </geo:siteIdentification>
      <geo:siteLocation>
         <geo:city>Fort Davis</geo:city>
         <geo:state>Texas</geo:state>
         <geo:countryCodeISO>USA</geo:countryCodeISO>
         <geo:tectonicPlate codeSpace="">North American</geo:tectonicPlate>
         <geo:approximatePositionITRF>
            <geo:xCoordinateInMeters>-1329998.797</geo:xCoordinateInMeters>
            <geo:yCoordinateInMeters>-5328393.357</geo:yCoordinateInMeters>
            <geo:zCoordinateInMeters>3236504.141</geo:zCoordinateInMeters>
            <geo:latitude-North>30.680511111111119504357702680863440036773681640625</geo:latitude-North>
            <geo:longitude-East>-104.0149933055555493410793133080005645751953125</geo:longitude-East>
            <geo:elevation-m_ellips.>2004.4761</geo:elevation-m_ellips.>
         </geo:approximatePositionITRF>
         <geo:notes>Site located at the University of Texas at Austin's McDonald Observatory near Fort Davis, Texas. Rocky Mountain Geological Province. Tertiary igneous rocks found on the surface. Due to erosion, the the soils of hills and mountains are shallow, whereas the soils of valleys and plains are deep.</geo:notes>
      </geo:siteLocation>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1683">
            <geo:manufacturerSerialNumber>T390</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>T390</geo:serialNumber>
            <geo:firmwareVersion>3.2.32.11</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>2002-08-28T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>2004-12-06T21:40:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
            <geo:notes>replace faulty receiver</geo:notes>
         </geo:gnssReceiver>
         <geo:dateInserted>2002-08-28T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1684">
            <geo:manufacturerSerialNumber>unknown</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>unknown</geo:serialNumber>
            <geo:firmwareVersion>2.6 1/8/1993</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>1993-06-03T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>1993-06-30T00:00:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
         </geo:gnssReceiver>
         <geo:dateInserted>1993-06-03T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1685">
            <geo:manufacturerSerialNumber>unknown</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>unknown</geo:serialNumber>
            <geo:firmwareVersion>2.8 6/8/1993</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>1993-06-30T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>1994-11-23T00:00:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
         </geo:gnssReceiver>
         <geo:dateInserted>1993-06-30T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1686">
            <geo:manufacturerSerialNumber>T338</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>T338</geo:serialNumber>
            <geo:firmwareVersion>3.2.32.8</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>1999-05-17T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>2002-08-21T23:30:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
            <geo:notes>firmware update</geo:notes>
         </geo:gnssReceiver>
         <geo:dateInserted>1999-05-17T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1687">
            <geo:manufacturerSerialNumber>T338</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>T338</geo:serialNumber>
            <geo:firmwareVersion>3.0 10/10/1994 17</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>1994-11-23T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>1999-05-17T00:00:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
         </geo:gnssReceiver>
         <geo:dateInserted>1994-11-23T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1688">
            <geo:manufacturerSerialNumber>T338</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>T338</geo:serialNumber>
            <geo:firmwareVersion>3.2.32.11</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>2002-08-21T23:30:00Z</geo:dateInstalled>
            <geo:dateRemoved>2002-08-28T00:00:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
            <geo:notes>firmware update</geo:notes>
         </geo:gnssReceiver>
         <geo:dateInserted>2002-08-21T23:30:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1689">
            <geo:manufacturerSerialNumber>T331</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ROGUE SNR-8000</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>T331</geo:serialNumber>
            <geo:firmwareVersion>3.2.32.11</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>2004-12-07T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>2007-02-07T21:00:00Z</geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
            <geo:notes>replace faulty receiver</geo:notes>
         </geo:gnssReceiver>
         <geo:dateInserted>2004-12-07T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssReceivers>
         <geo:gnssReceiver gml:id="GnssReceiverType_1690">
            <geo:manufacturerSerialNumber>UC1200340013</geo:manufacturerSerialNumber>
            <geo:receiverType codeList="codelist" codeListValue="codeListValue" codeSpace="DummyCodeSpace">ASHTECH UZ-12</geo:receiverType>
            <geo:satelliteSystem>GPS</geo:satelliteSystem>
            <geo:serialNumber>UC1200340013</geo:serialNumber>
            <geo:firmwareVersion>CQ00</geo:firmwareVersion>
            <geo:elevationCutoffSetting>4.0</geo:elevationCutoffSetting>
            <geo:dateInstalled>2007-02-09T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved></geo:dateRemoved>
            <geo:temperatureStabilization>0.0</geo:temperatureStabilization>
            <geo:notes>AOAD/M_T antenna powered through GPS signal splitter.</geo:notes>
         </geo:gnssReceiver>
         <geo:dateInserted>2007-02-09T00:00:00Z</geo:dateInserted>
      </geo:gnssReceivers>
      <geo:gnssAntennas>
         <geo:gnssAntenna gml:id="GnssAntennaType_732">
            <geo:manufacturerSerialNumber>130</geo:manufacturerSerialNumber>
            <geo:antennaType codeList="codelist" codeListValue="codeListValue" codeSpace="codespace">AOAD/M_T        JPLA</geo:antennaType>
            <geo:serialNumber>130</geo:serialNumber>
            <geo:antennaReferencePoint codeSpace="">BPA</geo:antennaReferencePoint>
            <geo:marker-arpUpEcc.>0.061</geo:marker-arpUpEcc.>
            <geo:marker-arpNorthEcc.>0.0</geo:marker-arpNorthEcc.>
            <geo:marker-arpEastEcc.>0.0</geo:marker-arpEastEcc.>
            <geo:alignmentFromTrueNorth>0.0</geo:alignmentFromTrueNorth>
            <geo:antennaRadomeType codeSpace="CodeSpaceAttr">JPLA</geo:antennaRadomeType>
            <geo:radomeSerialNumber></geo:radomeSerialNumber>
            <geo:antennaCableType></geo:antennaCableType>
            <geo:antennaCableLength>0.0</geo:antennaCableLength>
            <geo:dateInstalled>1993-03-05T00:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>2013-02-22T22:00:00Z</geo:dateRemoved>
            <geo:notes>clear acrylic "JPLA" dome info added 2002-08-22 note that this is a correction, not a new radome installation</geo:notes>
         </geo:gnssAntenna>
         <geo:dateInserted>1993-03-05T00:00:00Z</geo:dateInserted>
      </geo:gnssAntennas>
      <geo:gnssAntennas>
         <geo:gnssAntenna gml:id="GnssAntennaType_733">
            <geo:manufacturerSerialNumber>130</geo:manufacturerSerialNumber>
            <geo:antennaType codeList="codelist" codeListValue="codeListValue" codeSpace="codespace">AOAD/M_T        JPLA</geo:antennaType>
            <geo:serialNumber>130</geo:serialNumber>
            <geo:antennaReferencePoint codeSpace="">BPA</geo:antennaReferencePoint>
            <geo:marker-arpUpEcc.>0.061</geo:marker-arpUpEcc.>
            <geo:marker-arpNorthEcc.>0.0</geo:marker-arpNorthEcc.>
            <geo:marker-arpEastEcc.>0.0</geo:marker-arpEastEcc.>
            <geo:alignmentFromTrueNorth>0.0</geo:alignmentFromTrueNorth>
            <geo:antennaRadomeType codeSpace="CodeSpaceAttr">JPLA</geo:antennaRadomeType>
            <geo:radomeSerialNumber></geo:radomeSerialNumber>
            <geo:antennaCableType></geo:antennaCableType>
            <geo:antennaCableLength>0.0</geo:antennaCableLength>
            <geo:dateInstalled>2013-08-09T00:41:00Z</geo:dateInstalled>
            <geo:dateRemoved></geo:dateRemoved>
         </geo:gnssAntenna>
         <geo:dateInserted>2013-08-09T00:41:00Z</geo:dateInserted>
      </geo:gnssAntennas>
      <geo:gnssAntennas>
         <geo:gnssAntenna gml:id="GnssAntennaType_734">
            <geo:manufacturerSerialNumber>130</geo:manufacturerSerialNumber>
            <geo:antennaType codeList="codelist" codeListValue="codeListValue" codeSpace="codespace">AOAD/M_T        NONE</geo:antennaType>
            <geo:serialNumber>130</geo:serialNumber>
            <geo:antennaReferencePoint codeSpace="">BPA</geo:antennaReferencePoint>
            <geo:marker-arpUpEcc.>0.061</geo:marker-arpUpEcc.>
            <geo:marker-arpNorthEcc.>0.0</geo:marker-arpNorthEcc.>
            <geo:marker-arpEastEcc.>0.0</geo:marker-arpEastEcc.>
            <geo:alignmentFromTrueNorth>0.0</geo:alignmentFromTrueNorth>
            <geo:antennaRadomeType codeSpace="CodeSpaceAttr">NONE</geo:antennaRadomeType>
            <geo:radomeSerialNumber></geo:radomeSerialNumber>
            <geo:antennaCableType></geo:antennaCableType>
            <geo:antennaCableLength>0.0</geo:antennaCableLength>
            <geo:dateInstalled>2013-02-22T22:00:00Z</geo:dateInstalled>
            <geo:dateRemoved>2013-08-09T00:41:00Z</geo:dateRemoved>
         </geo:gnssAntenna>
         <geo:dateInserted>2013-02-22T22:00:00Z</geo:dateInserted>
      </geo:gnssAntennas>
      <geo:surveyedLocalTies>
         <geo:surveyedLocalTies gml:id="SurveyedLocalTiesType_187">
            <geo:tiedMarkerName>7851-1988</geo:tiedMarkerName>
            <geo:tiedMarkerUsage>SLR</geo:tiedMarkerUsage>
            <geo:tiedMarkerCDPNumber>7851</geo:tiedMarkerCDPNumber>
            <geo:tiedMarkerDOMESNumber>40442M011</geo:tiedMarkerDOMESNumber>
            <geo:differentialComponentsGNSSMarkerToTiedMonumentITRS>
               <geo:dx>-10.7976</geo:dx>
               <geo:dy>2.4155</geo:dy>
               <geo:dz>-0.973</geo:dz>
            </geo:differentialComponentsGNSSMarkerToTiedMonumentITRS>
            <geo:localSiteTiesAccuracy>0.0</geo:localSiteTiesAccuracy>
            <geo:surveyMethod></geo:surveyMethod>
            <geo:dateMeasured>1993-03-16T14:00:00Z</geo:dateMeasured>
         </geo:surveyedLocalTies>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:surveyedLocalTies>
      <geo:surveyedLocalTies>
         <geo:surveyedLocalTies gml:id="SurveyedLocalTiesType_188">
            <geo:tiedMarkerName>7850-1988</geo:tiedMarkerName>
            <geo:tiedMarkerUsage>SLR and Mobile VLBI</geo:tiedMarkerUsage>
            <geo:tiedMarkerCDPNumber>7850</geo:tiedMarkerCDPNumber>
            <geo:tiedMarkerDOMESNumber>40442M008</geo:tiedMarkerDOMESNumber>
            <geo:differentialComponentsGNSSMarkerToTiedMonumentITRS>
               <geo:dx>-9.5212</geo:dx>
               <geo:dy>1.7953</geo:dy>
               <geo:dz>-1.4841</geo:dz>
            </geo:differentialComponentsGNSSMarkerToTiedMonumentITRS>
            <geo:localSiteTiesAccuracy>0.0</geo:localSiteTiesAccuracy>
            <geo:surveyMethod></geo:surveyMethod>
            <geo:dateMeasured>1993-03-16T14:00:00Z</geo:dateMeasured>
         </geo:surveyedLocalTies>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:surveyedLocalTies>
      <geo:surveyedLocalTies>
         <geo:surveyedLocalTies gml:id="SurveyedLocalTiesType_189">
            <geo:tiedMarkerName>7080-1988</geo:tiedMarkerName>
            <geo:tiedMarkerUsage>MLRS (McDonald Laser Ranging Station)</geo:tiedMarkerUsage>
            <geo:tiedMarkerCDPNumber>7080</geo:tiedMarkerCDPNumber>
            <geo:tiedMarkerDOMESNumber>40442M006</geo:tiedMarkerDOMESNumber>
            <geo:differentialComponentsGNSSMarkerToTiedMonumentITRS>
               <geo:dx>-22.3939</geo:dx>
               <geo:dy>-8.4807</geo:dy>
               <geo:dz>-23.4064</geo:dz>
            </geo:differentialComponentsGNSSMarkerToTiedMonumentITRS>
            <geo:localSiteTiesAccuracy>0.0</geo:localSiteTiesAccuracy>
            <geo:surveyMethod></geo:surveyMethod>
            <geo:dateMeasured>1993-03-16T14:00:00Z</geo:dateMeasured>
         </geo:surveyedLocalTies>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:surveyedLocalTies>
      <geo:frequencyStandards>
         <geo:frequencyStandard gml:id="FrequencyStandardType_567">
            <geo:standardType codeSpace="">EXTERNAL XTAL VCO</geo:standardType>
            <geo:inputFrequency>5.0</geo:inputFrequency>
            <gml:validTime nilReason="">
               <gml:TimePeriod gml:id="TimePeriodType_906">
                  <gml:beginPosition>1997-08-26T00:00:00Z</gml:beginPosition>
                  <gml:endPosition>2002-08-21T00:00:00Z</gml:endPosition>
               </gml:TimePeriod>
            </gml:validTime>
            <geo:notes>Austron, <1us/day typ.</geo:notes>
         </geo:frequencyStandard>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:frequencyStandards>
      <geo:frequencyStandards>
         <geo:frequencyStandard gml:id="FrequencyStandardType_568">
            <geo:standardType codeSpace="">INTERNAL</geo:standardType>
            <geo:inputFrequency>5.0</geo:inputFrequency>
            <gml:validTime nilReason="">
               <gml:TimePeriod gml:id="TimePeriodType_907">
                  <gml:beginPosition>2002-08-21T00:00:00Z</gml:beginPosition>
                  <gml:endPosition>2002-08-28T00:00:00Z</gml:endPosition>
               </gml:TimePeriod>
            </gml:validTime>
            <geo:notes>steering off, exceeded VCO pulling range, receiver needs repair/replacement</geo:notes>
         </geo:frequencyStandard>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:frequencyStandards>
      <geo:frequencyStandards>
         <geo:frequencyStandard gml:id="FrequencyStandardType_569">
            <geo:standardType codeSpace="">EXTERNAL CESIUM</geo:standardType>
            <geo:inputFrequency>5.0</geo:inputFrequency>
            <gml:validTime nilReason="">
               <gml:TimePeriod gml:id="TimePeriodType_908">
                  <gml:beginPosition>1993-06-03T00:00:00Z</gml:beginPosition>
                  <gml:endPosition>1997-08-26T00:00:00Z</gml:endPosition>
               </gml:TimePeriod>
            </gml:validTime>
         </geo:frequencyStandard>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:frequencyStandards>
      <geo:frequencyStandards>
         <geo:frequencyStandard gml:id="FrequencyStandardType_570">
            <geo:standardType codeSpace="">EXTERNAL XTAL VCO</geo:standardType>
            <geo:inputFrequency>5.0</geo:inputFrequency>
            <gml:validTime nilReason="">
               <gml:TimePeriod gml:id="TimePeriodType_909">
                  <gml:beginPosition>2002-08-28T00:00:00Z</gml:beginPosition>
                  <gml:endPosition></gml:endPosition>
               </gml:TimePeriod>
            </gml:validTime>
            <geo:notes>Austron, <1us/day typ.</geo:notes>
         </geo:frequencyStandard>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:frequencyStandards>
      <geo:collocationInformations>
         <geo:collocationInformation gml:id="CollocationInformationType_105">
            <geo:instrumentationType codeSpace=""></geo:instrumentationType>
            <geo:status codeSpace="">PERMANENT</geo:status>
            <gml:validTime>
               <gml:TimeInstant gml:id="TimeInstantType_483">
                  <gml:timePosition>1970-01-22T13:00:00Z</gml:timePosition>
               </gml:TimeInstant>
            </gml:validTime>
         </geo:collocationInformation>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:collocationInformations>
      <geo:otherInstrumentations>
         <geo:otherInstrumentation gml:id="OtherInstrumentationType_105">
            <geo:instrumentation></geo:instrumentation>
            <gml:validTime>
               <gml:TimeInstant gml:id="TimeInstantType_484">
                  <gml:timePosition>1970-01-22T13:00:00Z</gml:timePosition>
               </gml:TimeInstant>
            </gml:validTime>
         </geo:otherInstrumentation>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:otherInstrumentations>
      <geo:localEpisodicEventsSet>
         <geo:localEpisodicEvents gml:id="LocalEpisodicEventsType_145">
            <gml:validTime nilReason="">
               <gml:TimeInstant gml:id="TimeInstantType_485">
                  <gml:timePosition>09 Feb 2012</gml:timePosition>
               </gml:TimeInstant>
            </gml:validTime>
            <geo:event>Transitioned from .soc to .ash data types.  For</geo:event>
         </geo:localEpisodicEvents>
         <geo:dateInserted>2016-04-14T00:03:10Z</geo:dateInserted>
      </geo:localEpisodicEventsSet>
      <geo:siteContact gml:id="AgencyPropertyType_720">
         <gmd:MD_SecurityConstraints id="MDSecurityConstraintsType_720">
            <gmd:classification>
               <gmd:MD_ClassificationCode codeList="codelist" codeListValue="codeListValue"/>
            </gmd:classification>
         </gmd:MD_SecurityConstraints>
         <gmd:CI_ResponsibleParty id="CIResponsiblePartyType_720">
            <gmd:individualName>
               <gco:CharacterString>Jerry Wiant</gco:CharacterString>
            </gmd:individualName>
            <gmd:organisationName>
               <gco:CharacterString>McDonald Observatory</gco:CharacterString>
            </gmd:organisationName>
            <gmd:contactInfo>
               <gmd:CI_Contact id="CIContactType_720">
                  <gmd:phone>
                     <gmd:CI_Telephone id="CITelephoneType_278">
                        <gmd:voice>
                           <gco:CharacterString>432-426-3668</gco:CharacterString>
                        </gmd:voice>
                        <gmd:facsimile>
                           <gco:CharacterString>432-426-3803</gco:CharacterString>
                        </gmd:facsimile>
                     </gmd:CI_Telephone>
                  </gmd:phone>
                  <gmd:address>
                     <gmd:CI_Address id="CIAddressType_720">
                        <gmd:deliveryPoint>
                           <gco:CharacterString>House 9</gco:CharacterString>
                        </gmd:deliveryPoint>
                        <gmd:electronicMailAddress>
                           <gco:CharacterString>jrw@astro.as.utexas.edu</gco:CharacterString>
                        </gmd:electronicMailAddress>
                     </gmd:CI_Address>
                  </gmd:address>
               </gmd:CI_Contact>
            </gmd:contactInfo>
            <gmd:role>
               <gmd:CI_RoleCode codeList="codelist" codeListValue="codeListValue"/>
            </gmd:role>
         </gmd:CI_ResponsibleParty>
      </geo:siteContact>
      <geo:siteMetadataCustodian gml:id="AgencyPropertyType_721">
         <gmd:MD_SecurityConstraints id="MDSecurityConstraintsType_721">
            <gmd:classification>
               <gmd:MD_ClassificationCode codeList="codelist" codeListValue="codeListValue"/>
            </gmd:classification>
         </gmd:MD_SecurityConstraints>
         <gmd:CI_ResponsibleParty id="CIResponsiblePartyType_721">
            <gmd:organisationName>
               <gco:CharacterString>Jet Propulsion Laboratory</gco:CharacterString>
            </gmd:organisationName>
            <gmd:contactInfo>
               <gmd:CI_Contact id="CIContactType_721">
                  <gmd:address>
                     <gmd:CI_Address id="CIAddressType_721">
                        <gmd:deliveryPoint>
                           <gco:CharacterString>4800 Oak Grove Drive</gco:CharacterString>
                        </gmd:deliveryPoint>
                     </gmd:CI_Address>
                  </gmd:address>
               </gmd:CI_Contact>
            </gmd:contactInfo>
            <gmd:role>
               <gmd:CI_RoleCode codeList="codelist" codeListValue="codeListValue"/>
            </gmd:role>
         </gmd:CI_ResponsibleParty>
      </geo:siteMetadataCustodian>
      <geo:moreInformation>
         <geo:dataCenter></geo:dataCenter>
         <geo:urlForMoreInformation></geo:urlForMoreInformation>
         <geo:siteMap></geo:siteMap>
         <geo:siteDiagram></geo:siteDiagram>
         <geo:horizonMask></geo:horizonMask>
         <geo:monumentDescription></geo:monumentDescription>
         <geo:sitePictures></geo:sitePictures>
         <geo:antennaGraphicsWithDimensions></geo:antennaGraphicsWithDimensions>
         <geo:insertTextGraphicFromAntenna></geo:insertTextGraphicFromAntenna>
         <geo:DOI codeSpace="CodeSpaceTODO">CodeTypeTODO</geo:DOI>
      </geo:moreInformation>
   </geo:siteLog>
</geo:GeodesyML>


text:
Mobile App

Download mobile app here...

redpajama_set_name: RedPajamaGithub


text:
Admob Native Extension for Adobe Air
=========

This  AdMob will add the support to use AdMob Mobile monetization platform with Adobe Air.
The Extension support Android Platform and iOS Platform.
Different Packages are available according to the needs'
- Android Only
- iOS Oly
- Both Platforms

This is the Only Native extension available for Adobe Air, which offer a complete coverage of every function and possibility offer by AdMob.
Moreover the Extension has been compiled and maintained with the very latest AdMob SDK for either Android and iOS!

VERY IMPORTANT:
- Every Native Extension out there are make from old SDK, which, in the case of android, will not be accepted anymore in Google play from 1 Aug. 2014. While in iOS the old SDK will not pass the Application approval from Apple.

##What is AdMob?

AdMob is the world's largest mobile advertising platforms which serve more than 40 billion mobile banner and text ads per month across mobile Web sites and handset applications

http://www.google.com/ads/admob/

##Features:
- Allow Multiple Banners for Application
This permit two have, one, two or more banner visible and manageable in the same application view.
Or to have several banner pre-cached and show/hide on demand.

- Full Interstitial Ads Management and Pre-caching

- Full Request Customization
- Support Any adMob Size:
```javascript
BANNER
MEDIUM_RECTANGLE
FULL_BANNER
LEADERBOARD
WIDE_SKYSCRAPER
SMART_BANNER
SMART_BANNER_PORT
SMART_BANNER_LAND
```

- Auto relative Docking for:
```javascript
TOP_LEFT
TOP_CENTER
TOP_RIGHT
MIDDLE_LEFT
MIDDLE_CENTER
MIDDLE_RIGHT
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
```

- Custom Absolute Position (off screen included)

- Extensive in line AsDoc Documentation

- Full Extension Documentation in /Documentation

##Admob SDK Details
Android: Latest 4.3 Google Play services Library
iOS: AdMob SDK 6.8

##Further Info:
Android:
The Extension is build using the latest Google Play service library which will guaranty the application approval also after 01 Aug. 2014

iOS:
The Extension is build using the latest 6.8 AdMob SDK, in xCode 5.1.1 using iOS SDK 7.1.which will guaranty the apple store approval for the application by Apple.

##Device Compatibility:
Android: From version 2.2
iOS: From version 4.3

##Install the library

Add the AdMob ANE library to your project.

In Flash Builder 4.7:

  1. Go to Project Properties
  2. Select Native Extensions under Actionscript Build Path
  3. Choose Add ANE... and navigate to the AdMob.ane file
  4. Select Actionscript Build Packaging > Google Android, Apple IOS or Both
  5. Select the Native Extensions tab, and click the 'Package' check box next to the extension

Please note:
When adding the ANE be sure to have the checkbox "Update Air Application Descriptor" selected.
If it is not selected make certain that the application Id is available in the Air Application Descriptor as follow:
```xml
<extensions>
	<extensionID>com.codealchemy.ane.admobane</extensionID>
</extensions>
```

##Usage
Import the library
```javascript
import com.codealchemy.ane.admobane.AdMobManager;
```

Get The Manager Instance
```javascript
var adMobManager:AdMobManager = AdMobManager.manager;
```

Check Extension Support
```javascript
if(adMobManager.isSupported){
    ...
}
```

Set Manager Verbose Mode [Optional]
The Verbose mode will allow to have debug output from all places, AS, Java and iOS console
```javascript
adMobManager.verbose = true;
```

Set Manager Operation Mode [Optional... Until Operation]
This setting will allow to set the extension in either test mode or operation mode.
By default the extension will work in Test Mode, when the application needs to be release it will be needed to switch the operation into Production mode
```javascript
adMobManager.operationMode = AdMobManager.TEST_MODE;

```

Set Common AdMob Unit Id for Banners [Recommended]
Setting a common Admob Id will allow to avoid to specify an Id during banner creation
If the manager has an adMob unit id set all the banner will be created using that id, unless a new id s specified during banner creation.
In that case the banner will use the id included on its parameters.
```javascript
adMobManager.bannersAdMobId = "ADMOB_BANNER_ID";
```

Set Common AdMob Unit Id for interstitial [Recommended]
Same as for the banner the common AdMob Id for interstitial will be use for any interstitial created unless a new id is given during interstitial creation.
In that case the interstitial will use the id included on its parameters.
```javascript
adMobManager.interstitialAdMobId = "ADMOB_INTERSTITIAL_ID";
```

Set Gender Request Targeting [Optional]
This setting allow to create the ad request specifically for a gender.
Please note that all banner created after will included the given gender.
Request targeting option can be update before the creation of new banner for offer different target banner.
```javascript
adMobManager.gender = AdMobManager.GENDER_MALE;
```

Set Birthday Request Targeting [Optional]
This setting allow to have specific banner for a given age
If wish to set the age range then the year will be mandatory, while month and day can be optional.
If month and day are not specified the default value of 1 will be used.
Request targeting option can be update before the creation of new banner for offer different target banner.
```javascript
adMobManager.birthYear = 1996;
adMobManager.birthMonth = 1;
adMobManager.birthDay = 24;
```

Set the Tag for child directed treatment [Optional]
This setting allow to have specific banner for a children in accordance to Children's Online Privacy Protection Act (COPPA).
Request targeting option can be update before the creation of new banner for offer different target banner.
```javascript
adMobManager.isCDT = true;
```

This getter will allow to get the current quantity of banner created and available in the Manager
```javascript
var num:int = adMobManager.bannersQuantity;
```

This getter will allow to get all the banners id of banner created and available in the Manager
```javascript
var bannerIds:Array = adMobManager.bannersNames;
```

This getter will allow to get the information of which device is currently in use (Android or iOS)
```javascript
var device:String = adMobManager.device;
```

Create an AdMob Banner in an relative Position
The parameter ae as follow:

Banner Size [Mandatory]
- Banner specific size

Banner Position [Mandatory]
- Banner specific Position

Banner Id [Optional]
- Useful when you wish to create more than one banner.
If an id is not specified a random id will be generated

AdMobId [Optional]
- Banner specific AdMobId, Useful if you are tracking the banner result assigning individual id.
If an id is not specified the common id will be used.

AutoShow Option [Optional]
- This option allow to automatically show the banner one it is loaded.
The default value is set to false, so you can load the banner in cache and show it only on specific application phases
```javascript
adMobManager.createBannerAbsolute(AdMobSize.BANNER,AdMobPosition.BOTTOM_CENTER,"BottomBanner1", null, true);
```

Create an AdMob Banner in an absolute Position
The parameter ae as follow:

Banner Size [Mandatory]
- Banner specific size

Banner X Position [Mandatory]
- Banner specific X Position

Banner Y Position [Mandatory]
- Banner specific Y Position

Banner Id [Optional]
- Useful when you wish to create more than one banner.
If an id is not specified a random id will be generated

AdMobId [Optional]
- Banner specific AdMobId, Useful if you are tracking the banner result assigning individual id.
If an id is not specified the common id will be used.

AutoShow Option [Optional]
- This option allow to automatically show the banner one it is loaded.
The default value is set to false, so you can load the banner in cache and show it only on specific application phases
```javascript
adMobManager.createBannerAbsolute(AdMobSize.BANNER,100, 200, "BottomBanner1", null, true);
```

Show a specific Banner
The function will allow to show a specific banner, recognized by its Id.
This is specifically useful when your app wish to manage several ads.
The parameter are as follow:
Banner Id [Mandatory]
- Specific banner Id for the banner to be show
```javascript
adMobManager.showBanner("BottomBanner1");
```

Hide a specific Banner
The function will allow to hide a specific banner, recognized by its Id.
This is specifically useful when your app wish to manage several ads.
The parameter are as follow:
Banner Id [Mandatory]
- Specific banner Id for the banner to be hide
```javascript
adMobManager.hideBanner("BottomBanner1");
```

Remove a specific Banner
The function will allow to remove a specific banner, recognized by its Id.
This is specifically useful when your app wish to manage several ads.
The parameter are as follow:
Banner Id [Mandatory]
- Specific banner Id for the banner to be removed
```javascript
adMobManager.removeBanner("BottomBanner1");
```

Show all existing hidden banners
The function will show all available banners
```javascript
adMobManager.showAllBanner();
```

Hide all existing hidden banners
The function will hide all available banners
```javascript
adMobManager.hideAllBanner();
```

Remove all existing hidden banners
The function will remove all available banners
```javascript
adMobManager.removeAllBanner();
```

Create the AdMob Interstitial
The parameter are as follow:

AdMobId [Optional]
- Interstitial specific AdMobId.
If an id is not specified the common id will be used.

AutoShow Option [Optional]
- This option allow to automatically show the banner one it is loaded.
The default value is set to false, so you can load the banner in cache and show it only on specific application phases
* Please note, in iOS the Interstitial will ALWAYS be automatically show regardless of the setting.
```javascript
adMobManager.createInterstitial(null,true);
```

Cache the AdMob Interstitial
* Android Only
The parameter ae as follow:

AdMobId [Optional]
- Banner speciic AdMobId, Useful if you are tracking the banner result assigning individual id.
If an id is not specified the common id will be used.

AutoShow Option [Optional]
- This option allow to automatically show the banner one it is loaded.
The default value is set to false, so you can load the banner in cache and show it only on specific application phases
* Please note, in iOS the Interstitial will ALWAYS be automatically show regardless of the setting.
```javascript
adMobManager.cacheInterstitial(null,true);
```

Cache the AdMob Interstitial
The function will show the cached AdMob Interstitial
* Android Only
```javascript
adMobManager.showInterstitial();
```

Check the Interstitial load state
```javascript
var state:Boolean = adMobManager.isInterstitialLoaded();
```

##Listen to Events
In order to listen to event you need to attache the event listener to the extension dispatcher.
The easiest way is to create an internal dispatcher instance:
```javascript
/**
 * Extension event dispatcher instance
 **/
private function get dispatcher():EventDispatcher
{
    // Return the extension dispatcher
    return adMobManager.dispatcher;
}
```

Then you can add all the listener for the event you need:
```javascript
// onBannerLoaded Event Listener
if (!dispatcher.hasEventListener(AdMobEvent.BANNER_LOADED))
    dispatcher.addEventListener(AdMobEvent.BANNER_LOADED, onBannerLoaded);

/**
 * onBannerLoaded Event listener
 *
 * @param e AdMobEvent Object
 **/
static private function onBannerLoaded(e:AdMobEvent):void
{
    // Do Something like show the banner...
    adMobManager.showAllBanner();
}
```

The event will also pass the banner id for the banner who did dispatch the event.
The example above will show all the banner, if you wish to, for example, show only
the specific banner who did dispatch the event you can do as follow:

```javascript
/**
 * onBannerLoaded Event listener
 *
 * @param e AdMobEvent Object
 **/
static private function onBannerLoaded(e:AdMobEvent):void
{
    // Show the specific banner who did dispatch the event
    // e.data:String = Banner unique ID
    adMobManager.showBanner(e.data);
}
```

One of the most important characteristic of Admob ANE Extension is that
it was develop aimed to allow multiple banner instance to be used and managed while
available in cache. For this reason all the event will always pass the Banner id s parameter.
This include also the error Event.
If you need to check the error events details simply set the verbose mode to "true" then all the
details will be available in the console logs.

The Extension available Event are as follow:
```javascript
BANNER_LOADED // The banner has been received and it is ready to be show
BANNER_FAILED_TO_LOAD // There was an error with the banner request. most of the time, it is a wrong adMobId or missing connection
BANNER_AD_OPENED // The banner has been clicked by the user
BANNER_AD_CLOSED // The User left the banner destination (webpage/store) and is returning to the application
BANNER_LEFT_APPLICATION // The banner has been remove from the application
INTERSTITIAL_LOADED // The Interstitial has been received and it is ready to be show (iOS will be show directly)
INTERSTITIAL_FAILED_TO_LOAD // There was an error with the Interstitial request. most of the time, it is a wrong adMobId or missing connection
INTERSTITIAL_AD_OPENED // The Interstitial has been clicked by the user
INTERSTITIAL_AD_CLOSED // The User left the Interstitial destination (webpage/store) and is returning to the application
INTERSTITIAL_LEFT_APPLICATION // The Interstitial has been remove from the application (especially useful for listen when the user close the Interstitial)
```

##Setup for Android

Update Your Application Descriptor

You'll need to be using the AIR 3.1 SDK or higher, include the extension in your Application Descriptor XML, and update the Android Manifest Additions with some settings.

Add the following settings in <manifest> tag.
```xml
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
```

Add the following settings in <application> tag.
```xml
<meta-data android:name="com.google.android.gms.version" android:value="4323000"/>
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" />
```


text:
<?xml version="1.0" encoding="UTF-8"?>

<ui-command xmlns="http://www.efaps.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.efaps.org/xsd http://www.efaps.org/xsd/eFaps_1.0.xsd">
    <uuid>2f690e48-4cc3-45e1-bd12-e0e91df34316</uuid>
    <file-application>eFapsApp-Sales</file-application>
    <file-revision>$Rev$</file-revision>
    <definition>
        <version-expression>(version==latest)</version-expression>
        <name>Sales_InvoiceMyDesk</name>
        <access>
            <role>Sales_Teller</role>
            <role>Sales_Admin</role>
        </access>
        <target>
            <menu>Sales_InvoiceMyDesk_Menu</menu>

Sales_InvoiceTable

            <evaluate program="org.efaps.esjp.common.uitable.MultiPrint">
                <property name="Type">Sales_Invoice</property>
            </evaluate>
        </target>
        <property name="Target">content</property>
        <property name="TargetShowCheckBoxes">true</property>
        <property name="TargetMode">view</property>
    </definition>
</ui-command>


text:
<?xml version="1.0" encoding="UTF-8"?>
<!--

 Copyright 2003 - 2020 The eFaps Team

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

-->

<ui-command xmlns="http://www.efaps.org/xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.efaps.org/xsd http://www.efaps.org/xsd/eFaps_1.0.xsd">
    <uuid>83109223-f4ea-4650-b74c-d6c72be78aee</uuid>
    <file-application>eFaps-Kernel</file-application>
    <definition>
        <version-expression>(version==latest)</version-expression>
        <name>Admin_Common_ReloadCache</name>
        <icon>Admin_Common_ReloadCache</icon>
        <access>
            <role>Administration</role>
        </access>
        <target>
            <execute
                program="org.efaps.esjp.admin.common.ReloadCache" />
        </target>
        <property name="Target">hidden</property>
        <property name="NoUpdateAfterCOMMAND">true</property>
    </definition>
</ui-command>


text:
<?php

/**
 * Helper for working with strings.
 */
class Stringy {

	private function __construct() {
	}

	/**
	 * If there is a better way to do this for multibyte strings,
	 * please let me know!
	 */
	public static function str_split($str, $encoding = 'UTF-8') {
		$len = mb_strlen($str);
		$chars = array();
		for ($i = 0; $i < $len; $i++) {
			$chars[] = mb_substr($str, $i, 1, $encoding);
		}
		return $chars;
	}

}

class StringyException extends LogicException {
}


text:
/*  Title:      Pure/General/value.scala
    Author:     Makarius

Plain values, represented as string.
*/

package isabelle

object Value
{
  object Boolean
  {
    def apply(x: scala.Boolean): java.lang.String = x.toString
    def unapply(s: java.lang.String): Option[scala.Boolean] =
      s match {
        case "true" => Some(true)
        case "false" => Some(false)
        case _ => None
      }
    def parse(s: java.lang.String): scala.Boolean =
      unapply(s) getOrElse error("Bad boolean: " + quote(s))
  }

  object Int
  {
    def apply(x: scala.Int): java.lang.String = Library.signed_string_of_int(x)
    def unapply(s: java.lang.String): Option[scala.Int] =
      try { Some(Integer.parseInt(s)) }
      catch { case _: NumberFormatException => None }
    def parse(s: java.lang.String): scala.Int =
      unapply(s) getOrElse error("Bad integer: " + quote(s))
  }

  object Long
  {
    def apply(x: scala.Long): java.lang.String = Library.signed_string_of_long(x)
    def unapply(s: java.lang.String): Option[scala.Long] =
      try { Some(java.lang.Long.parseLong(s)) }
      catch { case _: NumberFormatException => None }
    def parse(s: java.lang.String): scala.Long =
      unapply(s) getOrElse error("Bad integer: " + quote(s))
  }

  object Double
  {
    def apply(x: scala.Double): java.lang.String = x.toString
    def unapply(s: java.lang.String): Option[scala.Double] =
      try { Some(java.lang.Double.parseDouble(s)) }
      catch { case _: NumberFormatException => None }
    def parse(s: java.lang.String): scala.Double =
      unapply(s) getOrElse error("Bad real: " + quote(s))
  }
}


text:
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Diagnostics.Contracts;
using System;

// Disable the "this variable is not used" warning as every field would imply it.
#pragma warning disable 0414
// Disable the "this variable is never assigned to".
#pragma warning disable 0067
// Disable the "this event is never assigned to".
#pragma warning disable 0649
// Disable the "this variable is never used".
#pragma warning disable 0169
// Disable the "new keyword not required" warning.
#pragma warning disable 0109
// Disable the "extern without DllImport" warning.
#pragma warning disable 0626
// Disable the "could hide other member" warning, can happen on certain properties.
#pragma warning disable 0108

namespace System.Web.Configuration
{
  sealed public partial class PartialTrustVisibleAssemblyCollection : System.Configuration.ConfigurationElementCollection
  {
    #region Methods and constructors
    public void Add(PartialTrustVisibleAssembly partialTrustVisibleAssembly)
    {
    }

    public void Clear()
    {
    }

    protected override System.Configuration.ConfigurationElement CreateNewElement()
    {
      return default(System.Configuration.ConfigurationElement);
    }

    protected override Object GetElementKey(System.Configuration.ConfigurationElement element)
    {
      return default(Object);
    }

    public PartialTrustVisibleAssemblyCollection()
    {
    }

    public void Remove(string key)
    {
    }

    public void RemoveAt(int index)
    {
    }
    #endregion

    #region Properties and indexers
    public PartialTrustVisibleAssembly this [int index]
    {
      get
      {
        return default(PartialTrustVisibleAssembly);
      }
      set
      {
      }
    }

    protected override System.Configuration.ConfigurationPropertyCollection Properties
    {
      get
      {
        return default(System.Configuration.ConfigurationPropertyCollection);
      }
    }
    #endregion
  }
}


text:
'use strict';

module.exports = {
    friendlyName: 'Install OS',
    injectableName: 'Task.Base.Os.Install',
    runJob: 'Job.Os.Install',
    properties: {
        os: {
            type: 'install'
        }
    },
    requiredProperties: {}
};


text:
namespace Snippets3.EndpointName
{
    using NServiceBus;

    // startcode EndpointNameByAttribute
    [EndpointName("MyEndpointName")]
    public class EndpointConfigWithAttribute : IConfigureThisEndpoint, AsA_Server
    {
        // ... your custom config
        // endcode
    }
}


text:
<?php

namespace Omnipay\Worldpaysecurenet;

use Guzzle\Http\Client;
use Omnipay\Common\AbstractGateway;

/**
 * Worldpaysecurenet Gateway
 *
 * ### Dashboard
 *
 * For test payments you should be given a Login URL which will be
 * https://gwapi.demo.securenet.com/api/Payments/(Charge/Refund/Authorize/Capture)
 *
 * ... and some website credentials.  These will be:
 *
 * * SKEY
 * * SNID
 * * DEVELOPER_ID
 * * VERSION
 *
 * Secure Key - You can obtain the Secure Key by signing into the Virtual Terminal with the login credentials that you were emailed to you during the sign-up process. You will then need to navigate to Settings and click on the Key Management link.
 *
 * Public Key - This is only used if you are going to make tokenization calls. It too can be obtained in your Virtual Terminal. Note that although they sound similar, the Public Key and Secure Key are two separate pieces of data used for different purposes.
 *
 * @link http://www.worldpay.com/us/developers/apidocs/getstarted.html
 */
class Gateway extends AbstractGateway
{
    /**
     * Name of the gateway
     *
     * @return string
     */
    public function getName()
    {
        return 'Worldpaysecurenet';
    }

    /**
     * Setup the default parameters
     *
     * @return string[]
     */
    public function getDefaultParameters()
    {
        return array(
            'snid' => '',
            'skey' => '',
            'developerApplication' => [],
        );
    }

    /**
     * Get the stored service key
     *
     * @return string
     */
    public function getSKey()
    {
        return $this->getParameter('skey');
    }

    /**
     * Set the stored service key
     *
     * @param string $value  Service key to store
     */
    public function setSKey($value)
    {
        return $this->setParameter('skey', $value);
    }

    /**
     * Get the stored Sn ID
     *
     * @return string
     */
    public function getSnId()
    {
        return $this->getParameter('snid');
    }

    /**
     * Set the stored Sn ID
     *
     * @param string $value  Merchant ID to store
     */
    public function setSnId($value)
    {
        return $this->setParameter('snid', $value);
    }

    /**
     * Gets the Developer ID
     * @return String
     */
    public function getDeveloperId(){
        $devApp = $this->getParameter('developerApplication');
        if(isset($devApp['developerId'])){
            return $devApp['developerId'];
        }
        return null;
    }

    /**
     * Sets the Developer ID
     * @params String
     */
    public function setDeveloperId($value){
        $existing = $this->getParameter('developerApplication');
        if(!$existing){
            $existing = [];
        }
        $existing['developerId'] = $value;
        return $this->setParameter('developerApplication', $existing);
    }

    /**
     * Gets the Developer Version
     * @return String
     */
    public function getDeveloperVersion(){
        $devApp = $this->getParameter('developerApplication');
        if(isset($devApp['version'])){
            return $devApp['version'];
        }
        return null;
    }

    /**
     * Sets the Developer Version
     * @params String
     */
    public function setDeveloperVersion($value){
        $existing = $this->getParameter('developerApplication');
        if(!$existing){
            $existing = [];
        }
        $existing['version'] = $value;
        return $this->setParameter('developerApplication', $existing);
    }

    /**
     * Gets the Developer Application
     *
     * Format:
     * [
     *     'developerId' =>
     *     'version' =>
     * ]
     * @return Array
     */
    public function getDeveloperApplication(){
        return array(
            'developerId' => $this->getDeveloperId(),
            'version' => $this->getDeveloperVersion()
        );
    }

    /**
     * Sets the Developer Application parameter
     *
     * Format:
     * [
     *     'developerId' =>
     *     'version' =>
     * ]
     * @param Array $value
     */
    public function setDeveloperApplication($value){
        $idSet = false;
        if(isset($value['developerId'])){
            $idSet = $this->setDeveloperId($value['developerId']);
        }

        $versionSet = false;
        if(isset($value['version'])){
            $versionSet = $this->setDeveloperVersion($value['version']);
        }

        return ($idSet or $versionSet);
    }

    /**
     * Create purchase request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\PurchaseRequest
     */
    public function purchase(array $parameters = array())
    {
        $cardNotPresent = ( (!isset($parameters['card'])) || $parameters['card']==null );
        $cardReferencePresent = ( isset($parameters['cardReference']) && $parameters['cardReference']!=null );

        if($cardNotPresent && $cardReferencePresent){
            return $this->purchaseWithToken($parameters);
        }

        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\PurchaseRequest', $parameters);
    }

    /**
     * Create authorize request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\AuthorizeRequest
     */
    public function authorize(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\AuthorizeRequest', $parameters);
    }

    /**
     * Create refund request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\RefundRequest
     */
    public function refund(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\RefundRequest', $parameters);
    }

    /**
     * Create capture request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\CaptureRequest
     */
    public function capture(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\CaptureRequest', $parameters);
    }

    /**
     * Create Customer request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultCreateCustomerRequest
     */
    public function createCustomer(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultCreateCustomerRequest', $parameters);
    }

    /**
     * Update Customer request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultUpdateCustomerRequest
     */
    public function updateCustomer(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultUpdateCustomerRequest', $parameters);
    }

    /**
     * Delete Customer request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultDeleteCustomerRequest
     */
    public function deleteCustomer(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultDeleteCustomerRequest', $parameters);
    }

    /**
     * Create Account request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultCreateAccountRequest
     */
    public function createAccount(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultCreateAccountRequest', $parameters);
    }

    /**
     * Update Account request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultUpdateAccountRequest
     */
    public function updateAccount(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultUpdateAccountRequest', $parameters);
    }

    /**
     * Delete Account request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultDeleteAccountRequest
     */
    public function deleteCard(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultDeleteAccountRequest', $parameters);
    }

    /**
     * Create Customer and Account request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultCreateCustomerAndAccountRequest
     */
    public function createCustomerAndAccount(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultCreateCustomerAndAccountRequest', $parameters);
    }

    /**
     * Update Customer and Account request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultUpdateCustomerAndAccountRequest
     */
    public function updateCustomerAndAccount(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultUpdateCustomerAndAccountRequest', $parameters);
    }

    /**
     * Charge and Create Account and Customer request
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\VaultChargeAndCreateCustomerAndAccountRequest
     */
    public function chargeAndCreateCustomerAndAccount(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\VaultChargeAndCreateCustomerAndAccountRequest', $parameters);
    }

    /**
     * Creates token for future payments
     * @param  array  $parameters
     * @return \Omnipay\Worldpaysecurenet\Message\CreateCardTokenRequest
     */
    public function tokenizeCard(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\CreateCardTokenRequest', $parameters);
    }

    /**
     * Create purchase request from token
     *
     * @param array $parameters
     *
     * @return \Omnipay\Worldpaysecurenet\Message\PurchaseWithTokenRequest
     */
    public function purchaseWithToken(array $parameters = array())
    {
        return $this->createRequest('\Omnipay\Worldpaysecurenet\Message\PurchaseWithTokenRequest', $parameters);
    }

    protected function getDefaultHttpClient()
    {
        $guzzleClient = new Client;
        $guzzleClient->setConfig([
            'curl.options' => [
                CURLOPT_SSLVERSION => 6
            ]
        ]);
        return $guzzleClient;
    }
}


text:
package com.amazonaws.services.cloudwatchevents.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 *

 * This structure includes the custom parameter to be used when the target is an SQS FIFO queue.
 *

 *
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SqsParameters implements Serializable, Cloneable, StructuredPojo {

    /**
     *

     * The FIFO message group ID to use as the target.
     *

     */
    private String messageGroupId;

    /**
     *

     * The FIFO message group ID to use as the target.
     *

     *
     * @param messageGroupId
     *        The FIFO message group ID to use as the target.
     */

    public void setMessageGroupId(String messageGroupId) {
        this.messageGroupId = messageGroupId;
    }

    /**
     *

     * The FIFO message group ID to use as the target.
     *

     *
     * @return The FIFO message group ID to use as the target.
     */

    public String getMessageGroupId() {
        return this.messageGroupId;
    }

    /**
     *

     * The FIFO message group ID to use as the target.
     *

     *
     * @param messageGroupId
     *        The FIFO message group ID to use as the target.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public SqsParameters withMessageGroupId(String messageGroupId) {
        setMessageGroupId(messageGroupId);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getMessageGroupId() != null)
            sb.append("MessageGroupId: ").append(getMessageGroupId());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof SqsParameters == false)
            return false;
        SqsParameters other = (SqsParameters) obj;
        if (other.getMessageGroupId() == null ^ this.getMessageGroupId() == null)
            return false;
        if (other.getMessageGroupId() != null && other.getMessageGroupId().equals(this.getMessageGroupId()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getMessageGroupId() == null) ? 0 : getMessageGroupId().hashCode());
        return hashCode;
    }

    @Override
    public SqsParameters clone() {
        try {
            return (SqsParameters) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
        }
    }

    @com.amazonaws.annotation.SdkInternalApi
    @Override
    public void marshall(ProtocolMarshaller protocolMarshaller) {
        com.amazonaws.services.cloudwatchevents.model.transform.SqsParametersMarshaller.getInstance().marshall(this, protocolMarshaller);
    }
}


text:
A command line utility to copy a file at a limited speed. Useful for server reliability benchmarking and for preventing overheat in high-bandwidth/high-throughput storage solutions.

# Installation

```bash
npm install -g slowcopy
```
# API & Usage

```
  Usage: slowcopy [options] <source> <destination> <speed-limit>

  A command line utility to copy a file at a limited speed.

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    -f, --force    Force over-write if destination already exists
    -q, --quiet    No non-error output
```

# LICENCE

[MIT](LICENSE)


text:
namespace lld {
#ifdef LLD_HAS_VTUNE
/// A unique global scope for instrumentation data.
///
/// Domains last for the lifetime of the application and cannot be destroyed.
/// Multiple Domains created with the same name represent the same domain.
class Domain {
  __itt_domain *_domain;

public:
  explicit Domain(const char *name) : _domain(__itt_domain_createA(name)) {}

  operator __itt_domain *() const { return _domain; }
  __itt_domain *operator->() const { return _domain; }
};

/// A global reference to a string constant.
///
/// These are uniqued by the ITT runtime and cannot be deleted. They are not
/// specific to a domain.
///
/// Prefer reusing a single StringHandle over passing a ntbs when the same
/// string will be used often.
class StringHandle {
  __itt_string_handle *_handle;

public:
  StringHandle(const char *name) : _handle(__itt_string_handle_createA(name)) {}

  operator __itt_string_handle *() const { return _handle; }
};

/// A task on a single thread. Nests within other tasks.
///
/// Each thread has its own task stack and tasks nest recursively on that stack.
/// A task cannot transfer threads.
///
/// SBRM is used to ensure task starts and ends are ballanced. The lifetime of
/// a task is either the lifetime of this object, or until end is called.
class ScopedTask {
  __itt_domain *_domain;

  ScopedTask(const ScopedTask &) = delete;
  ScopedTask &operator=(const ScopedTask &) = delete;

public:
  /// Create a task in Domain \p d named \p s.
  ScopedTask(const Domain &d, const StringHandle &s) : _domain(d) {
    __itt_task_begin(d, __itt_null, __itt_null, s);
  }

  ScopedTask(ScopedTask &&other) {
    *this = std::move(other);
  }

  ScopedTask &operator=(ScopedTask &&other) {
    _domain = other._domain;
    other._domain = nullptr;
    return *this;
  }

  /// Prematurely end this task.
  void end() {
    if (_domain)
      __itt_task_end(_domain);
    _domain = nullptr;
  }

  ~ScopedTask() { end(); }
};

/// A specific point in time. Allows metadata to be associated.
class Marker {
public:
  Marker(const Domain &d, const StringHandle &s) {
    __itt_marker(d, __itt_null, s, __itt_scope_global);
  }
};
#else
class Domain {
public:
  Domain(const char *name) {}
};

class StringHandle {
public:
  StringHandle(const char *name) {}
};

class ScopedTask {
public:
  ScopedTask(const Domain &d, const StringHandle &s) {}
  void end() {}
};

class Marker {
public:
  Marker(const Domain &d, const StringHandle &s) {}
};
#endif

inline const Domain &getDefaultDomain() {
  static Domain domain("org.llvm.lld");
  return domain;
}
} // end namespace lld.

#endif


text:
MSC_BEGIN

struct DisplayConfiguration
{
   static DisplayConfiguration load(sqlite3 *db);
   static void save(const DisplayConfiguration &dc, sqlite3 *db);
   static const DisplayConfiguration default_configuration;

   enum DisplayMode
   {
      kDISPLAY_WINDOWED = 0,
      kDISPLAY_FULLSCREEN_WINDOWED = 1,
      kDISPLAY_FULLSCREEN = 2
   };

   DisplayConfiguration();
   DisplayConfiguration(DisplayMode mode, int adapter, int refresh_rate, int multisamples, int width, int height);

   DisplayMode display_mode;
   int display_adapter;
   int refresh_rate;
   int multisamples;
   int width;
   int height;

private:
   static bool tableExists(sqlite3 *db);

   static void log(const char *msg);
   static void log(const char *msg, sqlite3 *db);
   static void log(const char *msg, sqlite3 *db, const char *sql);
};

MSC_END

#endif


text:
require 'twitter/client'

module Twitter
  # @deprecated {Twitter::Base} is deprecated and will be permanently removed in the next major version. Please use {Twitter::Client} instead.
  class Base
    # Alias for Twitter::Client.new
    #
    # @deprecated {Twitter::Base} is deprecated and will be permanently removed in the next major version. Please use {Twitter::Client} instead.
    # @return [Twitter::Client]
    def client(options={})
      warn "#{Kernel.caller.first}: [DEPRECATION] Twitter::Base is deprecated and will be permanently removed in the next major version. Please use Twitter::Client instead."
      Twitter::Client.new(options)
    end

    # Delegate to Twitter::Client
    #
    # @deprecated {Twitter::Base} is deprecated and will be permanently removed in the next major version. Please use {Twitter::Client} instead.
    def method_missing(method, *args, &block)
      return super unless client.respond_to?(method)
      warn "#{Kernel.caller.first}: [DEPRECATION] Twitter::Base##{method} is deprecated and will be permanently removed in the next major version. Please use Twitter::Client##{method} instead."
      Twitter::Client.new.send(method, *args, &block)
    end
  end
end


text:
from itertools import count
import wargaming

wot = wargaming.WoT('demo', region='ru', language='ru')

def list_all_provinces():
    """List provinces from all fronts using WG Public API"""

    # get fronts list
    fronts = wot.globalmap.fronts()

    # iterate through fronts
    for front in fronts:
        # provinces method return no more than 100 provinces per page,
        # adding pagination iteration
        for page_no in count(start=1):
            # provinces method require 2 parameters - front_id and page_no
            provinces = wot.globalmap.provinces(front_id=front['front_id'], page_no=page_no)

            # if no provinces on this page, then we got all provinces on the front
            if len(provinces) == 0:
                break

            # iterate through provinces list
            for province in provinces:
                print(province['province_name'])

try:
    list_all_provinces()
except wargaming.exceptions.RequestError as e:
    if e.code == 407:  # REQUEST_LIMIT_EXCEEDED
        print("ERROR: You should register your own API key and not use 'demo' key")
    else:
        print("Unknown error %s" % repr(e))


text:
import os
import os.path
import sys
import thread
import threading

ROOT=os.getcwd()
ONEMAKE_ROOT=os.path.dirname(os.path.realpath(__file__))
ALL_ERRORS=[]
ALL_ERRORS_LOCK=thread.allocate_lock()

sys.path.append(ONEMAKE_ROOT + "/lib")

import build_core
import job_manager
import console_helper
import path_helper
import json_helper
import option_helper

host_profile="{0}-{1}".format(option_helper.OPTIONS['host_platform'], option_helper.OPTIONS['host_arch'])
target_profile="{0}-{1}".format(option_helper.OPTIONS['target_platform'], option_helper.OPTIONS['target_arch'])
scheme=option_helper.OPTIONS['scheme']
target=option_helper.OPTIONS["target"]
ccache=option_helper.OPTIONS["ccache"]

profile_dir_candidates = [ROOT + '/profiles', ONEMAKE_ROOT + '/profiles']

env = None
envFilenameCandidates = [
    '{0}-{1}-{2}-{3}.json'.format(host_profile, target_profile, scheme, target),
    '{0}-{1}-{2}'.format(host_profile, target_profile, scheme)
]

for envFilenameCandidate in envFilenameCandidates:
    env = json_helper.load_json_in_dirs('{0}-{1}-{2}.json'.format(host_profile, target_profile, scheme), profile_dir_candidates)
    if env is not None:
        break

if env is None:
    exit(1)

env['target'] = target
env['compiler_options'] = json_helper.load_json_in_dirs("compiler-set-{0}.json".format(env['compiler_set']), profile_dir_candidates)
if env['compiler_options'] is None:
    exit(1)

build_core.config(scheme=option_helper.OPTIONS['scheme'], profile=option_helper.OPTIONS['target_platform'], target=option_helper.OPTIONS['target_arch'])

def detect_compiler_version():
    if 'cc' not in env or 'gcc' not in env['cc']:
        return

    cmd = u'{0} --version'.format(env['cc'])
    p = os.popen(cmd)
    all_result = p.read()
    if 'clang' in all_result:
        return
    version_line = all_result.split('\n')[0]
    version = version_line.split(' ')[-1]
    major, minor, release = version.split('.')
    env['compiler_version'] = {
        'full': version,
        'major': major,
        'minor': minor,
        'release': release
    }
    env['compiler_version_full'] = version
    env['compiler_version_major'] = major
    env['compiler_version_minor'] = minor
    env['compiler_version_release'] = release
    p.close()

detect_compiler_version()

defined_projects=json_helper.load_json("onemake.json")

def merge_value(d, bare_key, addition_value):
    if bare_key not in d:
        d[bare_key] = addition_value
        return

    original_value = d[bare_key]

    if isinstance(original_value, dict):
        for key, value in addition_value.items():
            merge_value(original_value, key, value)
    elif isinstance(original_value, str):
        d[bare_key] = addition_value
    else:
        d[bare_key] += addition_value

def process_dict_queries(d, env):
    for key in d.keys():
        if '?' not in key:
            continue
        bare_key, query_string = tuple(key.split('?', 1))
        queries = query_string.split('&')
        is_match = True

        for query in queries:
            query_key, query_value = tuple(query.split('='))
            if query_key not in env or env[query_key] != query_value:
                is_match = False
                break
        if is_match:
            merge_value(d, bare_key, d[key])

        del d[key]

    for value in d.values():
        if isinstance(value, dict):
            process_dict_queries(value, env)

process_dict_queries(defined_projects, env)

def process_project_marco_str(project, value, env):
    value = value.replace('${SRC_DIR}', project['directory'])
    value = value.replace('${OBJECT_ROOT}', build_core.OBJECT_ROOT)
    value = value.replace('${OUTPUT_ROOT}', build_core.OUTPUT_ROOT)
    value = value.replace('${HOST_PLATFORM}', option_helper.OPTIONS["host_platform"])
    value = value.replace('${HOST_ARCH}', option_helper.OPTIONS["host_arch"])
    value = value.replace('${TARGET_PLATFORM}', option_helper.OPTIONS["target_platform"])
    value = value.replace('${TARGET_ARCH}', option_helper.OPTIONS["target_arch"])
    if 'compiler_version' in env:
        value = value.replace('${COMPILER_VERSION}', env["compiler_version"]["full"])
        value = value.replace('${COMPILER_VERSION_MAJOR}', env["compiler_version"]["major"])
        value = value.replace('${COMPILER_VERSION_MINOR}', env["compiler_version"]["minor"])
        value = value.replace('${COMPILER_VERSION_RELEASE}', env["compiler_version"]["release"])

    return value

def process_project_marcos(project, d, env):
    for key in d.keys():
        value = d[key]

        if isinstance(value, dict):
            process_project_marcos(project, value, env)
        elif isinstance(value, str) or isinstance(value, unicode):
            d[key] = process_project_marco_str(project, value, env)
        elif isinstance(value, list):
            for i in xrange(len(value)):
                subvalue = value[i]
                if isinstance(subvalue, dict):
                    process_project_marcos(project, subvalue, env)
                elif isinstance(subvalue, str) or isinstance(subvalue, unicode):
                    value[i] = process_project_marco_str(project, subvalue, env)

for project in defined_projects.values():
    process_project_marcos(project, project, env)

if option_helper.OPTIONS.get('projects') is None:
    projects = defined_projects
else:
    projects = {}
    def add_project(name):
        if name in projects:
            return True
        if name not in defined_projects:
            return False
        projects[name] = defined_projects[name]
        if 'depends' in projects[name]:
            for depend in projects[name]['depends']:
                if not add_project(depend):
                    console_helper.fatal("project {0} not found, which is referenced by {1}".format(depend, name))
        return True
    for project in option_helper.OPTIONS.get('projects').split(','):
        if not add_project(project):
            console_helper.fatal("project {0} not found".format(project))

build_core.PROJECTS = projects
build_core.ENV = env
build_core.prepare()

def run_cmd(cmd, log_file=None):
    if log_file:
        path_helper.mkdir_if_not_exist(path_helper.dirname(log_file))

    command_line = cmd + " > {0} 2>&1".format(log_file) if log_file else cmd

    if os.system(command_line):
        ALL_ERRORS_LOCK.acquire()
        ALL_ERRORS.append([
            "Failed to execute following command:",
            cmd,
            "Please refer to log:\n\t{1}".format(cmd, log_file) if log_file else "Please refer to log above"
        ])
        ALL_ERRORS_LOCK.release()
        return False
    else:
        return True

def compile_file_with_compiler(project, compiler, compiler_flag_name, src, dest):
    all_flags = ['ccache', env[compiler]] if ccache == 'yes' else [env[compiler]]

    build_core.add_compiler_flag(all_flags, compiler, "output_file", dest)
    if isinstance(src, list):
        for src_file in src:
            build_core.add_compiler_flag(all_flags, compiler, "source_file", src_file)
    else:
        build_core.add_compiler_flag(all_flags, compiler, "source_file", src)

    all_flags.extend(env.get(compiler_flag_name, []))
    all_flags.extend(project.get(compiler_flag_name, []))

    if 'workarounds' in project:
        for workaround_name, workaround_value in project['workarounds'].items():
            if not workaround_value: continue
            if workaround_name == "stopUsingC++11":
                for op in ('-std=gnu++0x', '-std=gnu++11'):
                    if op in all_flags:
                        all_flags.remove(op)

    return run_cmd(build_core.concat_flags(all_flags), dest + '.log')

def compile_file(project_name, src, dest):
    project = build_core.PROJECTS[project_name]
    ext = path_helper.get_ext_filename(src)

    if ext == 'c':
        return compile_file_with_compiler(project, 'cc', 'cflags', src, dest)
    elif ext in ('cc', 'cpp'):
        return compile_file_with_compiler(project, 'cxx', 'cxxflags', src, dest)

def static_library(project, dest):
    if not compile_file_with_compiler(project, 'ar', 'arflags', project['object_files'], dest):
        return False

    if 'ranlib' in env:
        return run_cmd(build_core.concat_flags([env['ranlib'], dest]), dest + '.ranlib.log')
    else:
        return True

def executable(project, dest):
    if not compile_file_with_compiler(project, 'ld', 'ldflags', project['object_files'], dest):
        return False

    for post_operations in project.get('post_operations', []):
        if post_operations == 'upx':
            if not run_cmd(build_core.concat_flags(['upx', '--best', dest])):
                return False
        else:
            return False

    return True

def custom_build(dest, project):
    src_dir = build_core.ROOT + '/' + project['directory']
    object_dir = build_core.OBJECT_ROOT + '/' + project['directory']

    path_helper.mkdir_if_not_exist(object_dir)

    if project['custom_build'] == 'cmake':
        cmake_flags = project.get('cmake_flags', '')
        cmake_flags = cmake_flags.replace("${OUTPUT_ROOT}", build_core.OUTPUT_ROOT)

        make_flags = project.get('make_flags', '')

        if env.get('cross_compile'):
            cmake_flags = build_core.concat_flags(env.get('cmakeflags', [])) + ' ' + cmake_flags
            make_flags = build_core.concat_flags(env.get('makeflags', [])) + ' ' + make_flags

        if not run_cmd('cd {0} && cmake {1} {2}'.format(object_dir, src_dir, cmake_flags), project['log_file'] + '.cmake'):
            return False

        if not run_cmd('cd {0} && make {1}'.format(object_dir, make_flags), project['log_file'] + '.make'):
            return False

        return run_cmd('cp {0}/{1} {2}'.format(object_dir, project['custom_build_output_files'], path_helper.dirname(dest)))
    elif project['custom_build'] == 'configure_make':
        configure_flags = project['configure_flags'] if 'configure_flags' in project else ''
        make_flags = project['make_flags'] if 'make_flags' in project else ''

        if not run_cmd('cd {0} && {1}/configure --prefix={2} {3}'.format(object_dir, src_dir, build_core.OUTPUT_ROOT, configure_flags), project['log_file'] + '.configure'):
            return False
        if not run_cmd('cd {0} && make {1}'.format(object_dir, make_flags), project['log_file'] + '.make'):
            return False
        return run_cmd('cd {0} && make install'.format(object_dir), project['log_file'] + '.make')

def worker(thread_id):
    while True:
        result, job = job_manager.fetch_and_mark_start()
        if result == 'done':
            break
        if job:
            job_manager.JOBS_LOCK.acquire()
            jobs_done = job_manager.JOBS_COUNT['done']
            jobs_working = job_manager.JOBS_COUNT['working']
            jobs_source = job_manager.JOBS_COUNT['source']
            jobs_pending = job_manager.JOBS_COUNT['pending']
            job_manager.JOBS_LOCK.release()

            succeed = False

            if job.should_compile:
                console_helper.echo_info("[{0}/{1}] [{2}] {3}...".format(jobs_done + jobs_working - jobs_source, jobs_done + jobs_working + jobs_pending - jobs_source, job.job_type, job.dest[len(build_core.BUILD_ROOT)+1:]))

                dest_dir = path_helper.dirname(job.dest)
                path_helper.mkdir_if_not_exist(dest_dir)

                if job.job_type == 'compile':
                    succeed = compile_file(job.args, job.depends[0].dest, job.dest)
                elif job.job_type == 'static_library':
                    succeed = static_library(job.args, job.dest)
                elif job.job_type == 'source_library':
                    succeed = True
                elif job.job_type == 'copy':
                    path_helper.mkdir_if_not_exist(path_helper.dirname(job.dest))
                    succeed = run_cmd(build_core.concat_flags(["cp", job.args, job.dest]))
                elif job.job_type == "executable":
                    succeed = executable(job.args, job.dest)
                elif job.job_type == "script":
                    succeed = run_cmd(build_core.concat_flags(["cd", build_core.ROOT]) + " && " + job.args, job.args['log_file'])
                elif job.job_type == "custom_build":
                    succeed = custom_build(job.dest, job.args)
            else:
                succeed = True

            if succeed:
                job_manager.mark_done(job)
            else:
                job_manager.mark_error(job)

threads=[]

for i in xrange(int(option_helper.OPTIONS['concurrent'])):
    worker_thread = threading.Thread(None, worker, args=(i,))
    worker_thread.start()
    threads.append(worker_thread)

for worker_thread in threads:
    if not worker_thread.is_alive():
        continue
    worker_thread.join()

if job_manager.JOBS_COUNT['error']:
    console_helper.echo_error("{0} errors occurred".format(job_manager.JOBS_COUNT['error']))
    for i in xrange(len(ALL_ERRORS)):
        error_entry = ALL_ERRORS[i]
        console_helper.echo_error("Error {0}".format(i))
        for line in error_entry:
            console_helper.echo_warn("    {0}".format(line))
    exit(1)
else:
    console_helper.echo_info("all done")


text:
import { existsSync, statSync } from 'fs';
import { isFunction, isPlainObject } from 'lodash';
import Router from './Router';

function applyMockRoutes(app, context){
  const { paths: { plmc, plmcs } } = context;

  // 路由配置文件 plutarch.mock.js,仅支持文件形式
  if ( !existsSync(plmc) || !statSync(plmc).isFile() ) return;

  const router = new Router(app, context);
  const mockRouter = require(plmc);

  if ( !isFunction(mockRouter) && !isPlainObject(mockRouter) )
    throw new Error("plutarch.mock.js should export a function or an object")

  if ( isFunction(mockRouter) ){
    mockRouter(router);
    return;
  };

  Object.keys(mockRouter).map(key => {
    let matches = key.split(/\s/);
    let method = matches[0];
    let path = matches[1];

    router[method](path, mockRouter[key]);
  });

};

export default applyMockRoutes;


text:
package com.ggj.java;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import lombok.extern.slf4j.Slf4j;
import redis.clients.jedis.Jedis;

/**
 * @author:gaoguangjin
 * @date 2016/10/8 16:01
 */
@Slf4j
public class RedisTestHmgetAndHget {
    private static Jedis jedis = new Jedis("123.56.118.135");
    private static int size = 10000;

    public static void main(String[] args) {
        jedis.auth("gaoguangjin");
        jedis.select(2);
        jedis.flushDB();
        List<String> list = new ArrayList<>(size);
        String[] array = new String[size];
        Map<String, String> map = new HashMap<>();
        for (int i = 0; i < size; i++) {
            map.put(i + "", i + "");
            list.add(i + "");
        }
        jedis.hmset("set", map);
        list.toArray(array);

        long beginTime = System.currentTimeMillis();
        beginTime = System.currentTimeMillis();
        jedis.hmget("set", array);
        log.info("hmget 耗时{}", System.currentTimeMillis() - beginTime);

        for (int i = 0; i <= size; i++) {
            jedis.hget("set", i + "");
        }

        log.info("hget 耗时{}", System.currentTimeMillis() - beginTime);
    }
}


text:
<?php

define('BREEZE_APPLICATION', realpath(dirname(__FILE__) . '/..'));

require_once('Doctrine/lib/Doctrine.php');
spl_autoload_register(array('Doctrine', 'autoload'));
spl_autoload_register(array('Doctrine_Core', 'modelsAutoload'));

$manager = Doctrine_Manager::getInstance();
Doctrine_Manager::connection(
    'sqlite:///' . BREEZE_APPLICATION . '/databases/blog.db?mode=0666', 'blog'
);

Doctrine_Core::dropDatabases();
Doctrine_Core::createDatabases();
Doctrine_Core::createTablesFromModels(BREEZE_APPLICATION . '/models');


text:
zend_class_entry *gdal_ogrfeaturedefn_ce;
zend_object_handlers ogrfeaturedefn_object_handlers;

//
// PHP stuff
//

void ogrfeaturedefn_free_storage(void *object TSRMLS_DC)
{
  php_ogrfeaturedefn_object *obj = (php_ogrfeaturedefn_object *)object;
  zend_hash_destroy(obj->std.properties);
  FREE_HASHTABLE(obj->std.properties);
  efree(obj);
}

zend_object_value ogrfeaturedefn_create_handler(zend_class_entry *type TSRMLS_DC)
{
  zval *tmp;
  zend_object_value retval;

  php_ogrfeaturedefn_object *obj =
    (php_ogrfeaturedefn_object *)emalloc(sizeof(php_ogrfeaturedefn_object));
  memset(obj, 0, sizeof(php_ogrfeaturedefn_object));
  obj->std.ce = type;

  ALLOC_HASHTABLE(obj->std.properties);
  zend_hash_init(obj->std.properties, 0, NULL, ZVAL_PTR_DTOR, 0);
#if PHP_VERSION_ID < 50399
  zend_hash_copy(obj->std.properties, &type->default_properties,
                 (copy_ctor_func_t)zval_add_ref, (void *)&tmp, sizeof(zval *));
#else
      object_properties_init(&obj->std, type);
#endif

  retval.handle = zend_objects_store_put(obj, NULL,
                                         ogrfeaturedefn_free_storage, NULL TSRMLS_CC);
  retval.handlers = &ogrfeaturedefn_object_handlers;

  return retval;

  //pdo_stmt_construct(stmt, return_value, dbstmt_ce, ctor_args TSRMLS_CC);

}

//
// CLASS METHODS
//

PHP_METHOD(OGRFeatureDefn, GetName)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;

  const char *name = featuredefn->GetName();
  if (name) {
    RETURN_STRING((char *)name, 1);
  } else {
    RETURN_NULL();
  }
}

PHP_METHOD(OGRFeatureDefn, GetFieldCount)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  RETURN_LONG(featuredefn->GetFieldCount());
}

PHP_METHOD(OGRFeatureDefn, GetFieldDefn)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;
  OGRFieldDefn *fielddefn;
  php_ogrfielddefn_object *fielddefn_obj;
  long index;

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, (char*)"l",
                            &index) == FAILURE) {
    return;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;

  fielddefn = featuredefn->GetFieldDefn(index);
  if (!fielddefn) {
    RETURN_NULL();
  }
  if (object_init_ex(return_value, gdal_ogrfielddefn_ce) != SUCCESS) {
    RETURN_NULL();
  }
  fielddefn_obj = (php_ogrfielddefn_object*)
    zend_objects_get_address(return_value TSRMLS_CC);
  fielddefn_obj->fielddefn = fielddefn;
}

PHP_METHOD(OGRFeatureDefn, GetFieldIndex)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;
  char *name;
  int name_len;

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, (char*)"s",
                            &name, &name_len) == FAILURE) {
    return;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  RETURN_LONG(featuredefn->GetFieldIndex(name));
}

PHP_METHOD(OGRFeatureDefn, AddFieldDefn)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;
  zval *fielddefnp;
  OGRFieldDefn *fielddefn;
  php_ogrfielddefn_object *fielddefn_obj;

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, (char*)"O",
                            &fielddefnp, gdal_ogrfielddefn_ce) == FAILURE) {
    return;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;

  fielddefn_obj = (php_ogrfielddefn_object *)
    zend_object_store_get_object(fielddefnp);
  fielddefn = fielddefn_obj->fielddefn;
  featuredefn->AddFieldDefn(fielddefn);
}

PHP_METHOD(OGRFeatureDefn, GetGeomType)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  RETURN_LONG((long)featuredefn->GetGeomType());
}

PHP_METHOD(OGRFeatureDefn, SetGeomType)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;
  long geomType;

  if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, (char*)"l",
                            &geomType) == FAILURE) {
    return;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  featuredefn->SetGeomType((OGRwkbGeometryType)geomType);
}

PHP_METHOD(OGRFeatureDefn, Clone)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;
  OGRFeatureDefn *clone_featuredefn;
  php_ogrfeaturedefn_object *clone_obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;

  clone_featuredefn = featuredefn->Clone();
  if (!clone_featuredefn) {
    RETURN_NULL();
  }
  if (object_init_ex(return_value, gdal_ogrfeaturedefn_ce) != SUCCESS) {
    RETURN_NULL();
  }
  clone_obj = (php_ogrfeaturedefn_object*)
    zend_objects_get_address(return_value TSRMLS_CC);
  clone_obj->featuredefn = clone_featuredefn;
}

PHP_METHOD(OGRFeatureDefn, Reference)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  RETURN_LONG(featuredefn->Reference());
}

PHP_METHOD(OGRFeatureDefn, Dereference)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  RETURN_LONG(featuredefn->Dereference());
}

PHP_METHOD(OGRFeatureDefn, GetReferenceCount)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  RETURN_LONG(featuredefn->GetReferenceCount());
}

PHP_METHOD(OGRFeatureDefn, Release)
{
  OGRFeatureDefn *featuredefn;
  php_ogrfeaturedefn_object *obj;

  if (ZEND_NUM_ARGS() != 0) {
    WRONG_PARAM_COUNT;
  }

  obj = (php_ogrfeaturedefn_object *)
    zend_object_store_get_object(getThis() TSRMLS_CC);
  featuredefn = obj->featuredefn;
  featuredefn->Release();
}

//
// PHP stuff
//

zend_function_entry ogrfeaturedefn_methods[] = {
  PHP_ME(OGRFeatureDefn, GetName,               NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, GetFieldCount,         NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, GetFieldDefn,          NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, GetFieldIndex,         NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, AddFieldDefn,          NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, GetGeomType,           NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, SetGeomType,           NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, Clone,                 NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, Reference,             NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, Dereference,           NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, GetReferenceCount,     NULL, ZEND_ACC_PUBLIC)
  PHP_ME(OGRFeatureDefn, Release,               NULL, ZEND_ACC_PUBLIC)
  // PHP_ME(OGRFeatureDefn, CreateFeatureDefn,
  //        NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  // PHP_ME(OGRFeatureDefn, DestroyFeatureDefn,
  //        NULL, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  {NULL, NULL, NULL}
};

void php_gdal_ogrfeaturedefn_startup(INIT_FUNC_ARGS)
{
  zend_class_entry ce;
  INIT_CLASS_ENTRY(ce, "OGRFeatureDefn", ogrfeaturedefn_methods);
  gdal_ogrfeaturedefn_ce = zend_register_internal_class(&ce TSRMLS_CC);
  gdal_ogrfeaturedefn_ce->create_object = ogrfeaturedefn_create_handler;
  memcpy(&ogrfeaturedefn_object_handlers,
         zend_get_std_object_handlers(), sizeof(zend_object_handlers));
  ogrfeaturedefn_object_handlers.clone_obj = NULL;
}


text:
package com.liferay.wsrp.admin.messaging;

import com.liferay.portal.kernel.messaging.BaseMessageListener;
import com.liferay.portal.kernel.messaging.Message;
import com.liferay.wsrp.service.WSRPConsumerPortletLocalServiceUtil;

/**
 * @author Mika Koivisto
 */
public class WSRPConsumerPortletCheckEventMessageListener
	extends BaseMessageListener {

	@Override
	protected void doReceive(Message message) throws Exception {
		WSRPConsumerPortletLocalServiceUtil.initFailedWSRPConsumerPortlets();
	}

}


text:
//
//  Line.h
//  SpriteDragger
//
//  Created by Tolga Saglam's mac on 7/12/13.
//  Copyright (c) 2013 Bullets in a Burning Box, Inc. All rights reserved.
//

#ifndef __SpriteDragger__Line__
#define __SpriteDragger__Line__

#include <iostream>
#include "cocos2d.h"

//#include "Sprite.h"

class Line {
    private:
    float x,y,a,c,divider,incline;
    cocos2d::CCPoint m_firstPoint,m_secondPoint;
    int direction;
    public:
    Line();
    Line(cocos2d::CCPoint p1,cocos2d::CCPoint p2);
    ~Line();

    void setX(float value);
    float getX();
    void setY(float value);
    float getY();
    void setA(float value);
    float getA();
    void setC(float value);
    float getC();
    void setDividier(float value);
    float getDivider();
    float getIncline();
    void calculateLine();
    float findY(float x);
    cocos2d::CCPoint getFirstPoint();
    cocos2d::CCPoint getSecondPoint();
    float getMinY();
    float getMaxY();
    bool checkCollission(int x,float y,int width,int height,float speed);
    int getDirection();
};

#endif /* defined(__SpriteDragger__Line__) */