<commit_before>package org.xbill.DNS;

import java.io.IOException;

import org.xbill.DNS.utils.base64;

/**
 * OPENPGPKEY Record - Stores an OpenPGP certificate associated with a name.
 * RFC 7929.
 * 
 * @author <NAME>
 * @author <NAME>
 *
 */
public class OPENPGPKEYRecord extends Record {

private static final long serialVersionUID = -1277262990243423062L;

private byte [] cert;

OPENPGPKEYRecord() {}

Record
getObject() {
	return new OPENPGPKEYRecord();
}

/**
 * Creates an OPENPGPKEY Record from the given data
 * 
 * @param cert Binary data representing the certificate
 */
public
OPENPGPKEYRecord(Name name, int dclass, long ttl, byte [] cert)
{
	super(name, Type.CERT, dclass, ttl);
	this.cert = cert;
}

void
rrFromWire(DNSInput in) throws IOException {
	cert = in.readByteArray();
}

void
rdataFromString(Tokenizer st, Name origin) throws IOException {
	cert = st.getBase64();
}

/**
 * Converts rdata to a String<commit_msg>Fix typo.<commit_after>package org.xbill.DNS;

import java.io.IOException;

import org.xbill.DNS.utils.base64;

/**
 * OPENPGPKEY Record - Stores an OpenPGP certificate associated with a name.
 * RFC 7929.
 * 
 * @author <NAME>
 * @author <NAME>
 *
 */
public class OPENPGPKEYRecord extends Record {

private static final long serialVersionUID = -1277262990243423062L;

private byte [] cert;

OPENPGPKEYRecord() {}

Record
getObject() {
	return new OPENPGPKEYRecord();
}

/**
 * Creates an OPENPGPKEY Record from the given data
 * 
 * @param cert Binary data representing the certificate
 */
public
OPENPGPKEYRecord(Name name, int dclass, long ttl, byte [] cert)
{
	super(name, Type.OPENPGPKEY, dclass, ttl);
	this.cert = cert;
}

void
rrFromWire(DNSInput in) throws IOException {
	cert = in.readByteArray();
}

void
rdataFromString(Tokenizer st, Name origin) throws IOException {
	cert = st.getBase64();
}

/**
 * Converts rdata to a String
{'fraction_non_alphanumeric': 0.11010638297872341, 'fraction_numerical': 0.02872340425531915, 'mean_word_length': 4.328611898016997, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4422273', 'n_tokens_mistral': 681, 'n_tokens_neox': 626, 'n_words': 186}