<commit_before>import { DummyContract } from '../src/contracts'
import { BigNumber } from 'bignumber.js'
var dummyContract = artifacts.require("./DummyContract.sol");

contract('DummyContract', function(accounts) {
  it("should have initial private value from deployer", function() {
    return dummyContract.deployed().then(async function (instance) {
      // typed contract could be initiated with an instance supplied by Truffle
      let dummy = new DummyContract(instance);
      let pr = await dummy.getPrivate();
      assert.equal(pr, 123, "123 wasn't in the private value");
      await dummy.setPrivate(new BigNumber(123456));
      pr = await dummy.getPrivate();
      assert.equal(pr, 123456, "123456 wasn't in the private value");
    });
  });
 
  it("should have initial public value from deployer", function() {
    return dummyContract.deployed().then(async function (instance) {
      let dummy = new DummyContract(instance);
      let value = await dummy.getPublic();
      assert.equal(value, 456, "456 wasn't in the public value");
    });
  });

});<commit_msg>tests should await all async operations (passed just by returning a promise before)<commit_after>import { DummyContract } from '../src/contracts'
import { BigNumber } from 'bignumber.js'
var dummyContract = artifacts.require("./DummyContract.sol");

contract('DummyContract', function (accounts) {
  it("should have initial private value from deployer", async function () {
    let instance = await dummyContract.deployed();
    // typed contract could be initiated with an instance supplied by Truffle
    let dummy = new DummyContract(instance);
    let pr = await dummy.getPrivate();
    assert.equal(pr, 123, "123 wasn't in the private value");
    await dummy.setPrivate(new BigNumber(123456));
    pr = await dummy.getPrivate();
    assert.equal(pr, 123456, "123456 wasn't in the private value");
  });


  it("should have initial public value from deployer", async function () {
    let dummy = new DummyContract(await dummyContract.deployed());
    let value = await dummy.getPublic();
    assert.equal(value, 456, "456 wasn't in the public value");
  });

});  
{'fraction_non_alphanumeric': 0.12070566388115135, 'fraction_numerical': 0.027855153203342618, 'mean_word_length': 4.035046728971962, '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': '3910742', 'n_tokens_mistral': 638, 'n_tokens_neox': 582, 'n_words': 200}