<commit_before>/*global define, RSVP*/
define("webaudiocontext/interactive/test1", ["webaudio/context"], function(context) {
    
    var saw = null,
        pulse = null;
    
    context.loadSound('../js/saw.wav').then(
        function(s) {
            saw = s;
        },
        function(e) {
            sound = false;
            console.warn(e);
        }
    );

    context.loadSound('../js/pulse.wav').then(
        function(s) {
            pulse = s;
            s.play();
        },
        function(e) {
            sound = false;
            console.warn(e);
        }
    );
    
    document.getElementById("l1").addEventListener("click", function(){
        saw.play();
    });
    document.getElementById("l2").addEventListener("click", function(){
        saw.stop();
        pulse.stop();
    });
    
});<commit_msg>Loop the base sound so that we have some time to get there ;)<commit_after>/*global define, RSVP*/
define("webaudiocontext/interactive/test1", ["webaudio/context"], function(context) {
    
    var saw = null,
        pulse = null;
    
    context.loadSound('../js/saw.wav').then(
        function(s) {
            saw = s;
        },
        function(e) {
            sound = false;
            console.warn(e);
        }
    );

    context.loadSound('../js/pulse.wav').then(
        function(s) {
            pulse = s;
            s.loop(true);
            s.play();
        },
        function(e) {
            sound = false;
            console.warn(e);
        }
    );
    
    document.getElementById("l1").addEventListener("click", function(){
        saw.play();
    });
    document.getElementById("l2").addEventListener("click", function(){
        saw.stop();
        pulse.stop();
    });
    
});
{'fraction_non_alphanumeric': 0.1632420091324201, 'fraction_numerical': 0.003424657534246575, 'mean_word_length': 1.624251497005988, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5882479', 'n_tokens_mistral': 521, 'n_tokens_neox': 507, 'n_words': 84}