<commit_before>/**
 * Created by bodie on 7/17/14.
 */

package com.sg.dg

// What GL version you plan on using
import org.lwjgl.opengl.GL11._
import org.lwjgl.opengl.{
Display,
DisplayMode
}

object Game extends App {
  val displayMode = new DisplayMode(640, 480)
  Display.setTitle("LWJGL Test")
  Display.setDisplayMode(displayMode)
  Display.create()
  fader(0f)
  Display.destroy()
  sys.exit(0)

  def fader(color: Float, d: Int = -1) {
    val mult = if(color > 1f) 1 else if(color < 0f) -1 else d
    val newColor = color - (mult * 0.05f)

    glClearColor(newColor, newColor, newColor, 1f)
    glClear(GL_COLOR_BUFFER_BIT)

    Display.update()
    Thread.sleep(60)
    if(!Display.isCloseRequested) fader(newColor, mult)
  }
}<commit_msg>Tweaked thread timer<commit_after>/**
 * Created by bodie on 7/17/14.
 */

package com.sg.dg

// What GL version you plan on using
import org.lwjgl.opengl.GL11._
import org.lwjgl.opengl.{
Display,
DisplayMode
}

object Game extends App {
  val displayMode = new DisplayMode(640, 480)
  Display.setTitle("LWJGL Test")
  Display.setDisplayMode(displayMode)
  Display.create()
  fader(0f)
  Display.destroy()
  sys.exit(0)

  def fader(color: Float, d: Int = -1) {
    val mult = if(color > 1f) 1 else if(color < 0f) -1 else d
    val newColor = color - (mult * 0.05f)

    glClearColor(newColor, newColor, newColor, 1f)
    glClear(GL_COLOR_BUFFER_BIT)

    Display.update()
    Thread.sleep(30)
    if(!Display.isCloseRequested) fader(newColor, mult)
  }
}
{'fraction_non_alphanumeric': 0.12508316699933467, 'fraction_numerical': 0.034597471723220224, 'mean_word_length': 3.4895522388059703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1648491', 'n_tokens_mistral': 607, 'n_tokens_neox': 563, 'n_words': 140}