<commit_before>package nu.redpois0n.oslib.linux;

import nu.redpois0n.oslib.Utils;

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

public class DistroDetector {

    public static DistroSpec detect() {
        Distro distro = null;
        try {
            String detect = null;
            String release = null;
            String codename = null;

            boolean lsbReleaseExists = false;

            List<String> lsbRelease = null;

            try {
                lsbRelease = Utils.readProcess(new String[]{"lsb_release", "-irc"});
                lsbReleaseExists = lsbRelease.size() == 3;
            } catch (Exception ex) {
                ex.printStackTrace();
            }

            Map<String, String> osreleaseMap = null;
            Map<String, String> lsbreleaseMap = null;<commit_msg>avoid throwing stacktrace for lsb_release binary not available<commit_after>package nu.redpois0n.oslib.linux;

import nu.redpois0n.oslib.Utils;

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

public class DistroDetector {

    public static DistroSpec detect() {
        Distro distro = null;
        try {
            String detect = null;
            String release = null;
            String codename = null;

            boolean lsbReleaseExists = false;

            List<String> lsbRelease = null;

            try {
                lsbRelease = Utils.readProcess(new String[]{"lsb_release", "-irc"});
                lsbReleaseExists = lsbRelease.size() == 3;
            } catch (Exception ex) {
                System.out.println("Failed to execute lsb_release -irc");
            }

            Map<String, String> osreleaseMap = null;
            Map<String, String> lsbreleaseMap = null;
{'fraction_non_alphanumeric': 0.09469480889903023, 'fraction_numerical': 0.0034227039361095267, 'mean_word_length': 2.0034246575342465, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6343513', 'n_tokens_mistral': 510, 'n_tokens_neox': 482, 'n_words': 122}