<commit_before>import QtQuick 2.3
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1

import Material 0.1

Column {
   property alias name: robotName.text
   property alias elideMode: robotName.elide
   spacing: units.dp(5)

   function __imageSource() {
      if( name.toLowerCase() === name )
         return "https://robohash.org/" + name + "?size=" + Math.floor(roboHash.width) + "x" + Math.floor(roboHash.height)
      else
         return "../res/bitshares.png"
   }

   Image {
      id: roboHash
      anchors.horizontalCenter: parent.horizontalCenter
      height: units.dp(64)
      width: units.dp(64)
      source: __imageSource()
      fillMode: Image.PreserveAspectFit
      sourceSize {
         width: units.dp(64)
         height: units.dp(64)
      }

      AnimatedImage {
         anchors.fill: parent
         fillMode: Image.Pad
         visible: parent.status === Image.Loading
         source: "../res/spinner.gif"
      }
   }
   Label {<commit_msg>LW: Dumb down RoboHash.qml so as to not enter a battle of code quality with an unarmed server.<commit_after>import QtQuick 2.3
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1

import Material 0.1

Column {
   property alias name: robotName.text
   property alias elideMode: robotName.elide
   spacing: units.dp(5)

   function __imageSource() {
      if( name.toLowerCase() === name )
         return "https://robohash.org/" + name + "?set=set1&size=200x200"
      else
         return "../res/bitshares.png"
   }

   Image {
      id: roboHash
      anchors.horizontalCenter: parent.horizontalCenter
      height: units.dp(64)
      width: units.dp(64)
      source: __imageSource()
      fillMode: Image.PreserveAspectFit
      sourceSize {
         width: units.dp(64)
         height: units.dp(64)
      }
      smooth: true

      AnimatedImage {
         anchors.fill: parent
         fillMode: Image.Pad
         visible: parent.status === Image.Loading
         source: "../res/spinner.gif"
      }
   }
   Label {
{'fraction_non_alphanumeric': 0.10911808669656203, 'fraction_numerical': 0.02042850024912805, 'mean_word_length': 2.2918032786885245, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2218557', 'n_tokens_mistral': 655, 'n_tokens_neox': 627, 'n_words': 150}