<commit_before>// @flow
'use strict'
const sortBy = require('lodash/sortBy')

const types = ['degree', 'major', 'concentration', 'emphasis']
function sortStudiesByType(studies: string[]) {
    return sortBy(studies, s => types.indexOf(s.type))
}

module.exports.sortStudiesByType = sortStudiesByType<commit_msg>fix an input type<commit_after>// @flow
'use strict'
const sortBy = require('lodash/sortBy')

const types = ['degree', 'major', 'concentration', 'emphasis']
function sortStudiesByType(studies: Array<{type: string}>) {
    return sortBy(studies, s => types.indexOf(s.type))
}

module.exports.sortStudiesByType = sortStudiesByType
{'fraction_non_alphanumeric': 0.15179968701095461, 'fraction_numerical': 0.0, 'mean_word_length': 6.529411764705882, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '1451912', 'n_tokens_mistral': 216, 'n_tokens_neox': 201, 'n_words': 47}