<commit_before>document.addEventListener 'DOMContentLoaded', ->

  unless OriDomi.isSupported
    document.getElementById('unsupported').style.display = 'block'
    return

  logo = new OriDomi '.logo', shading: false, speed: 1000
  logo.stairs 17

  demos = [
    new OriDomi '.demo1', vPanels: 5, ripple: true
    new OriDomi '.demo2', maxAngle: 89, ripple: true
    new OriDomi '.demo3', vPanels: 8, ripple: true
    new OriDomi '.demo4', vPanels: 4, ripple: true
    new OriDomi '.demo5', hPanels: 4, ripple: true
    new OriDomi '.demo6', hPanels: 4, ripple: true, shading: false
  ]

  setTimeout ->
    demos[0].accordion 30
    demos[1].reveal 40
    demos[2].accordion -20, 'left'
    demos[3].stairs 18, 'right'
    demos[4].reveal 30, 'top'
    demos[5].stairs 20, 'bottom'
  , 1000


  methods = ['accordion', 'curl', 'foldUp', 'reveal', 'fracture', 'ramp', 'stairs', 'twist']

  document.getElementById('demos').addEventListener 'click', (e) ->

    return unless (el = e.target).className is 'button'
    n      = el.getAttribute 'data-n'
    method = methods[Math.floor Math.random() * methods.length]
    angle  = Math.floor Math.random() * 80 * (if Math.random() > .5 then -1 else 1)
<commit_msg>skew lower in random method picking<commit_after>document.addEventListener 'DOMContentLoaded', ->

  unless OriDomi.isSupported
    document.getElementById('unsupported').style.display = 'block'
    return

  logo = new OriDomi '.logo', shading: false, speed: 1000
  logo.stairs 17

  demos = [
    new OriDomi '.demo1', vPanels: 5, ripple: true
    new OriDomi '.demo2', maxAngle: 89, ripple: true
    new OriDomi '.demo3', vPanels: 8, ripple: true
    new OriDomi '.demo4', vPanels: 4, ripple: true
    new OriDomi '.demo5', hPanels: 4, ripple: true
    new OriDomi '.demo6', hPanels: 4, ripple: true, shading: false
  ]

  setTimeout ->
    demos[0].accordion 30
    demos[1].reveal 40
    demos[2].accordion -20, 'left'
    demos[3].stairs 18, 'right'
    demos[4].reveal 30, 'top'
    demos[5].stairs 20, 'bottom'
  , 1000


  methods = ['accordion', 'stairs', 'curl', 'reveal', 'foldUp', 'ramp', 'twist', 'fracture']

  document.getElementById('demos').addEventListener 'click', (e) ->

    return unless (el = e.target).className is 'button'
    n      = el.getAttribute 'data-n'
    method = methods[Math.abs Math.floor Math.random() * methods.length - Math.random()]
    angle  = Math.floor Math.random() * 80 * (if Math.random() > .5 then -1 else 1)

{'fraction_non_alphanumeric': 0.151637687019814, 'fraction_numerical': 0.0372017792155277, 'mean_word_length': 3.402135231316726, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2831573', 'n_tokens_mistral': 950, 'n_tokens_neox': 850, 'n_words': 239}