<commit_before>/*
 * Copyright 2017-2018, Strimzi authors.
 * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
 */
package io.strimzi.operator.cluster.model;

import io.strimzi.operator.cluster.InvalidConfigMapException;
import io.vertx.core.json.DecodeException;
import io.vertx.core.json.JsonObject;

import java.util.Map;

public class Utils {
    public static int getInteger(Map<String, String> data, String key, int defaultValue) {
        try {
            if (data.get(key) == null) { // value is not set in ConfigMap -> will be used default value
                return defaultValue;
            }<commit_msg>Util class should be final have have private ctor (#445)<commit_after>/*
 * Copyright 2017-2018, Strimzi authors.
 * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
 */
package io.strimzi.operator.cluster.model;

import io.strimzi.operator.cluster.InvalidConfigMapException;
import io.vertx.core.json.DecodeException;
import io.vertx.core.json.JsonObject;

import java.util.Map;

public final class Utils {


    private Utils() {
        // no-op
    }
    public static int getInteger(Map<String, String> data, String key, int defaultValue) {
        try {
            if (data.get(key) == null) { // value is not set in ConfigMap -> will be used default value
                return defaultValue;
            }
{'fraction_non_alphanumeric': 0.10893854748603352, 'fraction_numerical': 0.018854748603351956, 'mean_word_length': 3.0252808988764044, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2771921', 'n_tokens_mistral': 443, 'n_tokens_neox': 417, 'n_words': 123}