<commit_before>package org.wildfly.boot.plugin;

import org.apache.maven.artifact.Artifact;

/**
 * @author <NAME>
 */
public class ArtifactSpec {

    private static final String JANDEX_SUFFIX = "?jandex";

    private String groupId;
    private String artifactId;
    private String classififer;
    private boolean jandex;

    public ArtifactSpec(String gav) {
        String[] parts = gav.split( ":" );

        this.groupId = parts[0];
        this.artifactId = parts[1];

        if ( this.artifactId.endsWith( JANDEX_SUFFIX ) ) {
            this.artifactId = this.artifactId.substring( 0, this.artifactId.length() - JANDEX_SUFFIX.length() );
            this.jandex = true;
        }

        if ( parts.length >= 4) {
            this.classififer = parts[3];
        } else {
            this.classififer = null;
        }
    }

    public boolean matches(Artifact artifact) {
        if ( ! this.groupId.equals( artifact.getGroupId() ) ){
            return false;
        }

        if ( ! this.artifactId.equals( artifact.getArtifactId() ) ){
            return false;
        }

        if ( this.classififer == null ) {
            return artifact.getClassifier() == null || artifact.getClassifier().equals( "" );
        }

        return this.classififer.equals( artifact.getClassifier() );
    }

    public String toString() {
        return this.groupId + ":" + this.artifactId + ( this.classififer == null ? "" : "::" + this.classififer );
    }
}<commit_msg>Minor typo in field name<commit_after>package org.wildfly.boot.plugin;

import org.apache.maven.artifact.Artifact;

/**
 * @author <NAME>
 */
public class ArtifactSpec {

    private static final String JANDEX_SUFFIX = "?jandex";

    private String groupId;
    private String artifactId;
    private String classifier;
    private boolean jandex;

    public ArtifactSpec(String gav) {
        String[] parts = gav.split( ":" );

        this.groupId = parts[0];
        this.artifactId = parts[1];

        if ( this.artifactId.endsWith( JANDEX_SUFFIX ) ) {
            this.artifactId = this.artifactId.substring( 0, this.artifactId.length() - JANDEX_SUFFIX.length() );
            this.jandex = true;
        }

        if ( parts.length >= 4) {
            this.classifier = parts[3];
        } else {
            this.classifier = null;
        }
    }

    public boolean matches(Artifact artifact) {
        if ( ! this.groupId.equals( artifact.getGroupId() ) ){
            return false;
        }

        if ( ! this.artifactId.equals( artifact.getArtifactId() ) ){
            return false;
        }

        if ( this.classifier == null ) {
            return artifact.getClassifier() == null || artifact.getClassifier().equals( "" );
        }

        return this.classifier.equals( artifact.getClassifier() );
    }

    public String toString() {
        return this.groupId + ":" + this.artifactId + ( this.classifier == null ? "" : "::" + this.classifier);
    }
}
{'fraction_non_alphanumeric': 0.12740141557128412, 'fraction_numerical': 0.003370407819346141, 'mean_word_length': 2.1709401709401708, 'pattern_counts': {'":': 6, '<': 5, '<?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': '823924', 'n_tokens_mistral': 932, 'n_tokens_neox': 857, 'n_words': 180}