<commit_before>#!/usr/bin/env python3
if __name__ == '__main__':
    main()
	
def to_fahrenheit(degrees_celsius):
	degrees_fahrenheit = 9/5* degrees_celsius + 32
    return degrees_celsius

def to_celsius(degrees_fahrenheit):
	degrees_celsius = 5/9*(degrees_fahrenheit - 32)
    return degrees_fahrenheit


import math

def get_fall_time(height):
    # gravity isn't going to change, units in m/(s^2)
    acceleration_by_gravity = 9.8
    time_elapsed = square_root((2 * height) / acceleration_by_gravity)
    return time_elapsed



def isVulnerable(tower_height, tower_x, tower_y, target_x, target_y):
    muzzle_velocity = 300

    # update this line to calculate time_in_air using get_fall_time() function
	time_in_air = get_fall_time(tower_height)

    tower_range = time_in_air * muzzle_velocity
    
    delta_x = distance(tower_x, target_x)  # difference between tower_x and target_x<commit_msg>Assignment_5<commit_after>#!/usr/bin/env python3
if __name__ == '__main__':
    main()
	
def to_fahrenheit(degrees_celsius):
	degrees_fahrenheit = 9/5* degrees_celsius + 32
    return degrees_fahrenheit

def to_celsius(degrees_fahrenheit):
	degrees_celsius = 5/9*(degrees_fahrenheit - 32)
    return degrees_celsius


import math

def get_fall_time(height):
    # gravity isn't going to change, units in m/(s^2)
    acceleration_by_gravity = 9.8
    time_elapsed = square_root((2 * height) / acceleration_by_gravity)
    return time_elapsed



def isVulnerable(tower_height, tower_x, tower_y, target_x, target_y):
    muzzle_velocity = 300

    # update this line to calculate time_in_air using get_fall_time() function
	time_in_air = get_fall_time(tower_height)

    tower_range = time_in_air * muzzle_velocity
    
    delta_x = distance(tower_x, target_x)  # difference between tower_x and target_x
{'fraction_non_alphanumeric': 0.07875762617859124, 'fraction_numerical': 0.018302828618968387, 'mean_word_length': 4.61993769470405, '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': '3389752', 'n_tokens_mistral': 693, 'n_tokens_neox': 635, 'n_words': 141}