<commit_before>package com.proxerme.library.connection.user.entitiy;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;

import com.proxerme.library.interfaces.IdItem;
import com.proxerme.library.interfaces.ImageItem;

/**
 * Entity holding information for the login and about the user after the login.
 *
 * @author <NAME>
 */
public class LoginUser implements Parcelable, IdItem, ImageItem {
    public static final Creator<LoginUser> CREATOR = new Creator<LoginUser>() {
        public LoginUser createFromParcel(Parcel source) {
            return new LoginUser(source);
        }

        public LoginUser[] newArray(int size) {
            return new LoginUser[size];
        }
    };

    String username;
    String password;
    String id;
    String imageId;

    LoginUser() {

    }

    /**
     * Constructor for a user before a login.
     *
     * @param username The username of user.
     * @param password The password of the user.
     */
    public LoginUser(@NonNull String username, @NonNull String password) {
        this.username = username;
        this.password = password;
    }

    /**
     * Constructor for a user after the login.
     *<commit_msg>Add missing annotations to LoginUser<commit_after>package com.proxerme.library.connection.user.entitiy;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;

import com.afollestad.bridge.annotations.Body;
import com.proxerme.library.interfaces.IdItem;
import com.proxerme.library.interfaces.ImageItem;

/**
 * Entity holding information for the login and about the user after the login.
 *
 * @author <NAME>
 */
public class LoginUser implements Parcelable, IdItem, ImageItem {
    public static final Creator<LoginUser> CREATOR = new Creator<LoginUser>() {
        public LoginUser createFromParcel(Parcel source) {
            return new LoginUser(source);
        }

        public LoginUser[] newArray(int size) {
            return new LoginUser[size];
        }
    };

    String username;
    String password;
    @Body(name = "uid")
    String id;
    @Body(name = "avatar")
    String imageId;

    LoginUser() {

    }

    /**
     * Constructor for a user before a login.
     *
     * @param username The username of user.
     * @param password The password of the user.
     */
    public LoginUser(@NonNull String username, @NonNull String password) {
        this.username = username;
        this.password = password;
    }

    /**
     * Constructor for a user after the login.
     *
{'fraction_non_alphanumeric': 0.09252806813782423, 'fraction_numerical': 0.0, 'mean_word_length': 2.7833089311859442, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7253253', 'n_tokens_mistral': 733, 'n_tokens_neox': 725, 'n_words': 214}