<commit_before>enyo.kind({
  name: "WebLetter.Token",
  kind: "enyo.Control",
  classes: "token",
  topToken: true,
  subToken: false,
  subtokens: [], // subtokens
  multiline: false,
  isOptional: false,
  isEnabled: true,
  saveable: false,
  published: {
    description: "",
    key: "",
    subkey: ""
  },
  events: {
    onNewToken: "",
    onDisableToken: ""
  },
  create: function(args) {
    this.subtokens = new Array();
    this.inherited(arguments);
    if (this.isOptional) {
      this.createComponent({
        name: "toggle",
        kind: "onyx.ToggleButton",
        onContent: "on",
        offContent: "off",
        onChange: "buttonToggle"
      });
      this.$.toggle.value = this.isEnabled;
    }
    if (this.saveable) {
      this.createComponent({
        name: "saveButton",
        kind: "onyx.Button",
        content: "Save",
        ontap: "saveAllData"
      });
      this.createComponent({
        name: "loadButton",
        kind: "onyx.Button",
        content: "Load",<commit_msg>token: disable input if token is disabled by default<commit_after>enyo.kind({
  name: "WebLetter.Token",
  kind: "enyo.Control",
  classes: "token",
  topToken: true,
  subToken: false,
  subtokens: [], // subtokens
  multiline: false,
  isOptional: false,
  isEnabled: true,
  saveable: false,
  published: {
    description: "",
    key: "",
    subkey: ""
  },
  events: {
    onNewToken: "",
    onDisableToken: ""
  },
  create: function(args) {
    this.subtokens = new Array();
    this.inherited(arguments);
    if (this.isOptional) {
      this.createComponent({
        name: "toggle",
        kind: "onyx.ToggleButton",
        onContent: "on",
        offContent: "off",
        onChange: "buttonToggle"
      });
      this.$.toggle.value = this.isEnabled;
      if (this.isEnabled) {
        this.enableToken();
      }
      else {
        this.disableToken();
      }
    }
    if (this.saveable) {
      this.createComponent({
        name: "saveButton",
        kind: "onyx.Button",
        content: "Save",
        ontap: "saveAllData"
      });
      this.createComponent({
        name: "loadButton",
        kind: "onyx.Button",
        content: "Load",
{'fraction_non_alphanumeric': 0.15020482476103778, 'fraction_numerical': 0.0, 'mean_word_length': 2.265973254086181, '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': '1303937', 'n_tokens_mistral': 710, 'n_tokens_neox': 709, 'n_words': 146}