<commit_before>package net.sharemycode.service;

import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;

/**
 * sharemycode RESTEasy Web SystemService
 *
 */

@Path("")
public class SystemService {
    /*@GET
    @Path("/{pathParameter}")
    public Response responseMsg( @PathParam("pathParameter") String pathParameter,
        @DefaultValue("No response") @QueryParam("q") String queryParameter) {

        String response = "Hello from: " + pathParameter + ": " + queryParameter;
        return Response.status(200).entity(response).build();
    }*/
    
    
    @GET
    @Path("/client/test")
    public Response clientTest() {
        String response = "Hello client! Connection successful!";
        return Response.status(200).entity(response).build();
    }

}<commit_msg>Added REST services for testing clients<commit_after>package net.sharemycode.service;

import java.util.Map;

import javax.ws.rs.Consumes;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

/**
 * sharemycode REST SystemService
 * @author <NAME>
 * Description: Intended mostly for testing client connections
 */

@Path("/system")
public class SystemService {  
    @GET
    @Path("/test")
    public Response clientGetTest() {
        String response = "Hello client! Connection successful!";
        return Response.status(200).entity(response).build();
    }
    
    @POST
    @Path("/test")
    public Response clientPostTest(String test) {
        String response = "Hello client! You have posted " + test;
        return Response.status(200).entity(response).build();
    }
    
    @POST
    @Path("/test/json")
    @Consumes(MediaType.APPLICATION_JSON)
    @Produces(MediaType.APPLICATION_JSON)
    public Response clientPostJsonTest(Map<String,String> properties) {
        return Response.status(200).entity(properties).build();
    }
    
    @POST
    @Path("test/form")
    @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
    @Produces(MediaType.TEXT_PLAIN)
    public Response clientPostFormTest(@FormParam("name") String name, 
            @FormParam("value") String value) {
        String response = "name: hello, value: world";
        return Response.status(200).entity(response).build();
    }
}
{'fraction_non_alphanumeric': 0.1311740890688259, 'fraction_numerical': 0.0072874493927125505, 'mean_word_length': 3.5339449541284402, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, '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': '4820519', 'n_tokens_mistral': 749, 'n_tokens_neox': 729, 'n_words': 156}