<commit_before>"use strict";

import { Constants as AssessmentConstants }  from "../actions/assessment";
import Immutable                             from "immutable";

const initialState = Immutable.fromJS({
  assessmentFormat: null
});

export default (state = initialState, action) => {

  switch(action.type){

    case AssessmentConstants.LOAD_ASSESSMENT_DONE:
      return state.set('assessmentFormat', action.payload.format);
      break;

    default:
      return state;
  }

};<commit_msg>Use 'standard' that is already provided.<commit_after>"use strict";

import { Constants as AssessmentConstants }  from "../actions/assessment";
import Immutable                             from "immutable";

const initialState = Immutable.fromJS({
  assessmentFormat: null
});

export default (state = initialState, action) => {

  switch(action.type){

    case AssessmentConstants.LOAD_ASSESSMENT_DONE:
      return state.set('assessmentFormat', action.payload.standard);
      break;

    default:
      return state;
  }

};
{'fraction_non_alphanumeric': 0.10808179162609542, 'fraction_numerical': 0.0, 'mean_word_length': 3.230452674897119, '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': '3387628', 'n_tokens_mistral': 286, 'n_tokens_neox': 277, 'n_words': 69}