<commit_before><!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>presentation</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
    <script type="text/javascript" src="http://dl.dropboxusercontent.com/u/275354/lib/coffee-script.js"></script>
    <script type="text/coffeescript">
execAndSetInterval = (func, int) ->
  func()
  setInterval func, int

class Presentation
  constructor: (wrapper) ->
    @index = 0
    @wrapper = wrapper
    $.getJSON('/presentations.json', (results) =>
      @urls = []
      results.forEach((result) =>
        @urls.push(result['path'])
      )
      @render()
    )

  prev: ->
    @index = @index - 1
    if @index < 0
      @index = @urls.length - 1
    @render()

  next: ->
    @index = @index + 1
    if @index >= @urls.length
      @index = 0
    @render()

  render: ->
    @wrapper.css('background-image', "url(#{@urls[@index]})")

jQuery(($)->
  presentation = new Presentation($('body'))
  $(window).keydown((e) ->
    if e.keyCode == 13 || e.keyCode == 74
      presentation.prev()
    else if e.keyCode == 75
      presentation.next()
  )

  execAndSetInterval(->
    w = $(window).width()
    h = $(window).height()
    $('body').width("#{w}px")
    $('body').height("#{w}px")
  )
)
    </script>
    <link rel="stylesheet" type="text/css" href="//dl.dropbox.com/u/275354/lib/cssreset-min.css">
    <style type="text/css" media="screen">
body {
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
    </style>
  </head>
  <body>
  </body><commit_msg>Fix keycode bug<commit_after><!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>presentation</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
    <script type="text/javascript" src="http://dl.dropboxusercontent.com/u/275354/lib/coffee-script.js"></script>
    <script type="text/coffeescript">
execAndSetInterval = (func, int) ->
  func()
  setInterval func, int

class Presentation
  constructor: (wrapper) ->
    @index = 0
    @wrapper = wrapper
    $.getJSON('/presentations.json', (results) =>
      @urls = []
      results.forEach((result) =>
        @urls.push(result['path'])
      )
      @render()
    )

  prev: ->
    @index = @index - 1
    if @index < 0
      @index = @urls.length - 1
    @render()

  next: ->
    @index = @index + 1
    if @index >= @urls.length
      @index = 0
    @render()

  render: ->
    @wrapper.css('background-image', "url(#{@urls[@index]})")

jQuery(($)->
  presentation = new Presentation($('body'))
  $(window).keydown((e) ->
    if e.keyCode == 13 || e.keyCode == 74
      presentation.next()
    else if e.keyCode == 75
      presentation.prev()
  )

  execAndSetInterval(->
    w = $(window).width()
    h = $(window).height()
    $('body').width("#{w}px")
    $('body').height("#{w}px")
  )
)
    </script>
    <link rel="stylesheet" type="text/css" href="//dl.dropbox.com/u/275354/lib/cssreset-min.css">
    <style type="text/css" media="screen">
body {
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}
    </style>
  </head>
  <body>
  </body>
{'fraction_non_alphanumeric': 0.197667638483965, 'fraction_numerical': 0.0163265306122449, 'mean_word_length': 2.9849012775842043, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 61, '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': '1405884', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1188, 'n_words': 215}