<commit_before>// Copyright (c) 1999 <NAME> (<EMAIL>)
// Portions Copyright (c) 1999 Network Associates, Inc.

package org.xbill.DNS;

import org.xbill.DNS.utils.*;

/**
 * Constants and functions relating to DNS rcodes (error values)
 *
 * @author <NAME>
 */

public final class Rcode {

private static StringValueTable rcodes = new StringValueTable();
private static StringValueTable tsigrcodes = new StringValueTable();

/** No error */
public static final byte NOERROR	= 0;

/** Format error */
public static final byte FORMERR	= 1;

/** Server failure */
public static final byte SERVFAIL	= 2;

/** The name does not exist */
public static final byte NXDOMAIN	= 3;

/** The operation requested is not implemented */
public static final byte NOTIMPL	= 4;

/** The operation was refused by the server */
public static final byte REFUSED	= 5;

/** The name exists */
public static final byte YXDOMAIN	= 6;

/** The RRset (name, type) exists */
public static final byte YXRRSET	= 7;

/** The RRset (name, type) does not exist */
public static final byte NXRRSET	= 8;

/** The requestor is not authorized to perform this operation */
public static final byte NOTAUTH	= 9;

/** The zone specified is not a zone */
public static final byte NOTZONE	= 10;

/* EDNS extended rcodes */
/** Unsupported EDNS level */
public static final byte BADVERS	= 16;

/* TSIG/TKEY only rcodes */
/** The signature is invalid (TSIG/TKEY extended error) */
public static final byte BADSIG		= 16;

/** The key is invalid (TSIG/TKEY extended error) */
public static final byte BADKEY		= 17;

/** The time is out of range (TSIG/TKEY extended error) */
public static final byte BADTIME	= 18;

/** The mode is invalid (TKEY extended error) */
public static final byte BADMODE	= 18;

static {
	rcodes.put2(NOERROR, "NOERROR");
	rcodes.put2(FORMERR, "FORMERR");
	rcodes.put2(SERVFAIL, "SERVFAIL");<commit_msg>BADMODE had the wrong value<commit_after>// Copyright (c) 1999 <NAME> (<EMAIL>)
// Portions Copyright (c) 1999 Network Associates, Inc.

package org.xbill.DNS;

import org.xbill.DNS.utils.*;

/**
 * Constants and functions relating to DNS rcodes (error values)
 *
 * @author <NAME>
 */

public final class Rcode {

private static StringValueTable rcodes = new StringValueTable();
private static StringValueTable tsigrcodes = new StringValueTable();

/** No error */
public static final byte NOERROR	= 0;

/** Format error */
public static final byte FORMERR	= 1;

/** Server failure */
public static final byte SERVFAIL	= 2;

/** The name does not exist */
public static final byte NXDOMAIN	= 3;

/** The operation requested is not implemented */
public static final byte NOTIMPL	= 4;

/** The operation was refused by the server */
public static final byte REFUSED	= 5;

/** The name exists */
public static final byte YXDOMAIN	= 6;

/** The RRset (name, type) exists */
public static final byte YXRRSET	= 7;

/** The RRset (name, type) does not exist */
public static final byte NXRRSET	= 8;

/** The requestor is not authorized to perform this operation */
public static final byte NOTAUTH	= 9;

/** The zone specified is not a zone */
public static final byte NOTZONE	= 10;

/* EDNS extended rcodes */
/** Unsupported EDNS level */
public static final byte BADVERS	= 16;

/* TSIG/TKEY only rcodes */
/** The signature is invalid (TSIG/TKEY extended error) */
public static final byte BADSIG		= 16;

/** The key is invalid (TSIG/TKEY extended error) */
public static final byte BADKEY		= 17;

/** The time is out of range (TSIG/TKEY extended error) */
public static final byte BADTIME	= 18;

/** The mode is invalid (TKEY extended error) */
public static final byte BADMODE	= 19;

static {
	rcodes.put2(NOERROR, "NOERROR");
	rcodes.put2(FORMERR, "FORMERR");
	rcodes.put2(SERVFAIL, "SERVFAIL");
{'fraction_non_alphanumeric': 0.1111699311805188, 'fraction_numerical': 0.017469560614081524, 'mean_word_length': 3.826309067688378, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7187123', 'n_tokens_mistral': 1232, 'n_tokens_neox': 1153, 'n_words': 485}