<commit_before><polymer-element name="ceci-random" extends="ceci-element" attributes="allowsame min max value" min="0" max="9" allowsame="false">
  <ceci-definition>
    {
      "name": "Random Number Generator",
      "thumbnail": "./thumbnail.png",
      "description": "Generates a random number for other bricks to use.",
      "broadcasts": {
        "send": {
          "label": "Random number",
          "description": "Sends the random number if explicitly asked to.",
          "default" : "true"
        }
      },
      "listeners": {
        "generate": {
          "description": "Generate a random number between min and max",
          "label": "Generate",
          "default" : "true"
        }
      },
      "attributes": {
        "min": {
          "label": "Min",
          "editable": "number"
        },
        "max": {
          "label": "Max",
          "editable": "number"
        },
        "allowsame": {
          "description": "Allow same number twice",
          "label": "Allow same number twice",
          "editable": "boolean"
        }
      }
    }
  </ceci-definition>
  <template>
    <link rel="stylesheet" href="component.css">
    <div class="counter">
        Random between {{min}} and {{max}} &rarr;
      <div class="count-wrapper">
 {{value}}
      </div>
    </div>
    <shadow></shadow>
  </template>
  <tags>starter,math</tags>
    <script>
      Polymer("ceci-random", {
        ready: function() {
          this.value = Number(this.value) || 0;<commit_msg>Fixed issue #2338: Added listener attributes to min and max in random number component<commit_after><polymer-element name="ceci-random" extends="ceci-element" attributes="allowsame min max value" min="0" max="9" allowsame="false">
  <ceci-definition>
    {
      "name": "Random Number Generator",
      "thumbnail": "./thumbnail.png",
      "description": "Generates a random number for other bricks to use.",
      "broadcasts": {
        "send": {
          "label": "Random number",
          "description": "Sends the random number if explicitly asked to.",
          "default" : "true"
        }
      },
      "listeners": {
        "generate": {
          "description": "Generate a random number between min and max",
          "label": "Generate",
          "default" : "true"
        }
      },
      "attributes": {
        "min": {
          "label": "Min",
          "editable": "number",
          "listener": "true"
        },
        "max": {
          "label": "Max",
          "editable": "number",
          "listener": "true"
        },
        "allowsame": {
          "description": "Allow same number twice",
          "label": "Allow same number twice",
          "editable": "boolean"
        }
      }
    }
  </ceci-definition>
  <template>
    <link rel="stylesheet" href="component.css">
    <div class="counter">
        Random between {{min}} and {{max}} &rarr;
      <div class="count-wrapper">
 {{value}}
      </div>
    </div>
    <shadow></shadow>
  </template>
  <tags>starter,math</tags>
    <script>
      Polymer("ceci-random", {
        ready: function() {
          this.value = Number(this.value) || 0;
{'fraction_non_alphanumeric': 0.16334283000949668, 'fraction_numerical': 0.0031655587211142765, 'mean_word_length': 2.0384615384615383, 'pattern_counts': {'":': 46, '<': 33, '<?xml version=': 0, '>': 33, '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': '5011739', 'n_tokens_mistral': 932, 'n_tokens_neox': 913, 'n_words': 236}