<commit_before>package com.hanks.zhe800.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageButton;

import com.hanks.zhe800.R;
import com.hanks.zhe800.constant.Constant;
import com.hanks.zhe800.util.ActivityUtils;
import com.hanks.zhe800.util.SPUtils;

/**
 * Created by Hanks on 2015/9/29.
 */
public class ChooseRoleActivity extends BaseActivity {

    private ImageButton ib_girl;
    private ImageButton ib_lama;
    private ImageButton ib_boy;
    private CheckBox cb_student;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_role);
        bindViews();
        bindListeners();
    }

    private void bindListeners() {
        ChooseRoleClickListener clickListener = new ChooseRoleClickListener();
        ib_boy.setOnClickListener(clickListener);
        ib_lama.setOnClickListener(clickListener);
        ib_girl.setOnClickListener(clickListener);
    }

    // End Of Content View Elements

    private void bindViews() {
        ib_girl = (ImageButton) findViewById(R.id.ib_girl);
        ib_lama = (ImageButton) findViewById(R.id.ib_lama);
        ib_boy = (ImageButton) findViewById(R.id.ib_boy);
        cb_student = (CheckBox) findViewById(R.id.cb_student);
    }

    public void finishChoose(View view) {
        SPUtils.put(context, Constant.AppConfig.IS_FIRST, false);
        ActivityUtils.goOtherActivityFinish(context, MainActivity.class);
    }

    class ChooseRoleClickListener implements View.OnClickListener {

        @Override<commit_msg>finish Guide and ChooseRole, fix default role<commit_after>package com.hanks.zhe800.ui.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.CheckBox;
import android.widget.ImageButton;

import com.hanks.zhe800.R;
import com.hanks.zhe800.constant.Constant;
import com.hanks.zhe800.util.ActivityUtils;
import com.hanks.zhe800.util.SPUtils;

/**
 * Created by Hanks on 2015/9/29.
 */
public class ChooseRoleActivity extends BaseActivity {

    private ImageButton ib_girl;
    private ImageButton ib_lama;
    private ImageButton ib_boy;
    private CheckBox cb_student;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_choose_role);
        bindViews();
        bindListeners();
    }

    private void bindListeners() {
        ChooseRoleClickListener clickListener = new ChooseRoleClickListener();
        ib_boy.setOnClickListener(clickListener);
        ib_lama.setOnClickListener(clickListener);
        ib_girl.setOnClickListener(clickListener);
        ib_girl.setSelected(true);
    }

    // End Of Content View Elements

    private void bindViews() {
        ib_girl = (ImageButton) findViewById(R.id.ib_girl);
        ib_lama = (ImageButton) findViewById(R.id.ib_lama);
        ib_boy = (ImageButton) findViewById(R.id.ib_boy);
        cb_student = (CheckBox) findViewById(R.id.cb_student);
    }

    public void finishChoose(View view) {
        SPUtils.put(context, Constant.AppConfig.IS_FIRST, false);
        ActivityUtils.goOtherActivityFinish(context, MainActivity.class);
    }

    class ChooseRoleClickListener implements View.OnClickListener {

        @Override
{'fraction_non_alphanumeric': 0.09144717372003551, 'fraction_numerical': 0.013021604024859426, 'mean_word_length': 3.61118690313779, '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': '3957522', 'n_tokens_mistral': 1028, 'n_tokens_neox': 953, 'n_words': 192}