<commit_before>package objektwerks;

import org.junit.jupiter.api.Test;

class ControlFlowTest {
    @Test void ifTest() {
        int x = 1;
        boolean result = false;
        if (x >= 1) result = true;
        assert(result);
    }

    @Test void ifElseTest() {
        int x = 1;
        boolean result;
        if (x >= 1) {
            result = true;
         } else {
            result = false;
         }
         assert(result);
    }

    @Test void elseIfTest() {
        int score = 76;
        char grade;
        if (score >= 90) {
          grade = 'A';
        } else if (score >= 80) {
          grade = 'B';
        } else if (score >= 70) {
          grade = 'C';
        } else if (score >= 60) {
          grade = 'D';
        } else {
          grade = 'F';
        }
        assert(grade == 'C');
  }
}<commit_msg>added nested if else test<commit_after>package objektwerks;

import org.junit.jupiter.api.Test;

class ControlFlowTest {
    @Test void ifTest() {
        int x = 1;
        boolean result = false;
        if (x >= 1) result = true;
        assert(result);
    }

    @Test void ifElseTest() {
        int x = 1;
        boolean result;
        if (x >= 1) {
            result = true;
         } else {
            result = false;
         }
         assert(result);
    }

    @Test void elseIfTest() {
        int score = 76;
        char grade;
        if (score >= 90) {
          grade = 'A';
        } else if (score >= 80) {
          grade = 'B';
        } else if (score >= 70) {
          grade = 'C';
        } else if (score >= 60) {
          grade = 'D';
        } else {
          grade = 'F';
        }
        assert(grade == 'C');
    }

    @Test void nestedIfElseTest() {
        boolean wellRested = true;
        boolean wellPrepared = true;
        String greeting = "";
        if (wellRested) {
          greeting = "Best of luck today!";  
          if (wellPrepared) {
            greeting = "You are ready for your exam!";
          } else {
            greeting = "Study before your exam!";
          }
        }
        assert(greeting == "You are ready for your exam!");
    }
}
{'fraction_non_alphanumeric': 0.12633534602879704, 'fraction_numerical': 0.013005109150023224, 'mean_word_length': 1.3111587982832618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '1553621', 'n_tokens_mistral': 684, 'n_tokens_neox': 650, 'n_words': 192}