<commit_before>package com.king.app.workhelper.activity;

import android.app.ProgressDialog;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.widget.TextView;

import com.king.app.workhelper.R;
import com.king.app.workhelper.common.AppBaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author VanceKing
 * @since 2017/12/11.
 */

public class TestActivity extends AppBaseActivity {
    @BindView(R.id.tv_open_qq) TextView mTestTv;
    private ProgressDialog mProgressDialog;

    @Override protected int getContentLayout() {
        return R.layout.activity_test;
    }

    @Override protected void initContentView() {
        super.initContentView();
        mProgressDialog = new ProgressDialog(this);
        HandlerThread handlerThread = new HandlerThread("atthread");
        handlerThread.start();
        Handler mHandler = new Handler(handlerThread.getLooper());
        mHandler.post(new AtThread());

    }

    public class AtThread implements Runnable {
        @Override
        public void run() {
            mProgressDialog.setMessage("哈哈哈");
            mProgressDialog.show();
            mProgressDialog.dismiss();
        }
    }

    @OnClick(R.id.tv_open_qq)
    public void onTestViewClick(TextView textView) {
        new Thread(){
            @Override public void run() {
                super.run();
                Looper.prepare();
                mProgressDialog.show();
            }
        }.start();
    }
}<commit_msg>[test] 子线程更新UI错误栈<commit_after>package com.king.app.workhelper.activity;

import android.widget.TextView;

import com.king.app.workhelper.R;
import com.king.app.workhelper.common.AppBaseActivity;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * @author VanceKing
 * @since 2017/12/11.
 */

public class TestActivity extends AppBaseActivity {
    @BindView(R.id.tv_open_qq) TextView mTestTv;

    @Override protected int getContentLayout() {
        return R.layout.activity_test;
    }

    @Override protected void initContentView() {
        super.initContentView();
    }

    @OnClick(R.id.tv_open_qq)
    public void onTestViewClick(TextView textView) {
        new Thread(){
            @Override public void run() {
                super.run();
                mTestTv.setText("喔喔喔");
            }
        }.start();
    }
}
{'fraction_non_alphanumeric': 0.1069182389937107, 'fraction_numerical': 0.0067085953878406705, 'mean_word_length': 2.716510903426791, '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': '1089073', 'n_tokens_mistral': 730, 'n_tokens_neox': 698, 'n_words': 137}