<commit_before>/*
 * Copyright 2012 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.util;

import org.gradle.internal.jvm.JavaHomeException;
import org.gradle.internal.jvm.JavaInfo;

import java.io.File;
import java.util.Map;

@Deprecated
public class Jvm implements JavaInfo {
    private final org.gradle.internal.jvm.Jvm jvm;

    public Jvm(org.gradle.internal.jvm.Jvm current) {
        this.jvm = current;
    }

    public static Jvm current() {
        DeprecationLogger.nagUserWith("The class org.gradle.util.Jvm has been deprecated and will be removed in the next version of Gradle.");
        return new Jvm(org.gradle.internal.jvm.Jvm.current());
    }

    public File getJavaExecutable() throws JavaHomeException {
        return jvm.getJavaExecutable();
    }

    public File getJavadocExecutable() throws JavaHomeException {
        return jvm.getJavadocExecutable();
    }

    public File getExecutable(String name) throws JavaHomeException {
        return jvm.getExecutable(name);
    }

    public boolean isJava5() {
        return jvm.isJava5();
    }

    public boolean isJava6() {
        return jvm.isJava6();
    }

    public boolean isJava7() {
        return jvm.isJava7();
    }

    public boolean isJava5Compatible() {
        return jvm.isJava5Compatible();
    }

    public boolean isJava6Compatible() {
        return jvm.isJava6Compatible();
    }

    public File getJavaHome() {
        return jvm.getJavaHome();
    }

    public File getRuntimeJar() {
        return jvm.getRuntimeJar();
    }

    public File getToolsJar() {
        return jvm.getToolsJar();
    }

    public Map<String, ?> getInheritableEnvironmentVariables(Map<String, ?> envVars) {
        return jvm.getInheritableEnvironmentVariables(envVars);
    }

    public boolean getSupportsAppleScript() {
        return jvm.getSupportsAppleScript();
    }

    public boolean isIbmJvm() {
        return jvm.isIbmJvm();
    }
}<commit_msg>Delegate Jvm.toString() to the new internal Jvm class<commit_after>/*
 * Copyright 2012 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.util;

import org.gradle.internal.jvm.JavaHomeException;
import org.gradle.internal.jvm.JavaInfo;

import java.io.File;
import java.util.Map;

@Deprecated
public class Jvm implements JavaInfo {
    private final org.gradle.internal.jvm.Jvm jvm;

    public Jvm(org.gradle.internal.jvm.Jvm current) {
        this.jvm = current;
    }

    public static Jvm current() {
        DeprecationLogger.nagUserWith("The class org.gradle.util.Jvm has been deprecated and will be removed in the next version of Gradle.");
        return new Jvm(org.gradle.internal.jvm.Jvm.current());
    }

    public File getJavaExecutable() throws JavaHomeException {
        return jvm.getJavaExecutable();
    }

    public File getJavadocExecutable() throws JavaHomeException {
        return jvm.getJavadocExecutable();
    }

    public File getExecutable(String name) throws JavaHomeException {
        return jvm.getExecutable(name);
    }

    public boolean isJava5() {
        return jvm.isJava5();
    }

    public boolean isJava6() {
        return jvm.isJava6();
    }

    public boolean isJava7() {
        return jvm.isJava7();
    }

    public boolean isJava5Compatible() {
        return jvm.isJava5Compatible();
    }

    public boolean isJava6Compatible() {
        return jvm.isJava6Compatible();
    }

    public File getJavaHome() {
        return jvm.getJavaHome();
    }

    public File getRuntimeJar() {
        return jvm.getRuntimeJar();
    }

    public File getToolsJar() {
        return jvm.getToolsJar();
    }

    public Map<String, ?> getInheritableEnvironmentVariables(Map<String, ?> envVars) {
        return jvm.getInheritableEnvironmentVariables(envVars);
    }

    public boolean getSupportsAppleScript() {
        return jvm.getSupportsAppleScript();
    }

    public boolean isIbmJvm() {
        return jvm.isIbmJvm();
    }
    
    public String toString(){
        return jvm.toString();
    }
}
{'fraction_non_alphanumeric': 0.09036144578313253, 'fraction_numerical': 0.006995724834823164, 'mean_word_length': 2.962278675904542, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3312424', 'n_tokens_mistral': 1534, 'n_tokens_neox': 1469, 'n_words': 436}