<commit_before>import {
  SET_EXPENSE_VALUE,
  SET_EXPENSE_CATEGORY,
  SET_EXPENSE_ITEM,
  RESET_ADD_EXPENSE_FORM,
  NEW_EXPENSE,
  SET_EXPENSE_DATE,
} from '../constants/ActionTypes';

export const setExpenseValue = (value) => {
  return {
    type: SET_EXPENSE_VALUE,
    value: value * (-1)
  };
};

export const setExpenseCategory = (categoryId) => {
  return {
    type: SET_EXPENSE_CATEGORY,
    categoryId
  };
};

export const setExpenseItem = (itemId) => {
  return {
    type: SET_EXPENSE_ITEM,<commit_msg>Fix setting the expense value in add expense form<commit_after>import {
  SET_EXPENSE_VALUE,
  SET_EXPENSE_CATEGORY,
  SET_EXPENSE_ITEM,
  RESET_ADD_EXPENSE_FORM,
  NEW_EXPENSE,
  SET_EXPENSE_DATE,
} from '../constants/ActionTypes';

export const setExpenseValue = (value) => {
  return {
    type: SET_EXPENSE_VALUE,
    value: Math.abs(value) * (-1)
  };
};

export const setExpenseCategory = (categoryId) => {
  return {
    type: SET_EXPENSE_CATEGORY,
    categoryId
  };
};

export const setExpenseItem = (itemId) => {
  return {
    type: SET_EXPENSE_ITEM,
{'fraction_non_alphanumeric': 0.11038961038961038, 'fraction_numerical': 0.0018552875695732839, 'mean_word_length': 4.042056074766355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1769806', 'n_tokens_mistral': 398, 'n_tokens_neox': 397, 'n_words': 75}