<commit_before>package me.ifelseif.apns2.model;

import java.util.Map;

/**
 * Created by linmingchang on 16/12/21.
 */
public class Notification {
    private String payload;
    private String token;
    private String topic;

    public Notification(String payload, String token, String topic) {
        this.payload = payload;
        this.token = token;
        this.topic = topic;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public static class Builder {
        private final Payload payload;
        private String token;
        private String topic;

        public Builder() {
            payload = new Payload();
        }

        public Builder alert(String alert) {
            payload.setAlert(alert);
            return this;
        }

        public Builder badge(int badge) {
            payload.setBadge(badge);
            return this;
        }

        public Builder sound(String sound) {
            payload.setSound(sound);
            return this;
        }

        public Builder alertActionLocKey(String actionLocKey) {
            payload.setAlertActionLocKey(actionLocKey);
            return this;
        }

        public Builder alertBody(String body) {
            payload.setAlertBody(body);
            return this;
        }

        public Builder alertTitle(String title) {
            payload.setAlertTitle(title);
            return this;
        }

        public Builder alertLocKey(String locKey) {
            payload.setAlertLocKey(locKey);
            return this;
        }

        public Builder alertLocArgs(String[] locArgs) {
            payload.setAlertLocArgs(locArgs);
            return this;
        }

        public Builder alertLaunchImage(String launchImagee) {
            payload.setAlertLaunchImage(launchImagee);
            return this;
        }

        public Builder addParam(String key, String value) {
            payload.addParam(key, value);
            return this;
        }

        public Builder setParams(Map<String, Object> params) {
            payload.setParams(params);
            return this;
        }

        public Builder setContentAvailable(Integer contentAvailable) {
            payload.setContentAvailable(contentAvailable);
            return this;
        }

        public Builder token(String token) {
            this.token = token;
            return this;
        }

        public Builder topic(String topic) {
            this.topic = topic;
            return this;
        }<commit_msg>ext params bug fix<commit_after>package me.ifelseif.apns2.model;

import java.util.Map;

/**
 * Created by linmingchang on 16/12/21.
 */
public class Notification {
    private String payload;
    private String token;
    private String topic;

    public Notification(String payload, String token, String topic) {
        this.payload = payload;
        this.token = token;
        this.topic = topic;
    }

    public String getPayload() {
        return payload;
    }

    public void setPayload(String payload) {
        this.payload = payload;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public static class Builder {
        private final Payload payload;
        private String token;
        private String topic;

        public Builder() {
            payload = new Payload();
        }

        public Builder alert(String alert) {
            payload.setAlert(alert);
            return this;
        }

        public Builder badge(int badge) {
            payload.setBadge(badge);
            return this;
        }

        public Builder sound(String sound) {
            payload.setSound(sound);
            return this;
        }

        public Builder alertActionLocKey(String actionLocKey) {
            payload.setAlertActionLocKey(actionLocKey);
            return this;
        }

        public Builder alertBody(String body) {
            payload.setAlertBody(body);
            return this;
        }

        public Builder alertTitle(String title) {
            payload.setAlertTitle(title);
            return this;
        }

        public Builder alertLocKey(String locKey) {
            payload.setAlertLocKey(locKey);
            return this;
        }

        public Builder alertLocArgs(String[] locArgs) {
            payload.setAlertLocArgs(locArgs);
            return this;
        }

        public Builder alertLaunchImage(String launchImagee) {
            payload.setAlertLaunchImage(launchImagee);
            return this;
        }

        public Builder addParam(String key, Object value) {
            payload.addParam(key, value);
            return this;
        }

        public Builder setParams(Map<String, Object> params) {
            payload.setParams(params);
            return this;
        }

        public Builder setContentAvailable(Integer contentAvailable) {
            payload.setContentAvailable(contentAvailable);
            return this;
        }

        public Builder token(String token) {
            this.token = token;
            return this;
        }

        public Builder topic(String topic) {
            this.topic = topic;
            return this;
        }
{'fraction_non_alphanumeric': 0.07517755066689763, 'fraction_numerical': 0.002425082279577343, 'mean_word_length': 1.7184557438794728, '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': '4666302', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1408, 'n_words': 383}