<commit_before>package org.anyline.thingsboard.util;

import org.anyline.entity.DataRow;
import org.anyline.util.BasicUtil;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component("anyline.thingsboard.load.bean")
public class ThingsBoardBean implements InitializingBean {

    @Value("${anyline.thingsborad.account:}")
    public String ACCOUNT		  ;
    @Value("${anyline.thingsborad.password:}")
    public String PASSWORD        ;
    @Value("${anyline.thingsborad.host:}")
    public String HOST		      ;
    @Value("${anyline.thingsborad.tenant:}")
    public String TENANT	      ;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCOUNT = BasicUtil.evl(ACCOUNT, ThingsBoardConfig.DEFAULT_ACCOUNT);
        if(BasicUtil.isEmpty(ACCOUNT)){
            return;
        }
        DataRow row = new DataRow();
        row.put("ACCOUNT", BasicUtil.evl(ACCOUNT, ThingsBoardConfig.DEFAULT_ACCOUNT));
        row.put("PASSWORD", Basic<PASSWORD>(PASSWORD, ThingsBoardConfig.DEFAULT_PASSWORD));
        row.put("HOST", BasicUtil.evl(HOST, ThingsBoardConfig.DEFAULT_HOST));
        row.put("TENANT", BasicUtil.evl(TENANT, ThingsBoardConfig.DEFAULT_TENANT));
        ThingsBoardConfig.register(row);
    }
    @Bean("anyline.thingsboard.init.client")
    public ThingsBoardClient instance(){
        return ThingsBoardClient.getInstance();
    }

}
<commit_msg>ThingsBoardBean<commit_after>package org.anyline.thingsboard.util;

import org.anyline.entity.DataRow;
import org.anyline.util.BasicUtil;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component("anyline.thingsboard.load.bean")
public class ThingsBoardBean implements InitializingBean {

    @Value("${anyline.thingsboard.account:}")
    public String ACCOUNT		  ;
    @Value("${anyline.thingsboard.password:}")
    public String PASSWORD        ;
    @Value("${anyline.thingsboard.host:}")
    public String HOST		      ;
    @Value("${anyline.thingsboard.tenant:}")
    public String TENANT	      ;

    @Override
    public void afterPropertiesSet() throws Exception {
        ACCOUNT = BasicUtil.evl(ACCOUNT, ThingsBoardConfig.DEFAULT_ACCOUNT);
        if(BasicUtil.isEmpty(ACCOUNT)){
            return;
        }
        DataRow row = new DataRow();
        row.put("ACCOUNT", BasicUtil.evl(ACCOUNT, ThingsBoardConfig.DEFAULT_ACCOUNT));
        row.put("PASSWORD", BasicUtil.evl(PASSWORD, ThingsBoardConfig.DEFAULT_PASSWORD));
        row.put("HOST", BasicUtil.evl(HOST, ThingsBoardConfig.DEFAULT_HOST));
        row.put("TENANT", BasicUtil.evl(TENANT, ThingsBoardConfig.DEFAULT_TENANT));
        ThingsBoardConfig.register(row);
    }
    @Bean("anyline.thingsboard.init.client")
    public ThingsBoardClient instance(){
        return ThingsBoardClient.getInstance();
    }

}

{'fraction_non_alphanumeric': 0.11898652982681206, 'fraction_numerical': 0.0, 'mean_word_length': 3.96656050955414, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2501204', 'n_tokens_mistral': 921, 'n_tokens_neox': 907, 'n_words': 140}