<commit_before>// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import axiomMain from 'axiom/main';

import shellDescriptor from 'axiom_shell/descriptor';

import ShellCommands from 'axiom_shell/commands';
import ShellFS from 'axiom_shell/file_system';
import ShellWindows from 'axiom_shell/windows';

export var main = function() {
  return axiomMain().then(function(moduleManager) {
    var shellModule = moduleManager.defineModule(shellDescriptor);

    var ary = [
        ['commands@axiom', ShellCommands],
        ['filesystems@axiom', ShellFS],
        ['windows@axiom', ShellWindows]
    ];

    for (var i = 0; i < ary.length; i++) {
      var def = ary[i];
      var extensionBinding = shellModule.getExtensionBinding(def[0]);
      var extension = new def[1](moduleManager);
      extension.bind(extensionBinding);
    }

    shellModule.ready();

    return moduleManager;
  });
};

export default main;<commit_msg>Indent.<commit_after>// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import axiomMain from 'axiom/main';

import shellDescriptor from 'axiom_shell/descriptor';

import ShellCommands from 'axiom_shell/commands';
import ShellFS from 'axiom_shell/file_system';
import ShellWindows from 'axiom_shell/windows';

export var main = function() {
  return axiomMain().then(function(moduleManager) {
    var shellModule = moduleManager.defineModule(shellDescriptor);

    var ary = [
      ['commands@axiom', ShellCommands],
      ['filesystems@axiom', ShellFS],
      ['windows@axiom', ShellWindows]
    ];

    for (var i = 0; i < ary.length; i++) {
      var def = ary[i];
      var extensionBinding = shellModule.getExtensionBinding(def[0]);
      var extension = new def[1](moduleManager);
      extension.bind(extensionBinding);
    }

    shellModule.ready();

    return moduleManager;
  });
};

export default main;
{'fraction_non_alphanumeric': 0.11339712918660287, 'fraction_numerical': 0.0066985645933014355, 'mean_word_length': 3.8402777777777777, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4975617', 'n_tokens_mistral': 622, 'n_tokens_neox': 598, 'n_words': 181}