<commit_before>class AnnotationsController < ApplicationController
  before_action :set_annotation, only: [:show, :edit, :update, :destroy]

  def index
    # Phrase it this way to allow for logged-out users
    @annotations = Annotation.where user: current_user
    respond_with(@annotations)
  end

  def show
    respond_with(@annotation)
  end
<commit_msg>Order annotations by date descending (with dateless annotations at the top)<commit_after>class AnnotationsController < ApplicationController
  before_action :set_annotation, only: [:show, :edit, :update, :destroy]

  def index
    # Phrase it this way to allow for logged-out users
    @annotations = Annotation.where(user: current_user).order(date: :desc)
    respond_with(@annotations)
  end

  def show
    respond_with(@annotation)
  end

{'fraction_non_alphanumeric': 0.08104738154613467, 'fraction_numerical': 0.0, 'mean_word_length': 4.735714285714286, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4140134', 'n_tokens_mistral': 230, 'n_tokens_neox': 221, 'n_words': 72}