<commit_before>// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import QtMultimediaKit 1.1
import com.nokia.meego 1.0

Page {

    Camera {
            id:camera
            x:0; y: 0
            width:parent.width; height:parent.height
            focus : visible // to receive focus and capture key events when visible
            opacity: 1

            flashMode: Camera.FlashRedEyeReduction
            whiteBalanceMode: Camera.WhiteBalanceFlash
            exposureCompensation: -1.0

            onImageCaptured : {
                console.debug("Captured Image:" +preview);
                preview.opacity=1;
                camera.opacity=0;
                preview.source = preview;
            }
            onImageSaved: {
                console.log("Image saved:"+path);
                preview.opacity=1;
                camera.opacity=0;
            }

            Button{
                id:settingsButton
                anchors.right:parent.right
                anchors.top: parent.top
                width: 200
                text:"Settings"

                onClicked: {
                    camera.captureImage();
                }
            }
        }

    tools: ToolBarLayout {
        Button {
            id:cancelButton
            anchors.horizontalCenter: parent.horizontalCenter
            text: "Cancel"
        }
    }
}<commit_msg>Fixing the landscape mode for camera<commit_after>// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
import QtQuick 1.1
import QtMultimediaKit 1.1
import com.nokia.meego 1.0

Page {
    anchors.fill: parent; rotation: screen.currentOrientation == 1 ? 90:0
    Camera {
            id:camera
            x:0; y: 0
            anchors.centerIn: parent
            focus : visible // to receive focus and capture key events when visible
            opacity: 1

            flashMode: Camera.FlashRedEyeReduction
            whiteBalanceMode: Camera.WhiteBalanceFlash
            exposureCompensation: -1.0

            onImageCaptured : {
                console.debug("Captured Image:" +preview);
                preview.opacity=1;
                camera.opacity=0;
                preview.source = preview;
            }
            onImageSaved: {
                console.log("Image saved:"+path);
                preview.opacity=1;
                camera.opacity=0;
            }

            Button{
                id:settingsButton
                rotation: screen.currentOrientation == 1 ? 270:0
                anchors.verticalCenter: rotation == 270 ? parent.verticalCenter:undefined
                anchors.horizontalCenter: rotation == 0? parent.horizontalCenter:undefined
                text:"Settings"

                onClicked: {
                    camera.captureImage();
                }
            }
        }

    tools: ToolBarLayout {
        Button {
            id:cancelButton
            anchors.horizontalCenter: parent.horizontalCenter
            text: "Cancel"
        }
    }
}
{'fraction_non_alphanumeric': 0.07660521296884933, 'fraction_numerical': 0.02225047679593134, 'mean_word_length': 1.4041252864782277, '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': '3707668', 'n_tokens_mistral': 862, 'n_tokens_neox': 769, 'n_words': 198}