<commit_before><configuration>

    <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>target/app.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <FileNamePattern>target/app.%d{yyyy-MM-dd}.%i.log.gz</FileNamePattern>
            <MaxHistory>30</MaxHistory>
            <timeBasedFileNamingAndTriggeringPolicy
                    class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                <maxFileSize>10MB</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
        </rollingPolicy>
        <encoder>
            <pattern>%d{YYYY-MM-dd'T'HH:mm:ss} [%thread] %-5level %logger{72}: %msg%n</pattern>
        </encoder>
    </appender>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type
             ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%d{YYYY-MM-dd'T'HH:mm:ss} %cyan([%thread]) %highlight(%-5level) %boldYellow(%logger{36}): %msg%n</pattern>
        </encoder>
        <withJansi>true</withJansi>
    </appender>

    <!-- This ignores validation exceptions from Ninja's SwissKnife which can be safely ignored. -->
    <logger name="ninja.utils.SwissKnife" level="OFF"/>

    <logger name="com.google.inject.persist" level="DEBUG" />
    <logger name="org.hibernate" level="DEBUG" />
    <logger name="org.hibernate.type" level="DEBUG" />
    <logger name="org.hibernate.hql" level="ERROR" />
    <logger name="org.hibernate.persister" level="ERROR" />
    <logger name="org.hibernate.loader" level="WARN" />
    <logger name="org.hibernate.engine.internal.TwoPhaseLoad" level="WARN" />

    <logger name="org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction" level="DEBUG"/>

    <root level="info">
        <appender-ref ref="STDOUT"/>
        <!--<appender-ref ref="ROLLING"/>-->
    </root>
</configuration><commit_msg>Adds 2 envs for logging<commit_after><configuration>

    <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>target/app.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <FileNamePattern>target/app.%d{yyyy-MM-dd}.%i.log.gz</FileNamePattern>
            <MaxHistory>30</MaxHistory>
            <timeBasedFileNamingAndTriggeringPolicy
                    class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
                <maxFileSize>10MB</maxFileSize>
            </timeBasedFileNamingAndTriggeringPolicy>
        </rollingPolicy>
        <encoder>
            <pattern>%d{YYYY-MM-dd'T'HH:mm:ss} [%thread] %-5level %logger{72}: %msg%n</pattern>
        </encoder>
    </appender>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type
             ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%d{YYYY-MM-dd'T'HH:mm:ss} %cyan([%thread]) %highlight(%-5level) %boldYellow(%logger{36}): %msg%n</pattern>
        </encoder>
        <withJansi>true</withJansi>
    </appender>

    <!-- This ignores validation exceptions from Ninja's SwissKnife which can be safely ignored. -->
    <logger name="ninja.utils.SwissKnife" level="OFF"/>

    <logger name="com.google.inject.persist" level="DEBUG" />
    <logger name="org.hibernate" level="DEBUG" />
    <logger name="org.hibernate.type" level="DEBUG" />
    <logger name="org.hibernate.hql" level="ERROR" />
    <logger name="org.hibernate.persister" level="ERROR" />
    <logger name="org.hibernate.loader" level="WARN" />
    <logger name="org.hibernate.engine.internal.TwoPhaseLoad" level="WARN" />

    <logger name="org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction" level="DEBUG"/>

    <root level="info">
        <appender-ref ref="STDOUT"/>
        <appender-ref ref="ROLLING"/>
    </root>
</configuration>
{'fraction_non_alphanumeric': 0.16146743199401048, 'fraction_numerical': 0.005240828550037434, 'mean_word_length': 3.1533678756476684, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 90, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4126064', 'n_tokens_mistral': 1329, 'n_tokens_neox': 1255, 'n_words': 181}