<commit_before>package android.lib.symmetricprogressbar;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;

public class SymmetricProgressBar extends View implements Animator.AnimatorListener, ValueAnimator.AnimatorUpdateListener {
    private final List<Integer>       colors    = new ArrayList<Integer>(4);
    private final List<Drawable>      drawables = new ArrayList<Drawable>(this.colors.size());
    private final List<ValueAnimator> animators = new ArrayList<ValueAnimator>(this.colors.size());

    private Interpolator interpolator;
    private boolean      animating;
    private boolean      hasRepeated;
    private int          duration;

    /**
     * Creates a new progress bar with range 0..100 and initial progress of 0.
     * @param context The application context.
     */
    public SymmetricProgressBar(final Context context) {
        this(context, null);
    }

    public SymmetricProgressBar(final Context context, final AttributeSet attrs) {
        super(context);

        final TypedArray array;
        final int[]      colors;

        if (attrs == null) {
            array  = null;
            colors = context.getResources().getIntArray(R.array.SymmetricProgressBar_colors);
        } else {
            array  = context.obtainStyledAttributes(attrs, R.styleable.SymmetricProgressBar);<commit_msg>Fix AttributeSet being ignored<commit_after>package android.lib.symmetricprogressbar;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.drawable.ColorDrawable;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;

public class SymmetricProgressBar extends View implements Animator.AnimatorListener, ValueAnimator.AnimatorUpdateListener {
    private final List<Integer>       colors    = new ArrayList<Integer>(4);
    private final List<Drawable>      drawables = new ArrayList<Drawable>(this.colors.size());
    private final List<ValueAnimator> animators = new ArrayList<ValueAnimator>(this.colors.size());

    private Interpolator interpolator;
    private boolean      animating;
    private boolean      hasRepeated;
    private int          duration;

    /**
     * Creates a new progress bar with range 0..100 and initial progress of 0.
     * @param context The application context.
     */
    public SymmetricProgressBar(final Context context) {
        this(context, null);
    }

    public SymmetricProgressBar(final Context context, final AttributeSet attrs) {
        super(context, attrs);

        final TypedArray array;
        final int[]      colors;

        if (attrs == null) {
            array  = null;
            colors = context.getResources().getIntArray(R.array.SymmetricProgressBar_colors);
        } else {
            array  = context.obtainStyledAttributes(attrs, R.styleable.SymmetricProgressBar);
{'fraction_non_alphanumeric': 0.08480470840021402, 'fraction_numerical': 0.0032102728731942215, 'mean_word_length': 3.787451984635083, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6986398', 'n_tokens_mistral': 963, 'n_tokens_neox': 951, 'n_words': 245}