<commit_before>package net.gini.android.authorization;


import org.json.JSONException;
import org.json.JSONObject;

import java.util.Date;


/**
 * The session is the value object for the session of a user.
 */
public class Session {
    final String mAccessToken;
    final Date mExpirationDate;

    public Session(final String accessToken, final Date expirationDate) {
        mAccessToken = accessToken;
        mExpirationDate = expirationDate;
    }

    /** The session's access token. */<commit_msg>Session: Defensive use of argument.<commit_after>package net.gini.android.authorization;


import org.json.JSONException;
import org.json.JSONObject;

import java.util.Date;


/**
 * The session is the value object for the session of a user.
 */
public class Session {
    final String mAccessToken;
    final Date mExpirationDate;

    public Session(final String accessToken, final Date expirationDate) {
        mAccessToken = accessToken;
        mExpirationDate = new Date(expirationDate.getTime());
    }

    /** The session's access token. */
{'fraction_non_alphanumeric': 0.08601134215500945, 'fraction_numerical': 0.0, 'mean_word_length': 3.5256410256410255, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7320852', 'n_tokens_mistral': 301, 'n_tokens_neox': 287, 'n_words': 93}