<commit_before>const _ = require('lodash');
// A subclass of `@apostrophecms/piece-type`, `@apostrophecms/image` establishes a library
// of uploaded images in formats suitable for use on the web.
//
// Together with [@apostrophecms/image-widget](../@apostrophecms/image-widget/index.html),
// this module provides a simple way to add downloadable PDFs and the like to
// a website, and to manage a library of them for reuse.
//
// Each `@apostrophecms/image` doc has an `attachment` schema field, implemented
// by the [@apostrophecms/attachment](../@apostrophecms/attachment/index.html) module.

module.exports = {
  extend: '@apostrophecms/piece-type',
  options: {
    name: '@apostrophecms/image',
    label: 'Image',
    alias: 'image',
    perPage: 20,
    insertViaUpload: true,
    searchable: false,
    browser: {
      components: {
        managerModal: 'AposMediaManager'
      }
    }<commit_msg>Maintains media gallery sort<commit_after>const _ = require('lodash');
// A subclass of `@apostrophecms/piece-type`, `@apostrophecms/image` establishes a library
// of uploaded images in formats suitable for use on the web.
//
// Together with [@apostrophecms/image-widget](../@apostrophecms/image-widget/index.html),
// this module provides a simple way to add downloadable PDFs and the like to
// a website, and to manage a library of them for reuse.
//
// Each `@apostrophecms/image` doc has an `attachment` schema field, implemented
// by the [@apostrophecms/attachment](../@apostrophecms/attachment/index.html) module.

module.exports = {
  extend: '@apostrophecms/piece-type',
  options: {
    name: '@apostrophecms/image',
    label: 'Image',
    alias: 'image',
    perPage: 20,
    sort: { createdAt: -1 },
    insertViaUpload: true,
    searchable: false,
    browser: {
      components: {
        managerModal: 'AposMediaManager'
      }
    }
{'fraction_non_alphanumeric': 0.12968917470525188, 'fraction_numerical': 0.0026795284030010718, 'mean_word_length': 3.487980769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3296005', 'n_tokens_mistral': 623, 'n_tokens_neox': 565, 'n_words': 170}