<commit_before>package com.jdroid.android.social;

import com.jdroid.android.domain.Entity;

/**
 * 
 * @author <NAME>
 */
public class SocialUser extends Entity {
	
	private String socialId;
	private AccountType socialNetwork;
	private String firstName;
	private String lastName;
	private String imageURL;
	
	public SocialUser(Long id, String socialId, AccountType socialNetwork, String firstName, String lastName,
			String imageURL) {
		super(id);
		this.socialId = socialId;
		this.socialNetwork = socialNetwork;
		this.firstName = firstName;
		this.lastName = lastName;
		this.imageURL = imageURL;
	}
	
	public String getFullname() {
		return firstName + " " + lastName;
	}
	
	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}
	
	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}
	
	public String getImageUrl() {
		return imageURL;
	}
	
	/**<commit_msg>Make last name optional on SocialUser<commit_after>package com.jdroid.android.social;

import com.jdroid.android.domain.Entity;

/**
 * 
 * @author <NAME>
 */
public class SocialUser extends Entity {
	
	private String socialId;
	private AccountType socialNetwork;
	private String firstName;
	private String lastName;
	private String imageURL;
	
	public SocialUser(Long id, String socialId, AccountType socialNetwork, String firstName, String lastName,
			String imageURL) {
		super(id);
		this.socialId = socialId;
		this.socialNetwork = socialNetwork;
		this.firstName = firstName;
		this.lastName = lastName;
		this.imageURL = imageURL;
	}
	
	public String getFullname() {
		StringBuilder builder = new StringBuilder();
		builder.append(firstName);
		if (lastName != null) {
			builder.append(" ");
			builder.append(lastName);
		}
		return builder.toString();
	}
	
	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}
	
	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}
	
	public String getImageUrl() {
		return imageURL;
	}
	
	/**
{'fraction_non_alphanumeric': 0.10513447432762836, 'fraction_numerical': 0.0, 'mean_word_length': 3.8254716981132075, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6890456', 'n_tokens_mistral': 693, 'n_tokens_neox': 622, 'n_words': 168}