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

    <mvc:annotation-driven/>

    <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
        <property name="propertyEditorRegistrars">
            <list>
                <bean class="org.springframework.beans.propertyeditors.StringTrimmerEditor"/>
            </list>
        </property>
    </bean><commit_msg>customize jackson converter<commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:mvc="http://www.springframework.org/schema/mvc"
       xmlns:p="http://www.springframework.org/schema/p"
       xmlns:util="http://www.springframework.org/schema/util"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd
       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
       ">

    <mvc:annotation-driven/>

    <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
        <property name="objectMapper">
            <bean class="org.springframework.http.converter.json.Jackson2ObjectMapperFactoryBean"
                  p:autoDetectFields="false"
                  p:defaultViewInclusion="false"
                    >
                <property name="featuresToDisable">
                    <array>
                        <util:constant
                                static-field="com.fasterxml.jackson.databind.MapperFeature$WRITE_NULL_MAP_VALUES"/>
                        <util:constant
                                static-field="com.fasterxml.jackson.databind.MapperFeature$WRITE_EMPTY_JSON_ARRAYS"/>
                    </array>
                </property>
            </bean>
        </property>
    </bean>

    <bean class="org.springframework.beans.factory.config.CustomEditorConfigurer">
        <property name="propertyEditorRegistrars">
            <list>
                <bean class="org.springframework.beans.propertyeditors.StringTrimmerEditor"/>
            </list>
        </property>
    </bean>
{'fraction_non_alphanumeric': 0.13710554951033732, 'fraction_numerical': 0.006528835690968444, 'mean_word_length': 2.473551637279597, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 2, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 18, 'xml': 12}, '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': '1988216', 'n_tokens_mistral': 790, 'n_tokens_neox': 746, 'n_words': 71}