<commit_before>// Defines template for the EnumModel

foam.CLASS({
  refines: 'foam.core.EnumModel',

  templates: [
    {
      name: 'javaSource',
      template: `
// Generated by FOAM, do not modify.

package <%= this.package %>;
<%
var labelForValue = function(value) {
  if (this.androidResource) {
    return this.androidResource + "." + this.name + "_" + value.definition.name;
  } else {
    return '"' + value.definition.label + '"';
  }
}

%>
public enum <%= this.name %> {<commit_msg>Removed androidResource check<commit_after>// Defines template for the EnumModel

foam.CLASS({
  refines: 'foam.core.EnumModel',

  templates: [
    {
      name: 'javaSource',
      template: `
// Generated by FOAM, do not modify.

package <%= this.package %>;
<%
var labelForValue = function(value) {
  return '"' + value.definition.label + '"';
}

%>
public enum <%= this.name %> {
{'fraction_non_alphanumeric': 0.1625, 'fraction_numerical': 0.0, 'mean_word_length': 3.2766990291262137, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7519221', 'n_tokens_mistral': 303, 'n_tokens_neox': 285, 'n_words': 67}