<commit_before>package i_introduction._7_Data_Classes

import util.TODO

class Person1(val name: String, val age: Int)

//no 'new' keyword
fun create() = Person1("<NAME>", 58)

fun useFromJava() {
    // property 'val name' = backing field + getter
    // => from Java you access it through 'getName()'
    JavaCode7().useKotlinClass(Person1("<NAME>", 55))

    // property 'var mutable' = backing field + getter + setter
}

// It's the same as the following (getters are generated by default):
class Person2(_name: String, _age: Int) { //_name, _age are constructor parameters
    val name: String = _name //property initialization is the part of constructor
      get(): String {<commit_msg>Removed the mention of real people<commit_after>package i_introduction._7_Data_Classes

import util.TODO

class Person1(val name: String, val age: Int)

//no 'new' keyword
fun create() = Person1("Alice", 29)

fun useFromJava() {
    // property 'val name' = backing field + getter
    // => from Java you access it through 'getName()'
    JavaCode7().useKotlinClass(Person1("Bob", 31))

    // property 'var mutable' = backing field + getter + setter
}

// It's the same as the following (getters are generated by default):
class Person2(_name: String, _age: Int) { //_name, _age are constructor parameters
    val name: String = _name //property initialization is the part of constructor
      get(): String {
{'fraction_non_alphanumeric': 0.11689237348538846, 'fraction_numerical': 0.014255167498218105, 'mean_word_length': 3.909090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2973809', 'n_tokens_mistral': 425, 'n_tokens_neox': 409, 'n_words': 157}