<commit_before>// Supply an external name to the first param
func average(of x: Int, and y: Int) -> Double {
    return Double(x + y) / 2.0
}

// Remove external names for subsequent params
func middle(_ x: Int, _ y: Int) -> Double {
    return Double(x + y) / 2.0
}

assert(average(of: 5, and: 8) == 6.5)
assert(middle(5, 8) == 6.5)
<commit_msg>Improve external names example<commit_after>func perimeter(base: Int, height: Int) {
    return 2 * (base + height)
}

func average(of x: Int, and y: Int) -> Double {
    return Double(x + y) / 2.0
}

func middle(_ x: Int, _ y: Int) -> Double {
    return Double(x + y) / 2.0
}

assert(perimeter(base: 4, height: 20) == 48)
assert(average(of: 5, and: 8) == 6.5)
assert(middle(5, 8) == 6.5)

{'fraction_non_alphanumeric': 0.16576086956521738, 'fraction_numerical': 0.04076086956521739, 'mean_word_length': 3.2848837209302326, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7190813', 'n_tokens_mistral': 301, 'n_tokens_neox': 275, 'n_words': 94}