<commit_before><commit_msg>Solution of prob 9 (Incomplete)<commit_after>#include <stdio.h>

int binary_search(const int *numbers, const int find, const int index_a, const int index_b)
{
    if(index_a == index_b) return index_a;
    if(index_b - index_a / 2 == 0) return index_a;
    if(numbers[(index_b - index_a) / 2] == find) return (index_b - index_a) / 2;

    if(numbers[(index_b - index_a) / 2] < find) return binary_search(numbers, find, 0, (index_b - index_a) / 2);
    if(numbers[(index_b - index_a) / 2] > find) return binary_search(numbers, find, (index_b - index_b) / 2, index_b);
}

int main(void)
{
    int num[10] = { 0, 1, 4, 6, 7, 10, 14, 16, 18, 19 };
    printf("Result: %d\n", binary_search(num, 9, 0, 10));
}
{'fraction_non_alphanumeric': 0.16164383561643836, 'fraction_numerical': 0.04246575342465753, 'mean_word_length': 3.8092105263157894, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6770015', 'n_tokens_mistral': 323, 'n_tokens_neox': 282, 'n_words': 79}