<commit_before>package org.slieb.closure.soyoptimizer;

import com.google.javascript.rhino.Node;

public class SoyDelegateNodeHelper {

    private SoyDelegateNodeHelper() {}

    public static final String GET_DELEGATE_ID = "soy.$$getDelTemplateId";

    public static boolean isGetDelegateIdCall(final Node n) {
        return n.isCall() && n.getFirstChild().matchesQualifiedName(GET_DELEGATE_ID);
    }
}
<commit_msg>adding get delegate fn getter<commit_after>package org.slieb.closure.soyoptimizer;

import com.google.javascript.rhino.Node;

public class SoyDelegateNodeHelper {

    private SoyDelegateNodeHelper() {}

    public static final String GET_DELEGATE_ID = "soy.$$getDelTemplateId";
    public static final String GET_DELEGATE_FN = "soy.$$getDelegateFn";

    public static boolean isGetDelegateIdCall(final Node n) {
        return n.isCall() && n.getFirstChild().matchesQualifiedName(GET_DELEGATE_ID);
    }

    public static boolean isGetDelegateFnCall(final Node n) {
        return n.isCall() && n.getFirstChild().matchesQualifiedName(GET_DELEGATE_FN);
    }
}

{'fraction_non_alphanumeric': 0.09695290858725762, 'fraction_numerical': 0.0, 'mean_word_length': 4.675392670157068, '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': '3958015', 'n_tokens_mistral': 347, 'n_tokens_neox': 338, 'n_words': 67}