<commit_before>'''
This test application is a simple event sourcing example that can be used
by integration tests to work in a real-world setup. The app can be configured
via the new configuration api introduced in space:base.
'''

class @CustomerApp extends Space.Application

  @publish this, 'CustomerApp'

  RequiredModules: ['Space.eventSourcing']

  Dependencies: {
    commandBus: 'Space.messaging.CommandBus'
    eventBus: 'Space.messaging.EventBus'
    mongo: 'Mongo'
  }

  Configuration: {
    eventSourcing: {
      snapshotting: {
        frequency: 2<commit_msg>add app id to configuration<commit_after>'''
This test application is a simple event sourcing example that can be used
by integration tests to work in a real-world setup. The app can be configured
via the new configuration api introduced in space:base.
'''

class @CustomerApp extends Space.Application

  @publish this, 'CustomerApp'

  RequiredModules: ['Space.eventSourcing']

  Dependencies: {
    commandBus: 'Space.messaging.CommandBus'
    eventBus: 'Space.messaging.EventBus'
    mongo: 'Mongo'
  }

  Configuration: {
    appId: 'CustomerApp'
    eventSourcing: {
      snapshotting: {
        frequency: 2
{'fraction_non_alphanumeric': 0.08312342569269521, 'fraction_numerical': 0.0016792611251049538, 'mean_word_length': 3.905349794238683, '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': '2336794', 'n_tokens_mistral': 348, 'n_tokens_neox': 329, 'n_words': 119}