<commit_before>import React from 'react';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import { withRouter } from '../../lib/reactRouterWrapper.js';
import { Components, registerComponent } from 'meteor/vulcan:core';


const NewShortformDialog = ({onClose, router}) => {
  const { ShortformSubmitForm } = Components;
  return (
    <Dialog open={true}
      onClose={onClose}
      fullWidth maxWidth="sm"
    >
      <DialogContent>
        <ShortformSubmitForm
          successCallback={() => {
            onClose();
            router.push('/shortform');
          }}
        />
      </DialogContent>
    </Dialog>
  );
}

registerComponent('NewShortformDialog', NewShortformDialog, withRouter);<commit_msg>Fix pseudo-mergeconflict<commit_after>import React from 'react';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import { withRouter } from '../../lib/reactRouterWrapper.js';
import { Components, registerComponent } from 'meteor/vulcan:core';
import { useNavigation } from '../../lib/routeUtil';


const NewShortformDialog = ({onClose}) => {
  const { ShortformSubmitForm } = Components;
  const { history } = useNavigation();
  return (
    <Dialog open={true}
      onClose={onClose}
      fullWidth maxWidth="sm"
    >
      <DialogContent>
        <ShortformSubmitForm
          successCallback={() => {
            onClose();
            router.push('/shortform');
          }}
        />
      </DialogContent>
    </Dialog>
  );
}

registerComponent('NewShortformDialog', NewShortformDialog);
{'fraction_non_alphanumeric': 0.1400611620795107, 'fraction_numerical': 0.0, 'mean_word_length': 3.1522842639593907, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '6986335', 'n_tokens_mistral': 454, 'n_tokens_neox': 454, 'n_words': 93}