<commit_before><?xml version="1.0" encoding="UTF-8" ?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd                            
    http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-3.0.xsd">

	<bean id="placeholderConfig" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
	    <property name="location" value="/WEB-INF/red5-web.properties" />
	</bean>

	<bean id="web.context" class="org.red5.server.Context" autowire="byType" />

	<bean id="web.scope" class="org.red5.server.scope.WebScope" init-method="register">
		<property name="server" ref="red5.server" />
		<property name="parent" ref="global.scope" />
		<property name="context" ref="web.context" />
		<property name="handler" ref="web.handler" />
		<property name="contextPath" value="${webapp.contextPath}" />
		<property name="virtualHosts" value="${webapp.virtualHosts}" />
	</bean>

    <bean id="schedulingService" class="org.red5.server.scheduling.ApplicationSchedulingService" />

	<bean id="web.handler" class="org.red5.hlsapp.Application" />
	  
    <bean id="mux.service" class="org.red5.service.httpstream.MuxService" />
	   
    <bean id="segmenter.service" class="org.red5.service.httpstream.SegmenterService">
        <!-- Mux service -->
        <property name="muxService" ref="mux.service" />
        <!-- Thread executor -->
        <property name="segmentExecutor" ref="segmentExecutor" />
        <!-- Length of a segment in milliseconds -->
        <property name="segmentTimeLimit" value="2000" />
        <!-- Store segments (.ts) in memory -->
        <property name="memoryMapped" value="false" />
        <!-- Directory where segments and playlist files are stored -->
        <property name="segmentDirectory" value="webapps/hlsapp/WEB-INF/segments/" />
        <!-- Maximum segments to keep in a segment facade -->
        <property name="maxSegmentsPerFacade" value="8" />           
        <property name="outputAudioCodec" value="libvo_aacenc" />        
        <!-- 
        <property name="outputAudioCodec" value="libmp3lame" />        
         -->
        <property name="outputVideoCodec" value="libx264" />     
    </bean>
    
    <bean id="segmentExecutor" scope="prototype" class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler">
        <property name="poolSize" value="4" />  
        <property name="waitForTasksToCompleteOnShutdown" value="false"/>
        <property name="daemon" value="true"/>
        <property name="threadNamePrefix" value="SegmentExecutor-"/>
    </bean>

</beans><commit_msg>- Now Deploying on Wildfly<commit_after><beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cdi="http://www.jboss.org/schema/seam/spring"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.jboss.org/schema/seam/spring http://localhost/seam-spring-3.1.xsd">

	<bean id="web.context" class="org.red5.server.Context" autowire="byType" />

	<bean id="web.scope" class="org.red5.server.scope.WebScope"
		init-method="register">
		<property name="server" ref="red5.server" />
		<property name="parent" ref="global.scope" />
		<property name="context" ref="web.context" />
		<property name="handler" ref="application" />
		<property name="contextPath" value="/hlsapp" />
		<property name="virtualHosts" value="*" />
	</bean>

	<bean id="schedulingService" class="org.red5.server.scheduling.ApplicationSchedulingService" />

	<bean id="web.handler" class="org.red5.hlsapp.Application" />

	<bean id="mux.service" class="org.red5.service.httpstream.MuxService" />

	<bean id="segmenter.service" class="org.red5.service.httpstream.SegmenterService">
		<!-- Mux service -->
		<property name="muxService" ref="mux.service" />
		<!-- Thread executor -->
		<property name="segmentExecutor" ref="segmentExecutor" />
		<!-- Length of a segment in milliseconds -->
		<property name="segmentTimeLimit" value="2000" />
		<!-- Store segments (.ts) in memory -->
		<property name="memoryMapped" value="false" />
		<!-- Directory where segments and playlist files are stored -->
		<property name="segmentDirectory" value="webapps/hlsapp/WEB-INF/segments/" />
		<!-- Maximum segments to keep in a segment facade -->
		<property name="maxSegmentsPerFacade" value="8" />
		<property name="outputAudioCodec" value="libvo_aacenc" />
		<!-- <property name="outputAudioCodec" value="libmp3lame" /> -->
		<property name="outputVideoCodec" value="libx264" />
	</bean>

	<bean id="segmentExecutor" scope="prototype"
		class="org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler">
		<property name="poolSize" value="4" />
		<property name="waitForTasksToCompleteOnShutdown" value="false" />
		<property name="daemon" value="true" />
		<property name="threadNamePrefix" value="SegmentExecutor-" />
	</bean>

</beans>
{'fraction_non_alphanumeric': 0.1726315789473684, 'fraction_numerical': 0.010334928229665072, 'mean_word_length': 3.991404011461318, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 1, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 13, 'xml': 7}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2484193', 'n_tokens_mistral': 1664, 'n_tokens_neox': 1575, 'n_words': 261}