<commit_before>export default (name, model) => {
  // We use the container here because modals are like singletons
  // in Discourse. Only one can be shown with a particular state.
  const route = Discourse.__container__.lookup('route:application');

  route.controllerFor('modal').set('modalClass', null);
  route.render(name, { into: 'modal', outlet: 'modalBody' });

  const controller = route.controllerFor(name);
  if (controller) {
    if (model) { controller.set('model', model); }
    if (controller.onShow) { controller.onShow(); }
    controller.set('flashMessage', null);
  }
};<commit_msg>FIX: Topic bulk actions refresh was broken<commit_after>export default (name, model) => {
  // We use the container here because modals are like singletons
  // in Discourse. Only one can be shown with a particular state.
  const route = Discourse.__container__.lookup('route:application');

  route.controllerFor('modal').set('modalClass', null);
  route.render(name, { into: 'modal', outlet: 'modalBody' });

  const controller = route.controllerFor(name);
  if (controller) {
    if (model) { controller.set('model', model); }
    if (controller.onShow) { controller.onShow(); }
    controller.set('flashMessage', null);
  }

  return controller;
};
{'fraction_non_alphanumeric': 0.1420590582601756, 'fraction_numerical': 0.0, 'mean_word_length': 4.452173913043478, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1688215', 'n_tokens_mistral': 361, 'n_tokens_neox': 351, 'n_words': 106}