<commit_before>const Promise = require('bluebird')
const _ = require('lodash')
const Validator = require('../../common/util/Validator')

/**
 * Types controllers
 *
 * Exports controllers related to types
 */

const UPLOADABLES = {
  file  : '*',
  image : [ 'image/jpeg', 'image/png', 'image/gif', 'image/svg+xml' ]
}

module.exports = function (mandi) {
  return { list, getById, save, update, remove, move, clone }

  /**
   * List entries for given type<commit_msg>changed '*' to null<commit_after>const Promise = require('bluebird')
const _ = require('lodash')
const Validator = require('../../common/util/Validator')

/**
 * Types controllers
 *
 * Exports controllers related to types
 */

const UPLOADABLES = {
  file  : null,
  image : [ 'image/jpeg', 'image/png', 'image/gif', 'image/svg+xml' ]
}

module.exports = function (mandi) {
  return { list, getById, save, update, remove, move, clone }

  /**
   * List entries for given type
{'fraction_non_alphanumeric': 0.16507936507936508, 'fraction_numerical': 0.0, 'mean_word_length': 3.7777777777777777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7114069', 'n_tokens_mistral': 309, 'n_tokens_neox': 300, 'n_words': 80}