<commit_before>import React from 'react';
import { Link } from 'react-router';
import expect from 'expect';
import { shallow } from 'enzyme';

import Editor from '../Editor';
import { toYAML } from '../../utils/helpers';

import { config } from './fixtures';

function setup(props = {config, editorChanged: false}) {
  const actions = {
    onEditorChange: expect.createSpy()
  };

  let component = shallow(
    <Editor
      {...props}
      {...actions} />
  );

  return {
    component,
    editor: component.first(),
    actions: actions
  };
}
<commit_msg>remove Link from editor test<commit_after>import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';

import Editor from '../Editor';
import { toYAML } from '../../utils/helpers';

import { config } from './fixtures';

function setup(props = {config, editorChanged: false}) {
  const actions = {
    onEditorChange: expect.createSpy()
  };

  let component = shallow(
    <Editor {...props} {...actions} />
  );

  return {
    component,
    editor: component.first(),
    actions: actions
  };
}

{'fraction_non_alphanumeric': 0.1575091575091575, 'fraction_numerical': 0.0, 'mean_word_length': 3.140151515151515, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7318802', 'n_tokens_mistral': 326, 'n_tokens_neox': 321, 'n_words': 98}