<commit_before>/*
 * Copyright 2015 Datalogics, Inc.
 */

package com.datalogics.pdf.samples.util;

import com.adobe.pdfjt.Version;

import org.apache.maven.artifact.versioning.DefaultArtifactVersion;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Utility class that holds methods related to checking the version of PDF Java Toolkit components.
 */
public class VersionUtils {

    /**
     * Check to see if PDFJT is before version 4.0.0-SNAPSHOT.
     *
     * <p>
     * This is necessary to accommodate both old and new dependencies on PDFJT. Uses the version.properties resource
     * stored in PDFJT.
     *
     * @return is PDFJT before version 4.0.0-SNAPSHOT
     * @throws IOException an I/O operation failed or was interrupted<commit_msg>Provide private constructor to avoid PMD error<commit_after>/*
 * Copyright 2015 Datalogics, Inc.
 */

package com.datalogics.pdf.samples.util;

import com.adobe.pdfjt.Version;

import org.apache.maven.artifact.versioning.DefaultArtifactVersion;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Utility class that holds methods related to checking the version of PDF Java Toolkit components.
 */
public final class VersionUtils {

    private VersionUtils() {}

    /**
     * Check to see if PDFJT is before version 4.0.0-SNAPSHOT.
     *
     * <p>
     * This is necessary to accommodate both old and new dependencies on PDFJT. Uses the version.properties resource
     * stored in PDFJT.
     *
     * @return is PDFJT before version 4.0.0-SNAPSHOT
     * @throws IOException an I/O operation failed or was interrupted
{'fraction_non_alphanumeric': 0.08413461538461539, 'fraction_numerical': 0.01201923076923077, 'mean_word_length': 3.358638743455497, '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': '2403511', 'n_tokens_mistral': 504, 'n_tokens_neox': 488, 'n_words': 166}