<commit_before>/*******************************************************************************
 * Copyright (c) 2012 Pivotal Software, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Pivotal Software, Inc. - initial API and implementation
 *******************************************************************************/
package org.springsource.ide.eclipse.gradle.core.test.util;

import java.io.File;
import java.util.List;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.launching.IVMInstall;
import org.eclipse.jdt.launching.JavaRuntime;
import org.springsource.ide.eclipse.gradle.core.GradleCore;

/**
 * Provides some tools to ensure we have a Java 6 or 7 compatible Java runtime 
 * configured in the workspace. This is because some test projects
 * require specific Java runtimes to import and compile correctly.
 * 
 * @author <NAME>
 */
public class JavaXXRuntime {

	//By default the Eclipse workspace probably has no knowledge of any Java 7 runtimes.
	// So we must provide the means to find it. Below is a list of places that we will
	// check in order. If something exists there we will assume it is a Java 7 JDK.
	
	static String[] java7locations = {
		"/home/kdvolder/Applications/jdk1.7.0_17", // On Kris's machine
		"/opt/java/jdk/Sun/1.7"  // on springsource build server
	};
	static String[] java6locations = {
		"/usr/lib/jvm/java-6-sun", // On a ubuntu machine that has sun java 6 installed
		"/usr/lib/jvm/java-6-oracle", // On a ubuntu machine that has oracle java 6 installed
		"/opt/java/jdk/Sun/1.6"  // on springsource build server
	};
	
	/**
	 * Switch 'everyone' to using Java 7 as a default.
	 */<commit_msg>Add location for Java 6 on kdvolder machine<commit_after>/*******************************************************************************
 * Copyright (c) 2012 Pivotal Software, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Pivotal Software, Inc. - initial API and implementation
 *******************************************************************************/
package org.springsource.ide.eclipse.gradle.core.test.util;

import java.io.File;
import java.util.List;

import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jdt.launching.IVMInstall;
import org.eclipse.jdt.launching.JavaRuntime;
import org.springsource.ide.eclipse.gradle.core.GradleCore;

/**
 * Provides some tools to ensure we have a Java 6 or 7 compatible Java runtime 
 * configured in the workspace. This is because some test projects
 * require specific Java runtimes to import and compile correctly.
 * 
 * @author <NAME>
 */
public class JavaXXRuntime {

	//By default the Eclipse workspace probably has no knowledge of any Java 7 runtimes.
	// So we must provide the means to find it. Below is a list of places that we will
	// check in order. If something exists there we will assume it is a Java 7 JDK.
	
	static String[] java7locations = {
		"/home/kdvolder/Applications/jdk1.7.0_17", // On Kris's machine
		"/opt/java/jdk/Sun/1.7"  // on springsource build server
	};
	static String[] java6locations = {
		"/home/kdvolder/Applications/jdk1.6.0_45", // On Kris's machine
		"/usr/lib/jvm/java-6-sun", // On a ubuntu machine that has sun java 6 installed
		"/usr/lib/jvm/java-6-oracle", // On a ubuntu machine that has oracle java 6 installed
		"/opt/java/jdk/Sun/1.6"  // on springsource build server
	};
	
	/**
	 * Switch 'everyone' to using Java 7 as a default.
	 */
{'fraction_non_alphanumeric': 0.17035175879396985, 'fraction_numerical': 0.015577889447236181, 'mean_word_length': 4.007547169811321, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7065675', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1085, 'n_words': 409}