<commit_before>/*
 * Copyright 2022 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.gradle.jvm.toolchain.internal.operations;


/**
 * Details about the Java tool being used and the toolchain it belongs to.
 *
 * @since 7.6
 */
public interface JavaToolchainUsageProgressDetails {

    /**
     * Name of the tool from Java distribution such as {@code javac}, {@code java} or {@code javadoc}.
     */
    String getToolName();

    /**
     * Toolchain to which the tool belongs.
     */
    JavaToolchain getToolchain();

    interface JavaToolchain {

        /**
         * Returns Java language version such as {@code 11.0.15}.
         */
        String getJavaVersion();

        /**
         * Display name of the toolchain vendor such as {@code Eclipse Temurin}.
         */
        String getJavaVendor();

        String getRuntimeName();

        String getRuntimeVersion();

        String getJvmName();

        String getJvmVersion();

        String getJvmVendor();

        String getArchitecture();

    }

}<commit_msg>Add docs to the toolchain usage details<commit_after>/*
 * Copyright 2022 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.gradle.jvm.toolchain.internal.operations;


/**
 * Details about the Java tool being used and the toolchain it belongs to.
 *
 * @since 7.6
 */
public interface JavaToolchainUsageProgressDetails {

    /**
     * Name of the tool from Java distribution such as {@code javac}, {@code java} or {@code javadoc}.
     */
    String getToolName();

    /**
     * Toolchain to which the tool belongs.
     */
    JavaToolchain getToolchain();

    interface JavaToolchain {

        /**
         * Returns Java language version such as {@code 11.0.15}.
         */
        String getJavaVersion();

        /**
         * Returns the display name of the toolchain vendor such as {@code Eclipse Temurin}.
         * <p>
         * The value could be normalized for uniformity, and does not necessarily correspond to a system property value.
         */
        String getJavaVendor();

        /**
         * Returns Java runtime name such as {@code OpenJDK Runtime Environment}.
         */
        String getRuntimeName();

        /**
         * Returns Java runtime version such as {@code 192.168.127.12+2-LTS}.
         */
        String getRuntimeVersion();

        /**
         * Returns Java VM name such as {@code OpenJDK 64-Bit Server VM}.
         */
        String getJvmName();

        /**
         * Returns Java VM version such as {@code 192.168.127.12+2-LTS}.
         * <p>
         * This value is identical to {@link #getRuntimeVersion()} for most of the vendors,
         * but could still differ for example by not including the language version.
         */
        String getJvmVersion();

        /**
         * Returns Java VM vendor such as {@code Eclipse Adoptium}.
         */
        String getJvmVendor();

        /**
         * Returns OS architecture such as {@code amd64}.
         */
        String getArchitecture();

    }

}
{'fraction_non_alphanumeric': 0.09040367416001933, 'fraction_numerical': 0.01401982112642011, 'mean_word_length': 2.3424878836833605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '3116523', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1027, 'n_words': 442}