<commit_before>#ifndef ERROR_PRINTER_H
#define ERROR_PRINTER_H
#include "fileTypes.h"

/**
  Prints error message for sound->error, and nothing if sound->error = NO_ERROR
*/
void printErrorsInSound(sound_t* sound);

/**
  Prints memory allocation error.
*/
void printMemoryError();

/**
  Prints unknown file type error
*/
void printFileTypeError();

/** 
  Prints file does not exist error with the given filepath in the message.
*/
void printFileOpenError(char* filePath);

/**
  Prints error when we cannot load the sound
*/
void printSoundLoadError();

/** 
  Prints error when we encountere an unexpected eof.
*/
void printEofError();

/**
  Prints could not read file error.
*/
void printFileReadError();

/**
  Prints error when user types an unknown option
*/
void printInvalidOptionError(char optionChar);

/**
  Prints error when we encounter an unsupported bit depth
*/
void printBitDepthError();

/**
  Prints error when there is an invalid keyword
*/
void printInvalidKeywordError();

/**
  Prints error when we have no value given for a keyword
*/
void printNoValueError();

/**
  Prints error when the sample data of a cs229 file is misformed
*/
void printSampleDataError();

/**
  Prints error when we try to combine sounds with different sample rates
*/
void printSampleRateError();

#endif<commit_msg>Fix last commit, added correct errorPrinter.h<commit_after>#ifndef ERROR_PRINTER_H
#define ERROR_PRINTER_H
#include "fileTypes.h"

/**
  Prints error message for sound->error, and nothing if sound->error = NO_ERROR
*/
void printErrorsInSound(sound_t* sound);

/**
  Prints memory allocation error.
*/
void printMemoryError();

/**
  Prints unknown file type error
*/
void printFileTypeError();

/** 
  Prints file does not exist error with the given filepath in the message.
*/
void printFileOpenError(char* filePath);

/**
  Prints error when we cannot load the sound
*/
void printSoundLoadError();

/** 
  Prints error when we encountere an unexpected eof.
*/
void printEofError();

/**
  Prints could not read file error.
*/
void printFileReadError();

/**
  Prints error when user types an unknown option
*/
void printInvalidOptionError(char optionChar);

/**
  Prints error when we encounter an unsupported bit depth
*/
void printBitDepthError();

/**
  Prints error when there is an invalid keyword
*/
void printInvalidKeywordError();

/**
  Prints error when we have no value given for a keyword
*/
void printNoValueError();

/**
  Prints error when the sample data of a cs229 file is misformed
*/
void printSampleDataError();

/**
  Prints error when we try to combine sounds with different sample rates
*/
void printSampleRateError();

/**
  Prints error when channels == zero
*/
void printZeroChannelsError();

#endif
{'fraction_non_alphanumeric': 0.09613983976693372, 'fraction_numerical': 0.0021849963583394027, 'mean_word_length': 4.24236641221374, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5953660', 'n_tokens_mistral': 799, 'n_tokens_neox': 790, 'n_words': 313}