<commit_before>import Imap = require('imap');
var inspect = require('util').inspect;

var imap = new Imap({
    user: '<EMAIL>',
    password: '<PASSWORD>',
    host: 'imap.gmail.com',
    port: 993,
    tls: true
});

imap.once('ready', function () {
    imap.openBox('INBOX', true,function (err, box) {
        if (err) throw err;
        var f = imap.seq.fetch('1:3', {
            bodies: 'HEADER.FIELDS (FROM TO SUBJECT DATE)',
            struct: true
        });
        f.on('message', function (msg, seqno) {
            console.log('Message #%d', seqno);
            var prefix = '(#' + seqno + ') ';
            msg.on('body', function (stream, info) {<commit_msg>fix node-imap/imap-tests.ts<commit_after>/// <reference path="./imap.d.ts" />

import Imap = require('imap');
var inspect = require('util').inspect;

var imap = new Imap({
    user: '<EMAIL>',
    password: '<PASSWORD>',
    host: 'imap.gmail.com',
    port: 993,
    tls: true
});

imap.once('ready', function () {
    imap.openBox('INBOX', true,function (err, box) {
        if (err) throw err;
        var f = imap.seq.fetch('1:3', {
            bodies: 'HEADER.FIELDS (FROM TO SUBJECT DATE)',
            struct: true
        });
        f.on('message', function (msg, seqno) {
            console.log('Message #%d', seqno);
            var prefix = '(#' + seqno + ') ';
            msg.on('body', function (stream, info) {
{'fraction_non_alphanumeric': 0.1861626248216833, 'fraction_numerical': 0.007132667617689016, 'mean_word_length': 2.332541567695962, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '1967591', 'n_tokens_mistral': 484, 'n_tokens_neox': 479, 'n_words': 114}