<commit_before>describe('Account.random', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.random();
    expect(account).to.be.instanceof(StellarLib.Account);
  });
});

describe('Account.fromSeed', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.fromSeed("<KEY>");
    expect(account).to.be.instanceof(StellarLib.Account);
  });

  it("throw an error if the arg isn't base58check encoded as a seed", function() {

    expect(() => StellarLib.Account.fromSeed("hel0")).to.throw()
    expect(() => StellarLib.Account.fromSeed("masterpassphrasemasterpassphrase")).to.throw()
    expect(() => StellarLib.Account.fromSeed("gsYRSEQhTffqA9opPepAENCr2WG6z5iBHHubxxbRzWaHf8FBWcu")).to.throw()

  });
});

describe('Account.fromAddress', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.fromAddress("gM4gu1GLe3vm8LKFfRJcmTt1eaEuQEbo61a8BVkGcou78m21K7");
    expect(account).to.be.instanceof(StellarLib.Account);
  });

  it("throw an error if the arg isn't base58check encoded as a accountid", function() {

    expect(() => StellarLib.Keypair.fromAddress("hel0")).to.throw()
    expect(() => StellarLib.Keypair.fromAddress("masterpassphrasemasterpassphrase")).to.throw()
    expect(() => StellarLib.Keypair.fromAddress("<KEY>")).to.throw()

  });
});

describe('Account.master', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.fromMaster();
    expect(account).to.be.instanceof(StellarLib.Account);
  });
});

describe('Account.isValidAddress', function() {

  it("returns true for valid address", function() {
    let check = StellarLib.Account.isValidAddress('<KEY>');
    expect(check).to.be.true;
  });

  it("returns false for invalid address", function() {
    let check = StellarLib.Account.isValidAddress('<KEY>');
    expect(check).to.be.false;
  });
});<commit_msg>Update test<commit_after>describe('Account.random', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.random();
    expect(account).to.be.instanceof(StellarLib.Account);
  });
});

describe('Account.fromSeed', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.fromSeed("<KEY>");
    expect(account).to.be.instanceof(StellarLib.Account);
  });

  it("throw an error if the arg isn't base58check encoded as a seed", function() {

    expect(() => StellarLib.Account.fromSeed("hel0")).to.throw()
    expect(() => StellarLib.Account.fromSeed("masterpassphrasemasterpassphrase")).to.throw()
    expect(() => StellarLib.Account.fromSeed("gsYRSEQhTffqA9opPepAENCr2WG6z5iBHHubxxbRzWaHf8FBWcu")).to.throw()

  });
});

describe('Account.fromAddress', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.fromAddress("gM4gu1GLe3vm8LKFfRJcmTt1eaEuQEbo61a8BVkGcou78m21K7");
    expect(account).to.be.instanceof(StellarLib.Account);
  });

  it("throw an error if the arg isn't base58check encoded as a accountid", function() {

    expect(() => StellarLib.Keypair.fromAddress("hel0")).to.throw()
    expect(() => StellarLib.Keypair.fromAddress("masterpassphrasemasterpassphrase")).to.throw()
    expect(() => StellarLib.Keypair.fromAddress("<KEY>")).to.throw()

  });
});

describe('Account.root', function() {

  it("creates an account correctly", function() {
    let account = StellarLib.Account.fromRoot();
    expect(account).to.be.instanceof(StellarLib.Account);
  });
});

describe('Account.isValidAddress', function() {

  it("returns true for valid address", function() {
    let check = StellarLib.Account.isValidAddress('<KEY>');
    expect(check).to.be.true;
  });

  it("returns false for invalid address", function() {
    let check = StellarLib.Account.isValidAddress('<KEY>');
    expect(check).to.be.false;
  });
});
{'fraction_non_alphanumeric': 0.1702127659574468, 'fraction_numerical': 0.0121580547112462, 'mean_word_length': 5.075384615384616, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '3797063', 'n_tokens_mistral': 1374, 'n_tokens_neox': 1283, 'n_words': 209}