<commit_before>/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.xcodeml.xelement;

import org.w3c.dom.Element;

/**
 * Xindex class is the common class for XarrayIndex (8.10) and
 * XindexRange (8.11).
 *
 * @see XarrayIndex
 * @see XindexRange
 *
 * @author clementval
 */
public class Xindex extends XbaseElement {

  /**
   * Xelement standard ctor. Pass the base element to the base class and read
   * inner information (elements and attributes).
   * @param baseElement The root element of the Xelement
   */
  public Xindex(Element baseElement){
    super(baseElement);
  }
}<commit_msg>Add method to know the type of a Xindex object<commit_after>/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.xcodeml.xelement;

import org.w3c.dom.Element;

/**
 * Xindex class is the common class for XarrayIndex (8.10) and
 * XindexRange (8.11).
 *
 * @see XarrayIndex
 * @see XindexRange
 *
 * @author clementval
 */
public class Xindex extends XbaseElement {

  /**
   * Xelement standard ctor. Pass the base element to the base class and read
   * inner information (elements and attributes).
   * @param baseElement The root element of the Xelement
   */
  public Xindex(Element baseElement){
    super(baseElement);
  }

  public boolean isArrayIndex(){
    return this instanceof XarrayIndex;
  }

  public boolean isIndexRange(){
    return this instanceof XindexRange;
  }
}
{'fraction_non_alphanumeric': 0.08626410086264101, 'fraction_numerical': 0.010617120106171201, 'mean_word_length': 3.5149700598802394, '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': '5621005', 'n_tokens_mistral': 455, 'n_tokens_neox': 443, 'n_words': 169}