<commit_before>package com.mychess.mychess;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

public class LoginFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.login_fragment, container, false);
        Button entrar = (Button) view.findViewById(R.id.button);
        entrar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
        return view;
    }
}<commit_msg>inicialización de los controles para usuario y clave y su validación de que no estén vacíos<commit_after>package com.mychess.mychess;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class LoginFragment extends Fragment {
    EditText usuario;
    EditText clave;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.login_fragment, container, false);
        usuario = (EditText) view.findViewById(R.id.loginUsuario);
        clave = (EditText) view.findViewById(R.id.loginClave);
        Button entrar = (Button) view.findViewById(R.id.button);
        entrar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (usuario.getText().length() == 0) {
                    Toast.makeText(getContext(), "usuario vacío", Toast.LENGTH_SHORT).show();
                } else if (clave.getText().length() == 0) {
                    Toast.makeText(getContext(), "clave vacía", Toast.LENGTH_SHORT).show();
                }
            }
        });


        return view;
    }
}
{'fraction_non_alphanumeric': 0.10137375651350071, 'fraction_numerical': 0.0018948365703458077, 'mean_word_length': 3.0, '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': '2556863', 'n_tokens_mistral': 613, 'n_tokens_neox': 578, 'n_words': 136}