





"""simple docstring"""






import pytest

import datasets.config
from datasets.utils.info_utils import is_small_dataset






@pytest.mark.parametrize("dataset_size"							,			[None, 4_0_0 * 2**2_0, 6_0_0 * 2**2_0]			)
@pytest.mark.parametrize("input_in_memory_max_size"							,			["default", 0, 1_0_0 * 2**2_0, 9_0_0 * 2**2_0]			)
def      lowercase__ (					lowerCAmelCase__   :			Any							,			lowerCAmelCase__   :			Optional[Any]							,			lowerCAmelCase__   :			Optional[int]			)    ->			List[Any]:



			'''simple docstring'''
			if input_in_memory_max_size != "default":
						monkeypatch.setattr(datasets.config							,			"IN_MEMORY_MAX_SIZE"							,			lowerCAmelCase__			)
			a__  :	Optional[Any]		 =			datasets.config.IN_MEMORY_MAX_SIZE
			if input_in_memory_max_size == "default":
						assert in_memory_max_size == 0
			else:
						assert in_memory_max_size == input_in_memory_max_size
			if dataset_size and in_memory_max_size:
						a__  :	Union[str, Any]		 =			dataset_size < in_memory_max_size
			else:
						a__  :	Union[str, Any]		 =			False
			a__  :	Optional[int]		 =			is_small_dataset(lowerCAmelCase__			)
			assert result == expected






"""simple docstring"""






import os






def      lowercase__ (					)    ->			Optional[Any]:



			'''simple docstring'''
			with open(os.path.dirname(lowerCAmelCase__			) + "/p022_names.txt"			) as file:
						a__  :	Optional[int]		 =			str(file.readlines()[0]			)
						a__  :	Optional[int]		 =			names.replace("\""							,			""			).split(","			)

			names.sort()

			a__  :	int		 =			0
			a__  :	Dict		 =			0

			for i, name in enumerate(lowerCAmelCase__			):
						for letter in name:
									name_score += ord(lowerCAmelCase__			) - 6_4

						total_score += (i + 1) * name_score
						a__  :	Tuple		 =			0
			return total_score


if __name__ == "__main__":
		print(solution())