<commit_before>package org.docksidestage.app.web.wx.json;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author jflute
 */
@Controller
@RequestMapping("/wx/json")
public class WxJsonController {

    // ===================================================================================
    //                                                                              Entry
    //                                                                             =======
    // http://localhost:8080/wx/json/emptybody
    @RequestMapping(method = RequestMethod.GET, value = "emptybody")
    @ResponseBody
    public void emptybody() {
        return;
    }

    // http://localhost:8080/wx/json/emptyobj
    @RequestMapping(method = RequestMethod.GET, value = "emptyobj")
    @ResponseBody
    public EmptyObj emptyobj() {
        return new EmptyObj();
    }

    public static class EmptyObj {
    }

    // http://localhost:8080/wx/json/emptylist
    @RequestMapping(method = RequestMethod.GET, value = "emptylist")
    @ResponseBody
    public List<String> emptylist() {
        return Arrays.asList("sea", "land", "piari");
    }
}<commit_msg>add WxJsonController<commit_after>package org.docksidestage.app.web.wx.json;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author jflute
 */
@Controller
@RequestMapping("/wx/json")
public class WxJsonController {

    // ===================================================================================
    //                                                                               Empty
    //                                                                               =====
    // http://localhost:8080/wx/json/emptybody
    @RequestMapping(method = RequestMethod.GET, value = "emptybody")
    @ResponseBody
    public void emptybody() { // contentType=null
        return;
    }

    // http://localhost:8080/wx/json/emptyobj
    @RequestMapping(method = RequestMethod.GET, value = "emptyobj")
    @ResponseBody
    public EmptyObj emptyobj() {
        return new EmptyObj();
    }

    public static class EmptyObj {
    }

    // http://localhost:8080/wx/json/emptylist
    @RequestMapping(method = RequestMethod.GET, value = "emptylist")
    @ResponseBody
    public List<String> emptylist() {
        return Arrays.asList("sea", "land", "piari");
    }

    // http://localhost:8080/wx/json/strval
    @RequestMapping(method = RequestMethod.GET, value = "strval")
    @ResponseBody
    public String strval() { // contentType=text/html
        return "sea";
    }
}
{'fraction_non_alphanumeric': 0.16826446280991736, 'fraction_numerical': 0.009256198347107438, 'mean_word_length': 2.3734671125975475, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4045636', 'n_tokens_mistral': 805, 'n_tokens_neox': 763, 'n_words': 136}