<commit_before>package com.neilren.neilren4j.common.service;

import com.neilren.neilren4j.common.config.Global;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * 百度实时推送服务
 */
@Service
public class BaiduPushService extends BaseService {
    @Autowired
    private HttpClientService httpClientService;

    public String pushBaidu(String[] param, boolean isOriginal) throws IOException {
        String url = "http://data.zz.baidu.com/urls?site={0}&token={1}";
        url += isOriginal ? "&type=original" : "";
        url = String.format(url, Global.getConfig("baidu.site"), Global.getConfig("baidu.token"));
        return httpClientService.sendPost(url, param);
    }
}<commit_msg>修复字符串替换错误的BUG<commit_after>package com.neilren.neilren4j.common.service;

import com.neilren.neilren4j.common.config.Global;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * 百度实时推送服务
 */
@Service
public class BaiduPushService extends BaseService {
    @Autowired
    private HttpClientService httpClientService;

    public String pushBaidu(String[] param, boolean isOriginal) throws IOException {
        String url = "http://data.zz.baidu.com/urls?site=%s&token=%s";
        url += isOriginal ? "&type=original" : "";
        url = String.format(url, Global.getConfig("baidu.site"), Global.getConfig("baidu.token"));
        return new HttpClientService().sendPost(url, param);
    }
}
{'fraction_non_alphanumeric': 0.12643678160919541, 'fraction_numerical': 0.0038314176245210726, 'mean_word_length': 4.517605633802817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5013934', 'n_tokens_mistral': 495, 'n_tokens_neox': 515, 'n_words': 85}