<commit_before>import store from '../core-data/store';
import { OPEN_PANE, CLOSE_PANE } from '../panes/mutationTypes';


export function openPane(name, title, component, content) {
  store.commit(OPEN_PANE, {
    name,
    options: {
      title,
      component,
      content
    }
  });
}

export function addComponentPane(content) {
  store.commit(OPEN_PANE, {
    name: 'add-component',
    options: {
      title: 'Add Component',
      component: 'add-component',
      content
    }
  });
}
<commit_msg>Making the add component pane work<commit_after>import store from '../core-data/store';

export function openPane(name, title, component, content) {
  return store.dispatch('openPane', {
    name,
    options: {
      title,
      component,
      content
    }
  });
}

export function changePane(name, title, component, content) {
  return store.dispatch('changePane', {
    name,
    options: {
      title,
      component,
      content
    }
  });
}

export function closePane() {
  return store.dispatch('closePane');
}

export function addComponentPane(content) {
  return store.dispatch('openPane', {
    name: 'add-component',
    options: {
      title: 'Add Component',
      component: 'add-component',
      content
    }
  });
}

{'fraction_non_alphanumeric': 0.1306772908366534, 'fraction_numerical': 0.0, 'mean_word_length': 2.852760736196319, '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': '4467924', 'n_tokens_mistral': 391, 'n_tokens_neox': 382, 'n_words': 88}