<commit_before>/**
 * @fileOverview Identity properties and data.
 */
'use strict';

define(['model/identity'], function(Identity) {
  describe('Identity model', function() {
    
    var identity, store, _store, _password;
    
    beforeEach(function() {
      _store = { name: "Sean\'s Outpost" };
      store = {
        init: function(key, value) {
          return value;
        },
        get: function(key) {
          return _store[key];
        },
        getPrivateData: function(password) {
          if (_password && password != _password) {
            throw new Error("ccm: tag doesn't match");
          }
          return _store['private'];
        },
        setPrivateData: function(data, newPassword) {
          _password = <PASSWORD>;
          _store['private'] = data;
        },
        set: function(key, value) {
          _store[key] = value;
        },
        save: function() {
        }
      };
      identity = new Identity(store, '<PASSWORD>', '<PASSWORD>');
    });

    it('is created properly', function() {
      expect(identity.name).toBe("Sean's Outpost");
      expect(identity.settings).toEqual({
        currency: 'BTC',
        fiatCurrency: 'EUR',
        animations: {
          enabled: true
        },
        notifications: {
          popup: true,
          send: true,
          receive: true,
          multisig: true
        }
      });
      expect(identity.store).toBeDefined();
      expect(identity.wallet).toBeDefined();
      expect(identity.txdb).toBeDefined();
      expect(identity.history).toBeDefined();
      expect(identity.contacts).toBeDefined();
      expect(identity.connections).toBeDefined();
      expect(identity.tasks).toBeDefined();
    });
<commit_msg>Drone tests are run as USD :P.<commit_after>/**
 * @fileOverview Identity properties and data.
 */
'use strict';

define(['model/identity'], function(Identity) {
  describe('Identity model', function() {
    
    var identity, store, _store, _password;
    
    beforeEach(function() {
      _store = { name: "Sean\'s Outpost" };
      store = {
        init: function(key, value) {
          return value;
        },
        get: function(key) {
          return _store[key];
        },
        getPrivateData: function(password) {
          if (_password && password != _password) {
            throw new Error("ccm: tag doesn't match");
          }
          return _store['private'];
        },
        setPrivateData: function(data, newPassword) {
          _password = newPassword;
          _store['private'] = data;
        },
        set: function(key, value) {
          _store[key] = value;
        },
        save: function() {
        }
      };
      identity = new Identity(store, 'deba0a36765d68e54ba70f38ca9b63fb', '<PASSWORD>');
    });

    it('is created properly', function() {
      expect(identity.name).toBe("<NAME>");
      expect(identity.settings).toEqual({
        currency: 'USD',
        fiatCurrency: 'EUR',
        animations: {
          enabled: true
        },
        notifications: {
          popup: true,
          send: true,
          receive: true,
          multisig: true
        }
      });
      expect(identity.store).toBeDefined();
      expect(identity.wallet).toBeDefined();
      expect(identity.txdb).toBeDefined();
      expect(identity.history).toBeDefined();
      expect(identity.contacts).toBeDefined();
      expect(identity.connections).toBeDefined();
      expect(identity.tasks).toBeDefined();
    });

{'fraction_non_alphanumeric': 0.14052661705781339, 'fraction_numerical': 0.004865483686319404, 'mean_word_length': 2.079295154185022, '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': '5808762', 'n_tokens_mistral': 993, 'n_tokens_neox': 979, 'n_words': 197}