repo: ownRepo

func_name: include

original_string: #include <iostream>

code_tokens: #include <iostream>

sha: [random sha]

url: noURL

partition: train


func_name: addition

original_string:
int addition(int a, int b) {
    return a + b;
}

code_tokens: int addition ( int a , int b ) { return a + b ; }


func_name: subtraction

original_string:
int subtraction(int a, int b) {
    return a - b;
}

code_tokens: int subtraction ( int a , int b ) { return a - b ; }


func_name: multiplication

original_string:
int multiplication(int a, int b) {
    return a * b;
}

code_tokens: int multiplication ( int a , int b ) { return a * b ; }


func_name: division

original_string:
float division(int a, int b) {
    if (b == 0) {
        std::cerr << "Fehler: Division durch Null!" << std::endl;
        return 0; // Oder eine geeignete Fehlerbehandlung
    }
    return static_cast<float>(a) / b;
}

code_tokens: float division ( int a , int b ) { if ( b == 0 ) { std :: cerr << "Fehler : Division durch Null ! " << std :: endl ; return 0 ; } return static_cast<float> ( a ) / b ; }


func_name: main

original_string:
int main() {
    int x = 10;
    int y = 5;

    // Aufrufen der Funktionen und Ausgabe der Ergebnisse
    std::cout << "Addition: " << addition(x, y) << std::endl;
    std::cout << "Subtraktion: " << subtraction(x, y) << std::endl;
    std::cout << "Multiplikation: " << multiplication(x, y) << std::endl;
    std::cout << "Division: " << division(x, y) << std::endl;

    return 0;
}

code_tokens: int main ( ) { int x = 10 ; int y = 5 ; std :: cout << "Addition : " << addition ( x , y ) << std :: endl ; std :: cout << "Subtraktion : " << subtraction ( x , y ) << std :: endl ; std :: cout << "Multiplikation : " << multiplication ( x , y ) << std :: endl ; std :: cout << "Division : " << division ( x , y ) << std :: endl ; return 0 ; }