<commit_before>package de.iteratec.osm.result

enum DeviceType {
    DESKTOP("Desktop", "desktop"),
    TABLET("Tablet", "tablet"),
    SMARTPHONE("Smartphone", "mobile"),
    UNDEFINED("Undefined", "question")

    private String label
    private String icon

    private DeviceType(String value, String icon) {
        this.label = value
        this.icon = icon
    }

    String getDeviceTypeLabel(){
        return label
    }

    String getDeviceTypeIcon() {
        return label
    }

    /**
     * Parses the location label to determine the possible device type
     * @param label location label for wptServer
     */
    static DeviceType guessDeviceType(String label) {
        switch (label) {
            case ~/(?i).*(-Win|IE\\s*[1-9]*|firefox|nuc).*/ :
                return DeviceType.DESKTOP
            case ~/(?i).*(Pad|Tab|Note|Xoom|Book|Tablet).*/ :
                return DeviceType.TABLET
            case ~/(?i)(?!(.*(Pad|Tab|Note|Xoom|Book|Tablet).*)).*(Samsung|Moto|Sony|Nexus|Huawei|Nokia|Alcatel|LG|OnePlus|HTC|Phone).*/ :
                return DeviceType.SMARTPHONE
            default: return DeviceType.UNDEFINED
        }
    }
}
<commit_msg>fixed deviceType icon<commit_after>package de.iteratec.osm.result

enum DeviceType {
    DESKTOP("Desktop", "desktop"),
    TABLET("Tablet", "tablet"),
    SMARTPHONE("Smartphone", "mobile"),
    UNDEFINED("Undefined", "question")

    private String label
    private String icon

    private DeviceType(String value, String icon) {
        this.label = value
        this.icon = icon
    }

    String getDeviceTypeLabel(){
        return label
    }

    String getDeviceTypeIcon() {
        return icon
    }

    /**
     * Parses the location label to determine the possible device type
     * @param label location label for wptServer
     */
    static DeviceType guessDeviceType(String label) {
        switch (label) {
            case ~/(?i).*(-Win|IE\\s*[1-9]*|firefox|nuc).*/ :
                return DeviceType.DESKTOP
            case ~/(?i).*(Pad|Tab|Note|Xoom|Book|Tablet).*/ :
                return DeviceType.TABLET
            case ~/(?i)(?!(.*(Pad|Tab|Note|Xoom|Book|Tablet).*)).*(Samsung|Moto|Sony|Nexus|Huawei|Nokia|Alcatel|LG|OnePlus|HTC|Phone).*/ :
                return DeviceType.SMARTPHONE
            default: return DeviceType.UNDEFINED
        }
    }
}

{'fraction_non_alphanumeric': 0.13434727503168567, 'fraction_numerical': 0.0016899028305872412, 'mean_word_length': 2.4071942446043164, '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': '3311832', 'n_tokens_mistral': 762, 'n_tokens_neox': 725, 'n_words': 146}