<commit_before>'use strict';

describe('ProAct.Registry', function () {
  describe('examples', function () {
    it ('Counter system', function () {
      ProAct.registry.make('s:plus'); // One stream to count.
      ProAct.registry.make('s:minus', 'map(-)'); // One stream to count with negative sign.
      ProAct.registry.make('s:counts', '<<(s:plus, s:minus)|acc(+)'); // One stream that depends on the above ones and sums.
      ProAct.registry.prob('counter', 0, '<<(s:counts)'); // One ProAct.Val to store the result.

      expect(ProAct.registry.get('po:counter').v).toEqual(0);<commit_msg>Fixed registry spec.<commit_after>'use strict';

describe('ProAct.Registry', function () {
  describe('examples', function () {
    it ('Counter system', function () {
      ProAct.registry.make('s:plus'); // One stream to count.
      ProAct.registry.make('s:minus', 'map(-)'); // One stream to count with negative sign.
      ProAct.registry.make('s:counts', '<<(s:plus, s:minus)|acc(+)'); // One stream that depends on the above ones and sums.
      ProAct.registry.prob('counter', 0, '<<(s:counts)'); // One ProAct.Property to store the result.

      expect(ProAct.registry.get('po:counter').v).toEqual(0);
{'fraction_non_alphanumeric': 0.19090909090909092, 'fraction_numerical': 0.003305785123966942, 'mean_word_length': 3.9227642276422765, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2249747', 'n_tokens_mistral': 381, 'n_tokens_neox': 368, 'n_words': 95}