<commit_before>typedef int DIR;

struct dirent {
  char d_name[50];
};

typedef struct dirent dirent;

DIR mock_state = -1;
dirent cur_ent;

DIR* opendir(const char* path) {
  if (strcmp(path, "illegal")) {
    return NULL;
  }
  mock_state = 0;
  return &mock_state;
}

int closedir(DIR* dir) {
  *dir = -1;
}

struct dirent* readdir(DIR* dir) {
  switch (*dir) {
    case 0:
    strcpy(cur_ent.d_name, "file0");
    break;
    case 1:
    strcpy(cur_ent.d_name, "file1");
    break;
    case 2:
    strcpy(cur_ent.d_name, "file2");
    break;
    default:
    return NULL;
  }

  ++mock_state;
  return &cur_ent;
}<commit_msg>Fixed warning control reaches end of non void function<commit_after>typedef int DIR;

struct dirent {
  char d_name[50];
};

typedef struct dirent dirent;

DIR mock_state = -1;
dirent cur_ent;

DIR* opendir(const char* path) {
  if (strcmp(path, "illegal")) {
    return NULL;
  }
  mock_state = 0;
  return &mock_state;
}

int closedir(DIR* dir) {
  *dir = -1;
  return 0;
}

struct dirent* readdir(DIR* dir) {
  switch (*dir) {
    case 0:
    strcpy(cur_ent.d_name, "file0");
    break;
    case 1:
    strcpy(cur_ent.d_name, "file1");
    break;
    case 2:
    strcpy(cur_ent.d_name, "file2");
    break;
    default:
    return NULL;
  }

  ++mock_state;
  return &cur_ent;
}
{'fraction_non_alphanumeric': 0.13674560733384264, 'fraction_numerical': 0.01757066462948816, 'mean_word_length': 3.0557275541795668, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1513896', 'n_tokens_mistral': 553, 'n_tokens_neox': 530, 'n_words': 132}