<commit_before>(function() {
"use strict";

/* global describe, it, expect, isImportantFruit, testFruitImportance */

describe('Q2: Important Fruit', function() {

  it('sets isImportantFruit as true when fruit is apple', function() {
    testFruitImportance('apple');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is fig', function() {
    testFruitImportance('fig');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is kiwi', function() {
    testFruitImportance('kiwi');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is lemon', function() {
    testFruitImportance('lemon');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is mango', function() {
    testFruitImportance('mango');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is orange', function() {
    testFruitImportance('orange');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is papaya', function() {
    testFruitImportance('papaya');
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is plum', function() {
    testFruitImportance('plum');
    expect(isImportantFruit).toBe(true);
  });

});
})(); // IIFE








<commit_msg>DRY code<commit_after>(function() {
"use strict";

/* global afterEach, describe, expect, isImportantFruit, it, testFruitImportance */

describe('Q2: Important Fruit', function() {

  afterEach(function() {
    expect(isImportantFruit).toBe(true);
  });

  it('sets isImportantFruit as true when fruit is apple', function() {
    testFruitImportance('apple');
  });

  it('sets isImportantFruit as true when fruit is fig', function() {
    testFruitImportance('fig');
  });

  it('sets isImportantFruit as true when fruit is kiwi', function() {
    testFruitImportance('kiwi');
  });

  it('sets isImportantFruit as true when fruit is lemon', function() {
    testFruitImportance('lemon');
  });

  it('sets isImportantFruit as true when fruit is mango', function() {
    testFruitImportance('mango');
  });

  it('sets isImportantFruit as true when fruit is orange', function() {
    testFruitImportance('orange');
  });

  it('sets isImportantFruit as true when fruit is papaya', function() {
    testFruitImportance('papaya');
  });

  it('sets isImportantFruit as true when fruit is plum', function() {
    testFruitImportance('plum');
  });

});
})(); // IIFE









{'fraction_non_alphanumeric': 0.1441233140655106, 'fraction_numerical': 0.0007707129094412332, 'mean_word_length': 4.488372093023256, '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': '3064617', 'n_tokens_mistral': 854, 'n_tokens_neox': 812, 'n_words': 200}