<commit_before>#include <iostream>

inline double speed(double distance, double time)
{
    return distance * time;
}

int main (int argc, char* argv[])
{
    double distance;
    double time;
    double average_speed;

    


    std::cout << "Enter the distance in meters: ";
    std::cin >> distance;

    std::cout << "Enter the time of movement in seconds: ";
    std::cin >> time;

    average_speed = speed(distance,time);
    

    std::cout << "The average speed of the object is: " << average_speed << "m/s" <<std::endl;
    

}
<commit_msg>created function read double. closes #61<commit_after>#include <iostream>

inline double speed(double distance, double time)
{
    return (distance/time);
}

double read_double(std::string prompt )
{
    double distance;

    std::cout << prompt << " : ";
    std::cin >> distance;

    return distance;
}

double read_double_time(std::string prompt)
{
    double time;
    std::cout << prompt << ":";
    std::cin >> time;

    return time;
}

int main (int argc, char* argv[])
{
    
    double average_speed;
    double time;
    double distance;

    distance = read_double("Enter distance in meters");
    time = read_double("Enter time in seconds");
    average_speed = speed(distance,time);
    
    
    std::cout << "The average speed of the object is: " << average_speed << "m/s" <<std::endl;
    

}

{'fraction_non_alphanumeric': 0.13509544787077826, 'fraction_numerical': 0.0014684287812041115, 'mean_word_length': 3.1303030303030304, 'pattern_counts': {'":': 1, '<': 33, '<?xml version=': 0, '>': 13, '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': '1401171', 'n_tokens_mistral': 428, 'n_tokens_neox': 415, 'n_words': 126}