<commit_before>require 'cinatra'

TODOS = []

def show_todos
  TODOS.each_with_index do |todo, index|
    puts "#{index}: #{todo}"
  end
end

command 'todo add' do |arg|
  TODOS << arg
  show_todos
end

command 'todo delete' do |arg|
  TODOS.delete_at(arg.to_i)
  show_todos
end

command 'todo list' do |arg|
  show_todos
end

command 'todo clear' do |arg|
  TODOS.clear
end
<commit_msg>add a command 'exit' to exit.<commit_after>require 'cinatra'

TODOS = []

def show_todos
  TODOS.each_with_index do |todo, index|
    puts "#{index}: #{todo}"
  end
end

command 'todo add' do |arg|
  TODOS << arg
  show_todos
end

command 'todo delete' do |arg|
  TODOS.delete_at(arg.to_i)
  show_todos
end

command 'todo list' do |arg|
  show_todos
end

command 'todo clear' do |arg|
  TODOS.clear
end

command 'exit' do
  Cinatra.exit
end

{'fraction_non_alphanumeric': 0.11352657004830918, 'fraction_numerical': 0.0, 'mean_word_length': 3.8197674418604652, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4703343', 'n_tokens_mistral': 363, 'n_tokens_neox': 355, 'n_words': 100}