<commit_before>#include "../include/utilityFuncs.h"

#include <stdio.h>
#include <sys/stat.h>

Bool isValidFile(const word path, long *fileSize){
  //Input: A path 
  //Returns: True iff a path exists and is not a directory else False
  struct stat statInfo;
  if (stat(path, &statInfo) != 0) //Path doesn't exist or is null
    return False;

  if ((statInfo.st_mode <= 0))
    return False;

  if (! S_ISDIR(statInfo.st_mode)){
    *fileSize = statInfo.st_size;
    return True;
  }

  return False;
}
<commit_msg>Added clarity to second argument of function isValidFile in src/utility.c<commit_after>#include "../include/utilityFuncs.h"

#include <stdio.h>
#include <sys/stat.h>

Bool isValidFile(const word path, long *savFileSize){
  //Input: A path 
  //Returns: True iff a path exists and is not a directory else False
  struct stat statInfo;
  if (stat(path, &statInfo) != 0) //Path doesn't exist or is null
    return False;

  if ((statInfo.st_mode <= 0))
    return False;

  if (! S_ISDIR(statInfo.st_mode)){
    *savFileSize = statInfo.st_size;
    return True;
  }

  return False;
}

{'fraction_non_alphanumeric': 0.12386156648451731, 'fraction_numerical': 0.0036429872495446266, 'mean_word_length': 3.467479674796748, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3469275', 'n_tokens_mistral': 393, 'n_tokens_neox': 372, 'n_words': 121}