<commit_before>function addTask(taskModel, task) {
    if (task.length > 0) {
        tasksModel.insert(0, {task: task, time: "30m", remaining: "00:30:00", state: "paused", done: false})
    }
}

<commit_msg>set the current Index to the newly created task<commit_after>/*
  General functions
*/

function addTask(taskModel, task, tasksList) {
    if (task.length > 0) {
        tasksModel.insert(0, {task: task, time: "30m", remaining: "00:30:00", state: "paused", done: false})
        tasksList.currentIndex = 0;
    }
}


{'fraction_non_alphanumeric': 0.15648854961832062, 'fraction_numerical': 0.04007633587786259, 'mean_word_length': 3.646017699115044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5020581', 'n_tokens_mistral': 194, 'n_tokens_neox': 179, 'n_words': 48}