<commit_before>import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.eclipse.jetty.servlet.*;

import com.google.gson.*;

public class Test extends HttpServlet {

    protected void doGet( HttpServletRequest req, HttpServletResponse resp )
	throws ServletException, IOException
    {
	Obj t = new Obj();
	String name = this.getParam("name","Default Name", req);
	String age = getParam("age","-99999",req);
	t.setName(name);
	try {
	    t.setAge(Integer.parseInt(age));
	} catch( Exception e ) {
	    t.setAge(-9999);
	}
       	//resp.getWriter().print("Obj: " + t);
	resp.setHeader("Content-Type", "application/json");
	Gson jsonWriter = new Gson();
	resp.getWriter().print(  jsonWriter.toJson(t) );
	System.out.println("Writing: " + name + " / " + age);<commit_msg>output when bad INT to STRING conversion<commit_after>import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.eclipse.jetty.servlet.*;

import com.google.gson.*;

public class Test extends HttpServlet {

    protected void doGet( HttpServletRequest req, HttpServletResponse resp )
	throws ServletException, IOException
    {
	Obj t = new Obj();
	String name = this.getParam("name","Default Name", req);
	String age = getParam("age","-99999",req);
	t.setName(name);
	try {
	    t.setAge(Integer.parseInt(age));
	} catch( Exception e ) {
	    System.out.println("Age was " + age + " but it cant be a number");
	    age = "-9999";
	    t.setAge(-9999);
	}
       	//resp.getWriter().print("Obj: " + t);
	resp.setHeader("Content-Type", "application/json");
	Gson jsonWriter = new Gson();
	resp.getWriter().print(  jsonWriter.toJson(t) );
	System.out.println("Writing: " + name + " / " + age);
{'fraction_non_alphanumeric': 0.1580443433769187, 'fraction_numerical': 0.012507106310403639, 'mean_word_length': 4.116279069767442, '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': '1843015', 'n_tokens_mistral': 591, 'n_tokens_neox': 562, 'n_words': 130}