<commit_before>/*
 * Copyright 2013-2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cloudfoundry.client.v2.applications;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Singular;
import lombok.ToString;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * The response payload for the Get Application Statistics operation.
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class ApplicationStatisticsResponse extends HashMap<String, ApplicationStatisticsResponse.InstanceStats> {

    private static final long serialVersionUID = 5833542672981662359L;

    ApplicationStatisticsResponse() {
        super();
    }

    @Builder
    ApplicationStatisticsResponse(@Singular Map<String, InstanceStats> instances) {
        super(instances);
    }

    @Data
    public static final class InstanceStats {

        private final String state;

        private final Statistics statistics;

        private final Long uptime;

        @Builder
        InstanceStats(@JsonProperty("state") String state,
                      @JsonProperty("stats") Statistics statistics,
                      @JsonProperty("uptime") Long uptime) {
            this.state = state;
            this.statistics = statistics;
            this.uptime = uptime;
        }

        @Data
        public static final class Statistics {

            private final Long diskQuota;

            private final Integer fdsQuota;

            private final String host;<commit_msg>Update Application Statistics Response<commit_after>/*
 * Copyright 2013-2016 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.cloudfoundry.client.v2.applications;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Singular;
import lombok.ToString;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * The response payload for the Get Application Statistics operation.
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class ApplicationStatisticsResponse extends HashMap<String, ApplicationStatisticsResponse.InstanceStats> {

    private static final long serialVersionUID = 5833542672981662359L;

    ApplicationStatisticsResponse() {
        super();
    }

    @Builder
    ApplicationStatisticsResponse(@Singular Map<String, InstanceStats> instances) {
        super(instances);
    }

    @Data
    public static final class InstanceStats {

        private final String state;

        private final Statistics statistics;

        @Builder
        InstanceStats(@JsonProperty("state") String state,
                      @JsonProperty("stats") Statistics statistics) {
            this.state = state;
            this.statistics = statistics;
        }

        @Data
        public static final class Statistics {

            private final Long diskQuota;

            private final Integer fdsQuota;

            private final String host;
{'fraction_non_alphanumeric': 0.07216981132075471, 'fraction_numerical': 0.01509433962264151, 'mean_word_length': 3.190711462450593, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '7156484', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1029, 'n_words': 379}