<commit_before>
#ifndef CONTEXTISO_H
#define CONTEXTISO_H

/**
 * Disk size is enough to fit 2KiB of data
 */
static const int CONTEXTISO_CDROM_SIZE = 358400;

/**
 * Create a cd-rom image that will contain the specified filename with the specified content
 *
 * @param volume        The name of the volume (CD-ROM Label)
 * @param filename      The name fo the file to put in the CD-ROM
 * @param buffer        The buffer to copy the data from (Maximum 2024 bytes)
 * @param size          The size of the buffer
 *
 * @return              Returns the contents of the CD-ROM buffer. The length of the buffer is CONTEXTISO_CDROM_SIZE
 */
char * build_simple_cdrom( const char * volume, const char * filename, const char * contents, int szContents );

/**
 * Generate a contextualization CD-ROM using the specified user_data
 *
 * This function will call build_cd with the appropriate parameters to create a file called CONTEXT.SH with the contents specified
 */
char * build_context_cdrom( const char * user_data ) { return build_simple_cdrom("CONFIGDISK", "CONTEXT.SH", user_data, strlen(user_data)); };

#endif /* end of include guard: CONTEXTISO_H */<commit_msg>Fixed some typos in contextiso.h<commit_after>
#ifndef CONTEXTISO_H
#define CONTEXTISO_H

// For sizeof()
#include <string.h>

/**
 * Disk size is enough to fit 2KiB of data
 */
static const int CONTEXTISO_CDROM_SIZE = 358400;

/**
 * Create a CD-ROM image that will contain the specified filename with the specified content
 *
 * @param volume        The name of the volume (CD-ROM Label)
 * @param filename      The name fo the file to put in the CD-ROM
 * @param contents      The buffer to copy the file contents from (Maximum 2048 bytes)
 * @param szContents    The size of the buffer
 *
 * @return              Returns the contents of the CD-ROM buffer. The length of the buffer is CONTEXTISO_CDROM_SIZE
 */
char * build_simple_cdrom( const char * volume, const char * filename, const char * contents, int szContents );

/**
 * Generate a contextualization CD-ROM using the specified user_data
 *
 * This function will call build_cd with the appropriate parameters to create a file called CONTEXT.SH with the contents specified
 */
char * build_context_cdrom( const char * user_data ) { return build_simple_cdrom("CONFIGDISK", "CONTEXT.SH", user_data, strlen(user_data)); };

#endif
{'fraction_non_alphanumeric': 0.07482993197278912, 'fraction_numerical': 0.00935374149659864, 'mean_word_length': 3.715430861723447, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4360825', 'n_tokens_mistral': 675, 'n_tokens_neox': 652, 'n_words': 292}