<commit_before>'use strict';

define(['util/scanner'], function(Scanner) {

   var client = {fetch_history: function(address, height, cb) {
     if(address==='<KEY>' || address==='<KEY>') {
       cb(null, [1,2,3]);
     } else {
       cb(null, []);
     }
   }};
   var priv = '<KEY>';
   var identity = {
     store: {
        get: function() { return 5; }
     },
     wallet: {
        mpk: '<KEY>',
        oldMpk: '<KEY>',
        versions: {address: 0}
     }
   };

   beforeEach(function(done) {
       done();
   });

   describe('HD Scanner new style', function() { 
     it('is created properly', function() {
       var updateCb = function() {};
       var finishCb = function() {};
       var scanner = new Scanner(client, identity, priv, finishCb, updateCb);
       expect(scanner.scanned).toBe(0);
       expect(scanner.status).toBe('');
       expect(scanner.used).toEqual([]);
     });<commit_msg>remove unused beforeEach<commit_after>'use strict';

define(['util/scanner'], function(Scanner) {

   var client = {fetch_history: function(address, height, cb) {
     if(address==='1NoYpPj9yn6Ae4PcjAhQeU6yrhTkkAasZN' || address==='1NmG1PMcwkz9UGpfu3Aa1hsGyKCApTjPvJ') {
       cb(null, [1,2,3]);
     } else {
       cb(null, []);
     }
   }};
   var priv = '<KEY>';
   var identity = {
     store: {
        get: function() { return 5; }
     },
     wallet: {
        mpk: '<KEY>',
        oldMpk: '<KEY>',
        versions: {address: 0}
     }
   };

   describe('HD Scanner new style', function() { 
     it('is created properly', function() {
       var updateCb = function() {};
       var finishCb = function() {};
       var scanner = new Scanner(client, identity, priv, finishCb, updateCb);
       expect(scanner.scanned).toBe(0);
       expect(scanner.status).toBe('');
       expect(scanner.used).toEqual([]);
     });
{'fraction_non_alphanumeric': 0.18083378451543042, 'fraction_numerical': 0.011911207363291824, 'mean_word_length': 2.560693641618497, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4126211', 'n_tokens_mistral': 636, 'n_tokens_neox': 627, 'n_words': 124}