<commit_before>package org.icij.extract;

import java.util.logging.Logger;

import java.nio.file.Path;

/**
 * Extract
 *
 * @author <NAME> <<EMAIL>>
 * @version 1.0.0-beta
 * @since 1.0.0-beta
 */
public class Reporter {
	public static final int SUCCEEDED = 0;
	public static final int NOT_FOUND = 1;
	public static final int NOT_READ = 2;
	public static final int NOT_DECRYPTED = 3;
	public static final int NOT_PARSED = 4;
	public static final int NOT_SAVED = 10;

	private final Logger logger;

	public Reporter(Logger logger) {
		this.logger = logger;
	}

	public boolean succeeded(Path file) {
		return false;
	}

	public void save(Path file, int status) {
		
	}
}<commit_msg>Reporter uses Redis map<commit_after>package org.icij.extract;

import java.util.logging.Logger;

import java.nio.file.Path;

import org.redisson.core.RMap;

/**
 * Extract
 *
 * @author <NAME> <<EMAIL>>
 * @version 1.0.0-beta
 * @since 1.0.0-beta
 */
public class Reporter {
	public static final int SUCCEEDED = 0;
	public static final int NOT_FOUND = 1;
	public static final int NOT_READ = 2;
	public static final int NOT_DECRYPTED = 3;
	public static final int NOT_PARSED = 4;
	public static final int NOT_SAVED = 10;

	private final Logger logger;
	private RMap<String, Integer> report;

	public Reporter(Logger logger, RMap<String, Integer> report) {
		this.logger = logger;
		this.report = report;
	}

	public boolean succeeded(Path file) {
		return report.get(file.toString()) == SUCCEEDED;
	}

	public void save(Path file, int status) {
		report.fastPut(file.toString(), status);
	}
}
{'fraction_non_alphanumeric': 0.10991105463786531, 'fraction_numerical': 0.016518424396442185, 'mean_word_length': 3.9065420560747666, 'pattern_counts': {'":': 0, '<': 11, '<?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': '124042', 'n_tokens_mistral': 575, 'n_tokens_neox': 533, 'n_words': 165}