<commit_before>AFRAME.registerComponent('shape-swap', {
  schema: {
    on: {type: 'string'},
    target: {type: 'selector'},
    shape: {type: 'string'}
  },

  init: function () {
    var data = this.data;
    var el = this.el;

    el.addEventListener(data.on, function () {
      data.target.setAttribute('geometry', 'primitive', data.shape);<commit_msg>update size<commit_after>AFRAME.registerComponent('shape-swap', {
  schema: {
    on: {type: 'string'},
    target: {type: 'selector'},
    shape: {type: 'string'},
    size: {type: 'string'}
  },

  init: function () {
    var data = this.data;
    var el = this.el;

    el.addEventListener(data.on, function () {
      data.target.setAttribute('geometry', {primitive: data.shape, size: data.size});
{'fraction_non_alphanumeric': 0.17918313570487485, 'fraction_numerical': 0.0, 'mean_word_length': 3.4705882352941178, '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': '903523', 'n_tokens_mistral': 250, 'n_tokens_neox': 245, 'n_words': 53}