<commit_before>#<< AppEngine/Objects/StrictObject

class PageManager extends AppEngine.Objects.StrictObject
  @expectedParameters: AppEngine.Helpers.mergeArrays(_super.expectedParameters, ['appConfig'])
  @applyParameters: AppEngine.Helpers.mergeArrays(_super.applyParameters, ['appConfig', 'components', 'pageDefaultConfig', 'pageClassIdentifier', 'parentManager'])

  constructor: (options = {}) ->
    try
      #set the default properies
      _.defaults(config, { 
        pageClassIdentifier: 'pseudo-page',
        pageDefaultConfig: {},
        components: []
      })

      @specialPages = {
        defaultPage: null,
        notFoundPage: null,
        errorPage: null
      }

      super options
    catch e
      throw new AppEngine.Helpers.Error "Creating new instance", e

    #set the default Page type
    @pageDefaultConfig.type = AppEngine.Components.Page.getShortNameIdentification() if !@pageDefaultConfig.type

  initialise: (cb)->
    try 
      pagesInitialiseComplete = (pages)->
        @pages = {}
        for page in pages
          @pages[page.id] = page

          @setSpecialPages(page)
<commit_msg>Fix the config to options regression issue on PageManager<commit_after>#<< AppEngine/Objects/StrictObject

class PageManager extends AppEngine.Objects.StrictObject
  @expectedParameters: AppEngine.Helpers.mergeArrays(_super.expectedParameters, ['appConfig'])
  @applyParameters: AppEngine.Helpers.mergeArrays(_super.applyParameters, ['appConfig', 'components', 'pageDefaultConfig', 'pageClassIdentifier', 'parentManager'])

  constructor: (options = {}) ->
    try
      #set the default properies
      _.defaults(options, { 
        pageClassIdentifier: 'pseudo-page',
        pageDefaultConfig: {},
        components: []
      })

      @specialPages = {
        defaultPage: null,
        notFoundPage: null,
        errorPage: null
      }

      super options
    catch e
      throw new AppEngine.Helpers.Error "Creating new instance", e

    #set the default Page type
    @pageDefaultConfig.type = AppEngine.Components.Page.getShortNameIdentification() if !@pageDefaultConfig.type

  initialise: (cb)->
    try 
      pagesInitialiseComplete = (pages)->
        @pages = {}
        for page in pages
          @pages[page.id] = page

          @setSpecialPages(page)

{'fraction_non_alphanumeric': 0.10480727587700303, 'fraction_numerical': 0.0, 'mean_word_length': 3.1323792486583186, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2746370', 'n_tokens_mistral': 623, 'n_tokens_neox': 615, 'n_words': 144}