<commit_before>package com.akiban.cserver.service.memcache.outputter;

import com.akiban.cserver.RowData;
import com.akiban.cserver.RowDefCache;
import com.akiban.cserver.api.HapiGetRequest;
import com.akiban.cserver.api.HapiProcessor;

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

public class RequestEchoOutputter implements HapiProcessor.Outputter {

    private static final RequestEchoOutputter instance = new RequestEchoOutputter();

    public static RequestEchoOutputter instance() {
        return instance;
    }

    private RequestEchoOutputter()
    {}

    @Override
    public void output(HapiGetRequest request, RowDefCache rowDefCache, List<RowData> rows,
                       OutputStream outputStream) throws IOException
    {
        PrintWriter writer = new PrintWriter(outputStream);
        writer.write("Echoing request:\n");
        writer.printf("schema:       %s\n", request.getSchema());
        writer.printf("select table: %s\n", request.getTable());
        writer.printf("using  table: %s\n", request.getUsingTable());
        List<HapiGetRequest.Predicate> predicates = request.getPredicates();
        writer.printf("%d predicate%s\n", predicates.size(), predicates.size()==1 ? "" : "s");
        int predicateCount = 1;
        for (HapiGetRequest.Predicate predicate : predicates) {
            writer.printf("%d:\n", predicateCount++);
            writer.printf("  table:  %s\n", predicate.getTableName());
            writer.printf("  column: %s\n", predicate.getColumnName());
            writer.printf("  op:     %s\n", predicate.getOp());
            writer.printf("  value:  %s\n", predicate.getValue());
        }
        writer.printf("\nResult had %d row%s.", rows.size(), rows.size()==1 ? "" : "s");
        writer.flush();
    }
}
<commit_msg>Slight change to output string<commit_after>package com.akiban.cserver.service.memcache.outputter;

import com.akiban.cserver.RowData;
import com.akiban.cserver.RowDefCache;
import com.akiban.cserver.api.HapiGetRequest;
import com.akiban.cserver.api.HapiProcessor;

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

public class RequestEchoOutputter implements HapiProcessor.Outputter {

    private static final RequestEchoOutputter instance = new RequestEchoOutputter();

    public static RequestEchoOutputter instance() {
        return instance;
    }

    private RequestEchoOutputter()
    {}

    @Override
    public void output(HapiGetRequest request, RowDefCache rowDefCache, List<RowData> rows,
                       OutputStream outputStream) throws IOException
    {
        PrintWriter writer = new PrintWriter(outputStream);
        writer.printf("Echoing request %s:\n", request);
        writer.printf("schema:       %s\n", request.getSchema());
        writer.printf("select table: %s\n", request.getTable());
        writer.printf("using  table: %s\n", request.getUsingTable());
        List<HapiGetRequest.Predicate> predicates = request.getPredicates();
        writer.printf("%d predicate%s\n", predicates.size(), predicates.size()==1 ? "" : "s");
        int predicateCount = 1;
        for (HapiGetRequest.Predicate predicate : predicates) {
            writer.printf("%d:\n", predicateCount++);
            writer.printf("  table:  %s\n", predicate.getTableName());
            writer.printf("  column: %s\n", predicate.getColumnName());
            writer.printf("  op:     %s\n", predicate.getOp());
            writer.printf("  value:  %s\n", predicate.getValue());
        }
        writer.printf("\nResult had %d row%s.", rows.size(), rows.size()==1 ? "" : "s");
        writer.flush();
    }
}

{'fraction_non_alphanumeric': 0.13468733297701763, 'fraction_numerical': 0.0016034206306787815, 'mean_word_length': 3.2008978675645343, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6350114', 'n_tokens_mistral': 1112, 'n_tokens_neox': 1071, 'n_words': 224}