<commit_before>package cc.tinker.controller;

import cc.tinker.entity.SiteEncodePasswordEntity;
import cc.tinker.services.SiteEncodeService;
import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import tinker.entr.entity.FrontEndResponse;
import tinker.entr.utils.ServletUtils;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by Tinker on 2017/4/10.
 */
@RestController
@RequestMapping("/passwordMgr")
public class PassWordMgrController {

    @Autowired
    SiteEncodeService siteEncodeService;

    /**
     * 创建、修改用户密码记录；
     *
     * @param siteEncode
     * @return
     */
    @RequestMapping("/encryptPsw")
    public FrontEndResponse encryptPsw(SiteEncodePasswordEntity siteEncode) {


        siteEncodeService.encodeAndSaveData(siteEncode);
        return new FrontEndResponse(true);
    }<commit_msg>handover - 2017.4.11<commit_after>package cc.tinker.controller;

import cc.tinker.entity.SiteEncodePasswordEntity;
import cc.tinker.services.SiteEncodeService;
import com.google.gson.Gson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import tinker.entr.entity.FrontEndResponse;
import tinker.entr.utils.ServletUtils;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * Created by Tinker on 2017/4/10.
 */
@RestController
@RequestMapping("/passwordMgr")
public class PassWordMgrController {

    @Autowired
    SiteEncodeService siteEncodeService;

    /**
     * 创建、修改用户密码记录；
     *
     * @param siteEncode
     * @return
     */
    @RequestMapping("/encryptPsw")
    public FrontEndResponse encryptPsw(SiteEncodePasswordEntity siteEncode) {


        siteEncodeService.encodeAndSavePassword(siteEncode);
        return new FrontEndResponse(true);
    }
{'fraction_non_alphanumeric': 0.10004446420631392, 'fraction_numerical': 0.009337483325922631, 'mean_word_length': 4.739795918367347, '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': '2890780', 'n_tokens_mistral': 677, 'n_tokens_neox': 668, 'n_words': 105}