<commit_before>
SlideShow = FLIPS.models.SlideShow
# next slide
# prev
# goto
# reload

class FLIPS.SlideShowView extends Backbone.View
  el: '.deck-container'

  constructor: (opts) ->
    super

    @model.bind "change", =>
      $ =>
        @render()
        $.deck(".slide")

    @model.fetch()
    
  next: ->
    $.deck("next")
    
  prev: ->
    $.deck("prev")
    
  # Indexing starts from 0.
  goto: (slide) ->
    $.deck("go", slide)

  render: ->
    $(@el).prepend @model.get "html"
<commit_msg>reload support for slide show view<commit_after>
SlideShow = FLIPS.models.SlideShow

class FLIPS.SlideShowView extends Backbone.View
  el: '.deck-container'

  constructor: (opts) ->
    super

    @model.bind "change", =>
      $ =>
        @render()
        $.deck(".slide")

    @model.fetch()
    
  next: ->
    $.deck("next")
    
  prev: ->
    $.deck("prev")
  
  reload: ->
    window.location.reload()  
  
  # Indexing starts from 0.
  goto: (slide) ->
    $.deck("go", slide)

  render: ->
    $(@el).prepend @model.get "html"

{'fraction_non_alphanumeric': 0.17461832061068702, 'fraction_numerical': 0.0019083969465648854, 'mean_word_length': 2.2177914110429446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '2450600', 'n_tokens_mistral': 379, 'n_tokens_neox': 366, 'n_words': 78}