<commit_before>package org.app.application.fragments;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.FrameLayout;

import org.app.application.R;
import org.app.material.widget.LayoutHelper;
import org.app.material.widget.Switch;

public class SwitchFragment extends Fragment {

    private Switch mSwitch1;
    private Switch mSwitch2;

    private boolean check1 = false;
    private boolean check2 = false;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_switch, container, false);

        FrameLayout layout = (FrameLayout) view.findViewById(R.id.frameLock);
        layout.setBackgroundColor(0xFFF0F0F0);

        mSwitch1 = (Switch) view.findViewById(R.id.m_switch);
        mSwitch1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                check1 = !check1;
                mSwitch1.setChecked(check1);
            }
        });

        mSwitch2 = new Switch(getContext());
        //mSwitch2.setClickable(true);
        mSwitch2.setLayoutParams(LayoutHelper.makeFrame(getContext(), LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.CENTER_HORIZONTAL, 0, 150, 0, 0));
        mSwitch2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                check2 = !check2;
                mSwitch2.setChecked(check2);
            }
        });
        layout.addView(mSwitch2);

        mSwitch2
            .withRTL(false)
            .withAnimationDuration(220);

        return view;
    }
}<commit_msg>Update demo app<commit_after>package org.app.application.fragments;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.FrameLayout;

import org.app.application.R;
import org.app.material.widget.LayoutHelper;
import org.app.material.widget.Switch;

public class SwitchFragment extends Fragment {

    private Switch mSwitch1;
    private Switch mSwitch2;

    private boolean check1 = false;
    private boolean check2 = false;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_switch, container, false);

        FrameLayout layout = (FrameLayout) view.findViewById(R.id.frameLock);
        layout.setBackgroundColor(0xFFF0F0F0);

        mSwitch1 = (Switch) view.findViewById(R.id.m_switch);
        mSwitch1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                check1 = !check1;
                mSwitch1.setChecked(check1);
            }
        });

        mSwitch2 = new Switch(getContext());
        //mSwitch2.setClickable(true);
        mSwitch2.setLayoutParams(LayoutHelper.makeFrame(getContext(), LayoutHelper.WRAP_CONTENT, LayoutHelper.WRAP_CONTENT, Gravity.CENTER_HORIZONTAL, 0, 150, 0, 0));
        mSwitch2.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
                check2 = !check2;
                mSwitch2.setChecked(check2);
            }
        });
        layout.addView(mSwitch2);

        mSwitch2
            .withRTL(false)
            .withAnimationDuration(220);

        return view;
    }


}
{'fraction_non_alphanumeric': 0.08900523560209424, 'fraction_numerical': 0.01618277010947168, 'mean_word_length': 3.1165523996082274, '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': '1463666', 'n_tokens_mistral': 1197, 'n_tokens_neox': 1134, 'n_words': 226}