<commit_before>require "sinatra"

class Mixtape < Sinatra::Base
  set :public_folder, 'public'

  get "/" do
    songs = Dir.entries("public/songs").reject do |f|
      [".", "..", ".gitkeep"].include?(f)
    end

    erb :index, :locals => { :song_count => songs.length }
  end
end<commit_msg>Ignore DS_Store in songs dir<commit_after>require "sinatra"

class Mixtape < Sinatra::Base
  set :public_folder, 'public'

  get "/" do
    songs = Dir.entries("public/songs").reject do |f|
      [".", "..", ".gitkeep", ".DS_Store"].include?(f)
    end

    erb :index, :locals => { :song_count => songs.length }
  end
end
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.0, 'mean_word_length': 3.3146853146853146, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6661380', 'n_tokens_mistral': 226, 'n_tokens_neox': 219, 'n_words': 50}