<commit_before>import StateProvider from './state-provider'
import DeviceDetector, {Devices} from "../device-detectors/device-detector"

export default class UCBrowserENAndroidStateProvider extends StateProvider {
    constructor(userAgentObj, screenObj, windowObj) {
        let thresholds = {
            landscape : {
                collapsed: 5.75,
                keyboard: 25.5,
            },
            portrait : {
                collapsed: 5.05,
                keyboard: 18.0
            }
        }

        const deviceDetector = new DeviceDetector(userAgentObj)

        switch (deviceDetector.device) {
            case Devices.LENOVO_A889 :
            case Devices.SAMSUNG_GALAXY_NOTE_5 :
            case Devices.SAMSUNG_GALAXY_S4 : thresholds = {
                landscape : {
                    collapsed: 11.3,
                    keyboard: 38.0,
                },
                portrait : {
                    collapsed: 12.85,
                    keyboard: 30.7
                }
            }; break
        }

        super(screenObj, windowObj, thresholds)
    }
}<commit_msg>[ADD] Added support for Galaxy Tab 4 10.1 on Android 5 for UC EN (adjusted thresholds)<commit_after>import StateProvider from './state-provider'
import DeviceDetector, {Devices} from "../device-detectors/device-detector"

export default class UCBrowserENAndroidStateProvider extends StateProvider {
    constructor(userAgentObj, screenObj, windowObj) {
        let thresholds = {
            landscape : {
                collapsed: 5.75,
                keyboard: 25.5,
            },
            portrait : {
                collapsed: 6.55,
                keyboard: 19.4
            }
        }

        const deviceDetector = new DeviceDetector(userAgentObj)

        switch (deviceDetector.device) {
            case Devices.LENOVO_A889 :
            case Devices.SAMSUNG_GALAXY_NOTE_5 :
            case Devices.SAMSUNG_GALAXY_S4 : thresholds = {
                landscape : {
                    collapsed: 11.3,
                    keyboard: 38.0,
                },
                portrait : {
                    collapsed: 12.85,
                    keyboard: 30.7
                }
            }; break
        }

        super(screenObj, windowObj, thresholds)
    }
}
{'fraction_non_alphanumeric': 0.07893589184474488, 'fraction_numerical': 0.028347143480157, 'mean_word_length': 1.4020942408376964, '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': '535811', 'n_tokens_mistral': 675, 'n_tokens_neox': 590, 'n_words': 129}