<commit_before>package org.format.demo.controller;

import org.format.demo.annotation.Authorization;
import org.format.demo.model.CommonData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/user")
@Controller
public class UserController {

    @RequestMapping
    public String index() {
        return "user";
    }

    @RequestMapping("/update")
    @ResponseBody
    @Authorization(roles = {"manager"})
    public String update() {
        return "user";
    }

    @RequestMapping("/delete")
    @ResponseBody
    public CommonData delete() {
        CommonData data = new CommonData(true, "success");
        return data;
    }

    @RequestMapping("/batchDelete")
    @Authorization(roles = {"admin"})
    @ResponseBody
    public CommonData batchDelete() {
        CommonData data = new CommonData(true, "success");
        return data;
    }

    @RequestMapping("/batchUpdate")
    @Authorization(auth = "update-user")
    @ResponseBody
    public CommonData batchUpdate() {
        CommonData data = new CommonData(true, "success");
        return data;
    }

    @RequestMapping("/add")
    @Authorization(roles = {"manager"})
    public String add() {
        return "user";
    }

}<commit_msg>测试例子修改<commit_after>package org.format.demo.controller;

import org.format.demo.annotation.Authorization;
import org.format.demo.model.CommonData;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@RequestMapping("/user")
@Controller
public class UserController {

    @RequestMapping
    public String index() {
        return "user";
    }

    @RequestMapping("/update")
    @ResponseBody
    @Authorization(roles = {"manager"})
    public String update() {
        return "user";
    }

    @RequestMapping("/delete")
    @ResponseBody
    public CommonData delete() {
        CommonData data = new CommonData(true, "success");
        return data;
    }

    @RequestMapping("/batchDelete")
    @Authorization(roles = {"admin"})
    @ResponseBody
    public CommonData batchDelete() {
        CommonData data = new CommonData(true, "success");
        return data;
    }

    @RequestMapping("/batchUpdate")
    @Authorization(auth = {"update-user", "add-role"})
    @ResponseBody
    public CommonData batchUpdate() {
        CommonData data = new CommonData(true, "success");
        return data;
    }

    @RequestMapping("/add")
    @Authorization(roles = {"manager"})
    public String add() {
        return "user";
    }

}
{'fraction_non_alphanumeric': 0.12375690607734807, 'fraction_numerical': 0.0, 'mean_word_length': 3.277165354330709, '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': '4152090', 'n_tokens_mistral': 750, 'n_tokens_neox': 742, 'n_words': 161}