<commit_before>#pragma "strict"

class {{= it.name}} {
  public function {{= it.name}}(builder :{{= it.name}}Builder) {
  }
}

class {{= it.name}}Builder {

}<commit_msg>expanding on unityscript entity generation<commit_after>#pragma strict

class {{= it.name}} {
  function {{= it.name}}(builder :{{= it.name}}Builder) {
    {{~ it.fields :field}}
    this.{{= field.name}} = builder.{{= field.name}};{{~}}

  }
  {{~ it.fields :field}}
  public var {{= field.name}} :{{= field.type}};{{~}}

  public function ToBuilder() {
    return {{= it.name}}.NewBuilderFrom(this);
  }

  public static function NewBuilder() {
    return new {{= it.name}}Builder(null);
  }

  public static function NewBuilderFrom(entity :{{= it.name}}) {
    return new {{= it.name}}Builder(entity);
  }

}

class {{= it.name}}Builder {
  function {{= it.name}}Builder(entity :{{= it.name}}) {
    if (entity != null) {
      {{~ it.fields :field}}
      this.{{= field.name}} = entity.{{= field.name}};{{~}}

    }
  }
  {{~ it.fields :field}}
  public var {{= field.name}} :{{= field.type}};{{~}}

  public function Build() {
    return new {{= it.name}}(this);
  }

}
{'fraction_non_alphanumeric': 0.2331877729257642, 'fraction_numerical': 0.0, 'mean_word_length': 3.5296442687747036, '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': '4653533', 'n_tokens_mistral': 410, 'n_tokens_neox': 401, 'n_words': 79}