<commit_before>import {
  ADD_BRICK,
  ADD_PIPE,
  ADD_PRIMITIVE,
  CLEAR_SLOT_SELECTION,
  MOVE_ELEMENT,
  REMOVE_ELEMENT,
  REMOVE_SELECTED_ELEMENT,
  SELECT_ELEMENT,
  SELECT_SLOT,
  START_DRAG,
  STOP_DRAG,
} from '../actions'

// TODO: Read constants from MainBrick component
import {
  MainBrick as MainBrickConstants,
  TestInput as TestInputConstants
} from '../components/constants'
import MainBrick from '../containers/MainBrick'

import { inputSlotPosition } from '../utils'
import { MAIN_BRICK } from '../utils/componentsEnum'

import {
  appendToInner,
  newBrick,
  newPipe,
  newPrimitive,
  removeElementInWorkspace
} from './workspace/addRemoveElementReducer'

import {
  addDragStartedToWorkspace,
  addDragStoppedToWorkspace,
  updateElementInWorkspace
} from './workspace/dragReducer'

import {
  addSelectedElementToWorkspace,
  removeSlotSelectionState,
  removeSelectedElementFromWorkspace,
  updateSlotSelectionStateInWorkspace
} from './workspace/selectionReducer'

import { nextId } from './workspace/workspaceReducerUtils'

const mainBrickId = nextId()
const firstInputId = nextId()
const secondInputId = nextId()
const thirdInputId = nextId()
const fourthInputId = nextId()

const mainBrick = {
  Component: MAIN_BRICK,
  id: mainBrickId,
  inner: [],
  inputSlots:[
    { id: nextId() },
    { id: nextId() }
  ],
  outputSlots: [
    { id: nextId() }
  ],
  position: MainBrickConstants.defaultPosition,
  size: MainBrickConstants.defaultSize
}

const testInputPositions = mainBrick.inputSlots.map((inputSlot) => {
  return inputSlotPosition(mainBrick, inputSlot.id)
})

const initialWorkspace = {
  actions: [],
  entities: {
    [mainBrickId]: mainBrick,
    [firstInputId]: {
      id: firstInputId,
      slotPosition: testInputPositions[0],
      size: TestInputConstants.defaultSize,
      type: 'string',
      value: null
    },
    [secondInputId]: {<commit_msg>Remove unused 'actions' array from state<commit_after>import {
  ADD_BRICK,
  ADD_PIPE,
  ADD_PRIMITIVE,
  CLEAR_SLOT_SELECTION,
  MOVE_ELEMENT,
  REMOVE_ELEMENT,
  REMOVE_SELECTED_ELEMENT,
  SELECT_ELEMENT,
  SELECT_SLOT,
  START_DRAG,
  STOP_DRAG,
} from '../actions'

// TODO: Read constants from MainBrick component
import {
  MainBrick as MainBrickConstants,
  TestInput as TestInputConstants
} from '../components/constants'
import MainBrick from '../containers/MainBrick'

import { inputSlotPosition } from '../utils'
import { MAIN_BRICK } from '../utils/componentsEnum'

import {
  appendToInner,
  newBrick,
  newPipe,
  newPrimitive,
  removeElementInWorkspace
} from './workspace/addRemoveElementReducer'

import {
  addDragStartedToWorkspace,
  addDragStoppedToWorkspace,
  updateElementInWorkspace
} from './workspace/dragReducer'

import {
  addSelectedElementToWorkspace,
  removeSlotSelectionState,
  removeSelectedElementFromWorkspace,
  updateSlotSelectionStateInWorkspace
} from './workspace/selectionReducer'

import { nextId } from './workspace/workspaceReducerUtils'

const mainBrickId = nextId()
const firstInputId = nextId()
const secondInputId = nextId()
const thirdInputId = nextId()
const fourthInputId = nextId()

const mainBrick = {
  Component: MAIN_BRICK,
  id: mainBrickId,
  inner: [],
  inputSlots:[
    { id: nextId() },
    { id: nextId() }
  ],
  outputSlots: [
    { id: nextId() }
  ],
  position: MainBrickConstants.defaultPosition,
  size: MainBrickConstants.defaultSize
}

const testInputPositions = mainBrick.inputSlots.map((inputSlot) => {
  return inputSlotPosition(mainBrick, inputSlot.id)
})

const initialWorkspace = {
  entities: {
    [mainBrickId]: mainBrick,
    [firstInputId]: {
      id: firstInputId,
      slotPosition: testInputPositions[0],
      size: TestInputConstants.defaultSize,
      type: 'string',
      value: null
    },
    [secondInputId]: {
{'fraction_non_alphanumeric': 0.10277923439958049, 'fraction_numerical': 0.0005243838489774515, 'mean_word_length': 4.45, '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': '4870524', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1266, 'n_words': 252}