<commit_before>package top.cardone.usercenter.func;

import com.google.common.collect.Maps;
import org.apache.commons.lang3.StringUtils;
import top.cardone.context.ApplicationContextHolder;
import top.cardone.security.shiro.func.ReadPrincipalFunc;
import top.cardone.usercenter.service.UserService;

import java.util.Map;

/**
 * Created by Administrator on 2016/7/11.
 */
public class ReadOneCreatedByIdFunc extends ReadPrincipalFunc {
    @Override
    public String func() {
        String userCode = super.func();

        if (StringUtils.isBlank(userCode)) {
            return null;
        }

        Map<String, Object> readOneInputs = Maps.newHashMap();

        readOneInputs.put("userCode", userCode);
        readOneInputs.put("object_id", "userId");

        return ApplicationContextHolder.getBean(UserService.class).readOneCache(String.class, readOneInputs);
    }

    @Override
    public String func(Map<String, Object> stringObjectMap) {
        return this.func();
    }
}<commit_msg>fix bug<commit_after>package top.cardone.usercenter.func;

import com.google.common.collect.Maps;
import org.apache.commons.lang3.StringUtils;
import top.cardone.context.ApplicationContextHolder;
import top.cardone.security.shiro.func.ReadPrincipalFunc;
import top.cardone.usercenter.service.UserService;

import java.util.Map;

/**
 * Created by Administrator on 2016/7/11.
 */
public class ReadOneCreatedByIdFunc extends ReadPrincipalFunc {
    @Override
    public String func() {
        String userCode = super.func();

        if (StringUtils.isBlank(userCode)) {
            return null;
        }

        Map<String, Object> readOneInputs = Maps.newHashMap();

        readOneInputs.put("userCode", userCode);
        readOneInputs.put("object_id", "userId");

        return ApplicationContextHolder.getBean(UserService.class).readOneCache(String.class, readOneInputs);
    }

    @Override
    public String func(Object object) {
        return this.func();
    }
}
{'fraction_non_alphanumeric': 0.1095959595959596, 'fraction_numerical': 0.00808080808080808, 'mean_word_length': 3.5750577367205545, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6441878', 'n_tokens_mistral': 593, 'n_tokens_neox': 575, 'n_words': 108}