<commit_before><?xml version="1.0" encoding="UTF-8"?>
<og-portfolio schemaVersion="1.0" xmlns="http://www.opengamma.com/portfolios"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengamma.com/portfolios">

  <trades>

    <!--
    TRADES SECTION
    A list of trades. Each element can be a trade of any type and must declare an id attribute.
    -->

    <!-- a xccy swap -->
    <swapTrade id="t1">
      <externalSystemId>
        <id scheme="External">IdFromExternalSystem</id>
      </externalSystemId>
      <tradeDate>2013-01-20</tradeDate>
      <maturityDate>2018-01-31</maturityDate>
      <counterparty>
        <id scheme="Cpty">GOLDMAN</id>
      </counterparty>
      <effectiveDate>2013-02-01</effectiveDate>

      <legs>
        <floatingLeg>
          <payReceive>Pay</payReceive>
          <currency>USD</currency>
          <notional>1000000</notional>
          <frequency>12m</frequency>
          <dayCount>Actual/365</dayCount>
          <interestCalculation>Adjusted</interestCalculation>
          <businessDayConvention>Modified Following</businessDayConvention>
          <scheduleGenerationDirection>Backward</scheduleGenerationDirection>
          <endOfMonth>true</endOfMonth>
          <isIMM>true</isIMM>
          <paymentCalendars>
            <calendar type="bank">
              <id scheme="CountryISO2">FD</id>
            </calendar>
            <calendar>
              <id scheme="CountryISO2">EN</id>
            </calendar>
          </paymentCalendars>
          <stubPeriodType>LongCoupon</stubPeriodType>
          <resetFrequency/>
          <compoundingMethod/>
          <resetLag/>
          <resetType>InAdvance</resetType>
          <stubPeriodCouponAdjustment>LegIndex</stubPeriodCouponAdjustment>
          <fixingCalendars/>
          <fixingIndex>
            <id scheme="BLOOMBERG_TICKER">US0003M Curncy</id>
            <rateType>IBOR</rateType>
          </fixingIndex>
        </floatingLeg>

        <floatingLeg>
          <payReceive>Receive</payReceive>
          <currency>EUR</currency>
          <notional>1000000</notional>
          <frequency>12m</frequency>
          <dayCount>Actual/365</dayCount>
          <interestCalculation>Adjusted</interestCalculation>
          <businessDayConvention>Modified Following</businessDayConvention>
          <scheduleGenerationDirection>Backward</scheduleGenerationDirection>
          <endOfMonth>true</endOfMonth>
          <isIMM>true</isIMM>
          <paymentCalendars>
            <calendar type="bank">
              <id scheme="CountryISO2">FD</id>
            </calendar>
            <calendar>
              <id scheme="CountryISO2">EN</id>
            </calendar>
          </paymentCalendars>
          <stubPeriodType>LongCoupon</stubPeriodType>
          <resetFrequency/>
          <compoundingMethod/>
          <resetLag/>
          <resetType>InAdvance</resetType>
          <stubPeriodCouponAdjustment>LegIndex</stubPeriodCouponAdjustment>
          <fixingCalendars/>
          <fixingIndex>
            <id scheme="BLOOMBERG_TICKER">EU0003M Curncy</id>
            <rateType>IBOR</rateType>
          </fixingIndex>
          <spread>5.25</spread>
          <gearing>-3</gearing>
        </floatingLeg>
      </legs>


    </swapTrade>

    <!-- an fx option -->
    <fxOptionTrade id="t2">
      <externalSystemId>
        <id scheme="External">IdFromExternalSystem</id>
      </externalSystemId>
      <tradeDate>2013-01-20</tradeDate>
      <maturityDate>2018-01-31</maturityDate>
      <counterparty>
        <id scheme="Cpty">GOLDMAN</id>
      </counterparty>
      <additionalCashflows>
        <additionalCashflow type="premium">
          <counterparty>
            <id scheme="CParty">xyz</id>
          </counterparty>
          <monetaryAmount currency="EUR">150</monetaryAmount>
          <cashflowDate>2013-01-22</cashflowDate>
        </additionalCashflow>
      </additionalCashflows>
      <optionType>Put</optionType>
      <buySell>Buy</buySell>
      <currencyPair>EUR/USD</currencyPair>
      <optionCurrency>EUR</optionCurrency>
      <strike>1.9</strike>
      <fxExpiry>
        <expiryDate>2018-01-31</expiryDate>
        <expiryCutoff>ECB|10am NY</expiryCutoff>
        <expiryCalendars>
          <calendar type="bank">
            <id scheme="CountryISO2">FD</id>
          </calendar>
        </expiryCalendars>
      </fxExpiry>
      <paymentCalendars>
        <calendar type="bank">
          <id scheme="CountryISO2">FD</id>
        </calendar>
      </paymentCalendars>
      <notional>1000000</notional>
      <notionalCurrency>EUR</notionalCurrency>
      <settlementType>CashSettled</settlementType>
      <settlementCurrency>USD</settlementCurrency>

      <exerciseType>European</exerciseType>
    </fxOptionTrade>
  </trades>

  <!--
  POSITIONS SECTION
  A list of positions. Each references the id of a trade declared above.
  -->
  <positions>
    <position id="p1">
      <quantity>1</quantity>
      <trades>
        <trade ref="t2"/>
      </trades>
    </position>
  </positions>


  <!--
  PORTFOLIOS SECTION
  A list of portfolios. Each can include a subset of the trades and positions declared above.
  -->
  <portfolios>

    <portfolio name="fx_all">
      <positions>
        <position ref="p1"/>
      </positions>
      <trades>
        <trade ref="t1"/>
      </trades>
    </portfolio>

  </portfolios>

</og-portfolio><commit_msg>[PLAT-3870] updated to match xml on wiki<commit_after><?xml version="1.0" encoding="UTF-8"?>
<og-portfolio schemaVersion="1.0" xmlns="http://www.opengamma.com/portfolios"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.opengamma.com/portfolios">
  
  <trades>
    
    <!--
    TRADES SECTION
    A list of trades. Each element can be a trade of any type and must declare an id attribute.
    -->
    
    <!-- a xccy swap -->
    <swapTrade id="t1">
      <externalSystemId>
        <id scheme="External">IdFromExternalSystem</id>
      </externalSystemId>
      <tradeDate>2013-01-20</tradeDate>
      <maturityDate>2018-01-31</maturityDate>
      <counterparty>
        <id scheme="Cpty">GOLDMAN</id>
      </counterparty>
      <effectiveDate>2013-02-01</effectiveDate>
      
      <legs>
        <floatingLeg>
          <payReceive>Pay</payReceive>
          <currency>USD</currency>
          <notional>1000000</notional>
          <frequency>12m</frequency>
          <dayCount>Actual/365</dayCount>
          <interestCalculation>Adjusted</interestCalculation>
          <businessDayConvention>Modified Following</businessDayConvention>
          <scheduleGenerationDirection>Backward</scheduleGenerationDirection>
          <endOfMonth>true</endOfMonth>
          <isIMM>true</isIMM>
          <paymentCalendars>
            <calendar type="bank">
              <id scheme="CountryISO2">FD</id>
            </calendar>
            <calendar>
              <id scheme="CountryISO2">EN</id>
            </calendar>
          </paymentCalendars>
          <stubPeriodType>LongCoupon</stubPeriodType>
          <resetFrequency/>
          <compoundingMethod/>
          <resetLag/>
          <resetType>InAdvance</resetType>
          <stubPeriodCouponAdjustment>LegIndex</stubPeriodCouponAdjustment>
          <fixingCalendars/>
          <fixingIndex>
            <id scheme="BLOOMBERG_TICKER">US0003M Curncy</id>
            <rateType>IBOR</rateType>
          </fixingIndex>
        </floatingLeg>
        
        <floatingLeg>
          <payReceive>Receive</payReceive>
          <currency>EUR</currency>
          <notional>1000000</notional>
          <frequency>12m</frequency>
          <dayCount>Actual/365</dayCount>
          <interestCalculation>Adjusted</interestCalculation>
          <businessDayConvention>Modified Following</businessDayConvention>
          <scheduleGenerationDirection>Backward</scheduleGenerationDirection>
          <endOfMonth>true</endOfMonth>
          <isIMM>true</isIMM>
          <paymentCalendars>
            <calendar type="bank">
              <id scheme="CountryISO2">FD</id>
            </calendar>
            <calendar>
              <id scheme="CountryISO2">EN</id>
            </calendar>
          </paymentCalendars>
          <stubPeriodType>LongCoupon</stubPeriodType>
          <resetFrequency/>
          <compoundingMethod/>
          <resetLag/>
          <resetType>InAdvance</resetType>
          <stubPeriodCouponAdjustment>LegIndex</stubPeriodCouponAdjustment>
          <fixingCalendars/>
          <fixingIndex>
            <id scheme="BLOOMBERG_TICKER">EU0003M Curncy</id>
            <rateType>IBOR</rateType>
          </fixingIndex>
          <spread>5.25</spread>
          <gearing>-3</gearing>
        </floatingLeg>
      </legs>
      
      
    </swapTrade>
    
    <!-- an fx option -->
    <fxOptionTrade id="t2">
      <externalSystemId>
        <id scheme="External">IdFromExternalSystem</id>
      </externalSystemId>
      <tradeDate>2013-01-20</tradeDate>
      <maturityDate>2018-01-31</maturityDate>
      <counterparty>
        <id scheme="Cpty">GOLDMAN</id>
      </counterparty>
      <additionalCashflows>
        <additionalCashflow type="premium">
          <counterparty>
            <id scheme="CParty">xyz</id>
          </counterparty>
          <monetaryAmount currency="EUR">150</monetaryAmount>
          <cashflowDate>2013-01-22</cashflowDate>
        </additionalCashflow>
      </additionalCashflows>
      <optionType>Put</optionType>
      <buySell>Buy</buySell>
      <currencyPair>EUR/USD</currencyPair>
      <optionCurrency>EUR</optionCurrency>
      <strike>1.9</strike>
      <fxExpiry>
        <expiryDate>2018-01-31</expiryDate>
        <expiryCutoff>ECB|10am NY</expiryCutoff>
        <expiryCalendars>
          <calendar type="bank">
            <id scheme="CountryISO2">FD</id>
          </calendar>
        </expiryCalendars>
      </fxExpiry>
      <paymentCalendars>
        <calendar type="bank">
          <id scheme="CountryISO2">FD</id>
        </calendar>
      </paymentCalendars>
      <notional>1000000</notional>
      <notionalCurrency>EUR</notionalCurrency>
      <settlementType>CashSettled</settlementType>
      <settlementCurrency>USD</settlementCurrency>
      
      <exerciseType>European</exerciseType>
    </fxOptionTrade>
  </trades>
  
  <!--
  POSITIONS SECTION
  A list of positions. Each references the id of a trade declared above.
  -->
  <positions>
    <position id="p1">
      <quantity>100</quantity>
      <trades>
        <trade ref="t2"/>
      </trades>
    </position>
  </positions>
  
  
  <!--
  PORTFOLIOS SECTION
  A list of portfolios. Each can include a subset of the trades and positions declared above.
  -->
  <portfolios>
    
    <portfolio name="FX trades">
      <positions>
        <position ref="p1"/>
      </positions>
      <trades>
        <trade ref="t1"/>
      </trades>
    </portfolio>
    
  </portfolios>
  
</og-portfolio>
{'fraction_non_alphanumeric': 0.12915229624251226, 'fraction_numerical': 0.023960791432201853, 'mean_word_length': 2.2843517138599108, 'pattern_counts': {'":': 0, '<': 425, '<?xml version=': 2, '>': 425, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5656090', 'n_tokens_mistral': 3674, 'n_tokens_neox': 3410, 'n_words': 486}