<commit_before>package org.nativescript.widgets;

import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
import android.support.annotation.ColorInt;

/**
 * Created by hhristov on 2/23/17.
 */

public class SegmentedBarColorDrawable extends ColorDrawable {
    public SegmentedBarColorDrawable(@ColorInt int color) {
        super(color);
    }

    public void draw(android.graphics.Canvas canvas) {
        Paint p = new Paint();
        p.setColor(this.getColor());
        p.setStyle(android.graphics.Paint.Style.FILL);
        canvas.drawRect(0, this.getBounds().height() - 15, this.getBounds().width(), this.getBounds().height(), p);
    }
}<commit_msg>Segmented bar indicatior thickness based on API lvl<commit_after>package org.nativescript.widgets;

import android.graphics.Paint;
import android.graphics.drawable.ColorDrawable;
import android.support.annotation.ColorInt;

/**
 * Created by hhristov on 2/23/17.
 */

public class SegmentedBarColorDrawable extends ColorDrawable {
    static final int indicatorThickness = android.os.Build.VERSION.SDK_INT >= 21 ? 6 : 15;

    public SegmentedBarColorDrawable(@ColorInt int color) {
        super(color);
    }

    public void draw(android.graphics.Canvas canvas) {
        Paint p = new Paint();
        p.setColor(this.getColor());
        p.setStyle(android.graphics.Paint.Style.FILL);
        canvas.drawRect(0, this.getBounds().height() - indicatorThickness, this.getBounds().width(), this.getBounds().height(), p);
    }
}
{'fraction_non_alphanumeric': 0.12301587301587301, 'fraction_numerical': 0.012566137566137565, 'mean_word_length': 3.803174603174603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6651561', 'n_tokens_mistral': 466, 'n_tokens_neox': 441, 'n_words': 93}