<commit_before>package com.github.dockerjava.api.model;

import java.util.Map;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Representation of a Docker statistics.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Statistics {

    @JsonProperty("read")
    private String read;

    @JsonProperty("network")
    private Map<String, Object> networkStats;

    @JsonProperty("memory_stats")
    private Map<String, Object> memoryStats;

    @JsonProperty("blkio_stats")
    private Map<String, Object> blkioStats;

    @JsonProperty("cpu_stats")
    private Map<String, Object> cpuStats;

    public Map<String, Object> getNetworkStats() {
        return networkStats;
    }

    public Map<String, Object> getCpuStats() {
        return cpuStats;<commit_msg>Deprecate "network" and enable "networks" stats (remote Docker API 1.21)<commit_after>package com.github.dockerjava.api.model;

import java.util.Map;

import org.apache.commons.lang.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Representation of a Docker statistics.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Statistics {

    @JsonProperty("read")
    private String read;

    @JsonProperty("networks")
    private Map<String, Object> networksStats;

    /**
     * Deprecated as of Docker Remote API 1.21
     */
    @Deprecated
    @JsonProperty("network")
    private Map<String, Object> networkStats;

    @JsonProperty("memory_stats")
    private Map<String, Object> memoryStats;

    @JsonProperty("blkio_stats")
    private Map<String, Object> blkioStats;

    @JsonProperty("cpu_stats")
    private Map<String, Object> cpuStats;

    public Map<String, Object> getNetworksStats() {
        return networksStats;
    }

    public Map<String, Object> getNetworkStats() {
        return networkStats;
    }

    public Map<String, Object> getCpuStats() {
        return cpuStats;
{'fraction_non_alphanumeric': 0.10591016548463357, 'fraction_numerical': 0.0028368794326241137, 'mean_word_length': 4.111111111111111, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5215954', 'n_tokens_mistral': 628, 'n_tokens_neox': 586, 'n_words': 139}