<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 id="org.sakaiproject.memory.api.MemoryService"
			class="org.sakaiproject.memory.impl.BasicMemoryService"
			init-method="init"
			destroy-method="destroy"
			singleton="true">

 		<lookup-method name="eventTrackingService" bean="org.sakaiproject.event.api.EventTrackingService" />
 		<lookup-method name="securityService" bean="org.sakaiproject.authz.api.SecurityService" />
 		<lookup-method name="usageSessionService" bean="org.sakaiproject.event.api.UsageSessionService" />

 		<property name="cacheLogging"><value>false</value></property>
 		
  		<property name="cacheManager"><ref bean="org.sakaiproject.memory.api.MemoryService.cacheManager"/></property>
	</bean>


	<bean id="org.sakaiproject.memory.api.MemoryService.cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
  		<property name="configLocation">
    	<value>classpath:org/sakaiproject/memory/api/ehcache.xml</value>
  		</property>
	</bean>

</beans><commit_msg>SAK-11440 http://bugs.sakaiproject.org/jira/browse/SAK-11440 enhance memory service with ehcache to provide LRU management and tie in with other caching (eg hibernate)<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 id="org.sakaiproject.memory.api.MemoryService"
			class="org.sakaiproject.memory.impl.BasicMemoryService"
			init-method="init"
			destroy-method="destroy"
			singleton="true">

 		<lookup-method name="eventTrackingService" bean="org.sakaiproject.event.api.EventTrackingService" />
 		<lookup-method name="securityService" bean="org.sakaiproject.authz.api.SecurityService" />
 		<lookup-method name="usageSessionService" bean="org.sakaiproject.event.api.UsageSessionService" />

 		<property name="cacheLogging"><value>false</value></property>
 		
  		<property name="cacheManager"><ref bean="org.sakaiproject.memory.api.MemoryService.cacheManager"/></property>
	</bean>


	<bean id="org.sakaiproject.memory.api.MemoryService.cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
  		<property name="configLocation">
    	<value>classpath:org/sakaiproject/memory/api/ehcache.xml</value>
  		</property>
	</bean>

	<bean id="org.sakaiproject.memory.MemoryService.mref_map" 
  			class="org.springframework.cache.ehcache.EhCacheFactoryBean">
  		<property name="cacheManager"><ref bean="org.sakaiproject.memory.api.MemoryService.cacheManager"/></property>
    	<property name="cacheName"><value>org.sakaiproject.memory.MemoryService.mref_map</value></property>
    	<property name="eternal" ><value>true</value></property>
    	<property name="maxElementsInMemory" ><value>1</value></property>
    	<property name="overflowToDisk"><value>true</value></property>
    	<property name="diskPersistent" ><value>false</value></property>
  	</bean>

</beans>
{'fraction_non_alphanumeric': 0.16061498200850508, 'fraction_numerical': 0.005561007523716062, 'mean_word_length': 5.647826086956521, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 2, '>': 72, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '1690053', 'n_tokens_mistral': 1083, 'n_tokens_neox': 988, 'n_words': 117}