<commit_before>part of guinness;

class Expect {
  final Matchers matchers;
  final actual;
  Expect(this.actual, this.matchers);

  NotExpect get not => new NotExpect(actual, matchers);

  toEqual(expected) => matchers.toEqual(actual, expected);
  toContain(expected) => matchers.toContain(actual, expected);
  toBe(expected) => matchers.toBe(actual, expected);
  toThrow([exception]) => matchers.toThrow(actual, exception);
  toBeFalsy() => matchers.toBeFalsy(actual);
  toBeTruthy() => matchers.toBeTruthy(actual);
  toBeDefined() => matchers.toBeDefined(actual);
  toBeNull() => matchers.toBeNull(actual);
  toBeNotNull() => matchers.toBeNotNull(actual);
  toHaveHtml(expected) => matchers.toHaveHtml(actual, expected);
  toHaveText(expected) => matchers.toHaveText(actual, expected);
  toHaveBeenCalled() => matchers.toHaveBeenCalled(actual);
  toHaveBeenCalledOnce() => matchers.toHaveBeenCalledOnce(actual);
  toHaveBeenCalledWith([a=_u,b=_u,c=_u,d=_u,e=_u,f=_u]) => matchers.toHaveBeenCalledWith(actual, a, b, c, d, e, f);
  toHaveBeenCalledOnceWith([a=_u,b=_u,c=_u,d=_u,e=_u,f=_u]) => matchers.toHaveBeenCalledOnceWith(actual, a, b, c, d, e, f);
  toHaveClass(cls) => matchers.toHaveClass(actual, cls);<commit_msg>add the `to` function to Expect<commit_after>part of guinness;

class Expect {
  final Matchers matchers;
  final actual;
  Expect(this.actual, this.matchers);

  NotExpect get not => new NotExpect(actual, matchers);

  to(matcher) => matchers.expect(actual, matcher);
  toEqual(expected) => matchers.toEqual(actual, expected);
  toContain(expected) => matchers.toContain(actual, expected);
  toBe(expected) => matchers.toBe(actual, expected);
  toThrow([exception]) => matchers.toThrow(actual, exception);
  toBeFalsy() => matchers.toBeFalsy(actual);
  toBeTruthy() => matchers.toBeTruthy(actual);
  toBeDefined() => matchers.toBeDefined(actual);
  toBeNull() => matchers.toBeNull(actual);
  toBeNotNull() => matchers.toBeNotNull(actual);
  toHaveHtml(expected) => matchers.toHaveHtml(actual, expected);
  toHaveText(expected) => matchers.toHaveText(actual, expected);
  toHaveBeenCalled() => matchers.toHaveBeenCalled(actual);
  toHaveBeenCalledOnce() => matchers.toHaveBeenCalledOnce(actual);
  toHaveBeenCalledWith([a=_u,b=_u,c=_u,d=_u,e=_u,f=_u]) => matchers.toHaveBeenCalledWith(actual, a, b, c, d, e, f);
  toHaveBeenCalledOnceWith([a=_u,b=_u,c=_u,d=_u,e=_u,f=_u]) => matchers.toHaveBeenCalledOnceWith(actual, a, b, c, d, e, f);
  toHaveClass(cls) => matchers.toHaveClass(actual, cls);
{'fraction_non_alphanumeric': 0.15864811133200796, 'fraction_numerical': 0.0, 'mean_word_length': 7.195439739413681, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 38, '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': '5285987', 'n_tokens_mistral': 890, 'n_tokens_neox': 917, 'n_words': 145}