<commit_before>package openperipheral.util;

import java.io.IOException;

import openmods.utils.FileLineReader;
import openmods.utils.ILineReadMethod;
import openperipheral.ConfigSettings;

public class MountingUtils {

	public static void refreshLatestFiles() {

		FileRetriever.downloadFileIfOlderThan(
			ConfigSettings.EXTERNAL_LUA_LISTING,
			ConfigSettings.LOCAL_LUA_LISTING,
			ConfigSettings.CACHE_REFRESH_INTERVAL
		);

		try {
			FileLineReader.readLineByLine(ConfigSettings.LOCAL_LUA_LISTING, new ILineReadMethod() {<commit_msg>updated reference<commit_after>package openperipheral.util;

import java.io.IOException;

import openmods.utils.io.FileLineReader;
import openmods.utils.io.ILineReadMethod;
import openperipheral.ConfigSettings;

public class MountingUtils {

	public static void refreshLatestFiles() {

		FileRetriever.downloadFileIfOlderThan(
			ConfigSettings.EXTERNAL_LUA_LISTING,
			ConfigSettings.LOCAL_LUA_LISTING,
			ConfigSettings.CACHE_REFRESH_INTERVAL
		);

		try {
			FileLineReader.readLineByLine(ConfigSettings.LOCAL_LUA_LISTING, new ILineReadMethod() {
{'fraction_non_alphanumeric': 0.06985294117647059, 'fraction_numerical': 0.0, 'mean_word_length': 6.7785714285714285, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4615549', 'n_tokens_mistral': 374, 'n_tokens_neox': 343, 'n_words': 51}