<commit_before>package org.openforis.collect.earth.app.service;

import java.io.File;

import org.apache.commons.lang3.SystemUtils;
import org.openforis.collect.earth.app.EarthConstants;

public class FolderFinder implements getCollectEarthDataFolder {

	private FolderFinder(){
		
	} 
	/**
	 * Returns the folder where the backup copies should be placed.
	 * @return The OS dependent folder where the application should saved the backed up copies. 
	 */
	public static String getCollectEarthDataFolder() {

		File localFolder = null;
		try {
			String userHome = getUserHome();

			userHome += EarthConstants.COLLECT_EARTH_APPDATA_FOLDER;
			localFolder = new File(userHome);
			localFolder.mkdirs();
		} catch (Exception e) {
			e.printStackTrace(); // ATTENTION do not use a logger here!
			
		}
		return localFolder.getAbsolutePath();
	}
	
	private static String getUserHome() {
		String userHome = "" ; <commit_msg>Remove implement<commit_after>package org.openforis.collect.earth.app.service;

import java.io.File;

import org.apache.commons.lang3.SystemUtils;
import org.openforis.collect.earth.app.EarthConstants;

public class FolderFinder {

	private FolderFinder(){
		
	} 
	/**
	 * Returns the folder where the backup copies should be placed.
	 * @return The OS dependent folder where the application should saved the backed up copies. 
	 */
	public static String getCollectEarthDataFolder() {

		File localFolder = null;
		try {
			String userHome = getUserHome();

			userHome += EarthConstants.COLLECT_EARTH_APPDATA_FOLDER;
			localFolder = new File(userHome);
			localFolder.mkdirs();
		} catch (Exception e) {
			e.printStackTrace(); // ATTENTION do not use a logger here!
			
		}
		return localFolder.getAbsolutePath();
	}
	
	private static String getUserHome() {
		String userHome = "" ; 
{'fraction_non_alphanumeric': 0.09302325581395349, 'fraction_numerical': 0.0011074197120708748, 'mean_word_length': 4.075842696629214, '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': '6083074', 'n_tokens_mistral': 592, 'n_tokens_neox': 524, 'n_words': 149}