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

package cx2x.translator.xnode;

import cx2x.translator.common.ClawConstant;

/**
 * CLAW element specialized attributes code.
 *
 * @author clementval
 */
public enum ClawAttr {
  IS_CLAW(ClawConstant.IS_CLAW),
  OVER(ClawConstant.OVER);

  private final String name;

  ClawAttr(String s) {
    name = s;
  }

  public String toString() {
    return this.name;
  }

  public static ClawAttr fromString(String value){
    return ClawAttr.valueOf(value.toUpperCase().replace("-", "_"));
  }
}<commit_msg>Format translator.xnode package<commit_after>/*
 * This file is released under terms of BSD license
 * See LICENSE file for more information
 */

package cx2x.translator.xnode;

import cx2x.translator.common.ClawConstant;

/**
 * CLAW element specialized attributes code.
 *
 * @author clementval
 */
public enum ClawAttr {
  IS_CLAW(ClawConstant.IS_CLAW),
  OVER(ClawConstant.OVER);

  private final String name;

  ClawAttr(String s) {
    name = s;
  }

  public String toString() {
    return this.name;
  }

  public static ClawAttr fromString(String value) {
    return ClawAttr.valueOf(value.toUpperCase().replace("-", "_"));
  }
}
{'fraction_non_alphanumeric': 0.1105807478122514, 'fraction_numerical': 0.0031821797931583136, 'mean_word_length': 3.783269961977186, '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': '5101045', 'n_tokens_mistral': 414, 'n_tokens_neox': 401, 'n_words': 106}