<commit_before><?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns:mode="http://www.modeshape.org/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0">
    <!--
    Define the sources for the content.  These sources are directly accessible using the ModeShape-specific
    Graph API.
    -->
    <mode:sources>

        <mode:source jcr:name="In-Memory Store"
                     mode:classname="org.modeshape.graph.connector.inmemory.InMemoryRepositorySource"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
            <predefinedWorkspaceNames>system</predefinedWorkspaceNames>
            <predefinedWorkspaceNames>default</predefinedWorkspaceNames>
        </mode:source>

        <mode:source jcr:name="Infinispan Store"
                     mode:classname="org.modeshape.connector.infinispan.InfinispanSource"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
        </mode:source>

        <mode:source jcr:name="Disk-Based Store"
                     mode:classname="org.modeshape.connector.disk.DiskSource"
                     mode:repositoryRootPath="./target/diskRepositoryRoot"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
                     <mode:cachePolicy jcr:name="nodeCachePolicy" 
                     	mode:timeToLive="300" 
                     	mode:classname="org.modeshape.graph.connector.base.cache.InMemoryNodeCache$MapCachePolicy" /> 
        </mode:source>

        <mode:source jcr:name="File Store"
                     mode:classname="org.modeshape.connector.filesystem.FileSystemSource"
                     mode:workspaceRootPath="./target/fileRepositoryRoot"
                     mode:updatesAllowed="true"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
        </mode:source>
<!--
        <mode:source jcr:name="JPA Store"
                     mode:classname="org.modeshape.connector.store.jpa.JpaSource"
                     mode:autoGenerateSchema="create"
		        	mode:model="Simple"
		        	mode:dialect="${jpaSource.dialect}"
		        	mode:driverClassName="${jpaSource.driverClassName}"
		        	mode:username="${jpaSource.username}"
		        	mode:password="${<PASSWORD>Source.password}"
		        	mode:url="${jpaSource.url}"
		        	mode:maximumConnectionsInPool="${jpaSource.maximumConnectionsInPool}"
		        	mode:referentialIntegrityEnforced="${jpaSource.referentialIntegrityEnforced}"
		        	mode:largeValueSizeInBytes="${jpaSource.largeValueSizeInBytes}"
		        	mode:retryLimit="${jpaSource.retryLimit}"
		        	mode:compressData="${jpaSource.compressData}"
		        	mode:predefinedWorkspaceNames="default, otherWorkspace"
		        	mode:showSql="${jpaSource.showSql}"
		            mode:creatingWorkspacesAllowed="true"
                    mode:defaultWorkspaceName="default" >
        </mode:source>
-->
    </mode:sources>
</configuration><commit_msg>MODE-1209 Added JPA caching to the benchmark config<commit_after><?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns:mode="http://www.modeshape.org/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0">
    <!--
    Define the sources for the content.  These sources are directly accessible using the ModeShape-specific
    Graph API.
    -->
    <mode:sources>

        <mode:source jcr:name="In-Memory Store"
                     mode:classname="org.modeshape.graph.connector.inmemory.InMemoryRepositorySource"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
            <predefinedWorkspaceNames>system</predefinedWorkspaceNames>
            <predefinedWorkspaceNames>default</predefinedWorkspaceNames>
        </mode:source>

        <mode:source jcr:name="Infinispan Store"
                     mode:classname="org.modeshape.connector.infinispan.InfinispanSource"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
        </mode:source>

        <mode:source jcr:name="Disk-Based Store w/ cache"
                     mode:classname="org.modeshape.connector.disk.DiskSource"
                     mode:repositoryRootPath="./target/diskRepositoryRoot"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
                     <mode:cachePolicy jcr:name="nodeCachePolicy" 
                     	mode:timeToLive="300" 
                     	mode:classname="org.modeshape.graph.connector.base.cache.InMemoryNodeCache$MapCachePolicy" /> 
        </mode:source>

        <mode:source jcr:name="Disk-Based Store w/o cache"
                     mode:classname="org.modeshape.connector.disk.DiskSource"
                     mode:repositoryRootPath="./target/diskNoCacheRepositoryRoot"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
        </mode:source>

        <mode:source jcr:name="File Store"
                     mode:classname="org.modeshape.connector.filesystem.FileSystemSource"
                     mode:workspaceRootPath="./target/fileRepositoryRoot"
                     mode:updatesAllowed="true"
                     mode:retryLimit="3" mode:defaultWorkspaceName="default" >
        </mode:source>

<!--
        <mode:source jcr:name="JPA Store, no 2nd-Level Cache"
              mode:classname="org.modeshape.connector.store.jpa.JpaSource"
              mode:autoGenerateSchema="create"
		        	mode:model="Simple"
		        	mode:dialect="${jpaSource.dialect}"
		        	mode:driverClassName="${jpaSource.driverClassName}"
		        	mode:username="${jpaSource.username}"
		        	mode:password="${<PASSWORD>}"
		        	mode:url="${jpaSource.url}"
		        	mode:maximumConnectionsInPool="${jpaSource.maximumConnectionsInPool}"
		        	mode:referentialIntegrityEnforced="${jpaSource.referentialIntegrityEnforced}"
		        	mode:largeValueSizeInBytes="${jpaSource.largeValueSizeInBytes}"
		        	mode:retryLimit="${jpaSource.retryLimit}"
		        	mode:compressData="${jpaSource.compressData}"
		        	mode:predefinedWorkspaceNames="default, otherWorkspace"
		        	mode:showSql="${jpaSource.showSql}"
		          mode:creatingWorkspacesAllowed="true"
              mode:defaultWorkspaceName="default" >
        </mode:source>

        <mode:source jcr:name="JPA Store, Infinispan 2nd-level Cache"
              mode:classname="org.modeshape.connector.store.jpa.JpaSource"
              mode:autoGenerateSchema="create"
		        	mode:model="Simple"
		        	mode:dialect="${jpaSource.dialect}"
		        	mode:driverClassName="${jpaSource.driverClassName}"
		        	mode:username="${jpaSource.username}"
		        	mode:password="${jpaSource.password}"
		        	mode:url="${jpaSource.url}"
		        	mode:maximumConnectionsInPool="${jpaSource.maximumConnectionsInPool}"
		        	mode:referentialIntegrityEnforced="${jpaSource.referentialIntegrityEnforced}"
		        	mode:largeValueSizeInBytes="${jpaSource.largeValueSizeInBytes}"
		        	mode:retryLimit="${jpaSource.retryLimit}"
		        	mode:compressData="${jpaSource.compressData}"
		        	mode:predefinedWorkspaceNames="default, otherWorkspace"
		        	mode:showSql="${jpaSource.showSql}"
		          mode:creatingWorkspacesAllowed="true"
              mode:defaultWorkspaceName="default"
              mode:jpaPersistenceUnitName="modeshape-connector-jpa-infinispan">
        </mode:source>

        <mode:source jcr:name="JPA Store, Ehcache 2nd-level Cache"
              mode:classname="org.modeshape.connector.store.jpa.JpaSource"
              mode:autoGenerateSchema="create"
		        	mode:model="Simple"
		        	mode:dialect="${jpaSource.dialect}"
		        	mode:driverClassName="${jpaSource.driverClassName}"
		        	mode:username="${jpaSource.username}"
		        	mode:password="${<PASSWORD>}"
		        	mode:url="${jpaSource.url}"
		        	mode:maximumConnectionsInPool="${jpaSource.maximumConnectionsInPool}"
		        	mode:referentialIntegrityEnforced="${jpaSource.referentialIntegrityEnforced}"
		        	mode:largeValueSizeInBytes="${jpaSource.largeValueSizeInBytes}"
		        	mode:retryLimit="${jpaSource.retryLimit}"
		        	mode:compressData="${jpaSource.compressData}"
		        	mode:predefinedWorkspaceNames="default, otherWorkspace"
		        	mode:showSql="${jpaSource.showSql}"
		          mode:creatingWorkspacesAllowed="true"
              mode:defaultWorkspaceName="default"
              mode:jpaPersistenceUnitName="modeshape-connector-jpa-ehcache">
        </mode:source>

        <mode:source jcr:name="JPA Store, Simple 2nd-level Cache"
              mode:classname="org.modeshape.connector.store.jpa.JpaSource"
              mode:autoGenerateSchema="create"
		        	mode:model="Simple"
		        	mode:dialect="${jpaSource.dialect}"
		        	mode:driverClassName="${jpaSource.driverClassName}"
		        	mode:username="${jpaSource.username}"
		        	mode:password="${<PASSWORD>}"
		        	mode:url="${jpaSource.url}"
		        	mode:maximumConnectionsInPool="${jpaSource.maximumConnectionsInPool}"
		        	mode:referentialIntegrityEnforced="${jpaSource.referentialIntegrityEnforced}"
		        	mode:largeValueSizeInBytes="${jpaSource.largeValueSizeInBytes}"
		        	mode:retryLimit="${jpaSource.retryLimit}"
		        	mode:compressData="${jpaSource.compressData}"
		        	mode:predefinedWorkspaceNames="default, otherWorkspace"
		        	mode:showSql="${jpaSource.showSql}"
		          mode:creatingWorkspacesAllowed="true"
              mode:defaultWorkspaceName="default"
              mode:jpaPersistenceUnitName="modeshape-connector-jpa-simple">
        </mode:source>
-->
    </mode:sources>
</configuration>
{'fraction_non_alphanumeric': 0.12138429752066116, 'fraction_numerical': 0.003822314049586777, 'mean_word_length': 2.7639968895800933, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 2, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '4336875', 'n_tokens_mistral': 2848, 'n_tokens_neox': 2667, 'n_words': 267}