<commit_before>package com.simplemobiletools.gallery.extensions

import android.content.Context
import android.content.res.Resources
import android.util.TypedValue

fun Resources.getActionBarHeight(context: Context): Int {
    val tv = TypedValue()
    var height = 0
    if (context.theme.resolveAttribute(android.R.attr.actionBarSize, tv, true)) {
        height = TypedValue.complexToDimensionPixelSize(tv.data, displayMetrics)
    }
    return height
}

fun Resources.getStatusBarHeight(): Int {
    val id = getIdentifier("status_bar_height", "dimen", "android")
    return if (id > 0) {
        getDimensionPixelSize(id)
    } else
        0
}
<commit_msg>Resources.getActionBarHeight() fix return style<commit_after>package com.simplemobiletools.gallery.extensions

import android.content.Context
import android.content.res.Resources
import android.util.TypedValue

fun Resources.getActionBarHeight(context: Context): Int {
    val tv = TypedValue()
    return if (context.theme.resolveAttribute(android.R.attr.actionBarSize, tv, true)) {
        TypedValue.complexToDimensionPixelSize(tv.data, displayMetrics)
    } else
        0
}

fun Resources.getStatusBarHeight(): Int {
    val id = getIdentifier("status_bar_height", "dimen", "android")
    return if (id > 0) {
        getDimensionPixelSize(id)
    } else
        0
}

{'fraction_non_alphanumeric': 0.10119940029985007, 'fraction_numerical': 0.004497751124437781, 'mean_word_length': 4.018796992481203, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6542965', 'n_tokens_mistral': 392, 'n_tokens_neox': 390, 'n_words': 84}