<commit_before>package ;

import tink.state.*;

using tink.CoreApi;
using DateTools;

@:asserts
class TestDate {
  
  public function new() {}
  
  public function basics() {
    var d = new ObservableDate(),
        log = [];
    
    d.becomesOlderThan(.05.seconds()).bind(log.push);
    d.becomesOlderThan(10.seconds()).bind(log.push);
    
    Observable.updateAll();
    asserts.assert(log.join(',') == 'false,false');

    return Future.async(function (done) {
      haxe.Timer.delay(done.bind(Noise), 100);
    }).next(function (_) {
      asserts.assert(log.join(',') == 'false,false,true');
      return asserts.done();
    });
  }
}<commit_msg>No sub-second precision on some targets<commit_after>package ;

import tink.state.*;

using tink.CoreApi;
using DateTools;

@:asserts
class TestDate {
  
  public function new() {}
  
  public function basics() {
    var d = new ObservableDate(),
        log = [];
    
    d.becomesOlderThan(1.seconds()).bind(log.push);
    d.becomesOlderThan(10.seconds()).bind(log.push);
    
    Observable.updateAll();
    asserts.assert(log.join(',') == 'false,false');

    return Future.async(function (done) {
      haxe.Timer.delay(done.bind(Noise), 1100);
    }).next(function (_) {
      asserts.assert(log.join(',') == 'false,false,true');
      return asserts.done();
    });
  }
}
{'fraction_non_alphanumeric': 0.17554388597149287, 'fraction_numerical': 0.010502625656414103, 'mean_word_length': 3.16875, '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': '7175318', 'n_tokens_mistral': 467, 'n_tokens_neox': 450, 'n_words': 77}