<commit_before>import 'isomorphic-fetch'

/**
 * Fetch a list of nodes and their relation types
 */
export function fetchNodeList() {
  fetch('//localhost:8000/admin/chemtrails_permissions/accessrule/nodelist/').then((response) => {
    if (response.status >= 400) {
      throw new Error('Bad response from the server')
    }
    return response.json();
  })
}<commit_msg>Remember to return from function ;)<commit_after>import 'isomorphic-fetch'

/**
 * Fetch a list of nodes and their relation types
 */
export function fetchNodeList() {
  return fetch('//localhost:8000/admin/chemtrails_permissions/accessrule/nodelist/').then((response) => {
    if (response.status >= 400) {
      throw new Error('Bad response from the server')
    }
    return response.json();
  })
}
{'fraction_non_alphanumeric': 0.1367741935483871, 'fraction_numerical': 0.01806451612903226, 'mean_word_length': 3.9426751592356686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7643541', 'n_tokens_mistral': 241, 'n_tokens_neox': 223, 'n_words': 60}