<commit_before>// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import QtQuick 2.3
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0

Item {
    property Team leftTeam
    property Team rightTeam
    property url connectUrl

    RectangularGlow {
        anchors {
            fill: scorePanel
            leftMargin: -glowRadius / 2
            rightMargin: -glowRadius / 2
            topMargin: -glowRadius / 2
            bottomMargin: -glowRadius / 2
        }
        glowRadius: 25
        opacity: 0.75
        color: "black"
    }
    GridLayout {
        id: scorePanel
        property real textSize: scorePanel.width > 0 ? scorePanel.width / 4 : 12
        anchors { left: parent.left; right: parent.right; top: parent.top }
        columns: 2

        Text {
            id: leftTeamScore
            text: "Red: "
            color: leftTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
        Text {
            text: leftTeam.score
            color: leftTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            horizontalAlignment: Text.AlignRight
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
        Text {
            text: "Blue: "
            color: rightTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
        Text {
            text: rightTeam.score
            color: rightTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            horizontalAlignment: Text.AlRight
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
    }
    Text {
        text: "TO JOIN:"
        color: "white"
        font.pointSize: 24
        font.bold: true
        fontSizeMode: Text.HorizontalFit
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: connectQrImg.top
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
    }
    Image {
        id: connectQrImg
        source: "image://main/connectQr"
        sourceSize {width: width; height: width }
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: connectUrlText.top
    }
    Text {
        id: connectUrlText
        text: connectUrl
        color: "white"
        font.pointSize: 24
        font.bold: true
        fontSizeMode: Text.HorizontalFit
        anchors.left: parent.left
        anchors.right: parent.right<commit_msg>Avoid filtering of the QR Code<commit_after>// The MIT License (MIT)
//
// Copyright (c) 2015 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.

import QtQuick 2.3
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0

Item {
    property Team leftTeam
    property Team rightTeam
    property url connectUrl

    RectangularGlow {
        anchors {
            fill: scorePanel
            leftMargin: -glowRadius / 2
            rightMargin: -glowRadius / 2
            topMargin: -glowRadius / 2
            bottomMargin: -glowRadius / 2
        }
        glowRadius: 25
        opacity: 0.75
        color: "black"
    }
    GridLayout {
        id: scorePanel
        property real textSize: scorePanel.width > 0 ? scorePanel.width / 4 : 12
        anchors { left: parent.left; right: parent.right; top: parent.top }
        columns: 2

        Text {
            id: leftTeamScore
            text: "Red: "
            color: leftTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
        Text {
            text: leftTeam.score
            color: leftTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            horizontalAlignment: Text.AlignRight
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
        Text {
            text: "Blue: "
            color: rightTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
        Text {
            text: rightTeam.score
            color: rightTeam.teamColor
            font { pixelSize: scorePanel.textSize; bold: true; family: "Arial" }
            style: Text.Sunken; styleColor: Qt.lighter(color)
            horizontalAlignment: Text.AlRight
            verticalAlignment: Text.AlignVCenter
            Layout.fillHeight: true
        }
    }
    Text {
        text: "TO JOIN:"
        color: "white"
        font.pointSize: 24
        font.bold: true
        fontSizeMode: Text.HorizontalFit
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: connectQrImg.top
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
    }
    Image {
        id: connectQrImg
        source: "image://main/connectQr"
        smooth: false
        height: width
        anchors.left: parent.left
        anchors.right: parent.right
        anchors.bottom: connectUrlText.top
    }
    Text {
        id: connectUrlText
        text: connectUrl
        color: "white"
        font.pointSize: 24
        font.bold: true
        fontSizeMode: Text.HorizontalFit
        anchors.left: parent.left
        anchors.right: parent.right
{'fraction_non_alphanumeric': 0.07699746162214433, 'fraction_numerical': 0.006769007615133567, 'mean_word_length': 2.126984126984127, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '462355', 'n_tokens_mistral': 2248, 'n_tokens_neox': 2157, 'n_words': 749}