<commit_before>public extension Dictionary {

	public mutating func mapInPlace(transform: Value -> Value) {
		for (key, value) in self {
			self[key] = transform(value)
		}
	}


	@warn_unused_result(mutable_variant="mapInPlace")
	public func mapAsDictionary<K: Hashable, V>(transform: (Key, Value) -> (K, V)) -> [K : V] {
		var mappedDictionary = [K : V](minimumCapacity: count)
		for (key, value) in self {
			let (mappedKey, mappedValue) = transform(key, value)
			mappedDictionary[mappedKey] = mappedValue
		}

		return mappedDictionary
	}


	mutating func updateValues(fromDictionary: [Key : Value]) {
		for (key, value) in fromDictionary {
			updateValue(value, forKey: key)
		}
	}
}
<commit_msg>Corrected order of methods in Dictionary extension<commit_after>public extension Dictionary {

	@warn_unused_result(mutable_variant="mapInPlace")
	public func mapAsDictionary<K: Hashable, V>(transform: (Key, Value) -> (K, V)) -> [K : V] {
		var mappedDictionary = [K : V](minimumCapacity: count)
		for (key, value) in self {
			let (mappedKey, mappedValue) = transform(key, value)
			mappedDictionary[mappedKey] = mappedValue
		}

		return mappedDictionary
	}


	public mutating func mapInPlace(transform: Value -> Value) {
		for (key, value) in self {
			self[key] = transform(value)
		}
	}


	mutating func updateValues(fromDictionary: [Key : Value]) {
		for (key, value) in fromDictionary {
			updateValue(value, forKey: key)
		}
	}
}

{'fraction_non_alphanumeric': 0.12369701181375956, 'fraction_numerical': 0.0, 'mean_word_length': 4.475285171102661, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4542102', 'n_tokens_mistral': 511, 'n_tokens_neox': 467, 'n_words': 126}