<commit_before>package io.bxbxbai.zhuanlan.widget;
import android.content.Context;
import android.os.SystemClock;
import android.view.*;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import io.bxbxbai.zhuanlan.R;

public class FloatView extends RelativeLayout {

    private float mTouchStartX;
    private float mTouchStartY;
    private int x;
    private int y;

    private View layout;
    private ImageView imageLogo;
    private TextView textTraffic;
    private ProgressBar pBar;
    private WindowManager wm = (WindowManager) getContext()
            .getApplicationContext().getSystemService(Context.WINDOW_SERVICE);
    private WindowManager.LayoutParams wmParams = new WindowManager.LayoutParams();

    private Context context;

    private Boolean showFlag = false;

    private int progressTemp;
    private int setTemp;
    private Boolean updateFlag = false;

    int i = 0;

    public FloatView(Context context) {
        super(context);
        LayoutInflater inflater = LayoutInflater.from(context);
        layout = inflater.inflate(R.layout.layout_floatview, null);
        imageLogo = (ImageView) layout.findViewById(R.id.image_logo);
        textTraffic = (TextView) layout.findViewById(R.id.text_traffic);
        pBar = (ProgressBar) layout.findViewById(R.id.bar_progressbar);
        addView(layout);
        this.context = context;

        textTraffic.setText("test");

        new Thread(new Runnable() {
            @Override
            public void run() {
                while (true){
                    SystemClock.sleep(1000);
                    i += 20;
                    FloatView.this.post(new Runnable() {
                        @Override
                        public void run() {
                            pBar.setProgress(i);<commit_msg>clean code & opt article page<commit_after>package io.bxbxbai.zhuanlan.widget;
import android.content.Context;
import android.os.SystemClock;
import android.view.*;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import io.bxbxbai.zhuanlan.R;

public class FloatView extends RelativeLayout {

    private float mTouchStartX;
    private float mTouchStartY;
    private int x;
    private int y;

    private View layout;
    private ImageView imageLogo;
    private TextView textTraffic;
    private ProgressBar pBar;
    private WindowManager wm = (WindowManager) getContext()
            .getApplicationContext().getSystemService(Context.WINDOW_SERVICE);
    private WindowManager.LayoutParams wmParams = new WindowManager.LayoutParams();

    private Context context;

    private Boolean showFlag = false;
    private Boolean updateFlag = false;

    int i = 0;

    public FloatView(Context context) {
        super(context);
        LayoutInflater inflater = LayoutInflater.from(context);
        layout = inflater.inflate(R.layout.layout_floatview, null);
        imageLogo = (ImageView) layout.findViewById(R.id.image_logo);
        textTraffic = (TextView) layout.findViewById(R.id.text_traffic);
        pBar = (ProgressBar) layout.findViewById(R.id.bar_progressbar);
        addView(layout);
        this.context = context;

        textTraffic.setText("test");

        new Thread(new Runnable() {
            @Override
            public void run() {
                while (true){
                    SystemClock.sleep(1000);
                    i += 20;
                    FloatView.this.post(new Runnable() {
                        @Override
                        public void run() {
                            pBar.setProgress(i);
{'fraction_non_alphanumeric': 0.08570660934981193, 'fraction_numerical': 0.0037614185921547557, 'mean_word_length': 2.5626794258373207, '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': '5449235', 'n_tokens_mistral': 1021, 'n_tokens_neox': 957, 'n_words': 237}