<commit_before>var React = require('react');
var Waveform = require('./index');

React.render(
    <Waveform />,
    document.getElementById('waveform')
    );<commit_msg>Better example<commit_after>var React = require('react');
var Waveform = require('./index');

var request = new XMLHttpRequest();
request.open('GET', 'HardaTider-Har&nu.mp3', true);
request.responseType = 'arraybuffer';

request.addEventListener('load', function () {
  var context = new (window.AudioContext || window.webkitAudioContext)();

  context.decodeAudioData(request.response, function (buffer) {
    var source = context.createBufferSource();
    source.buffer = buffer;

    React.render(
        <Waveform buffer={buffer} />,
        document.getElementById('waveform')
        );
  });
});

request.send();
{'fraction_non_alphanumeric': 0.16182048040455121, 'fraction_numerical': 0.0012642225031605564, 'mean_word_length': 4.462068965517242, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6756958', 'n_tokens_mistral': 231, 'n_tokens_neox': 224, 'n_words': 45}