<commit_before>import QtQuick 2.0
import Sailfish.Silica 1.0
import "functions.js" as F

Page {
    id: page

    property alias m: model
    property bool loading;
    property string last_error;

    property string outputType: "nearby"

    signal refresh();
    signal switchToRecentCheckins();
    signal switchToSearchVenue();
    signal switchToAddVenue();
    signal switchToMyProfile();

    signal checkin(string venue_id);
    signal checkinDetail(string venue_id, string name, string address, url icon, double lat, double lon)

    ListModel {
        id: model;
    }

    SilicaListView {
        id: listView
        model: model
        anchors.fill: parent
        spacing: Theme.paddingMedium

        header: PageHeader {
            title: (outputType === "nearby")
            //% "Nearby Venues"
                   ? qsTrId("nearby-venues-title")
                     //% "Search results"
                   : qsTrId("search-results-title")
        }

        PullDownMenu {
            MenuItem {
                //% "My Profile"
                text: qsTrId("nearby-venues-my-profile-menu")
                onClicked: switchToMyProfile();
            }
            MenuItem {
                //% "Recent Checkins"
                text: qsTrId("nearby-venues-recent-checkins-menu")
                onClicked: switchToRecentCheckins()
            }
            MenuItem {
                text: (outputType === "nearby")
                //% "Refresh"
                      ? qsTrId("nearby-venues-refresh-menu")
                        //% "Nearby Venues"
                      : qsTrId("nearby-venues-nearby-venues-menu")
                onClicked: refresh()
            }
        }

        PushUpMenu {
            MenuItem {
                //% "Search"
                text: qsTrId("nearby-venues-search-menu");
                onClicked: switchToSearchVenue()
            }
            MenuItem {
                //% "Add"
                text: qsTrId("nearby-venues-add")
                onClicked: switchToAddVenue();
            }
        }

        ViewPlaceholder {
            enabled: !loading && (model.count === 0)
            //% "There is no venue in nearby"
            text: (last_error !== "") ? last_error : qsTrId("nearby-venues-empty")
        }



        delegate: BackgroundItem {
            id: delegate
            height: contentItem.childrenRect.height

            Image {
                id: categoryPhoto
                source: photo_prefix + categoryPhoto.width + photo_suffix
                anchors.left: parent.left;
                anchors.top: parent.top;
                width: 64;
                height: categoryPhoto.width;
onSourceChanged: {
    console.log("XXXXXXXXXXXXXXXXX " + photo_prefix + categoryPhoto.width + photo_suffix + " " + venue_name_label.text + " " + model.vid)
}<commit_msg>removed debuging output<commit_after>import QtQuick 2.0
import Sailfish.Silica 1.0
import "functions.js" as F

Page {
    id: page

    property alias m: model
    property bool loading;
    property string last_error;

    property string outputType: "nearby"

    signal refresh();
    signal switchToRecentCheckins();
    signal switchToSearchVenue();
    signal switchToAddVenue();
    signal switchToMyProfile();

    signal checkin(string venue_id);
    signal checkinDetail(string venue_id, string name, string address, url icon, double lat, double lon)

    ListModel {
        id: model;
    }

    SilicaListView {
        id: listView
        model: model
        anchors.fill: parent
        spacing: Theme.paddingMedium

        header: PageHeader {
            title: (outputType === "nearby")
            //% "Nearby Venues"
                   ? qsTrId("nearby-venues-title")
                     //% "Search results"
                   : qsTrId("search-results-title")
        }

        PullDownMenu {
            MenuItem {
                //% "My Profile"
                text: qsTrId("nearby-venues-my-profile-menu")
                onClicked: switchToMyProfile();
            }
            MenuItem {
                //% "Recent Checkins"
                text: qsTrId("nearby-venues-recent-checkins-menu")
                onClicked: switchToRecentCheckins()
            }
            MenuItem {
                text: (outputType === "nearby")
                //% "Refresh"
                      ? qsTrId("nearby-venues-refresh-menu")
                        //% "Nearby Venues"
                      : qsTrId("nearby-venues-nearby-venues-menu")
                onClicked: refresh()
            }
        }

        PushUpMenu {
            MenuItem {
                //% "Search"
                text: qsTrId("nearby-venues-search-menu");
                onClicked: switchToSearchVenue()
            }
            MenuItem {
                //% "Add"
                text: qsTrId("nearby-venues-add")
                onClicked: switchToAddVenue();
            }
        }

        ViewPlaceholder {
            enabled: !loading && (model.count === 0)
            //% "There is no venue in nearby"
            text: (last_error !== "") ? last_error : qsTrId("nearby-venues-empty")
        }



        delegate: BackgroundItem {
            id: delegate
            height: contentItem.childrenRect.height

            Image {
                id: categoryPhoto
                source: photo_prefix + categoryPhoto.width + photo_suffix
                anchors.left: parent.left;
                anchors.top: parent.top;
                width: 64;
                height: categoryPhoto.width;
{'fraction_non_alphanumeric': 0.09944354693950817, 'fraction_numerical': 0.0025130138215760187, 'mean_word_length': 1.4481546572934973, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '1427254', 'n_tokens_mistral': 1607, 'n_tokens_neox': 1467, 'n_words': 311}