<commit_before>module TasksHelper
  def task_state_checkbox(task)
    state = task.state
    attributes = 'class="checkbox ' + state + '" data-state="' + state + '" data-url="' + state_task_path(task) + '"'
    
    if task.archived?
      "<span #{attributes} data-disabled=\"true\"></span>"
    else 
      "<span #{attributes}></span>"
    end
  end
  
  def task_description(task)
    name    = "short"
    options = {<commit_msg>improve task_state_checkbox<commit_after>module TasksHelper
  def task_state_checkbox(task)
    state = task.state
    
    attributes = 'class="checkbox ' + state + '" data-state="' + state + '" data-url="' + state_task_path(task) + '"'
    attributes << ' data-disabled="true"' if task.archived?
    
    "<span #{attributes}></span>"
  end
  
  def task_description(task)
    name    = "short"
    options = {
{'fraction_non_alphanumeric': 0.15602836879432624, 'fraction_numerical': 0.0, 'mean_word_length': 3.1519607843137254, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '7219055', 'n_tokens_mistral': 275, 'n_tokens_neox': 269, 'n_words': 54}