<commit_before>package com.liangmayong.android_base.demo;

import android.content.Intent;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.liangmayong.android_base.ImageViewActivity;
import com.liangmayong.android_base.R;
import com.liangmayong.base.basic.flow.FlowBaseFragment;
import com.liangmayong.base.binding.view.annotations.BindLayout;
import com.liangmayong.base.binding.view.annotations.BindTitle;
import com.liangmayong.base.binding.view.annotations.BindView;
import com.liangmayong.base.support.audio.AudioRecorder;
import com.liangmayong.base.support.shake.Shake;
import com.liangmayong.base.support.skin.SkinManager;
import com.liangmayong.base.support.toolbar.DefaultToolbar;
import com.liangmayong.base.support.transitions.ActivityTransitionLauncher;
import com.liangmayong.base.support.utils.DESUtils;
import com.liangmayong.base.support.utils.GoToUtils;
import com.liangmayong.base.widget.iconfont.FontView;
import com.liangmayong.base.widget.iconfont.IconFont;
import com.liangmayong.base.widget.skinview.SkinButton;

/**
 * Created by LiangMaYong on 2016/12/29.
 */
@BindLayout(R.layout.activity_item)
@BindTitle("Android-base")
public class StackF extends FlowBaseFragment {

    @BindView(R.id.tv_title)
    private TextView tv_title;
    @BindView(R.id.et_content)
    private TextView et_content;
    @BindView(R.id.btn_test)
    private SkinButton btn_test;
    @BindView(R.id.imgview)
    private ImageView imgview;

    boolean flag = false;
    AudioRecorder recorder;
    @BindView(R.id.name)
    private FontView name;
    @BindView(R.id.demo)
    private EditText demo;


    @Override
    protected void initViews(final View containerView) {
        imgview.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                final Intent intent = new Intent(getContext(), ImageViewActivity.class);
                ActivityTransitionLauncher.with(getActivity()).from(v).launch(intent);
            }
        });
        btn_test.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                goTo("", "file:///android_asset/demo.html");
            }
        });
        String s = DESUtils.encrypt("ssssssssssss".getBytes(), "ssssss", true);
        showToast(s);
        String s1 = new String(DESUtils.decrypt(s, "ssssss", true));
        showToast(s1.toString());
    }

    @Override
    public void initDefaultToolbar(DefaultToolbar defaultToolbar) {
        super.initDefaultToolbar(defaultToolbar);
        defaultToolbar.rightTwo().icon(IconFont.base_icon_circle_yes).click(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                getDefaultToolbar().message().show(IconFont.base_icon_circle_yes, " 登录成功", SkinManager.get().getSuccessTextColor(), SkinManager.get().getSuccessColor(), 1500);
            }
        });
        defaultToolbar.rightOne().icon(IconFont.base_icon_message).click(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                GoToUtils.goLogcat(getActivity(), null);
            }
        });
        Shake.shakeView(defaultToolbar.leftOne().getView(), 500, false);
    }
}<commit_msg>v 2.0.0 fix webkit<commit_after>package com.liangmayong.android_base.demo;

import android.content.Intent;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.liangmayong.android_base.ImageViewActivity;
import com.liangmayong.android_base.R;
import com.liangmayong.base.basic.flow.FlowBaseFragment;
import com.liangmayong.base.binding.view.annotations.BindLayout;
import com.liangmayong.base.binding.view.annotations.BindTitle;
import com.liangmayong.base.binding.view.annotations.BindView;
import com.liangmayong.base.support.audio.AudioRecorder;
import com.liangmayong.base.support.shake.Shake;
import com.liangmayong.base.support.skin.SkinManager;
import com.liangmayong.base.support.toolbar.DefaultToolbar;
import com.liangmayong.base.support.transitions.ActivityTransitionLauncher;
import com.liangmayong.base.support.utils.GoToUtils;
import com.liangmayong.base.widget.iconfont.FontView;
import com.liangmayong.base.widget.iconfont.IconFont;
import com.liangmayong.base.widget.skinview.SkinButton;

/**
 * Created by LiangMaYong on 2016/12/29.
 */
@BindLayout(R.layout.activity_item)
@BindTitle("Android-base")
public class StackF extends FlowBaseFragment {

    @BindView(R.id.tv_title)
    private TextView tv_title;
    @BindView(R.id.et_content)
    private TextView et_content;
    @BindView(R.id.btn_test)
    private SkinButton btn_test;
    @BindView(R.id.imgview)
    private ImageView imgview;

    boolean flag = false;
    AudioRecorder recorder;
    @BindView(R.id.name)
    private FontView name;
    @BindView(R.id.demo)
    private EditText demo;


    @Override
    protected void initViews(final View containerView) {
        imgview.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                final Intent intent = new Intent(getContext(), ImageViewActivity.class);
                ActivityTransitionLauncher.with(getActivity()).from(v).launch(intent);
            }
        });
        btn_test.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                goTo("", "file:///android_asset/demo.html");
            }
        });
    }

    @Override
    public void initDefaultToolbar(DefaultToolbar defaultToolbar) {
        super.initDefaultToolbar(defaultToolbar);
        defaultToolbar.rightTwo().icon(IconFont.base_icon_circle_yes).click(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                getDefaultToolbar().message().show(IconFont.base_icon_circle_yes, " 登录成功", SkinManager.get().getSuccessTextColor(), SkinManager.get().getSuccessColor(), 1500);
            }
        });
        defaultToolbar.rightOne().icon(IconFont.base_icon_message).click(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                GoToUtils.goLogcat(getActivity(), null);
            }
        });
        Shake.shakeView(defaultToolbar.leftOne().getView(), 500, false);
    }
}
{'fraction_non_alphanumeric': 0.11063040791100123, 'fraction_numerical': 0.005407911001236094, 'mean_word_length': 3.3914518317503393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '6613676', 'n_tokens_mistral': 1975, 'n_tokens_neox': 1926, 'n_words': 302}