<commit_before><?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">

    <contextName>ARGUS</contextName>

    <appender name="ARGUS-CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>[ %boldMagenta(%cn) | %13.13replace(%X{SESSION}){'^$','*NULLSESSION*'} | %replace(%X{USER}){'^$','*NULLUSER*'} | %replace(%X{TXID}){'^$','*NULLTXID*'} | %d{yyyy-MM-dd HH:mm:ss.SSS} | %.15thread | %highlight(%5.-5level) ] %msg%n</pattern>
        </encoder>
    </appender>

    <appender name="ARGUS-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    	<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">                                                                                                                                                                
	      	<!-- Daily rollover -->                                                                                                                                                                                                                 
	      	<fileNamePattern>${argus.logdir:-.}/logs/argus.%d{yyyy-MM-dd}.log</fileNamePattern>
	    </rollingPolicy> 
        <file>${argus.logdir:-.}/argus.log</file>
        <append>true</append>
        <encoder>
            <pattern>[ %cn | %13.13replace(%X{SESSION}){'^$','*NULLSESSION*'} | %replace(%X{USER}){'^$','*NULLUSER*'} | %replace(%X{TXID}){'^$','*NULLTXID*'} | %d{yyyy-MM-dd HH:mm:ss.SSS} | %thread | %level ] %msg%n%ex</pattern>
        </encoder>
    </appender>


    <logger name="com.salesforce.dva.argus" additivity="false" level="${system.property.log.level}">
        <appender-ref ref="ARGUS-FILE"/>
        <appender-ref ref="ARGUS-CONSOLE"/>
    </logger>

    <root level="TRACE">
        <appender-ref ref="ARGUS-FILE"/>
        <appender-ref ref="ARGUS-CONSOLE"/>
    </root>

</configuration><commit_msg>Only preserve last 7 days of logs<commit_after><?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">

    <contextName>ARGUS</contextName>

    <appender name="ARGUS-CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>[ %boldMagenta(%cn) | %13.13replace(%X{SESSION}){'^$','*NULLSESSION*'} | %replace(%X{USER}){'^$','*NULLUSER*'} | %replace(%X{TXID}){'^$','*NULLTXID*'} | %d{yyyy-MM-dd HH:mm:ss.SSS} | %.15thread | %highlight(%5.-5level) ] %msg%n</pattern>
        </encoder>
    </appender>

    <appender name="ARGUS-FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
    	<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">                                                                                                                                                                
	      	<!-- Daily rollover -->                                                                                                                                                                                                                 
	      	<fileNamePattern>${argus.logdir:-.}/logs/argus.%d{yyyy-MM-dd}.log</fileNamePattern>
		<maxHistory>7</maxHistory>
	    </rollingPolicy> 
        <file>${argus.logdir:-.}/argus.log</file>
        <append>true</append>
        <encoder>
            <pattern>[ %cn | %13.13replace(%X{SESSION}){'^$','*NULLSESSION*'} | %replace(%X{USER}){'^$','*NULLUSER*'} | %replace(%X{TXID}){'^$','*NULLTXID*'} | %d{yyyy-MM-dd HH:mm:ss.SSS} | %thread | %level ] %msg%n%ex</pattern>
        </encoder>
    </appender>


    <logger name="com.salesforce.dva.argus" additivity="false" level="${system.property.log.level}">
        <appender-ref ref="ARGUS-FILE"/>
        <appender-ref ref="ARGUS-CONSOLE"/>
    </logger>

    <root level="TRACE">
        <appender-ref ref="ARGUS-FILE"/>
        <appender-ref ref="ARGUS-CONSOLE"/>
    </root>

</configuration>
{'fraction_non_alphanumeric': 0.18671130569147568, 'fraction_numerical': 0.008241050733968582, 'mean_word_length': 1.7526576895818569, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 2, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 32, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4318936', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1140, 'n_words': 132}