<commit_before>import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0

import "utils.js" as Utils
import org.BitShares.Types 1.0

import Material 0.1

Window {
   id: window
   visible: true
   width: 540
   height: 960

   property alias pageStack: __pageStack
   property alias lockAction: __lockAction
   property alias payAction: __payAction

   Component.onCompleted: {
      if( wallet.walletExists )
         wallet.openWallet()
      if( !( wallet.accountNames.length && wallet.accounts[wallet.accountNames[0]].isRegistered ) )
         onboardLoader.sourceComponent = onboardingUi
      else
         pageStack.push({item: assetsUi, properties: {accountName: wallet.accountNames[0]}})

      window.connectToServer()
   }

   function showError(error, buttonName, buttonCallback) {
      snack.text = error
      if( buttonName && buttonCallback ) {
         snack.buttonText = buttonName
         snack.onClick.connect(buttonCallback)
         snack.onDissapear.connect(function() {
            snack.onClick.disconnect(buttonCallback)
         })<commit_msg>LW: Remove default window size<commit_after>import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Layouts 1.1
import QtGraphicalEffects 1.0

import "utils.js" as Utils
import org.BitShares.Types 1.0

import Material 0.1

Window {
   id: window
   visible: true

   property alias pageStack: __pageStack
   property alias lockAction: __lockAction
   property alias payAction: __payAction

   Component.onCompleted: {
      if( wallet.walletExists )
         wallet.openWallet()
      if( !( wallet.accountNames.length && wallet.accounts[wallet.accountNames[0]].isRegistered ) )
         onboardLoader.sourceComponent = onboardingUi
      else
         pageStack.push({item: assetsUi, properties: {accountName: wallet.accountNames[0]}})

      window.connectToServer()
   }

   function showError(error, buttonName, buttonCallback) {
      snack.text = error
      if( buttonName && buttonCallback ) {
         snack.buttonText = buttonName
         snack.onClick.connect(buttonCallback)
         snack.onDissapear.connect(function() {
            snack.onClick.disconnect(buttonCallback)
         })
{'fraction_non_alphanumeric': 0.08873873873873873, 'fraction_numerical': 0.015315315315315315, 'mean_word_length': 3.182674199623352, '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': '4021612', 'n_tokens_mistral': 669, 'n_tokens_neox': 650, 'n_words': 146}