<commit_before>package com.pkrete.xrd4j.tools.testservice.util;

import java.util.Random;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.commons.lang3.RandomStringUtils;

/**
 * This class offers helper methods for the application.
 *
 * @author <NAME>
 */
public class ApplicationHelper {

    private static final Logger logger = LoggerFactory.getLogger(ApplicationHelper.class);

    /**
     * Returns a random string of given length.
     *
     * @param length length of the string
     * @return random string<commit_msg>Fixed SonarQube findings.<commit_after>package com.pkrete.xrd4j.tools.testservice.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.commons.lang3.RandomStringUtils;

/**
 * This class offers helper methods for the application.
 *
 * @author <NAME>
 */
public class ApplicationHelper {

    private static final Logger logger = LoggerFactory.getLogger(ApplicationHelper.class);

    /**
     * Constructs and initializes a new ApplicationHelper object. Should never
     * be used.
     */
    private ApplicationHelper() {

    }

    /**
     * Returns a random string of given length.
     *
     * @param length length of the string
     * @return random string
{'fraction_non_alphanumeric': 0.09185303514376997, 'fraction_numerical': 0.006389776357827476, 'mean_word_length': 3.475, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1376876', 'n_tokens_mistral': 358, 'n_tokens_neox': 351, 'n_words': 102}