<commit_before><?xml version="1.0" encoding="UTF-8"?>
<included>

	<!-- Spring Boot defaults -->
	<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

	<!-- Main log file -->
	<appender name="MAIN_FS_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>logs/main.log</file>
		<append>true</append>
		<encoder>
			<charset>UTF-8</charset>
			<pattern>${FILE_LOG_PATTERN}</pattern>
		</encoder>
		<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
			<fileNamePattern>logs/main-%d{yyyy-MM-dd}-%i.log.zip</fileNamePattern>
            <maxFileSize>5MB</maxFileSize>
			<maxHistory>30</maxHistory>
		</rollingPolicy>
	</appender>

	<!--Use an AsyncAppender to avoid performance bottlenecks -->
	<appender name="ASYNC_MAIN_FS_APPENDER" class="ch.qos.logback.classic.AsyncAppender">
		<appender-ref ref="MAIN_FS_APPENDER"/>
	</appender>

	<!-- Console appender -->
	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
		<encoder>
			<pattern>${CONSOLE_LOG_PATTERN}</pattern>
		</encoder>
	</appender>

	<!-- Commonly used loggers -->
	<logger name="org.springframework" level="WARN"/>
	<logger name="org.hibernate" level="WARN"/>
	<logger name="org.hibernate.type" level="WARN"/>
	<logger name="org.hibernate.SQL" level="WARN"/>
	<logger name="net.sf.ehcache" level="WARN"/>

	<!-- Application loggers -->
	<logger name="it.gov.aifa" level="INFO"/>

	<!-- Trace method calls -->
	<logger name="org.springframework.aop.interceptor.CustomizableTraceInterceptor" level="NONE"/>

	<root>
		<level value="WARN"/>
		<appender-ref ref="STDOUT"/>
		<appender-ref ref="ASYNC_MAIN_FS_APPENDER"/>
	</root>
</included>
<commit_msg>Avoid showing irrelevant warning messages<commit_after><?xml version="1.0" encoding="UTF-8"?>
<included>

	<!-- Spring Boot defaults -->
	<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

	<!-- Main log file -->
	<appender name="MAIN_FS_APPENDER" class="ch.qos.logback.core.rolling.RollingFileAppender">
		<file>logs/main.log</file>
		<append>true</append>
		<encoder>
			<charset>UTF-8</charset>
			<pattern>${FILE_LOG_PATTERN}</pattern>
		</encoder>
		<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
			<fileNamePattern>logs/main-%d{yyyy-MM-dd}-%i.log.zip</fileNamePattern>
            <maxFileSize>5MB</maxFileSize>
			<maxHistory>30</maxHistory>
		</rollingPolicy>
	</appender>

	<!--Use an AsyncAppender to avoid performance bottlenecks -->
	<appender name="ASYNC_MAIN_FS_APPENDER" class="ch.qos.logback.classic.AsyncAppender">
		<appender-ref ref="MAIN_FS_APPENDER"/>
	</appender>

	<!-- Console appender -->
	<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
		<encoder>
			<pattern>${CONSOLE_LOG_PATTERN}</pattern>
		</encoder>
	</appender>

	<!-- Commonly used loggers -->
	<logger name="org.springframework" level="WARN"/>
	<logger name="org.springframework.boot.autoconfigure.batch" level="ERROR"/>
	<logger name="org.springframework.context.annotation.ConfigurationClassEnhancer" level="ERROR"/>
	<logger name="org.hibernate" level="WARN"/>
	<logger name="org.hibernate.ejb.internal" level="ERROR"/>
	<logger name="org.hibernate.type" level="WARN"/>
	<logger name="org.hibernate.SQL" level="WARN"/>
	<logger name="net.sf.ehcache" level="WARN"/>

	<!-- Application loggers -->
	<logger name="it.gov.aifa" level="INFO"/>
	<logger name="it.gov.aifa.invoice_processor.ContextConfig" level="ERROR"/>

	<!-- Trace method calls -->
	<logger name="org.springframework.aop.interceptor.CustomizableTraceInterceptor" level="NONE"/>

	<root>
		<level value="WARN"/>
		<appender-ref ref="STDOUT"/>
		<appender-ref ref="ASYNC_MAIN_FS_APPENDER"/>
	</root>
</included>

{'fraction_non_alphanumeric': 0.18363539445628999, 'fraction_numerical': 0.0037313432835820895, 'mean_word_length': 5.014423076923077, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 2, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7245805', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1271, 'n_words': 192}