<commit_before>
import {Component,Input, ChangeDetectionStrategy} from "angular2/core";
import {TodoItem} from "./todo_item";
import {Todo} from "./todo";

@Component({
    selector: 'todo-list',
    // uncomment to switch to on-push mode
    changeDetection: ChangeDetectionStrategy.OnPush,
    directives: [TodoItem],
    template: `<ul>
                    <li *ngFor="#todo of todos;">
                        <todo-item [todo]="todo" (toggle)="onToggle($event)"></todo-item>
                    </li>
               </ul>`
})
export class TodoList {

    @Input()
    todos: Array<Todo>;

    onToggle(todo) {
        console.log("toggling todo..");
        todo.completed = !todo.completed;

    }

}<commit_msg>ongoing<commit_after>
import {Component,Input, ChangeDetectionStrategy} from "angular2/core";
import {TodoItem} from "./todo_item";
import {Todo} from "./todo";

@Component({
    selector: 'todo-list',
    // uncomment to switch to on-push mode
    //changeDetection: ChangeDetectionStrategy.OnPush,
    directives: [TodoItem],
    template: `<ul>
                    <li *ngFor="#todo of todos;">
                        <todo-item [todo]="todo" (toggle)="onToggle($event)"></todo-item>
                    </li>
               </ul>`
})
export class TodoList {

    @Input()
    todos: Array<Todo>;

    onToggle(todo) {
        console.log("toggling todo..");
        todo.completed = !todo.completed;

    }

}
{'fraction_non_alphanumeric': 0.15502793296089384, 'fraction_numerical': 0.0013966480446927375, 'mean_word_length': 2.3717647058823528, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1994049', 'n_tokens_mistral': 475, 'n_tokens_neox': 459, 'n_words': 98}