<commit_before>import QtQuick 2.4

PlayerForm {
    property real vl: 0
    property real vr: 0

    Timer {
        interval: 20
        repeat: true
        running: true
        onTriggered: {

            signalLeft.width = 2 + 6*Math.round(31 * vl)
            signalRight.width = 2 + 6*Math.round(31 * vr)

            if (vl > 0.02)
                vl = vl * 0.92
            else vl = 0

            if (vr > 0.02)
                vr = vr * 0.92
            else vr = 0

        }
    }

    Connections {
        target: player

        onVuLeftChanged: {
            if (player.vuLeft > vl)
                vl = player.vuLeft;
        }
        onVuRightChanged: {
            if (player.vuRight > vr)
                vr = player.vuRight
        }
        onTimeChanged: {
            var t = Math.round(player.time / 1000);
            var t_s = t % 60
            var t_m = Math.floor(t / 60)
            text1.text = t_m + ":" + (t_s < 10 ? "0":"") + t_s.toString()
            progressBar.value = player.time / player.totalTime
        }
        onNameChanged: {
            label.text = player.name
        }
        onMixChanged: {
            slider1.value = player.mix / 100;
        }
        onVolumeChanged: {
            slider.value = player.volume / 100;
        }
    }

    slider {
        onValueChanged: {
            player.volume = slider.value * 100;
        }
    }

    slider1 {
        onValueChanged: {
            player.mix = slider1.value * 100;<commit_msg>show position and bpm if they've changed<commit_after>import QtQuick 2.4

PlayerForm {
    property real vl: 0
    property real vr: 0

    Timer {
        interval: 20
        repeat: true
        running: true
        onTriggered: {

            signalLeft.width = 2 + 6*Math.round(31 * vl)
            signalRight.width = 2 + 6*Math.round(31 * vr)

            if (vl > 0.02)
                vl = vl * 0.92
            else vl = 0

            if (vr > 0.02)
                vr = vr * 0.92
            else vr = 0

        }
    }

    Connections {
        target: player

        onVuLeftChanged: {
            if (player.vuLeft > vl)
                vl = player.vuLeft;
        }
        onVuRightChanged: {
            if (player.vuRight > vr)
                vr = player.vuRight
        }
        onTimeChanged: {
            var t = Math.round(player.time / 1000);
            var t_s = t % 60
            var t_m = Math.floor(t / 60)
            text1.text = t_m + ":" + (t_s < 10 ? "0":"") + t_s.toString()
            progressBar.value = player.time / player.totalTime
        }
        onNameChanged: {
            labelTitle.text = player.name
        }
        onBpmChanged: {
            labelBPM.text = "BPM: " + player.bpm
        }
        onPosChanged: {
            labelPos.text = "Pos: " + player.pos + "/" + player.len
        }

        onMixChanged: {
            slider1.value = player.mix / 100;
        }
        onVolumeChanged: {
            slider.value = player.volume / 100;
        }
    }

    slider {
        onValueChanged: {
            player.volume = slider.value * 100;
        }
    }

    slider1 {
        onValueChanged: {
            player.mix = slider1.value * 100;
{'fraction_non_alphanumeric': 0.10242839352428394, 'fraction_numerical': 0.03424657534246575, 'mean_word_length': 1.153485254691689, 'pattern_counts': {'":': 4, '<': 5, '<?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': '7072367', 'n_tokens_mistral': 1095, 'n_tokens_neox': 979, 'n_words': 222}