<commit_before>App.Models.Album = Backbone.Model.extend()

App.Collections.Albums = Backbone.Collection.extend
  model: App.Models.Album
  url: "/users/2/albums"

App.AlbumItemView = Backbone.View.extend
  tagName: 'li'
  template: _.template "<%= title %>"
  initialize: ->
    @model = new App.Models.Album (title: 'Giant Steps')
  render: ->
    @$el.html @template @model.attributes
    @
<commit_msg>add album list view<commit_after>App.Models.Album = Backbone.Model.extend()

App.Collections.Albums = Backbone.Collection.extend
  model: App.Models.Album
  url: "/users/2/albums"

App.AlbumItemView = Backbone.View.extend
  tagName: 'li'
  template: _.template "<%= title %>"
  render: ->
    @$el.html @template @model.attributes
    @

App.AlbumsListView = Backbone.View.extend
  el: '#featured'
  initialize: ->
    @listenTo @collection, 'sync', @render
  render: ->
    for model in @collection.models
      itemView = new App.AlbumItemView(model: model)
      @$el.append itemView.render().el

$ ->
  App.albums = new App.Collections.Albums
  App.albumsListView = new App.AlbumsListView(collection: App.albums)
  App.albums.fetch()

{'fraction_non_alphanumeric': 0.14435695538057744, 'fraction_numerical': 0.0017497812773403325, 'mean_word_length': 3.707818930041152, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4106256', 'n_tokens_mistral': 403, 'n_tokens_neox': 383, 'n_words': 76}