<commit_before>document.addEventListener "deviceready", ->

  openElement = document.getElementById("openLayer")
  openFadeElement = document.getElementById("openLayerFade")
  popElement = document.getElementById("popLayer")
  openModalElement = document.getElementById("openModal")

  if openElement?
    openElement.addEventListener "touchstart", ->
      layer = new Steroids.Layer({location: "views/layers/show.html"})
      Steroids.layers.push layer: layer

  if openFadeElement?
    openFadeElement.addEventListener "touchstart", ->
      layer = new Steroids.Layer {
        location: "views/layers/show.html"
        pushAnimation: "fade"
        pushAnimationDuration: 1
        popAnimation: "fade"
        popAnimationDuration: 1
      }

      Steroids.layers.push layer: layer

  if popElement?
    popElement.addEventListener "touchstart", ->
      Steroids.layers.pop()

  if openModalElement?
    openModalElement.addEventListener "touchstart", ->

      layer = new Steroids.Layer({location: "http://www.google.com"})

      Steroids.modal.show layer: layer

      setTimeout ()->
        Steroids.modal.hide()
      , 5000

  Steroids.navigationBar.show {title: "LAYERS"}

  Steroids.navigationBar.rightButton.show {title: "Modal"}, onRecurring: ()->
    createLayer = new Steroids.Layer {
      location:"http://localhost:13101/views/oauth/iframe.html"
    }

    Steroids.modal.show layer: createLayer

    # setTimeout ()->
    #   Steroids.modal.hide()
    # , 5000<commit_msg>removed accidental debug stuff<commit_after>document.addEventListener "deviceready", ->

  openElement = document.getElementById("openLayer")
  openFadeElement = document.getElementById("openLayerFade")
  popElement = document.getElementById("popLayer")
  openModalElement = document.getElementById("openModal")

  if openElement?
    openElement.addEventListener "touchstart", ->
      layer = new Steroids.Layer({location: "views/layers/show.html"})
      Steroids.layers.push layer: layer

  if openFadeElement?
    openFadeElement.addEventListener "touchstart", ->
      layer = new Steroids.Layer {
        location: "views/layers/show.html"
        pushAnimation: "fade"
        pushAnimationDuration: 1
        popAnimation: "fade"
        popAnimationDuration: 1
      }

      Steroids.layers.push layer: layer

  if popElement?
    popElement.addEventListener "touchstart", ->
      Steroids.layers.pop()

  if openModalElement?
    openModalElement.addEventListener "touchstart", ->

      layer = new Steroids.Layer({location: "http://www.google.com"})

      Steroids.modal.show layer: layer

      setTimeout ()->
        Steroids.modal.hide()
      , 5000

  Steroids.navigationBar.show {title: "LAYERS"}

  Steroids.navigationBar.rightButton.show {title: "Modal"}, onRecurring: ()->
    createLayer = new Steroids.Layer {
      location:"http://www.google.com"
    }

    Steroids.modal.show layer: createLayer

    setTimeout ()->
      Steroids.modal.hide()
    , 5000
{'fraction_non_alphanumeric': 0.11721366376423309, 'fraction_numerical': 0.008372404554588079, 'mean_word_length': 3.3227206946454415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, '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': '5100036', 'n_tokens_mistral': 875, 'n_tokens_neox': 834, 'n_words': 156}