<commit_before>package org.rakam.plugin.user;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.rakam.collection.Event;
import org.rakam.server.http.annotations.ApiParam;

import java.util.Map;

public class User
{
    public Object id;
    public final ObjectNode properties;
    public final UserContext api;

    @JsonCreator
    public User(@ApiParam(value = "id", description = "The value may be a string or a numeric value.") Object id,
            @ApiParam("api") UserContext api,
            @ApiParam("properties") ObjectNode properties)
    {
        this.id = id;
        this.api = api;
        this.properties = properties;
    }

    public void setId(Object id)
    {
        this.id = id;
    }

    public static class UserContext
    {
        @JsonProperty("library") public final Event.Library library;
        @JsonProperty("api_key") public final String apiKey;
        @JsonProperty("upload_time") public final Long uploadTime;
        @JsonProperty("checksum") public final String checksum;

        @JsonCreator
        public UserContext(@ApiParam("api_key") String apiKey,
                @ApiParam(value = "writeKey", access = "internal") String writeKey,
                @ApiParam(value = "library") Event.Library library,
                @ApiParam(value = "api_library", access = "internal") String apiLibrary,
                @ApiParam(value = "api_version", access = "internal") String apiVersion,
                @ApiParam("upload_time") Long uploadTime,
                @ApiParam("checksum") String checksum)
        {
            this.apiKey = apiKey != null ? apiKey : writeKey;
            this.library = library != null ? library : new Event.Library(apiLibrary, apiVersion);
            this.checksum = checksum;
            this.uploadTime = uploadTime;<commit_msg>Remove unused key<commit_after>package org.rakam.plugin.user;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.node.ObjectNode;
import org.rakam.collection.Event;
import org.rakam.server.http.annotations.ApiParam;

import java.util.Map;

public class User
{
    public Object id;
    public final ObjectNode properties;
    public final UserContext api;

    @JsonCreator
    public User(@ApiParam(value = "id", description = "The value may be a string or a numeric value.") Object id,
            @ApiParam("api") UserContext api,
            @ApiParam("properties") ObjectNode properties)
    {
        this.id = id;
        this.api = api;
        this.properties = properties;
    }

    public void setId(Object id)
    {
        this.id = id;
    }

    public static class UserContext
    {
        @JsonProperty("library") public final Event.Library library;
        @JsonProperty("api_key") public final String apiKey;
        @JsonProperty("upload_time") public final Long uploadTime;
        @JsonProperty("checksum") public final String checksum;

        @JsonCreator
        public UserContext(@ApiParam("api_key") String apiKey,
                @ApiParam(value = "library") Event.Library library,
                @ApiParam(value = "api_library", access = "internal") String apiLibrary,
                @ApiParam(value = "api_version", access = "internal") String apiVersion,
                @ApiParam("upload_time") Long uploadTime,
                @ApiParam("checksum") String checksum)
        {
            this.apiKey = apiKey;
            this.library = library != null ? library : new Event.Library(apiLibrary, apiVersion);
            this.checksum = checksum;
            this.uploadTime = uploadTime;
{'fraction_non_alphanumeric': 0.10053333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 2.7472527472527473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '7317216', 'n_tokens_mistral': 1037, 'n_tokens_neox': 986, 'n_words': 264}