<commit_before>package io.gitlab.arturbosch.smartsmells.metrics

import groovy.transform.CompileStatic
import io.gitlab.arturbosch.jpal.core.CompilationInfo
import io.gitlab.arturbosch.jpal.core.CompilationInfoProcessor
import io.gitlab.arturbosch.jpal.resolution.Resolver

/**
 * @author <NAME>
 */
@CompileStatic
class FileMetricProcessor implements CompilationInfoProcessor<FileInfo> {

	private Resolver resolver
	private ClassInfoDetector detector

	FileMetricProcessor(ClassInfoDetector detector, Resolver resolver) {
		this.detector = detector
		this.resolver = resolver
	}

	@Override
	FileInfo process(CompilationInfo info) {
		def classInfos = detector.execute(info, resolver)
		return new FileInfo(info.path, info.relativePath, classInfos)
	}

}<commit_msg>Apply changes to CompilationInfoProcessor<commit_after>package io.gitlab.arturbosch.smartsmells.metrics

import groovy.transform.CompileStatic
import io.gitlab.arturbosch.jpal.core.CompilationInfo
import io.gitlab.arturbosch.jpal.core.CompilationInfoProcessor
import io.gitlab.arturbosch.jpal.resolution.Resolver

/**
 * @author <NAME>
 */
@CompileStatic
class FileMetricProcessor implements CompilationInfoProcessor<FileInfo> {

	private ClassInfoDetector detector

	FileMetricProcessor(ClassInfoDetector detector) {
		this.detector = detector
	}

	@Override
	FileInfo process(CompilationInfo info, Resolver resolver) {
		def classInfos = detector.execute(info, resolver)
		return new FileInfo(info.path, info.relativePath, classInfos)
	}

}
{'fraction_non_alphanumeric': 0.08211920529801324, 'fraction_numerical': 0.0, 'mean_word_length': 6.334951456310679, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2657557', 'n_tokens_mistral': 482, 'n_tokens_neox': 459, 'n_words': 86}