<commit_before>/*
 * Copyright (c) 2016 BreizhCamp
 * [http://breizhcamp.org]
 *
 * This file is part of CFP.io.
 *
 * CFP.io is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package io.cfp.dto.user;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.cfp.entity.User;
import io.cfp.entity.User.Gender;
import io.cfp.entity.User.TshirtSize;

/**
 * Created by tmaugin on 05/06/2015.
 * SII
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserProfil {
    private int id;
    private String lastname;
    private String firstname;
    private String company;
    private String phone;
    private String bio;
    private String social;
    private String twitter;
    private String googleplus;
    private String github;
    private String imageProfilURL;
    private String email;
    private String language = "fr";
    private Gender gender;
    private TshirtSize tshirtSize;

    public UserProfil() {
        super();
    }

    public UserProfil(String firstname, String lastname) {
        super();
        this.firstname = firstname;
        this.lastname = lastname;
    }

    public UserProfil(User user, boolean includePrivateData) {
        this.id = user.getId();
        this.firstname = user.getFirstname();
        this.lastname = user.getLastname();
        this.company = user.getCompany();
        this.twitter = user.getTwitter();
        this.googleplus = user.getGoogleplus();
        this.social = user.getSocial();
        this.language = user.getLanguage();
        this.bio = user.getBio();<commit_msg>missing GitHub ID in profile<commit_after>/*
 * Copyright (c) 2016 BreizhCamp
 * [http://breizhcamp.org]
 *
 * This file is part of CFP.io.
 *
 * CFP.io is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

package io.cfp.dto.user;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.cfp.entity.User;
import io.cfp.entity.User.Gender;
import io.cfp.entity.User.TshirtSize;

/**
 * Created by tmaugin on 05/06/2015.
 * SII
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserProfil {
    private int id;
    private String lastname;
    private String firstname;
    private String company;
    private String phone;
    private String bio;
    private String social;
    private String twitter;
    private String googleplus;
    private String github;
    private String imageProfilURL;
    private String email;
    private String language = "fr";
    private Gender gender;
    private TshirtSize tshirtSize;

    public UserProfil() {
        super();
    }

    public UserProfil(String firstname, String lastname) {
        super();
        this.firstname = firstname;
        this.lastname = lastname;
    }

    public UserProfil(User user, boolean includePrivateData) {
        this.id = user.getId();
        this.firstname = user.getFirstname();
        this.lastname = user.getLastname();
        this.company = user.getCompany();
        this.twitter = user.getTwitter();
        this.googleplus = user.getGoogleplus();
        this.github = user.getGithub();
        this.social = user.getSocial();
        this.language = user.getLanguage();
        this.bio = user.getBio();
{'fraction_non_alphanumeric': 0.09005714285714286, 'fraction_numerical': 0.005942857142857143, 'mean_word_length': 3.051851851851852, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '6430501', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1212, 'n_words': 435}