<commit_before>package com.jaiwo99.cards.controller;

import com.jaiwo99.cards.domain.Jiang;
import com.jaiwo99.cards.domain.JiangPicking;
import com.jaiwo99.cards.service.JiangPickingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

import static org.springframework.http.MediaType.*;

/**
 * @author liang - <EMAIL>
 */
@RestController
@RequestMapping("/jiang")
public class JiangPickingController {

    @Autowired
    private JiangPickingService jiangPickingService;

    @RequestMapping(value = "/reset", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody
    List<Jiang> reset() {
        jiangPickingService.reset();
        return listRest();
    }

    @RequestMapping(value = "/listRest", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody List<Jiang> listRest() {
        return jiangPickingService.listRest();
    }

    @RequestMapping(value = "/listPicked", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody List<JiangPicking> listPicked() {
        return jiangPickingService.listPicked();
    }

    @RequestMapping(value = "/choose", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody List<Jiang> choose() {
        return jiangPickingService.choose();
    }

    @RequestMapping(value = "/pick/{id}", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody Jiang pick(@PathVariable String id) {
        return jiangPickingService.pick(id);
    }
}<commit_msg>adjusted JiangPickingController<commit_after>package com.jaiwo99.cards.controller;

import com.jaiwo99.cards.service.JiangPickingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;

import static com.jaiwo99.cards.controller.ResponseWrapper.getInstance;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;

/**
 * @author liang - <EMAIL>
 */
@RestController
@RequestMapping("/jiang")
public class JiangPickingController {

    @Autowired
    private JiangPickingService jiangPickingService;

    @RequestMapping(value = "/reset", method = RequestMethod.POST)
    public @ResponseBody
    ResponseWrapper reset() {
        jiangPickingService.reset();
        return listRest();
    }

    @RequestMapping(value = "/listRest", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody ResponseWrapper listRest() {
        return getInstance(HttpStatus.OK.value(), jiangPickingService.listRest());
    }

    @RequestMapping(value = "/listPicked", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody ResponseWrapper listPicked() {
        return getInstance(HttpStatus.OK.value(), jiangPickingService.listPicked());
    }

    @RequestMapping(value = "/choose", method = RequestMethod.GET, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody ResponseWrapper choose() {
        return getInstance(HttpStatus.OK.value(), jiangPickingService.choose());
    }

    @RequestMapping(value = "/pick/{id}", method = RequestMethod.POST, produces = APPLICATION_JSON_VALUE)
    public @ResponseBody ResponseWrapper pick(@PathVariable String id) {
        return getInstance(HttpStatus.OK.value(), jiangPickingService.pick(id));
    }
}
{'fraction_non_alphanumeric': 0.11009174311926606, 'fraction_numerical': 0.0040137614678899085, 'mean_word_length': 4.654781199351702, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1919735', 'n_tokens_mistral': 1015, 'n_tokens_neox': 969, 'n_words': 186}