<commit_before>/**
* Ledger.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs        :: http://sailsjs.org/#!documentation/models
*/

module.exports = {

  attributes: {

      // entry code, e.g. fees, sales, exchange, etc.
      type : {
          type : 'number',
          required : true
      },

      // amount in bitcoin
      amount : {
          type : 'number',
          required : true
      },

      // entry description
      description : {
          type : 'string',
      },

      // related invoice's Id
      invoiceId : {
          type : 'string'
      },

      // related invoice's amount in fiat/currency
      invoiceAmount : {
          type: 'number'
      },

      // related invoice's currency code
      invoiceCurrency : {
          type: 'string'
      },

      // the exchange rate for the invoice
      exRate : {
          type : 'number'
      }

  }
};
<commit_msg>beautified ledger<commit_after>/**
 * Ledger.js
 *
 * @description :: TODO: You might write a short summary of how this model works and what it represents here.
 * @docs        :: http://sailsjs.org/#!documentation/models
 */

module.exports = {

  attributes: {

    // entry code, e.g. fees, sales, exchange, etc.
    type: {
      type: 'number',
      required: true
    },

    // amount in bitcoin
    amount: {
      type: 'number',
      required: true
    },

    // entry description
    description: {
      type: 'string',
    },

    // related invoice's Id
    invoiceId: {
      type: 'string'
    },

    // related invoice's amount in fiat/currency
    invoiceAmount: {
      type: 'number'
    },

    // related invoice's currency code
    invoiceCurrency: {
      type: 'string'
    },

    // the exchange rate for the invoice
    exRate: {
      type: 'number'
    }

  }
};

{'fraction_non_alphanumeric': 0.12253596164091636, 'fraction_numerical': 0.0, 'mean_word_length': 1.6944045911047345, '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': '7016756', 'n_tokens_mistral': 573, 'n_tokens_neox': 538, 'n_words': 159}