<commit_before>package org.daisy.pipeline.gui.utils;

public class PlatformUtils {

	public static boolean isMac() {
		return System.getProperty("os.name").toLowerCase().contains("mac"); 
	}
	public static boolean isWin() {
		return System.getProperty("os.name").toLowerCase().contains("win");
	}
	public static boolean isUnix() {
		return System.getProperty("os.name").toLowerCase().contains("nix");
	}
	public static String getFileBrowserCommand() {
		if (isMac()) {
			return "open";
		}
		if (isWin()) {
			return "explorer";
		}
		if (isUnix()) {
			return "nautilus"; // TODO is this right?
		}
		return "";
	}
}<commit_msg>changed unix file browse command to xdg-open<commit_after>package org.daisy.pipeline.gui.utils;

public class PlatformUtils {

	public static boolean isMac() {
		return System.getProperty("os.name").toLowerCase().contains("mac"); 
	}
	public static boolean isWin() {
		return System.getProperty("os.name").toLowerCase().contains("win");
	}
	public static boolean isUnix() {
		return System.getProperty("os.name").toLowerCase().contains("nix");
	}
	public static String getFileBrowserCommand() {
		if (isMac()) {
			return "open";
		}
		if (isWin()) {
			return "explorer";
		}
		if (isUnix()) {
			return "xdg-open"; 
		}
		return "";
	}
}
{'fraction_non_alphanumeric': 0.16312056737588654, 'fraction_numerical': 0.0, 'mean_word_length': 4.269709543568465, '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': '827084', 'n_tokens_mistral': 442, 'n_tokens_neox': 416, 'n_words': 90}