<commit_before>import { Injectable } from '@angular/core';
import { Todo } from '../../domain/todo';

@Injectable()
export class StoreService {

  todos : Todo [];

  constructor() {
  	this.todos = [
  		new Todo("1","abc")
  	]
  }

  getTodos(): Todo []{
  	return this.todos;
  }

  addTodos(todo){
  	this.todos.push(todo);
  }

  deleteTodos(todo){
  	console.log(todo);
  }

}<commit_msg>array of string is used inplace of using TodoObject that was previously used<commit_after>import { Injectable } from '@angular/core';
import { Todo } from '../../domain/todo';
import { Uuid } from '../../utils/uuid';
import { Array } from '../../utils/array';

@Injectable()
export class StoreService {

  todos : string [];

  constructor() {
  	this.todos = [
  		'This is test todo task'
  	]
  }

  getTodos(): string []{
  	return this.todos;
  }

  addTodos(todo){
    this.todos.splice(0,0,todo);
  }

  deleteTodos(todo){
    var i = this.todos.indexOf(todo);
    if(i != -1) {
      this.todos.splice(i, 1);
    }
  }

}
{'fraction_non_alphanumeric': 0.17578125, 'fraction_numerical': 0.0048828125, 'mean_word_length': 2.7962962962962963, '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': '4809885', 'n_tokens_mistral': 411, 'n_tokens_neox': 406, 'n_words': 81}