<commit_before>/**
 * Mongoose Schema for MongoDB
 */
var mongoosastic = require('mongoosastic'),
    mongoose = require('mongoose');

// File schema
// 
// 1-to-1 onto function between user and files
var File = new mongoose.Schema({
  // general
  name: String,
  extension: String,
  contentType: String,
  size: Number,
  friendlySize: String,
  path: String,
  ETag: String,
  tags: Array,

  // document
  keywords: Array,
  category: String,
  concepts: Array,
  entities: Array,
  //preview: String,
  user: String,

  // mp3
  genre: Array,
  title: String,
  artist: Array,
  albumArtist: Array,
  year: String ,
  album: String,
  albumCover: mongoose.Schema.Types.Mixed,

  // image
  width: Number,
  height: Number,
  recognizable: Boolean,
  yaw: Number,<commit_msg>Added book fields in the schema<commit_after>/**
 * Mongoose Schema for MongoDB
 */
var mongoosastic = require('mongoosastic'),
    mongoose = require('mongoose');

// File schema
// 
// 1-to-1 onto function between user and files
var File = new mongoose.Schema({
  // general
  name: String,
  extension: String,
  contentType: String,
  size: Number,
  friendlySize: String,
  path: String,
  ETag: String,
  tags: Array,

  // document
  keywords: Array,
  category: String,
  concepts: Array,
  entities: Array,
  //preview: String,
  user: String,

  //epub book
  bookTitle: String,
  bookAuthor: String,
  bookPublishedDate: String,
  bookDescription: String,
  bookISBN10: String,
  bookISBN13: String,
  bookPageCount: Number,
  bookCategory: String,
  bookAverageRating: String,
  bookCover: String,

  // mp3
  genre: Array,
  title: String,
  artist: Array,
  albumArtist: Array,
  year: String ,
  album: String,
  albumCover: mongoose.Schema.Types.Mixed,

  // image
  width: Number,
  height: Number,
  recognizable: Boolean,
  yaw: Number,
{'fraction_non_alphanumeric': 0.11662125340599455, 'fraction_numerical': 0.005449591280653951, 'mean_word_length': 3.402877697841727, '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': '6086644', 'n_tokens_mistral': 624, 'n_tokens_neox': 618, 'n_words': 180}