<commit_before>"use strict";

import Network  from   "../constants/network";
import wrapper     from   "../constants/wrapper";

const requests = [
  "REVIEW_ASSESSMENT_LOADED",
  "REVIEW_RESULT_LOADED"
];

const actions  = [
  "REVIEW_ASSESSMENT_LOAD_PENDING",
  "REVIEW_RESULT_LOAD_PENDING"
];

export const Constants = wrapper(requests, actions);

export const loadAssessment = (settings) => ({
  type: Constants.REVIEW_ASSESSMENT_LOAD_PENDING,
  method: Network.GET,
  url: (url.indexOf("?") > -1) ? `${settings.srcUrl}&for_review=` : `${settings.srcUrl}?for_review=1`
});

export const loadAssessmentResult = (assessmentId, resultId) => ({
  type: Constants.REVIEW_RESULT_LOAD_PENDING,
  method: Network.GET,
  url: `/api/assessments/${assessmentId}/results/${resultId}`
}<commit_msg>Fix syntax error<commit_after>"use strict";

import Network  from   "../constants/network";
import wrapper     from   "../constants/wrapper";

const requests = [
  "REVIEW_ASSESSMENT_LOADED",
  "REVIEW_RESULT_LOADED"
];

const actions  = [
  "REVIEW_ASSESSMENT_LOAD_PENDING",
  "REVIEW_RESULT_LOAD_PENDING"
];

export const Constants = wrapper(requests, actions);

export const loadAssessment = (settings) => ({
  type: Constants.REVIEW_ASSESSMENT_LOAD_PENDING,
  method: Network.GET,
  url: (url.indexOf("?") > -1) ? `${settings.srcUrl}&for_review=` : `${settings.srcUrl}?for_review=1`
});

export const loadAssessmentResult = (assessmentId, resultId) => ({
  type: Constants.REVIEW_RESULT_LOAD_PENDING,
  method: Network.GET,
  url: `/api/assessments/${assessmentId}/results/${resultId}`
});
{'fraction_non_alphanumeric': 0.14927261227071473, 'fraction_numerical': 0.002530044275774826, 'mean_word_length': 5.457142857142857, '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': '1442705', 'n_tokens_mistral': 545, 'n_tokens_neox': 555, 'n_words': 96}