<commit_before>package com.hubspot.singularity.resources;

import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

import org.apache.mesos.Protos;

import com.google.inject.Inject;
import com.hubspot.singularity.SingularityManaged;
import com.hubspot.singularity.SingularityState;
import com.hubspot.singularity.data.RequestManager;
import com.hubspot.singularity.data.TaskManager;

@Path("/state")<commit_msg>add json<commit_after>package com.hubspot.singularity.resources;

import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import org.apache.mesos.Protos;

import com.google.inject.Inject;
import com.hubspot.singularity.SingularityManaged;
import com.hubspot.singularity.SingularityState;
import com.hubspot.singularity.data.RequestManager;
import com.hubspot.singularity.data.TaskManager;

@Path("/state")
@Produces({ MediaType.APPLICATION_JSON })
{'fraction_non_alphanumeric': 0.1145737855178735, 'fraction_numerical': 0.0, 'mean_word_length': 6.636363636363637, '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': '6991412', 'n_tokens_mistral': 360, 'n_tokens_neox': 352, 'n_words': 52}