<commit_before>package eu.intent.sdk.model;

import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * A stream is the combination of an activity and a part or a site.
 */
public class ITStream implements Parcelable {
    public static final Parcelable.Creator<ITStream> CREATOR = new Parcelable.Creator<ITStream>() {
        public ITStream createFromParcel(Parcel source) {
            return new ITStream(source);
        }

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

    public ITAddress address;
    @SerializedName("streamId")
    public String id;
    public long lastUpdate;
    public ITData lastValue;
    public String owner;

    transient public Map<String, String> tags = new ConcurrentHashMap<>();

    /**
     * You can put whatever you want in this bundle, for example add properties to this object in order to use it in an adapter.
     * WARNING! Custom classes will not be saved when generating a Parcelable from this object.
     */
    transient public Bundle custom = new Bundle();

    public ITStream() {
        // Needed by Retrofit
    }<commit_msg>[PGP-468] Use HashMap for ITStream.tags as they can contain null values<commit_after>package eu.intent.sdk.model;

import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.JsonDeserializationContext;
import com.google.gson.JsonDeserializer;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;

/**
 * A stream is the combination of an activity and a part or a site.
 */
public class ITStream implements Parcelable {
    public static final Parcelable.Creator<ITStream> CREATOR = new Parcelable.Creator<ITStream>() {
        public ITStream createFromParcel(Parcel source) {
            return new ITStream(source);
        }

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

    public ITAddress address;
    @SerializedName("streamId")
    public String id;
    public long lastUpdate;
    public ITData lastValue;
    public String owner;

    transient public Map<String, String> tags = new HashMap<>();

    /**
     * You can put whatever you want in this bundle, for example add properties to this object in order to use it in an adapter.
     * WARNING! Custom classes will not be saved when generating a Parcelable from this object.
     */
    transient public Bundle custom = new Bundle();

    public ITStream() {
        // Needed by Retrofit
    }
{'fraction_non_alphanumeric': 0.08633747349288094, 'fraction_numerical': 0.0009088155104513784, 'mean_word_length': 3.4864130434782608, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '14859', 'n_tokens_mistral': 957, 'n_tokens_neox': 939, 'n_words': 298}