<commit_before>// Default resource and management functions

.pragma library

// A deep copy function
function extend() {
    var args = Array.prototype.slice.call(arguments, 0);
    var target = args[0];
    var objects = args.slice(1,args.length);

    for (var i in objects) {
        var next = objects[i];
        for (var j in next) {
            if (typeof next[j] === "object") {
                if (target[j] === undefined)
                    target[j] = {};
                extend(target[j],next[j])
            } else {
                target[j] = next[j];
            }

        }
    }

    return target;
}

// Deep copy of attributes that is existed on dst only.
function copy(dst,src) {
    for (var i in dst) {
        if (src.hasOwnProperty(i)) {
            if (typeof src[i] === "object") {
                if (typeof dst[i] !== "object")
                    dst[i] = {}
                dst[i] = extend(dst[i],src[i]);
            } else {
                dst[i] = src[i];
            }
        }
    }

    return dst;
}

/* Style */

// values/styles.xml
var Style = {};

function load(style) {
    extend(Style,style);
}

// Default Theme is Holo Light

var colors = {
    bright_foreground_light :"#ff000000",
    bright_foreground_dark : "#ffffffff",

    bright_foreground_disabled_holo_light : "#ffb2b2b2",
    background_dark : "#ff000000",
    background_holo_light : "#fff3f3f3",

    bright_foreground_disabled_holo_light: "#ffb2b2b2",
    bright_foreground_holo_light : "#fff3f3f3",

    bright_foreground_light_disabled: "#80000000",

    dim_foreground_disabled_holo_light: "#80323232",
    dim_foreground_holo_light:"#323232"
}

var config = {
    config_activityDefaultDur : 220,
    config_activityShortDur : 150
}

Style.Theme = {
    colorBackground : "drawable/BackgroundHoloLight.qml"
}

Style.TextAppearance = {
    textSize : 16,
    textColor : {
        // primary_text_light.xml
        disabled : colors.bright_foreground_light_disabled,
        focused :  colors.bright_foreground_light,
        pressed:   colors.bright_foreground_light,
        activated: colors.bright_foreground_light,
        color:     colors.bright_foreground_light
    }
};

Style.TextAppearance.Large = extend({},Style.TextAppearance,{
    textSize : 22
});

Style.TextAppearance.Medium = extend({},Style.TextAppearance,{
    textSize : 18
});

Style.TextAppearance.Small = extend({},Style.TextAppearance,{
    textSize: 14,
    textColor : {
        disabled : colors.dim_foreground_disabled_holo_light,
        focused :  colors.dim_foreground_holo_light,
        pressed:   colors.dim_foreground_holo_light,
        activated: colors.dim_foreground_holo_light,
        color:     colors.dim_foreground_holo_light
    }
});

Style.dividerVertical = "#1A000000"

/* ActionBar */

Style.ActionBar = {
    icon : "",
    background : "drawable/ActionBarBackground.qml",
    actionButtonBackground : "drawable/ItemBackgroundHoloLight.qml",
    titleTextStyle : extend({},Style.TextAppearance.Medium),
    homeAsUpIndicator : "drawable-xxhdpi/ic_ab_back_holo_light_am.png",
    homeMarginLeft: 0,
    divider: Style.dividerVertical,
    padding : 8
}

/* Spinner */

Style.Spinner = {<commit_msg>ActionBar.qml : Changed the default homeMarginLeft from 0 to -2<commit_after>// Default resource and management functions

.pragma library

// A deep copy function
function extend() {
    var args = Array.prototype.slice.call(arguments, 0);
    var target = args[0];
    var objects = args.slice(1,args.length);

    for (var i in objects) {
        var next = objects[i];
        for (var j in next) {
            if (typeof next[j] === "object") {
                if (target[j] === undefined)
                    target[j] = {};
                extend(target[j],next[j])
            } else {
                target[j] = next[j];
            }

        }
    }

    return target;
}

// Deep copy of attributes that is existed on dst only.
function copy(dst,src) {
    for (var i in dst) {
        if (src.hasOwnProperty(i)) {
            if (typeof src[i] === "object") {
                if (typeof dst[i] !== "object")
                    dst[i] = {}
                dst[i] = extend(dst[i],src[i]);
            } else {
                dst[i] = src[i];
            }
        }
    }

    return dst;
}

/* Style */

// values/styles.xml
var Style = {};

function load(style) {
    extend(Style,style);
}

// Default Theme is Holo Light

var colors = {
    bright_foreground_light :"#ff000000",
    bright_foreground_dark : "#ffffffff",

    bright_foreground_disabled_holo_light : "#ffb2b2b2",
    background_dark : "#ff000000",
    background_holo_light : "#fff3f3f3",

    bright_foreground_disabled_holo_light: "#ffb2b2b2",
    bright_foreground_holo_light : "#fff3f3f3",

    bright_foreground_light_disabled: "#80000000",

    dim_foreground_disabled_holo_light: "#80323232",
    dim_foreground_holo_light:"#323232"
}

var config = {
    config_activityDefaultDur : 220,
    config_activityShortDur : 150
}

Style.Theme = {
    colorBackground : "drawable/BackgroundHoloLight.qml"
}

Style.TextAppearance = {
    textSize : 16,
    textColor : {
        // primary_text_light.xml
        disabled : colors.bright_foreground_light_disabled,
        focused :  colors.bright_foreground_light,
        pressed:   colors.bright_foreground_light,
        activated: colors.bright_foreground_light,
        color:     colors.bright_foreground_light
    }
};

Style.TextAppearance.Large = extend({},Style.TextAppearance,{
    textSize : 22
});

Style.TextAppearance.Medium = extend({},Style.TextAppearance,{
    textSize : 18
});

Style.TextAppearance.Small = extend({},Style.TextAppearance,{
    textSize: 14,
    textColor : {
        disabled : colors.dim_foreground_disabled_holo_light,
        focused :  colors.dim_foreground_holo_light,
        pressed:   colors.dim_foreground_holo_light,
        activated: colors.dim_foreground_holo_light,
        color:     colors.dim_foreground_holo_light
    }
});

Style.dividerVertical = "#1A000000"

/* ActionBar */

Style.ActionBar = {
    icon : "",
    background : "drawable/ActionBarBackground.qml",
    actionButtonBackground : "drawable/ItemBackgroundHoloLight.qml",
    titleTextStyle : extend({},Style.TextAppearance.Medium),
    homeAsUpIndicator : "drawable-xxhdpi/ic_ab_back_holo_light_am.png",
    homeMarginLeft: -2,
    divider: Style.dividerVertical,
    padding : 8
}

/* Spinner */

Style.Spinner = {
{'fraction_non_alphanumeric': 0.11808231848312009, 'fraction_numerical': 0.0225065515646678, 'mean_word_length': 2.634733893557423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 4, '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': '7014812', 'n_tokens_mistral': 2187, 'n_tokens_neox': 2053, 'n_words': 382}