<commit_before>package com.mitake.sms;

import org.apache.commons.lang3.StringUtils;

public class MitakeSms {
    private static String username;
    private static String password;
    private static MitakeSmsSender sender;

    public static void init(String username, String password) {
        if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) {
            throw new IllegalArgumentException("Please press username and password");
        }

        MitakeSms.username = username;
        MitakeSms.password = password;
    }

    public static String getUsername() {
        return username;
    }

    public static String getPassword() {
        return password;
    }

    public static MitakeSmsResult send(String to, String message) {
        if (sender == null) {
            sender = new MitakeSmsSender();
        }

        return sender.send(to, message);
    }
}<commit_msg>Add more check<commit_after>package com.mitake.sms;

import org.apache.commons.lang3.StringUtils;

public class MitakeSms {
    private static String username;
    private static String password;
    private static MitakeSmsSender sender;
    private static boolean init;

    public static void init(String username, String password) {
        if (StringUtils.isEmpty(username) || StringUtils.isEmpty(password)) {
            init = false;

            throw new IllegalArgumentException("Please press username and password");
        }

        MitakeSms.username = username;
        MitakeSms.password = password;

        init = true;
    }

    public static String getUsername() {
        return username;
    }

    public static String getPassword() {
        return password;
    }

    public static MitakeSmsResult send(String to, String message) {
        if (!init) {
            throw new RuntimeException("Init first");
        }

        if (sender == null) {
            sender = new MitakeSmsSender();
        }

        return sender.send(to, message);
    }
}
{'fraction_non_alphanumeric': 0.08195072900955254, 'fraction_numerical': 0.001005530417295123, 'mean_word_length': 2.5159010600706715, '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': '1550728', 'n_tokens_mistral': 521, 'n_tokens_neox': 504, 'n_words': 152}