<commit_before>
buster.testCase('View#module()', {
	setUp: function() {
    var layout = new Layout({});
    var apple = new Apple({ slot: 1 });
    var orange = new Orange({ slot: 2 });
    var pear = new Pear({ slot: 3 });

    layout
      .add(apple)
      .add(orange)
      .add(pear);

    this.view = layout;
  },

	"Should return module type if no arguments given": function() {
    assert.equals(this.view.module(), 'layout');
  },

  "Should return the first child module with the specified type.": function() {
    var child = this.view.module('pear');

    assert.equals(child, this.view.children[2]);
  },

  "If there is more than one child of this module type, only the first is returned.": function() {<commit_msg>Fix an indentation issue<commit_after>buster.testCase('View#module()', {
  setUp: function() {
    var layout = new Layout({});
    var apple = new Apple({ slot: 1 });
    var orange = new Orange({ slot: 2 });
    var pear = new Pear({ slot: 3 });

    layout
      .add(apple)
      .add(orange)
      .add(pear);

    this.view = layout;
  },

  "Should return module type if no arguments given": function() {
    assert.equals(this.view.module(), 'layout');
  },

  "Should return the first child module with the specified type.": function() {
    var child = this.view.module('pear');

    assert.equals(child, this.view.children[2]);
  },

  "If there is more than one child of this module type, only the first is returned.": function() {
{'fraction_non_alphanumeric': 0.15061058344640435, 'fraction_numerical': 0.005427408412483039, 'mean_word_length': 3.0633608815426996, 'pattern_counts': {'":': 6, '<': 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': '331766', 'n_tokens_mistral': 462, 'n_tokens_neox': 441, 'n_words': 154}