<commit_before>package com.imcode.imcms.domain.dto;

import com.imcode.imcms.model.UserData;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(exclude = {"password", "<PASSWORD>"}, callSuper = true)
public class UserFormData extends UserData {

    private static final long serialVersionUID = 4260651400624470608L;

    private Integer id;
    private String login;
    private String password;
    private String password2;
    private String firstName;
    private String lastName;
    private String title;
    private String company;
    private String address;
    private String zip;
    private String city;
    private String province;
    private String country;
    private String langCode;
    private String email;
    private boolean active;
    private Integer[] userPhoneNumberType;
    private String[] userPhoneNumber;
    private int[] roleIds;
    private int[] userAdminRoleIds;

    public UserFormData(UserData from) {
        super(from);
    }
}<commit_msg>IMCMS-300 - New design to superadmin-pages: - Added constructor to user form data.<commit_after>package com.imcode.imcms.domain.dto;

import com.imcode.imcms.model.UserData;
import com.imcode.imcms.persistence.entity.User;
import imcode.server.LanguageMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(exclude = {"password", "<PASSWORD>"}, callSuper = true)
public class UserFormData extends UserData {

    private static final long serialVersionUID = 4260651400624470608L;

    private Integer id;
    private String login;
    private String password;
    private String <PASSWORD>;
    private String firstName;
    private String lastName;
    private String title;
    private String company;
    private String address;
    private String zip;
    private String city;
    private String province;
    private String country;
    private String langCode;
    private String email;
    private boolean active;
    private Date createDate;
    private Integer[] userPhoneNumberType;
    private String[] userPhoneNumber;
    private int[] roleIds;
    private int[] userAdminRoleIds;

    public UserFormData(UserData from) {
        super(from);
    }

    public UserFormData(User from) {
        super(from);
        this.setCreateDate(from.getCreateDate());
        this.setActive(from.isActive());
        this.setLangCode(LanguageMapper.convert639_2to639_1(from.getLanguageIso639_2()));
    }
}
{'fraction_non_alphanumeric': 0.07970204841713222, 'fraction_numerical': 0.02011173184357542, 'mean_word_length': 3.992565055762082, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '2979501', 'n_tokens_mistral': 797, 'n_tokens_neox': 748, 'n_words': 218}