<commit_before>"use strict";

var Brig = require('../../');

var brig = new Brig();

//var view = new brig.QuickView();
//view.setSource('application.qml');
//view.show();

var engine = new brig.QmlEngine();
var rootContext = engine.rootContext();
var context = new brig.QmlContext(rootContext);

var component = new brig.QmlComponent(engine);
component.setData('import QtQuick 2.0\nimport QtQuick.Window 2.0\nWindow {\nwidth: 300\n height: 300\n color: \"red\"\ntitle: \"Hello\" }');

var qObject = component.create(context);

var window = qObject.toQuickWindow();
window.show();<commit_msg>add example to run QML string<commit_after>"use strict";

var Brig = require('../../');

var brig = new Brig();

var engine = new brig.QmlEngine();
var rootContext = engine.rootContext();
var context = new brig.QmlContext(rootContext);

var component = new brig.QmlComponent(engine);
component.setData('import QtQuick 2.0\nimport QtQuick.Window 2.0\nWindow {\nwidth: 300\n height: 300\n color: \"red\"\ntitle: \"Hello\" }');

var qObject = component.create(context);

var window = qObject.toQuickWindow();
window.show();
{'fraction_non_alphanumeric': 0.17266187050359713, 'fraction_numerical': 0.017985611510791366, 'mean_word_length': 4.796875, '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': '3787063', 'n_tokens_mistral': 369, 'n_tokens_neox': 352, 'n_words': 96}