<commit_before>package net.fortytwo.twitlogic.syntax.afterthought.impl;

import net.fortytwo.twitlogic.syntax.afterthought.ObjectPropertyAfterthoughtMatcher;
import net.fortytwo.twitlogic.vocabs.OWL;

/**
 * User: josh
 * Date: Oct 26, 2009
 * Time: 6:39:56 PM
 */
public class OwlSameasMatcher  extends ObjectPropertyAfterthoughtMatcher {
    protected String getPropertyURI() {
        return OWL.SAMEAS;
    }

    protected boolean predicateMatches(final String predicate) {
        String p = predicate.toLowerCase();
        return p.equals("same as")
                | p.equals("=")
                | p.equals("aka")
                | p.equals("a.k.a.")
                | p.equals("ie")
                | p.equals("i.e.");
    }
}
<commit_msg>Support '#foo (sameas #bar)' in addition to '#foo (same as #bar)', '#foo (= #bar)', etc.<commit_after>package net.fortytwo.twitlogic.syntax.afterthought.impl;

import net.fortytwo.twitlogic.syntax.afterthought.ObjectPropertyAfterthoughtMatcher;
import net.fortytwo.twitlogic.vocabs.OWL;

/**
 * User: josh
 * Date: Oct 26, 2009
 * Time: 6:39:56 PM
 */
public class OwlSameasMatcher  extends ObjectPropertyAfterthoughtMatcher {
    protected String getPropertyURI() {
        return OWL.SAMEAS;
    }

    protected boolean predicateMatches(final String predicate) {
        String p = predicate.toLowerCase();
        return p.equals("same as")
                | p.equals("sameas")
                | p.equals("=")
                | p.equals("aka")
                | p.equals("a.k.a.")
                | p.equals("ie")
                | p.equals("i.e.");
    }
}

{'fraction_non_alphanumeric': 0.1327543424317618, 'fraction_numerical': 0.013647642679900745, 'mean_word_length': 2.468817204301075, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3440387', 'n_tokens_mistral': 543, 'n_tokens_neox': 492, 'n_words': 96}