<commit_before>{
  "meta": {
    "language": "go",
    "language_version": "1.16",
    "language_name": "Go"
  },
  "categories": {
    "Conditional Statements (ifs)": [
      "if_conditional",
      "if_else_conditional",
      "if_elseif_conditional",
      "if_elseif_else_conditional",
      "defer"
    ],
    "Loops": [
      "for_loop",
      "foreach_loop"
    ],
    "Iterations": []
  },
  "control_structures": {
    "if_conditional": {
      "code": "if condition {\n    // code to be executed if condition is true\n}"
    },
    "if_else_conditional": {
      "code": "if condition {\n    // code to be executed if condition is true\n} else {\n    // code to be executed if condition is false\n}"
    },
    "if_elseif_conditional": {
      "code": "if condition1 {\n    // code to be executed if condition1 is true\n} else if condition2 {\n    // code to be executed if condition2 is true\n}"
    },
    "if_elseif_else_conditional": {
      "code": "if condition1 {\n    // code to be executed if condition1 is true\n} else if condition2 {\n    // code to be executed if condition2 is true\n} else {\n    // code to be executed if neither conditions are met\n}"
    },
    "defer": {
      "code": "func main() {\n    defer fmt.Println(\"World!\")\n    fmt.Println(\"Hello,\")\n}",
      "comment": "The above prints \"Hello, World!\". A defer statement defers the execution of the function it is placed before until the surrounding function returns. It is important to note that the arguments in the deferred function are evaluated immediately, but the funciton call is not executed until the surrounding function has returned."
    },
    "for_loop": {
      "code": "for i := 0; i < 10; i++ {\n    // do something\n}",
      "comment": "Go only has one looping control structure, the for loop. The three components of the for loop are: the init statement (optional), the condition expression (mandatory), and the post statement (optional). The init statement is executed before the first iteration, the post statement is executed at the end of each iteration, while the condition expression is evaluated before every iteration."
    },
    "foreach_loop": {
      "code": "integers := []int{5, 2, 7, 1}\nfor i, v := range integers {\n    fmt.Printf(\"2**%d = %d\n\", i, v)\n}",
      "comment": "The above prints: 2**0 = 5, 2**1 = 2, 2**2 = 7, 2**3 = 1 with new lines instead of commas."
    }
  }
}<commit_msg>Fix typo<commit_after>{
  "meta": {
    "language": "go",
    "language_version": "1.16",
    "language_name": "Go"
  },
  "categories": {
    "Conditional Statements (ifs)": [
      "if_conditional",
      "if_else_conditional",
      "if_elseif_conditional",
      "if_elseif_else_conditional",
      "defer"
    ],
    "Loops": [
      "for_loop",
      "foreach_loop"
    ],
    "Iterations": []
  },
  "control_structures": {
    "if_conditional": {
      "code": "if condition {\n    // code to be executed if condition is true\n}"
    },
    "if_else_conditional": {
      "code": "if condition {\n    // code to be executed if condition is true\n} else {\n    // code to be executed if condition is false\n}"
    },
    "if_elseif_conditional": {
      "code": "if condition1 {\n    // code to be executed if condition1 is true\n} else if condition2 {\n    // code to be executed if condition2 is true\n}"
    },
    "if_elseif_else_conditional": {
      "code": "if condition1 {\n    // code to be executed if condition1 is true\n} else if condition2 {\n    // code to be executed if condition2 is true\n} else {\n    // code to be executed if neither conditions are met\n}"
    },
    "defer": {
      "code": "func main() {\n    defer fmt.Println(\"World!\")\n    fmt.Println(\"Hello,\")\n}",
      "comment": "The above prints \"Hello, World!\". A defer statement defers the execution of the function it is placed before until the surrounding function returns. It is important to note that the arguments in the deferred function are evaluated immediately, but the function call is not executed until the surrounding function has returned."
    },
    "for_loop": {
      "code": "for i := 0; i < 10; i++ {\n    // do something\n}",
      "comment": "Go has one looping control structure, the for loop. The three components of the for loop are: the init statement (optional), the condition expression (mandatory), and the post statement (optional). The init statement is executed before the first iteration, the post statement is executed at the end of each iteration, while the condition expression is evaluated before every iteration."
    },
    "foreach_loop": {
      "code": "integers := []int{5, 2, 7, 1}\nfor i, v := range integers {\n    fmt.Printf(\"2**%d = %d\n\", i, v)\n}",
      "comment": "The above prints: 2**0 = 5, 2**1 = 2, 2**2 = 7, 2**3 = 1 with new lines instead of commas."
    }
  }
}
{'fraction_non_alphanumeric': 0.13613861386138615, 'fraction_numerical': 0.01278877887788779, 'mean_word_length': 2.8575974542561653, 'pattern_counts': {'":': 52, '<': 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': '2878697', 'n_tokens_mistral': 1478, 'n_tokens_neox': 1430, 'n_words': 570}