<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:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd"
    default-lazy-init="false" default-autowire="byName">

    <bean id="restClientBuilder" class="org.elasticsearch.client.RestClientAddressesBuilder">
        <constructor-arg index="0" type="java.lang.String">
            <value>${elasticSearch.addresses}</value>
        </constructor-arg>
        <constructor-arg index="1" type="java.lang.String" >
            <value>${elasticSearch.scheme}</value>
        </constructor-arg>
    </bean>

    <bean id="restClient" class="org.elasticsearch.client.RestClient"
         factory-bean="restClientBuilder" factory-method="builder" scope="prototype" />

</beans><commit_msg>bean restClient should be singleton, Spring中bean的scope<commit_after><?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:aop="http://www.springframework.org/schema/aop"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd"
    default-lazy-init="false" default-autowire="byName">

    <bean id="restClientBuilder" class="org.elasticsearch.client.RestClientAddressesBuilder">
        <constructor-arg index="0" type="java.lang.String">
            <value>${elasticSearch.addresses}</value>
        </constructor-arg>
        <constructor-arg index="1" type="java.lang.String" >
            <value>${elasticSearch.scheme}</value>
        </constructor-arg>
    </bean>

    <bean id="restClient" class="org.elasticsearch.client.RestClient"
         factory-bean="restClientBuilder" factory-method="builder" scope="singleton" />

</beans>
{'fraction_non_alphanumeric': 0.16897012929112795, 'fraction_numerical': 0.012483281319661168, 'mean_word_length': 3.9210526315789473, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 2, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 8}, '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': '1459354', 'n_tokens_mistral': 707, 'n_tokens_neox': 689, 'n_words': 72}