<commit_before>#include <linux/types.h>

/*
 * WARNING: This file needs to be kept in sync with
 *  - the database scheme
 *  - the generator code (dbgen.py)
 */

/* spells "RGDB" */
#define REGDB_MAGIC	0x52474442

/*
 * Only supported version now, start at arbitrary number
 * to have some more magic. We still consider this to be
 * "Version 1" of the file.
 */
#define REGDB_VERSION	19

/*
 * The signature at the end of the file is an RSA-signed
 * SHA-1 hash of the file.
 */

struct regdb_file_header {
	/* must be REGDB_MAGIC */
	__be32	magic;
	/* must be REGDB_VERSION */
	__be32	version;
	/* pointer (offset) into file where country list starts */
	__be32	reg_country_ptr;
	__be32	reg_country_num;
	/* length (in bytes) of the signature at the end of the file */
	__be32	signature_length;
};

struct regdb_file_reg_rule {
	/* pointers (offsets) into the file */
	__be32	freq_range_ptr;
	__be32	power_rule_ptr;
};

struct regdb_file_freq_range {
	__be32	start_freq,
		end_freq,
		max_bandwidth,
		modulation_cap,
		misc_restrictions;<commit_msg>regdb.h: add note that countries are sorted<commit_after>#include <linux/types.h>

/*
 * WARNING: This file needs to be kept in sync with
 *  - the database scheme
 *  - the generator code (dbgen.py)
 */

/* spells "RGDB" */
#define REGDB_MAGIC	0x52474442

/*
 * Only supported version now, start at arbitrary number
 * to have some more magic. We still consider this to be
 * "Version 1" of the file.
 */
#define REGDB_VERSION	19

/*
 * The signature at the end of the file is an RSA-signed
 * SHA-1 hash of the file.
 */

struct regdb_file_header {
	/* must be REGDB_MAGIC */
	__be32	magic;
	/* must be REGDB_VERSION */
	__be32	version;
	/*
	 * Pointer (offset) into file where country list starts
	 * and number of countries. The country list is sorted
	 * alphabetically to allow binary searching (should it
	 * become really huge.)
	 */
	__be32	reg_country_ptr;
	__be32	reg_country_num;
	/* length (in bytes) of the signature at the end of the file */
	__be32	signature_length;
};

struct regdb_file_reg_rule {
	/* pointers (offsets) into the file */
	__be32	freq_range_ptr;
	__be32	power_rule_ptr;
};

struct regdb_file_freq_range {
	__be32	start_freq,
		end_freq,
		max_bandwidth,
		modulation_cap,
		misc_restrictions;
{'fraction_non_alphanumeric': 0.0877577885037297, 'fraction_numerical': 0.025449758666081616, 'mean_word_length': 3.6247464503042597, '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': '5849983', 'n_tokens_mistral': 843, 'n_tokens_neox': 790, 'n_words': 272}