<commit_before>package net.safedata.springboot.training.d03.s01;

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

@Controller
public class SimpleRestController {

    @RequestMapping(
            value = "/hello"
    )
    public @ResponseBody String hello() {
        return "Hello, Spring Boot!";
    }

    // a redirect sample - the method response is a page name, not a ResponseBody
    @RequestMapping(
            value = "/redirect/{pageName}"
    )
    public String redirect(@PathVariable final String pageName) {
        return "redirect:" + pageName;
    }
}<commit_msg>[clean] Removed the redirect sample, use RestController i/o Controller<commit_after>package net.safedata.springboot.training.d03.s01;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalTime;

@RestController
public class SimpleRestController {

    @RequestMapping(
            path = "/hello"
    )
    public String hello() {
        return "Hello, Spring Boot! The current time is " + LocalTime.now();
    }
}
{'fraction_non_alphanumeric': 0.09836065573770492, 'fraction_numerical': 0.00624512099921936, 'mean_word_length': 3.678832116788321, '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': '4828390', 'n_tokens_mistral': 355, 'n_tokens_neox': 343, 'n_words': 85}