<commit_before>package tools.vitruv.domains.java.util

import org.emftext.language.java.containers.CompilationUnit

class JavaPersistenceHelper {
	public static def String getJavaProjectSrc() {
		return "src/";
	}
	
	public static def String getPackageInfoClassName() {
		"package-info"
	} 
	
	public static def String buildJavaFilePath(String fileName, Iterable<String> namespaces) {
		return '''src/«FOR namespace : namespaces SEPARATOR "/" AFTER "/"»«namespace»«ENDFOR»«fileName».java''';
	}
	
	public static def String buildJavaFilePath(CompilationUnit compilationUnit) {
		return '''src/«FOR namespace : compilationUnit.namespaces SEPARATOR "/" AFTER "/"»«namespace»«ENDFOR»«compilationUnit.name».java''';
	}
	
	public static def String buildJavaFilePath(org.emftext.language.java.containers.Package javaPackage) {
		return '''src/«FOR namespace : javaPackage.namespaces SEPARATOR "/" AFTER "/"»«namespace»«ENDFOR»«javaPackage.name»/«packageInfoClassName».java''';
	}
}<commit_msg>Change JavaPersistenceHelper build path generation method signature.<commit_after>package tools.vitruv.domains.java.util

import org.emftext.language.java.containers.CompilationUnit

class JavaPersistenceHelper {
	public static def String getJavaProjectSrc() {
		return "src/";
	}
	
	public static def String getPackageInfoClassName() {
		"package-info"
	} 
	
	public static def String buildJavaFilePath(String fileName, String... namespaces) {
		return '''src/«FOR namespace : namespaces SEPARATOR "/" AFTER "/"»«namespace»«ENDFOR»«fileName».java''';
	}
	
	public static def String buildJavaFilePath(CompilationUnit compilationUnit) {
		return '''src/«FOR namespace : compilationUnit.namespaces SEPARATOR "/" AFTER "/"»«namespace»«ENDFOR»«compilationUnit.name».java''';
	}
	
	public static def String buildJavaFilePath(org.emftext.language.java.containers.Package javaPackage) {
		return '''src/«FOR namespace : javaPackage.namespaces SEPARATOR "/" AFTER "/"»«namespace»«ENDFOR»«javaPackage.name»/«packageInfoClassName».java''';
	}
}
{'fraction_non_alphanumeric': 0.12772277227722773, 'fraction_numerical': 0.0, 'mean_word_length': 5.897610921501706, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '685751', 'n_tokens_mistral': 625, 'n_tokens_neox': 591, 'n_words': 204}