<commit_before>package grails.angularjs.resources.test

import grails.converters.JSON


class RestSampleController 
{

	def sampleJSonResponse = [
		id:1, 
		controller:'RestSampleController', 
		method:null, 
		message:'Hello from Grails in JSON format', 
		timestamp: new java.util.Date().format("yyyy-MM-dd HH:mm:ss.SSS"), 
		// timestamp: new java.util.Date().format("yyyy-MM-dd\'T\'HH:mm:ss.SSSZ"), 
		status:'OK'
	]

    def index() 
	{
		log.info("index - params: $params")

		// render(view: "index")
		// render Product.list() as JSON
		render sampleJSonResponse as JSON
	}

}<commit_msg>small updates in test webapp, to make response data (fake) changing its timestamp (calculates now and returns it in the rest response)<commit_after>package grails.angularjs.resources.test

import grails.converters.JSON


class RestSampleController 
{

    def index() 
	{
		log.info("index - params: $params")

		def sampleJSonResponse = [
			id:1, 
			controller:'RestSampleController', 
			method:null, 
			message:'Hello from Grails in JSON format', 
			timestamp: new java.util.Date().format("yyyy-MM-dd HH:mm:ss.SSS"), 
			// timestamp: new java.util.Date().format("yyyy-MM-dd\'T\'HH:mm:ss.SSSZ"), 
			status:'OK'
		]

		// render(view: "index")
		// render Product.list() as JSON
		render sampleJSonResponse as JSON
	}

}
{'fraction_non_alphanumeric': 0.13972809667673716, 'fraction_numerical': 0.0015105740181268882, 'mean_word_length': 3.783393501805054, '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': '4338699', 'n_tokens_mistral': 495, 'n_tokens_neox': 437, 'n_words': 101}