<commit_before>import {Component} from "angular2/core";

@Component({
  selector: 'todo-input',
  template: `<div>my todo input</div>`
})

export class TodoInput{}
<commit_msg>3: Using events and refs<commit_after>import {Component} from "angular2/core";

@Component({
  selector: 'todo-input',
  template: `<div>
  <input type="text" #myInput>
  <button (click)="onClick(myInput.value)" >Click this button</button>
  </div>`
})

export class TodoInput{
  onClick(value) {
    console.log("I have been clicked with value " + value);
  }
}

{'fraction_non_alphanumeric': 0.16512059369202226, 'fraction_numerical': 0.0055658627087198514, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '898517', 'n_tokens_mistral': 189, 'n_tokens_neox': 187, 'n_words': 47}