<commit_before>package de.doridian.steammobile.messages;

import de.doridian.steammobile.friend.Friend;
import org.json.simple.JSONObject;

import java.util.Map;

@Message.Type("personarelationship")
public class PersonaRelationshipMessage extends Message {
	public final Friend.State persona_state;
	public final String persona_name;
	public final int status_flags;

	public PersonaRelationshipMessage(JSONObject json) {
		super(json);
		this.persona_state = Friend.State.getByID(Integer.valueOf(json.get("persona_state").toString()));
		this.persona_name = json.get("persona_name").toString();
		this.status_flags = Integer.valueOf(json.get("status_flags").toString());
	}

	public PersonaRelationshipMessage(String steamid_other, Friend.State persona_state, String persona_name) {
		this(steamid_other, persona_state, persona_name, 863);
	}

	public PersonaRelationshipMessage(String steamid_other, Friend.State persona_state, String persona_name, int status_flags) {
		super(steamid_other);
		this.persona_state = persona_state;
		this.persona_name = persona_name;
		this.status_flags = status_flags;
	}

	@Override
	public void addParameters(Map<String, String> params) {
		params.put("status_flags", "" + status_flags);
		params.put("persona_state", "" + persona_state.getID());
		params.put("persona_name", persona_name);
	}
}<commit_msg>Ups, wrong type<commit_after>package de.doridian.steammobile.messages;

import de.doridian.steammobile.friend.Friend;
import org.json.simple.JSONObject;

import java.util.Map;

@Message.Type("personarelationship")
public class PersonaRelationshipMessage extends Message {
	public final int persona_state;
	public final String persona_name;
	public final int status_flags;

	public PersonaRelationshipMessage(JSONObject json) {
		super(json);
		this.persona_state = Integer.valueOf(json.get("persona_state").toString());
		this.persona_name = json.get("persona_name").toString();
		this.status_flags = Integer.valueOf(json.get("status_flags").toString());
	}

	public PersonaRelationshipMessage(String steamid_other, int persona_state, String persona_name) {
		this(steamid_other, persona_state, persona_name, 1);
	}

	public PersonaRelationshipMessage(String steamid_other, int persona_state, String persona_name, int status_flags) {
		super(steamid_other);
		this.persona_state = persona_state;
		this.persona_name = persona_name;
		this.status_flags = status_flags;
	}

	@Override
	public void addParameters(Map<String, String> params) {
		params.put("status_flags", "" + status_flags);
		params.put("persona_state", "" + persona_state);
		params.put("persona_name", persona_name);
	}
}
{'fraction_non_alphanumeric': 0.11203949867071782, 'fraction_numerical': 0.0015191796429927839, 'mean_word_length': 6.679300291545189, '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': '4943178', 'n_tokens_mistral': 862, 'n_tokens_neox': 815, 'n_words': 152}