<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
      
  <!-- Property file configuration -->
  <bean id="demoCalcNodeProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreUnresolvablePlaceholders" value="true" />
    <property name="locations">
      <list>
        <value>${opengamma.engine.calcnode.baseurl}configuration.properties</value>
      </list>
    </property>
  </bean>

  <!-- A global Fudge context configured with all of the relevant builders --> 
  <bean id="fudgeContext" class="com.opengamma.util.fudgemsg.OpenGammaFudgeContext" factory-method="getInstance" />
  
  <!-- Global EH Cache Manager -->
  <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    <property name="shared" value="true"/>
  </bean>

  <!-- Historical data source -->
  <bean id="historicalDataSource" class="com.opengamma.core.historicaldata.impl.EHCachingHistoricalDataSource">
    <constructor-arg>
      <bean class="com.opengamma.financial.historicaldata.rest.RemoteHistoricalDataSource">
        <constructor-arg ref="fudgeContext" />
        <constructor-arg>
          <bean class="com.opengamma.transport.jaxrs.RestTarget">
            <constructor-arg ref="fudgeContext" />
            <constructor-arg>
              <bean class="com.opengamma.transport.jaxrs.RemoteEndPointDescriptionProvider">
                <property name="uri" value="${opengamma.engine.configuration.url}/historicalData" />
              </bean>
            </constructor-arg>
          </bean>
        </constructor-arg>
      </bean>
    </constructor-arg>
    <constructor-arg ref="cacheManager" />
  </bean>
  
  <!-- Security Source -->
  <bean id="securitySource" class="com.opengamma.financial.security.EHCachingFinancialSecuritySource">
    <constructor-arg>
      <bean class="com.opengamma.financial.rest.security.RemoteFinancialSecuritySource">
        <constructor-arg ref="fudgeContext" />
        <constructor-arg>
          <bean class="com.opengamma.transport.jaxrs.RestTarget">
            <constructor-arg ref="fudgeContext" />
            <constructor-arg>
              <bean class="com.opengamma.transport.jaxrs.RemoteEndPointDescriptionProvider">
                <property name="uri" value="${opengamma.engine.configuration.url}/securitySource" />
              </bean>
            </constructor-arg>
          </bean>
        </constructor-arg>
      </bean>
    </constructor-arg>
    <constructor-arg ref="cacheManager" />
  </bean>
  
  <!-- Position Source -->
  <bean id="positionSource" class="com.opengamma.core.position.impl.EHCachingPositionSource">
    <constructor-arg>
      <bean class="com.opengamma.engine.position.rest.RemotePositionSource">
        <constructor-arg ref="fudgeContext" />
        <constructor-arg>
          <bean class="com.opengamma.transport.jaxrs.RestTarget">
            <constructor-arg ref="fudgeContext" />
            <constructor-arg>
              <bean class="com.opengamma.transport.jaxrs.RemoteEndPointDescriptionProvider">
                <property name="uri" value="${opengamma.engine.configuration.url}/positionSource" />
              </bean>
            </constructor-arg>
          </bean>
        </constructor-arg>
			</bean>
		</constructor-arg>
    <constructor-arg ref="cacheManager" />
  </bean>
  
  <!-- Region source -->
  <!-- TODO [FIN-202] -->
  <bean id="regionFileReader" class="com.opengamma.master.region.impl.RegionFileReader" factory-method="createPopulated" />
  <bean id="regionMaster" factory-bean="regionFileReader" factory-method="getRegionMaster" />
  <bean id="regionSource" factory-bean="regionFileReader" factory-method="getRegionSource" />
  
  <!-- Conventions -->
  <!-- TODO [FIN-203] -->
  <bean id="conventionBundleSource" class="com.opengamma.financial.convention.DefaultConventionBundleSource">
    <constructor-arg>
      <bean class="com.opengamma.financial.convention.InMemoryConventionBundleMaster"/>
    </constructor-arg>
  </bean>
  
  <!-- Config Source -->
  <!-- TODO [ENG-273] -->
  <bean id="configSource" class="com.opengamma.master.config.impl.MasterConfigSource">
    <constructor-arg>
		  <bean class="com.opengamma.masterdb.config.DbConfigMaster">
		    <constructor-arg>
				  <bean class="com.opengamma.util.db.DbSourceFactoryBean">
				    <property name="transactionIsolationLevelName" value="ISOLATION_SERIALIZABLE" />
				    <property name="transactionPropagationBehaviorName" value="PROPAGATION_REQUIRED" />
            <property name="name" value="CalcNodeConfig"/>
				    <property name="dataSource">
						  <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
						    <property name="driverClassName">
						      <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
						        <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.driver" />
						      </bean>
						    </property>
						    <property name="url">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.url" />
                  </bean>
                </property>
						    <property name="username">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.username" />
                  </bean>
                </property>
						    <property name="password">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.password" />
                  </bean>
                </property>
						  </bean>
				    </property>
				    <property name="dialect">
	            <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
	              <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.db.dbhelper"/>
	            </bean>
	          </property>
				  </bean>
        </constructor-arg>  
		    <property name="identifierScheme">
	        <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
	          <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.db.configmaster.scheme" />
	        </bean>
	      </property>
		  </bean>
    </constructor-arg>
  </bean>
  
  <!-- Exchange Source -->
  <!-- TODO [FIN-204] -->
  <bean id="exchangeSource" class="com.opengamma.master.exchange.impl.MasterExchangeSource">
    <constructor-arg>
		  <bean class="com.opengamma.masterdb.exchange.DbExchangeMaster">
		    <constructor-arg>
				  <bean class="com.opengamma.util.db.DbSourceFactoryBean">
            <property name="transactionIsolationLevelName" value="ISOLATION_SERIALIZABLE" />
            <property name="transactionPropagationBehaviorName" value="PROPAGATION_REQUIRED" />
				    <property name="name" value="CalcNodeExchange"/>
				    <property name="dataSource">
		          <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
		            <property name="driverClassName">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.driver" />
                  </bean>
                </property>
		            <property name="url">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.url" />
                  </bean>
                </property>
		            <property name="username">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.username" />
                  </bean>
                </property>
		            <property name="password">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.password" />
                  </bean>
                </property>
		          </bean>
				    </property>
				    <property name="dialect">
						  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
						    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.db.dbhelper"/>
						  </bean>
						</property>
    		  </bean>
        </constructor-arg>
		    <property name="identifierScheme">
	        <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
	          <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.refdata.db.exchangemaster.scheme" />
	        </bean>
	      </property>
		  </bean>
    </constructor-arg>
  </bean>
  
  <!-- Holiday Source -->
  <!-- TODO [FIN-205] -->
  <bean id="holidaySource" class="com.opengamma.master.holiday.impl.EHCachingMasterHolidaySource">
    <constructor-arg>
		  <bean class="com.opengamma.masterdb.holiday.DbHolidayMaster">
		    <constructor-arg>
          <bean class="com.opengamma.util.db.DbSourceFactoryBean">
            <property name="transactionIsolationLevelName" value="ISOLATION_SERIALIZABLE" />
            <property name="transactionPropagationBehaviorName" value="PROPAGATION_REQUIRED" />
            <property name="name" value="CalcNodeHoliday"/>
            <property name="dataSource">
              <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
                <property name="driverClassName">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.driver" />
                  </bean>
                </property>
                <property name="url">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.url" />
                  </bean>
                </property>
                <property name="username">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.username" />
                  </bean>
                </property>
                <property name="password">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.password" />
                  </bean>
                </property>
              </bean><commit_msg>Correct JIRA numbers for outstanding "remote access" components needed by calculation nodes.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
      
  <!-- Property file configuration -->
  <bean id="demoCalcNodeProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreUnresolvablePlaceholders" value="true" />
    <property name="locations">
      <list>
        <value>${opengamma.engine.calcnode.baseurl}configuration.properties</value>
      </list>
    </property>
  </bean>

  <!-- A global Fudge context configured with all of the relevant builders --> 
  <bean id="fudgeContext" class="com.opengamma.util.fudgemsg.OpenGammaFudgeContext" factory-method="getInstance" />
  
  <!-- Global EH Cache Manager -->
  <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
    <property name="shared" value="true"/>
  </bean>

  <!-- Historical data source -->
  <bean id="historicalDataSource" class="com.opengamma.core.historicaldata.impl.EHCachingHistoricalDataSource">
    <constructor-arg>
      <bean class="com.opengamma.financial.historicaldata.rest.RemoteHistoricalDataSource">
        <constructor-arg ref="fudgeContext" />
        <constructor-arg>
          <bean class="com.opengamma.transport.jaxrs.RestTarget">
            <constructor-arg ref="fudgeContext" />
            <constructor-arg>
              <bean class="com.opengamma.transport.jaxrs.RemoteEndPointDescriptionProvider">
                <property name="uri" value="${opengamma.engine.configuration.url}/historicalData" />
              </bean>
            </constructor-arg>
          </bean>
        </constructor-arg>
      </bean>
    </constructor-arg>
    <constructor-arg ref="cacheManager" />
  </bean>
  
  <!-- Security Source -->
  <bean id="securitySource" class="com.opengamma.financial.security.EHCachingFinancialSecuritySource">
    <constructor-arg>
      <bean class="com.opengamma.financial.rest.security.RemoteFinancialSecuritySource">
        <constructor-arg ref="fudgeContext" />
        <constructor-arg>
          <bean class="com.opengamma.transport.jaxrs.RestTarget">
            <constructor-arg ref="fudgeContext" />
            <constructor-arg>
              <bean class="com.opengamma.transport.jaxrs.RemoteEndPointDescriptionProvider">
                <property name="uri" value="${opengamma.engine.configuration.url}/securitySource" />
              </bean>
            </constructor-arg>
          </bean>
        </constructor-arg>
      </bean>
    </constructor-arg>
    <constructor-arg ref="cacheManager" />
  </bean>
  
  <!-- Position Source -->
  <bean id="positionSource" class="com.opengamma.core.position.impl.EHCachingPositionSource">
    <constructor-arg>
      <bean class="com.opengamma.engine.position.rest.RemotePositionSource">
        <constructor-arg ref="fudgeContext" />
        <constructor-arg>
          <bean class="com.opengamma.transport.jaxrs.RestTarget">
            <constructor-arg ref="fudgeContext" />
            <constructor-arg>
              <bean class="com.opengamma.transport.jaxrs.RemoteEndPointDescriptionProvider">
                <property name="uri" value="${opengamma.engine.configuration.url}/positionSource" />
              </bean>
            </constructor-arg>
          </bean>
        </constructor-arg>
			</bean>
		</constructor-arg>
    <constructor-arg ref="cacheManager" />
  </bean>
  
  <!-- Region source -->
  <!-- TODO [PLAT-674] -->
  <bean id="regionFileReader" class="com.opengamma.master.region.impl.RegionFileReader" factory-method="createPopulated" />
  <bean id="regionMaster" factory-bean="regionFileReader" factory-method="getRegionMaster" />
  <bean id="regionSource" factory-bean="regionFileReader" factory-method="getRegionSource" />
  
  <!-- Conventions -->
  <!-- TODO [PLAT-637] -->
  <bean id="conventionBundleSource" class="com.opengamma.financial.convention.DefaultConventionBundleSource">
    <constructor-arg>
      <bean class="com.opengamma.financial.convention.InMemoryConventionBundleMaster"/>
    </constructor-arg>
  </bean>
  
  <!-- Config Source -->
  <!-- TODO [PLAT-432] -->
  <bean id="configSource" class="com.opengamma.master.config.impl.MasterConfigSource">
    <constructor-arg>
		  <bean class="com.opengamma.masterdb.config.DbConfigMaster">
		    <constructor-arg>
				  <bean class="com.opengamma.util.db.DbSourceFactoryBean">
				    <property name="transactionIsolationLevelName" value="ISOLATION_SERIALIZABLE" />
				    <property name="transactionPropagationBehaviorName" value="PROPAGATION_REQUIRED" />
            <property name="name" value="CalcNodeConfig"/>
				    <property name="dataSource">
						  <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
						    <property name="driverClassName">
						      <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
						        <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.driver" />
						      </bean>
						    </property>
						    <property name="url">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.url" />
                  </bean>
                </property>
						    <property name="username">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.username" />
                  </bean>
                </property>
						    <property name="password">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.jdbc.password" />
                  </bean>
                </property>
						  </bean>
				    </property>
				    <property name="dialect">
	            <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
	              <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.db.dbhelper"/>
	            </bean>
	          </property>
				  </bean>
        </constructor-arg>  
		    <property name="identifierScheme">
	        <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
	          <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.config.db.configmaster.scheme" />
	        </bean>
	      </property>
		  </bean>
    </constructor-arg>
  </bean>
  
  <!-- Exchange Source -->
  <!-- TODO [PLAT-670] -->
  <bean id="exchangeSource" class="com.opengamma.master.exchange.impl.MasterExchangeSource">
    <constructor-arg>
		  <bean class="com.opengamma.masterdb.exchange.DbExchangeMaster">
		    <constructor-arg>
				  <bean class="com.opengamma.util.db.DbSourceFactoryBean">
            <property name="transactionIsolationLevelName" value="ISOLATION_SERIALIZABLE" />
            <property name="transactionPropagationBehaviorName" value="PROPAGATION_REQUIRED" />
				    <property name="name" value="CalcNodeExchange"/>
				    <property name="dataSource">
		          <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
		            <property name="driverClassName">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.driver" />
                  </bean>
                </property>
		            <property name="url">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.url" />
                  </bean>
                </property>
		            <property name="username">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.username" />
                  </bean>
                </property>
		            <property name="password">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.password" />
                  </bean>
                </property>
		          </bean>
				    </property>
				    <property name="dialect">
						  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
						    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.db.dbhelper"/>
						  </bean>
						</property>
    		  </bean>
        </constructor-arg>
		    <property name="identifierScheme">
	        <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
	          <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.refdata.db.exchangemaster.scheme" />
	        </bean>
	      </property>
		  </bean>
    </constructor-arg>
  </bean>
  
  <!-- Holiday Source -->
  <!-- TODO [PLAT-667] -->
  <bean id="holidaySource" class="com.opengamma.master.holiday.impl.EHCachingMasterHolidaySource">
    <constructor-arg>
		  <bean class="com.opengamma.masterdb.holiday.DbHolidayMaster">
		    <constructor-arg>
          <bean class="com.opengamma.util.db.DbSourceFactoryBean">
            <property name="transactionIsolationLevelName" value="ISOLATION_SERIALIZABLE" />
            <property name="transactionPropagationBehaviorName" value="PROPAGATION_REQUIRED" />
            <property name="name" value="CalcNodeHoliday"/>
            <property name="dataSource">
              <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
                <property name="driverClassName">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.driver" />
                  </bean>
                </property>
                <property name="url">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.url" />
                  </bean>
                </property>
                <property name="username">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.username" />
                  </bean>
                </property>
                <property name="password">
                  <bean class="com.opengamma.transport.jaxrs.RemoteStringFactoryBean">
                    <property name="uri" value="${opengamma.engine.configuration.dvi135}/opengamma.financial.jdbc.password" />
                  </bean>
                </property>
              </bean>
{'fraction_non_alphanumeric': 0.14061533020953054, 'fraction_numerical': 0.005835027848996552, 'mean_word_length': 2.5767588932806325, 'pattern_counts': {'":': 0, '<': 441, '<?xml version=': 2, '>': 441, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '5041597', 'n_tokens_mistral': 6732, 'n_tokens_neox': 6109, 'n_words': 830}