<commit_before><script src="custom-grid-helper.js"></script>

<polymer-element name="grid-helper" extends="three-js-helper" attributes="size step color opacity textColor up">
  <script>Polymer('grid-helper',{
      object:null,
      size: 200,
      step: 10,
      color: 0x00baff,
      opacity: 0.2,
      addText: true,
      textColor: "#000000",
      textLocation: "f",
      up:[0,1,0],
      ready: function() {
        this.object = new GridHelper(this.size, this.step, new THREE.Vector3(this.up[0],this.up[1],this.up[2]), this.color, this.opacity, this.addText, this.textColor, this.textLocation);
        this.super();
      },
      attached:function()
      {
        this.super();
      },
      stepChanged:function()
      {
        this.object.step = this.step;
        this.object.resize(this.size);
      },
      colorChanged:function()
      {
        this.object.setColor( this.color );
      },
      opacityChanged:function()
      {
        this.object.setOpacity( this.opacity );
      },
      textColorChanged:function()
      {
        this.object.setTextColor( this.textColor );
      },
      upChanged:function(){
        this.object.setUp( new THREE.Vector3(this.up[0],this.up[1],this.up[2]) );  
      },
    });
  </script>
</polymer-element><commit_msg>- added correct handling of size attribute to grid-helper<commit_after><script src="custom-grid-helper.js"></script>

<polymer-element name="grid-helper" extends="three-js-helper" attributes="size step color opacity textColor up">
  <script>Polymer('grid-helper',{
      object:null,
      size: 200,
      step: 10,
      color: 0x00baff,
      opacity: 0.2,
      addText: true,
      textColor: "#000000",
      textLocation: "f",
      up:[0,1,0],
      ready: function() {
        this.object = new GridHelper(this.size, this.step, new THREE.Vector3(this.up[0],this.up[1],this.up[2]), this.color, this.opacity, this.addText, this.textColor, this.textLocation);
        this.super();
      },
      attached:function()
      {
        this.super();
      },
      stepChanged:function()
      {
        this.object.step = this.step;
        this.object.resize(this.size);
      },
      colorChanged:function()
      {
        this.object.setColor( this.color );
      },
      opacityChanged:function()
      {
        this.object.setOpacity( this.opacity );
      },
      textColorChanged:function()
      {
        this.object.setTextColor( this.textColor );
      },
      upChanged:function(){
        this.object.setUp( new THREE.Vector3(this.up[0],this.up[1],this.up[2]) );  
      },
      sizeChanged:function(){
        this.object.resize( this.size );  
      }
    });
  </script>
</polymer-element>
{'fraction_non_alphanumeric': 0.1570003694126339, 'fraction_numerical': 0.01994828223125231, 'mean_word_length': 2.372353673723537, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '299846', 'n_tokens_mistral': 887, 'n_tokens_neox': 851, 'n_words': 136}