<commit_before><?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">

   <interceptor xmlns="urn:jboss:aop-beans:1.0" name="JndiAspect" class="org.jboss.aop.microcontainer.aspects.jndi.JndiIntroduction">
      <property name="env">
           <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
              <entry><key>java.naming.factory.initial</key><value>org.jnp.interfaces.NamingContextFactory</value></entry>
           </map>
      </property>
   </interceptor>
   
   <introduction xmlns="urn:jboss:aop-beans:1.0" class="@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding">
      <interfaces>org.jboss.kernel.spi.dependency.KernelControllerContextAware</interfaces>
   </introduction>

   <bind xmlns="urn:jboss:aop-beans:1.0" pointcut="execution(* $instanceof{org.jboss.kernel.spi.dependency.KernelControllerContextAware}->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
      <interceptor-ref name="JndiAspect"/>
   </bind>
    
    <!-- Teiid Services -->
    <bean name="AuthorizationService" class="org.teiid.services.AuthorizationServiceImpl">
        <property name="VDBRepository"><inject bean="VDBRepository"/></property>
        <!-- Turn on checking the entitlements on resources based on the roles defined in VDB -->
        <property name="useEntitlements" class="java.lang.Boolean">false</property>
    </bean>
    
    <bean name="SessionService" class="org.teiid.services.SessionServiceImpl">
        <property name="VDBRepository"><inject bean="VDBRepository"/></property>
        <property name="securityHelper"><inject bean="SecurityHelper"/></property>
        <!-- Comma separated list of domains to be used to login into Teiid using JDBC connection-->
        <property name="securityDomains">teiid-security</property>
        <!-- security domain to be used with Admin API (please do not change this, as this should be same as profile service) -->
        <property name="adminSecurityDomain">jmx-console</property>
        <!-- Maximum number of sessions allowed by the system (default 5000) -->
        <property name="sessionMaxLimit">5000</property>
        <!-- Max allowed time before the session is terminated by the system, 0 indicates unlimited (default 0) -->
        <property name="sessionExpirationTimeLimit">0</property>
    </bean>
    
    <bean name="BufferService" class="org.teiid.services.BufferServiceImpl">
        <property name="contextCache"><inject bean="ContextCache"/></property>
        <property name="cacheFactory"><inject bean="TeiidCache"/></property>
        <!-- Use disk for buffer management -->
        <property name="useDisk">true</property>
        <!-- Directory location for the buffer files -->
        <property name="diskDirectory">${jboss.server.temp.dir}/teiid</property>
        <!-- The max row count of a batch sent internally within the query processor. Should be <= the connectorBatchSize. (default 512) -->
        <property name="processorBatchSize">512</property>
        <!-- The max row count of a batch from a connector. Should be even multiple of processorBatchSize. (default 1024) -->
        <property name="connectorBatchSize">1024</property>
        <!-- 
            The number of batch columns to allow in memory (default 16384).  
            This value should be set lower or higher depending on the available memory to Teiid in the VM.  
            16384 is considered a good default for a dedicated 32-bit VM running Teiid with a 1 gig heap.        
         -->
        <property name="maxReserveBatchColumns">16384</property>
        <!-- 
            The number of batch columns guaranteed to a processing operation.  Set this value lower if the workload typically
            processes larger numbers of concurrent queries with large intermediate results from operations such as sorting, 
            grouping, etc. (default 128)        
         -->
        <property name="maxProcessingBatchesColumns">128</property>
        <!--  Max File size in MB (default 2GB)-->
        <property name="maxFileSize">2048</property> 
        <!-- Max open buffer files (default 64) -->
        <property name="maxOpenFiles">64</property>
    </bean>
    
    <bean name="RuntimeEngineDeployer" class="org.teiid.jboss.deployers.RuntimeEngineDeployer">
        <annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="teiid/engine-deployer")</annotation>
        <property name="jdbcSocketConfiguration"><inject bean="JdbcSocketConfiguration"/></property>
        <property name="adminSocketConfiguration"><inject bean="AdminSocketConfiguration"/></property>
        <property name="workManager"><inject bean="WorkManager"/></property>
        <property name="XATerminator"><inject bean="TransactionManager" property="XATerminator"/></property>
        <property name="authorizationService"><inject bean="AuthorizationService"/></property>
        <property name="sessionService"><inject bean="SessionService"/></property>
        <property name="bufferService"><inject bean="BufferService"/></property>
        <property name="connectorManagerRepository"><inject bean="ConnectorManagerRepository"/></property>
        <property name="securityHelper"><inject bean="SecurityHelper"/></property>
        
        <!-- Name of the process that uniquely identifies this process -->
        <property name="processName">localhost</property>
        <!-- Process pool maximum thread count. (default 16) Increase this value if your load includes a large number of XQueries or if the system's available processors is larger than 8. -->
        <property name="maxThreads">16</property>
        <!-- Query processor time slice, in milliseconds. (default 2000) -->
        <property name="timeSliceInMilli">2000</property>
        <!-- Maximum allowed fetch size, set via JDBC. User requested value ignored above this value. (default 20480) -->
        <property name="maxRowsFetchSize">20480</property>
        <!-- The max lob chunk size in KB transferred each time when processing blobs, clobs(100KB default) -->
        <property name="lobChunkSizeInKB">10</property>
        <!-- The maximum number of query plans that are cached. Note: this is a memory based cache. (default 250)  -->
        <property name="preparedPlanCacheMaxCount">250</property>
        <!-- Maximum number of cached lookup tables. Note: this is a memory based cache and should be set to a value of at least 10 to accomidate system usage. (default 200) --><commit_msg>TEIID-833: removing the max open files setting<commit_after><?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="urn:jboss:bean-deployer:2.0">

   <interceptor xmlns="urn:jboss:aop-beans:1.0" name="JndiAspect" class="org.jboss.aop.microcontainer.aspects.jndi.JndiIntroduction">
      <property name="env">
           <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
              <entry><key>java.naming.factory.initial</key><value>org.jnp.interfaces.NamingContextFactory</value></entry>
           </map>
      </property>
   </interceptor>
   
   <introduction xmlns="urn:jboss:aop-beans:1.0" class="@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding">
      <interfaces>org.jboss.kernel.spi.dependency.KernelControllerContextAware</interfaces>
   </introduction>

   <bind xmlns="urn:jboss:aop-beans:1.0" pointcut="execution(* $instanceof{org.jboss.kernel.spi.dependency.KernelControllerContextAware}->$implements{org.jboss.kernel.spi.dependency.KernelControllerContextAware}(..))">
      <interceptor-ref name="JndiAspect"/>
   </bind>
    
    <!-- Teiid Services -->
    <bean name="AuthorizationService" class="org.teiid.services.AuthorizationServiceImpl">
        <property name="VDBRepository"><inject bean="VDBRepository"/></property>
        <!-- Turn on checking the entitlements on resources based on the roles defined in VDB -->
        <property name="useEntitlements" class="java.lang.Boolean">false</property>
    </bean>
    
    <bean name="SessionService" class="org.teiid.services.SessionServiceImpl">
        <property name="VDBRepository"><inject bean="VDBRepository"/></property>
        <property name="securityHelper"><inject bean="SecurityHelper"/></property>
        <!-- Comma separated list of domains to be used to login into Teiid using JDBC connection-->
        <property name="securityDomains">teiid-security</property>
        <!-- security domain to be used with Admin API (please do not change this, as this should be same as profile service) -->
        <property name="adminSecurityDomain">jmx-console</property>
        <!-- Maximum number of sessions allowed by the system (default 5000) -->
        <property name="sessionMaxLimit">5000</property>
        <!-- Max allowed time before the session is terminated by the system, 0 indicates unlimited (default 0) -->
        <property name="sessionExpirationTimeLimit">0</property>
    </bean>
    
    <bean name="BufferService" class="org.teiid.services.BufferServiceImpl">
        <property name="contextCache"><inject bean="ContextCache"/></property>
        <property name="cacheFactory"><inject bean="TeiidCache"/></property>
        <!-- Use disk for buffer management -->
        <property name="useDisk">true</property>
        <!-- Directory location for the buffer files -->
        <property name="diskDirectory">${jboss.server.temp.dir}/teiid</property>
        <!-- The max row count of a batch sent internally within the query processor. Should be <= the connectorBatchSize. (default 512) -->
        <property name="processorBatchSize">512</property>
        <!-- The max row count of a batch from a connector. Should be even multiple of processorBatchSize. (default 1024) -->
        <property name="connectorBatchSize">1024</property>
        <!-- 
            The number of batch columns to allow in memory (default 16384).  
            This value should be set lower or higher depending on the available memory to Teiid in the VM.  
            16384 is considered a good default for a dedicated 32-bit VM running Teiid with a 1 gig heap.        
         -->
        <property name="maxReserveBatchColumns">16384</property>
        <!-- 
            The number of batch columns guaranteed to a processing operation.  Set this value lower if the workload typically
            processes larger numbers of concurrent queries with large intermediate results from operations such as sorting, 
            grouping, etc. (default 128)        
         -->
        <property name="maxProcessingBatchesColumns">128</property>
        <!--  Max File size in MB (default 2GB)-->
        <property name="maxFileSize">2048</property> 
    </bean>
    
    <bean name="RuntimeEngineDeployer" class="org.teiid.jboss.deployers.RuntimeEngineDeployer">
        <annotation>@org.jboss.aop.microcontainer.aspects.jndi.JndiBinding(name="teiid/engine-deployer")</annotation>
        <property name="jdbcSocketConfiguration"><inject bean="JdbcSocketConfiguration"/></property>
        <property name="adminSocketConfiguration"><inject bean="AdminSocketConfiguration"/></property>
        <property name="workManager"><inject bean="WorkManager"/></property>
        <property name="XATerminator"><inject bean="TransactionManager" property="XATerminator"/></property>
        <property name="authorizationService"><inject bean="AuthorizationService"/></property>
        <property name="sessionService"><inject bean="SessionService"/></property>
        <property name="bufferService"><inject bean="BufferService"/></property>
        <property name="connectorManagerRepository"><inject bean="ConnectorManagerRepository"/></property>
        <property name="securityHelper"><inject bean="SecurityHelper"/></property>
        
        <!-- Name of the process that uniquely identifies this process -->
        <property name="processName">localhost</property>
        <!-- Process pool maximum thread count. (default 16) Increase this value if your load includes a large number of XQueries or if the system's available processors is larger than 8. -->
        <property name="maxThreads">16</property>
        <!-- Query processor time slice, in milliseconds. (default 2000) -->
        <property name="timeSliceInMilli">2000</property>
        <!-- Maximum allowed fetch size, set via JDBC. User requested value ignored above this value. (default 20480) -->
        <property name="maxRowsFetchSize">20480</property>
        <!-- The max lob chunk size in KB transferred each time when processing blobs, clobs(100KB default) -->
        <property name="lobChunkSizeInKB">10</property>
        <!-- The maximum number of query plans that are cached. Note: this is a memory based cache. (default 250)  -->
        <property name="preparedPlanCacheMaxCount">250</property>
        <!-- Maximum number of cached lookup tables. Note: this is a memory based cache and should be set to a value of at least 10 to accomidate system usage. (default 200) -->
{'fraction_non_alphanumeric': 0.1254502260709633, 'fraction_numerical': 0.016476358341635373, 'mean_word_length': 3.5140089934278795, 'pattern_counts': {'":': 0, '<': 264, '<?xml version=': 2, '>': 264, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '7247818', 'n_tokens_mistral': 3577, 'n_tokens_neox': 3309, 'n_words': 952}