<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>
  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="ignoreUnresolvablePlaceholders" value="true" />
    <property name="location">
      <value>classpath:marketData-${opengamma.platform.runmode}.properties</value>
    </property>
  </bean>  
  
  <bean id="marketDataProvider" class="com.opengamma.engine.marketdata.InMemoryLKVMarketDataProvider">
    <constructor-arg ref="sharedSecuritySource" />
  </bean>

  <bean id="simulatedMarketDataGenerator" class="com.opengamma.examples.marketdata.SimulatedMarketDataGenerator" init-method="start">
    <constructor-arg ref="marketDataProvider" />
    <constructor-arg value="${opengamma.example.marketdata.file}" />
  </bean>
  
  <!-- User market data -->
  <bean id="userMarketDataProviderFactory" class="com.opengamma.engine.marketdata.UserMarketDataProviderFactoryFactoryBean">
    <property name="snapshotSource" ref="combinedSnapshotSource" />
  </bean>

  <!-- Combined market data -->
  <bean id="combinedMarketDataProviderFactory" class="com.opengamma.engine.marketdata.CombinedMarketDataProviderFactoryFactoryBean">
  </bean>
  
  
  <bean id="marketDataProviderFactory" class="com.opengamma.engine.marketdata.SingletonMarketDataProviderFactory">
    <constructor-arg ref="marketDataProvider"/>
  </bean>
  
  <bead id="liveMarketDataSourceRegistry" class="com.opengamma.engine.marketdata.DefaultLiveMarketDataSourceRegistry" />
  
  <!-- MarketDataProvider resolver -->
  <bean id="marketDataProviderResolver" class="com.opengamma.engine.marketdata.resolver.TypeBasedMarketDataProviderResolverFactoryBean">
    <property name="typesAndProviders">
      <map>
        <entry key="com.opengamma.engine.marketdata.spec.LiveMarketDataSpecification" value-ref="marketDataProviderFactory" />
        <entry key="com.opengamma.engine.marketdata.spec.UserMarketDataSpecification" value-ref="userMarketDataProviderFactory" />
        <entry key="com.opengamma.engine.marketdata.spec.CombinedMarketDataSpecification" value-ref="combinedMarketDataProviderFactory" />
      </map>
    </property>
  </bean>
  
  <!-- Hook up the circular dependency -->
  <bean id="circularMarketDataProviderFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
   <property name="targetObject"><ref local="combinedMarketDataProviderFactory"/></property>
   <property name="targetMethod"><value>setUnderlying</value></property>
   <property name="arguments">
     <list>
     <ref bean="marketDataProviderResolver"/>
     </list>
   </property>
  </bean>
</beans><commit_msg>Typo in spring config<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>
  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="ignoreUnresolvablePlaceholders" value="true" />
    <property name="location">
      <value>classpath:marketData-${opengamma.platform.runmode}.properties</value>
    </property>
  </bean>  
  
  <bean id="marketDataProvider" class="com.opengamma.engine.marketdata.InMemoryLKVMarketDataProvider">
    <constructor-arg ref="sharedSecuritySource" />
  </bean>

  <bean id="simulatedMarketDataGenerator" class="com.opengamma.examples.marketdata.SimulatedMarketDataGenerator" init-method="start">
    <constructor-arg ref="marketDataProvider" />
    <constructor-arg value="${opengamma.example.marketdata.file}" />
  </bean>
  
  <!-- User market data -->
  <bean id="userMarketDataProviderFactory" class="com.opengamma.engine.marketdata.UserMarketDataProviderFactoryFactoryBean">
    <property name="snapshotSource" ref="combinedSnapshotSource" />
  </bean>

  <!-- Combined market data -->
  <bean id="combinedMarketDataProviderFactory" class="com.opengamma.engine.marketdata.CombinedMarketDataProviderFactoryFactoryBean">
  </bean>
  
  
  <bean id="marketDataProviderFactory" class="com.opengamma.engine.marketdata.SingletonMarketDataProviderFactory">
    <constructor-arg ref="marketDataProvider"/>
  </bean>
  
  <bean id="liveMarketDataSourceRegistry" class="com.opengamma.engine.marketdata.DefaultLiveMarketDataSourceRegistry" />
  
  <!-- MarketDataProvider resolver -->
  <bean id="marketDataProviderResolver" class="com.opengamma.engine.marketdata.resolver.TypeBasedMarketDataProviderResolverFactoryBean">
    <property name="typesAndProviders">
      <map>
        <entry key="com.opengamma.engine.marketdata.spec.LiveMarketDataSpecification" value-ref="marketDataProviderFactory" />
        <entry key="com.opengamma.engine.marketdata.spec.UserMarketDataSpecification" value-ref="userMarketDataProviderFactory" />
        <entry key="com.opengamma.engine.marketdata.spec.CombinedMarketDataSpecification" value-ref="combinedMarketDataProviderFactory" />
      </map>
    </property>
  </bean>
  
  <!-- Hook up the circular dependency -->
  <bean id="circularMarketDataProviderFactory" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
   <property name="targetObject"><ref local="combinedMarketDataProviderFactory"/></property>
   <property name="targetMethod"><value>setUnderlying</value></property>
   <property name="arguments">
     <list>
     <ref bean="marketDataProviderResolver"/>
     </list>
   </property>
  </bean>
</beans>
{'fraction_non_alphanumeric': 0.13959390862944163, 'fraction_numerical': 0.0010877447425670776, 'mean_word_length': 5.460187353629976, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 2, '>': 111, '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': '5319373', 'n_tokens_mistral': 1627, 'n_tokens_neox': 1568, 'n_words': 208}