<commit_before>package com.atlassian.sal.ctk;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;

@Component
public class CtkServlet extends HttpServlet
{
    private final CtkTestSuite suite;

    public CtkServlet(CtkTestSuite suite)
    {
        this.suite = suite;
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
    {
        List<CtkTestResult> results = suite.execute();
        PrintWriter out = resp.getWriter();

        out.print("<html><head><style>.PASS{background-color: green;} .FAIL{background-color: red;}.WARN{background-color: yellow;}</style></head>");
        out.print("<body><h1>CTK Results</h1>");
        out.print("<table><tr><th>Result</th><th>Test Group</th><th>Message</th></tr>");
        for (CtkTestResult result : results)
        {
            out.print(result.toHtml());
        }
        out.print("</table></body></html>");
        out.close();
    }
}<commit_msg>JST-1269 Adding title to test results page<commit_after>package com.atlassian.sal.ctk;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Component;

@Component
public class CtkServlet extends HttpServlet
{
    private final CtkTestSuite suite;

    public CtkServlet(final CtkTestSuite suite)
    {
        this.suite = suite;
    }

    @Override
    protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException
    {
        final List<CtkTestResult> results = suite.execute();
        final PrintWriter out = resp.getWriter();

        out.print("<html><head><title>CTK Test Results</title><style>.PASS{background-color: green;} .FAIL{background-color: red;}.WARN{background-color: yellow;}</style></head>");
        out.print("<body><h1>CTK Results</h1>");
        out.print("<table><tr><th>Result</th><th>Test Group</th><th>Message</th></tr>");
        for (final CtkTestResult result : results)
        {
            out.print(result.toHtml());
        }
        out.print("</table></body></html>");
        out.close();
    }
}
{'fraction_non_alphanumeric': 0.1368584758942457, 'fraction_numerical': 0.003110419906687403, 'mean_word_length': 3.7211009174311926, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '5711966', 'n_tokens_mistral': 750, 'n_tokens_neox': 746, 'n_words': 144}