<commit_before>/*
 * Copyright (c) Nmote d.o.o. 2003-2015. All rights reserved.
 * See LICENSE.txt for licensing information.
 */

package com.nmote.smpp;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * SMPPAddress represents GSM network address
 *
 * @author <NAME>
 */
public class SMPPAddress implements Serializable, Cloneable {

	private static final long serialVersionUID = About.SERIAL_VERSION_UID;

	/**
	 * TON - Unknown. "Unknown" is used when the user or network has no a priori
	 * information about the numbering plan. In this case, the Address-Value
	 * field is organized according to the network dialling plan, e.g. prefix or
	 * escape digits might be present.
	 */
	public static final int TON_UNKNOWN = 0x00;

	/**
	 * TON - International. Most common TOM. The international format shall be
	 * accepted also when the message is destined to a recipient in the same
	 * country as the MSC or as the SGSN.
	 */
	public static final int TON_INTERNATIONAL = 0x01;

	/**
	 * TON - National. Prefix or escape digits shall not be included.
	 */
	public static final int TON_NATIONAL = 0x02;

	/**
	 * TON - Network specific. "Network specific number" is used to indicate
	 * administration/service number specific to the serving network, e.g. used
	 * to access an operator.
	 */
	public static final int TON_NETWORK_SPECIFIC = 0x03;

	/**
	 * TON - Subscriber. "Subscriber number" is used when a specific short
	 * number representation is stored in one or more SCs as part of a higher
	 * layer application. (Note that "Subscriber number" shall only be used in
	 * connection with the proper PID referring to this application).
	 */
	public static final int TON_SUBSCRIBER = 0x04;

	/**
	 * TON - Alphanumeric. Number must be coded according to 3GPP TS 23.038 GSM
	 * 7-bit default alphabet.<commit_msg>Spelling corrections.<commit_after>/*
 * Copyright (c) Nmote d.o.o. 2003-2015. All rights reserved.
 * See LICENSE.txt for licensing information.
 */

package com.nmote.smpp;

import java.io.Serializable;

import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * SMPPAddress represents GSM network address
 *
 * @author <NAME>
 */
public class SMPPAddress implements Serializable, Cloneable {

	private static final long serialVersionUID = About.SERIAL_VERSION_UID;

	/**
	 * TON - Unknown. "Unknown" is used when the user or network has no a priori
	 * information about the numbering plan. In this case, the Address-Value
	 * field is organized according to the network dialing plan, e.g. prefix or
	 * escape digits might be present.
	 */
	public static final int TON_UNKNOWN = 0x00;

	/**
	 * TON - International. Most common TON. The international format shall be
	 * accepted also when the message is destined to a recipient in the same
	 * country as the MSC or as the SGSN.
	 */
	public static final int TON_INTERNATIONAL = 0x01;

	/**
	 * TON - National. Prefix or escape digits shall not be included.
	 */
	public static final int TON_NATIONAL = 0x02;

	/**
	 * TON - Network specific. "Network specific number" is used to indicate
	 * administration/service number specific to the serving network, e.g. used
	 * to access an operator.
	 */
	public static final int TON_NETWORK_SPECIFIC = 0x03;

	/**
	 * TON - Subscriber. "Subscriber number" is used when a specific short
	 * number representation is stored in one or more SCs as part of a higher
	 * layer application. (Note that "Subscriber number" shall only be used in
	 * connection with the proper PID referring to this application).
	 */
	public static final int TON_SUBSCRIBER = 0x04;

	/**
	 * TON - Alphanumeric. Number must be coded according to 3GPP TS 23.038 GSM
	 * 7-bit default alphabet.
{'fraction_non_alphanumeric': 0.08043217286914765, 'fraction_numerical': 0.017286914765906363, 'mean_word_length': 3.6651735722284435, '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': '5554656', 'n_tokens_mistral': 1318, 'n_tokens_neox': 1189, 'n_words': 486}