<commit_before>module('lively.morphic.tools.LogMenuBarEntry').requires("lively.morphic.tools.MenuBar", 'lively.ide.tools.SystemConsole').toRun(function() {

lively.BuildSpec('lively.morphic.tools.LogMenuBarEntry', lively.BuildSpec("lively.morphic.tools.MenuBarEntry").customize({

  name: "LogMenuBarEntry",
  menuBarAlign: "right",
  maxLogMessages: 999,
  logMessages: [],
  textString: "0",
  normalColor: Color.parseHex("#333"),
  warnColor: Color.orange,
  errColor: Color.red,

  style: lively.lang.obj.merge(lively.BuildSpec("lively.morphic.tools.MenuBarEntry").attributeStore.style, {
    padding: lively.rect(3,4,0,-4),
    extent: lively.pt(30,22),
    toolTip: "Click to open log messages. When errors occur they will be logged here.",
    align: "center",
    fontSize: 8
  }),

  morphMenuItems: function morphMenuItems() {
    var self = this;
    return [
      ["open log", function() {
        lively.ide.commands.exec('lively.ide.openSystemConsole');
        (function() {
          var temp = $world.get("LogMessages").get("logText").textString;
          self.logMessages.forEach(function(ea) {<commit_msg>ide: log menu bar entry only rememebrs last 300 messages<commit_after>module('lively.morphic.tools.LogMenuBarEntry').requires("lively.morphic.tools.MenuBar", 'lively.ide.tools.SystemConsole').toRun(function() {

lively.BuildSpec('lively.morphic.tools.LogMenuBarEntry', lively.BuildSpec("lively.morphic.tools.MenuBarEntry").customize({

  name: "LogMenuBarEntry",
  menuBarAlign: "right",
  maxLogMessages: 299,
  logMessages: [],
  textString: "0",
  normalColor: Color.parseHex("#333"),
  warnColor: Color.orange,
  errColor: Color.red,

  style: lively.lang.obj.merge(lively.BuildSpec("lively.morphic.tools.MenuBarEntry").attributeStore.style, {
    padding: lively.rect(3,4,0,-4),
    extent: lively.pt(30,22),
    toolTip: "Click to open log messages. When errors occur they will be logged here.",
    align: "center",
    fontSize: 8
  }),

  morphMenuItems: function morphMenuItems() {
    var self = this;
    return [
      ["open log", function() {
        lively.ide.commands.exec('lively.ide.openSystemConsole');
        (function() {
          var temp = $world.get("LogMessages").get("logText").textString;
          self.logMessages.forEach(function(ea) {
{'fraction_non_alphanumeric': 0.15206971677559913, 'fraction_numerical': 0.015250544662309368, 'mean_word_length': 4.290322580645161, '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': '360143', 'n_tokens_mistral': 778, 'n_tokens_neox': 735, 'n_words': 127}