<commit_before>package com.netflix.eureka.util;

import java.lang.management.ManagementFactory;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.config.ConfigurationManager;
import com.netflix.discovery.provider.Serializer;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * An utility class for exposing status information of an instance.
 *
 * @author <NAME>
 */
@Serializer("com.netflix.eureka.converters.EntityBodyConverter")
@XStreamAlias("status")
public class StatusInfo {
    private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss Z";

    public static final class Builder {

        @XStreamOmitField
        private StatusInfo result;

        private Builder() {
            result = new StatusInfo();
        }

        public static Builder newBuilder() {
            return new Builder();
        }

        public Builder isHealthy(boolean b) {
            result.isHeathly = Boolean.valueOf(b);
            return this;
        }

        /**
         * Add any application specific status data.
         */
        public Builder add(String key, String value) {
            if (result.applicationStats == null) {
                result.applicationStats = new HashMap<String, String>();
            }
            result.applicationStats.put(key, value);
            return this;<commit_msg>fix package name of serializer<commit_after>package com.netflix.eureka.util;

import java.lang.management.ManagementFactory;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.config.ConfigurationManager;
import com.netflix.discovery.provider.Serializer;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

/**
 * An utility class for exposing status information of an instance.
 *
 * @author <NAME>
 */
@Serializer("com.netflix.discovery.converters.EntityBodyConverter")
@XStreamAlias("status")
public class StatusInfo {
    private static final String DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss Z";

    public static final class Builder {

        @XStreamOmitField
        private StatusInfo result;

        private Builder() {
            result = new StatusInfo();
        }

        public static Builder newBuilder() {
            return new Builder();
        }

        public Builder isHealthy(boolean b) {
            result.isHeathly = Boolean.valueOf(b);
            return this;
        }

        /**
         * Add any application specific status data.
         */
        public Builder add(String key, String value) {
            if (result.applicationStats == null) {
                result.applicationStats = new HashMap<String, String>();
            }
            result.applicationStats.put(key, value);
            return this;
{'fraction_non_alphanumeric': 0.09470404984423676, 'fraction_numerical': 0.0, 'mean_word_length': 2.882708585247884, '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': '6021817', 'n_tokens_mistral': 869, 'n_tokens_neox': 842, 'n_words': 207}