<commit_before>'use strict';

var mongoose = require('mongoose');

var Record = new mongoose.Schema({
  name: {
    type: String,
    trim: true
  },
  url: {
    type: String,
    trim: true
  },
  data: {
   type: String
  },
  duration: {
    type: Number,
    default: 0,
    get: function(value){
      return value.toHHMMSS();
    }
  },
  processing_cost: {
    type: Number,
    get: function(value) {
      return '$' + value;
    }
  },
  bundle_id: {
    type: String
  },
  addedAt: {
    type: Date
  },
  indexedAt: {
    type: Date
  },
  tags: [{
    name:{
      type: String,
      trim: true
    }
  }],
  user: {
    type: mongoose.Schema.ObjectId,
    ref: 'User'
  }
});

module.exports = mongoose.model('Record', Record);
<commit_msg>Minor corrections for N/A values.<commit_after>'use strict';

var mongoose = require('mongoose');

var Record = new mongoose.Schema({
  name: {
    type: String,
    trim: true
  },
  url: {
    type: String,
    trim: true
  },
  data: {
   type: String
  },
  duration: {
    type: Number,
    default: 0,
    get: function(value){
      return value ? value.toHHMMSS() : 'N/A';
    }
  },
  processing_cost: {
    type: Number,
    get: function(value) {
      return value ? '$' + value : 'N/A';
    }
  },
  bundle_id: {
    type: String
  },
  addedAt: {
    type: Date
  },
  indexedAt: {
    type: Date
  },
  tags: [{
    name:{
      type: String,
      trim: true
    }
  }],
  user: {
    type: mongoose.Schema.ObjectId,
    ref: 'User'
  }
});

module.exports = mongoose.model('Record', Record);

{'fraction_non_alphanumeric': 0.15708812260536398, 'fraction_numerical': 0.001277139208173691, 'mean_word_length': 2.165656565656566, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3550951', 'n_tokens_mistral': 579, 'n_tokens_neox': 588, 'n_words': 130}