<commit_before>Game = Game || {};

Game.setupScore = function() {
  Crafty.c("Score", {
    init: function() {
      this.requires('DOM, 2D, Text');
      this.attr({ x: 10, y: 10, z:100});
      this.textColor("#ff0000");
      this.text("Score: " + 0);
      this.css({
        background: "#fff",
        border: "1px solid #000",
        fontSize: 28,
        padding: 5,
        position: "relative",
        width: "auto"
      });
    },

    update: function(value) {
      text = "Score: ";
      originalValue = parseInt(this.text().replace(text, ""));
      newValue = originalValue + value;
      this.text(text + newValue);
    }
  });
};<commit_msg>tweak<commit_after>Game = Game || {};

Game.setupScore = function() {
  Crafty.c("Score", {
    init: function() {
      this.requires('DOM, 2D, Text');
      this.attr({ x: 0, y: -20, z:100});
      this.textColor("#ff0000");
      this.text("Score: " + 0);
      this.css({
        background: "#fff",
        border: "1px solid #000",
        fontSize: 28,
        padding: 5,
        position: "relative",
        width: "auto"
      });
    },

    update: function(value) {
      text = "Score: ";
      originalValue = parseInt(this.text().replace(text, ""));
      newValue = originalValue + value;
      this.text(text + newValue);
    }
  });
};
{'fraction_non_alphanumeric': 0.18740515933232169, 'fraction_numerical': 0.02959028831562974, 'mean_word_length': 2.185990338164251, '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': '2059796', 'n_tokens_mistral': 463, 'n_tokens_neox': 430, 'n_words': 90}