<commit_before>package org.wildfly.build.util;

import org.wildfly.build.ArtifactResolver;
import org.wildfly.build.pack.model.Artifact;

/**
 * @author <NAME>
 */
public class ModuleArtifactPropertyResolver implements PropertyResolver {

    private final ArtifactResolver artifactResolver;

    public ModuleArtifactPropertyResolver(ArtifactResolver artifactResolver) {
        this.artifactResolver = artifactResolver;
    }

    @Override
    public String resolveProperty(String property) {
        Artifact artifact = artifactResolver.getArtifact(property);
        if (artifact != null) {
            final StringBuilder sb = new StringBuilder(property).append(':').append(artifact.getVersion());
            if (artifact.getGACE().getClassifier() != null) {
                sb.append(':').append(artifact.getGACE().getClassifier());
            }
            return sb.toString();
        } else {
            return null;
        }
    }
}
<commit_msg>small fix on the module artifact property resolver<commit_after>package org.wildfly.build.util;

import org.wildfly.build.ArtifactResolver;
import org.wildfly.build.pack.model.Artifact;

/**
 * @author <NAME>
 */
public class ModuleArtifactPropertyResolver implements PropertyResolver {

    private final ArtifactResolver artifactResolver;

    public ModuleArtifactPropertyResolver(ArtifactResolver artifactResolver) {
        this.artifactResolver = artifactResolver;
    }

    @Override
    public String resolveProperty(String property) {
        Artifact artifact = artifactResolver.getArtifact(property);
        if (artifact != null) {
            final StringBuilder sb = new StringBuilder(artifact.getGACE().getGroupId()).append(':').append(artifact.getGACE().getArtifactId()).append(':').append(artifact.getVersion());
            if (artifact.getGACE().getClassifier() != null) {
                sb.append(':').append(artifact.getGACE().getClassifier());
            }
            return sb.toString();
        } else {
            return null;
        }
    }
}

{'fraction_non_alphanumeric': 0.11143838978890526, 'fraction_numerical': 0.0, 'mean_word_length': 3.1422764227642275, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3113966', 'n_tokens_mistral': 545, 'n_tokens_neox': 511, 'n_words': 101}