<commit_before>var todos = ['item 1', 'item 2', 'item 3', 'item 4'];

function displayTodos() {
  console.log('These are my todos:', todos);
};

function addTodo(item1) {
  todos.push(item1);
  displayTodos();
};

function changeTodo(position, newValue) {
  todos[position] = newValue;
  displayTodos();
};


changeTodo(0, 'this used to be item 1');
<commit_msg>Play with all functions<commit_after>var todos = ['item 1', 'item 2', 'item 3', 'item 4'];

function displayTodos() {
  console.log('These are my todos:', todos);
};

function addTodo(item1) {
  todos.push(item1);
  displayTodos();
};

function changeTodo(position, newValue) {
  todos[position] = newValue;
  displayTodos();
};

function deleteTodo(position) {
  todos.splice(position, 1);
  displayTodos();
}

deleteTodo(0);

{'fraction_non_alphanumeric': 0.16856780735107732, 'fraction_numerical': 0.020278833967046894, 'mean_word_length': 5.171875, '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': '2697924', 'n_tokens_mistral': 297, 'n_tokens_neox': 295, 'n_words': 70}