<commit_before>package org.xtext.gradle.idea.tasks

import com.google.common.collect.Lists
import java.io.File
import org.eclipse.xtend.lib.annotations.Accessors
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.JavaExec
import org.gradle.api.internal.tasks.options.Option
import static extension org.xtext.gradle.idea.tasks.GradleExtensions.*

@Accessors
class RunIdea extends JavaExec {
	@Input File sandboxDir
	@Input File ideaHome
	@Input boolean debugBuilder
	File systemPath
	File configPath

	new() {
		main = "com.intellij.idea.Main"
		maxHeapSize = "2G"
		jvmArgs("-XX:MaxPermSize=512m")
	}
	
	@Input
	def getSystemPath() {
		if (systemPath == null) {
			project.buildDir / "idea-system"
		} else {
			systemPath
		}
	}
	
	@Input
	def getConfigPath() {
		if (configPath == null) {
			project.buildDir / "idea-config"
		} else {
			configPath
		}
	}

	override getJvmArgs() {
		val args = Lists.newArrayList(super.jvmArgs)
		args += '''-ea'''
		args += '''-Didea.home.path=«ideaHome»'''
		args += '''-Didea.plugins.path=«sandboxDir»'''
		args += '''-Didea.system.path=«getSystemPath»'''
		args += '''-Didea.config.path=«getConfigPath»'''
		if (debugBuilder) {
			args += '''-Dcompiler.process.debug.port=5005'''
		}
		args
	}
	<commit_msg>Remove idea config/system path from runIdea<commit_after>package org.xtext.gradle.idea.tasks

import com.google.common.collect.Lists
import java.io.File
import org.eclipse.xtend.lib.annotations.Accessors
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.JavaExec
import org.gradle.api.internal.tasks.options.Option
import static extension org.xtext.gradle.idea.tasks.GradleExtensions.*

@Accessors
class RunIdea extends JavaExec {
	@Input File sandboxDir
	@Input File ideaHome
	@Input boolean debugBuilder
	File systemPath
	File configPath

	new() {
		main = "com.intellij.idea.Main"
		maxHeapSize = "2G"
		jvmArgs("-XX:MaxPermSize=512m")
	}
	
	@Input
	def getSystemPath() {
		if (systemPath == null) {
			project.buildDir / "idea-system"
		} else {
			systemPath
		}
	}
	
	@Input
	def getConfigPath() {
		if (configPath == null) {
			project.buildDir / "idea-config"
		} else {
			configPath
		}
	}

	override getJvmArgs() {
		val args = Lists.newArrayList(super.jvmArgs)
		args += '''-ea'''
		args += '''-Didea.home.path=«ideaHome»'''
		args += '''-Didea.plugins.path=«sandboxDir»'''
		if (debugBuilder) {
			args += '''-Dcompiler.process.debug.port=5005'''
		}
		args
	}
	
{'fraction_non_alphanumeric': 0.14513491414554375, 'fraction_numerical': 0.006541291905151268, 'mean_word_length': 3.9235412474849096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6037969', 'n_tokens_mistral': 959, 'n_tokens_neox': 870, 'n_words': 183}