<commit_before>// CS 539, HW 7, <NAME>

#include <stdio.h>
#include <stdlib.h>

void countdown( unsigned seconds );
unsigned add( unsigned a, unsigned b );
unsigned multiply( unsigned a, unsigned b );

int die( const char * msg );

int main(){
    countdown(5);
    printf("\n");
    
    printf("%u\n", add(3, 7));
    printf("\n");
    
    printf("%u\n", multiply(3, 7));
    printf("\n");
    
    return 0;
} //main

void countdown( unsigned seconds ){
    if (seconds > 0){
        printf("%u...\n", seconds--);
        countdown(seconds);
    } else
        printf("Blast off!\n");
}
unsigned add( unsigned a, unsigned b ){
    if (a > 0){
        add(--a, ++b);
    } else
        return b;
}
unsigned multiply( unsigned a, unsigned b ){
    static unsigned product = 0;
    
    // if (a > 0){
    //     product = add(a, b);
    //     multiply(--a,)
    // }
    return 0;
}

int die( const char * msg ){<commit_msg>Bummed I cannot get the power function to work yet.<commit_after>// CS 539, HW 7, <NAME>

#include <stdio.h>
#include <stdlib.h>

void countdown( unsigned seconds );
unsigned add( unsigned a, unsigned b );
unsigned multiply( unsigned a, unsigned b );
unsigned power( unsigned a, unsigned b );

int die( const char * msg );

int main(){
    // countdown(5);
    // printf("\n");
    
    // printf("%u\n", add(3, 7));
    // printf("\n");
    
    // printf("%u\n", multiply(3, 7));
    // printf("\n");
    
    printf("%u\n", power(3, 7));
    printf("\n");
    
    return 0;
} //main

void countdown( unsigned seconds ){
    if (seconds > 0){
        printf("%u...\n", seconds--);
        countdown(seconds);
    } else
        printf("Blast off!\n");
}
unsigned add( unsigned a, unsigned b ){
    if (a > 0) add(--a, ++b);
    else return b;
}
unsigned multiply( unsigned a, unsigned b ){
    static unsigned retVal = 0;
    
    if (b > 0){
        retVal = add(a, retVal);
        multiply(a, --b);
    } else
        return retVal;
}
unsigned power( unsigned a, unsigned b ){
    if (b > 0) return multiply(a, power(a, --b));
    else return 1;
}

int die( const char * msg ){
{'fraction_non_alphanumeric': 0.17962085308056872, 'fraction_numerical': 0.015639810426540283, 'mean_word_length': 2.2526964560862868, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 16, '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': '1014101', 'n_tokens_mistral': 744, 'n_tokens_neox': 701, 'n_words': 232}