<commit_before>const { CoinModel } = require('../../../models/coin');
const {Transform} = require('stream');
const util = require('util');
const _ = require('underscore');
/*
 *const logger = require('../../../logger');
 */


function ListTransactionsStream(wallet) {
  this.wallet = wallet;
  Transform.call(this, {objectMode: true});
}

util.inherits(ListTransactionsStream, Transform);

ListTransactionsStream.prototype._transform = async function(transaction, enc, done) {
  var self = this;
  transaction.inputs = await CoinModel.collection.find({
    chain: transaction.chain,
    network: transaction.network,
    spentTxid: transaction.txid
  }, { batchSize: 100 }).toArray();
  transaction.outputs = await CoinModel.collection.find({
    chain: transaction.chain,
    network: transaction.network,<commit_msg>Removing comment<commit_after>const { CoinModel } = require('../../../models/coin');
const {Transform} = require('stream');
const util = require('util');
const _ = require('underscore');

function ListTransactionsStream(wallet) {
  this.wallet = wallet;
  Transform.call(this, {objectMode: true});
}

util.inherits(ListTransactionsStream, Transform);

ListTransactionsStream.prototype._transform = async function(transaction, enc, done) {
  var self = this;
  transaction.inputs = await CoinModel.collection.find({
    chain: transaction.chain,
    network: transaction.network,
    spentTxid: transaction.txid
  }, { batchSize: 100 }).toArray();
  transaction.outputs = await CoinModel.collection.find({
    chain: transaction.chain,
    network: transaction.network,
{'fraction_non_alphanumeric': 0.14754098360655737, 'fraction_numerical': 0.0037831021437578815, 'mean_word_length': 4.834558823529412, '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': '830503', 'n_tokens_mistral': 453, 'n_tokens_neox': 439, 'n_words': 97}