<commit_before><template>
  <div class="information-page">
    <gulden-section>
      <h4>General</h4>

      <div class="flex-row">
        <div>Client version</div>
        <div class="ellipsis">{{ clientInfo.client_version }}</div>
      </div>
      <div class="flex-row">
        <div>Useragent</div>
        <div class="ellipsis">{{ clientInfo.user_agent }}</div>
      </div>
      <div class="flex-row">
        <div>Data dir</div>
        <div class="ellipsis">{{ clientInfo.datadir_path }}</div>
      </div>
      <div class="flex-row">
        <div>Log file</div>
        <div class="ellipsis">{{ clientInfo.logfile_path }}</div>
      </div>
      <div class="flex-row">
        <div>Startup time</div>
        <div class="ellipsis">{{ startupTime }}</div>
      </div>
    </gulden-section>

    <gulden-section>
      <h4>Network</h4>
      <div class="flex-row">
        <div>Status</div>
        <div class="ellipsis">{{ clientInfo.network_status }}</div>
      </div>
      <div class="flex-row">
        <div>Connection count</div>
        <div class="ellipsis">{{ numberOfConnections }}</div>
      </div>
    </gulden-section>

    <gulden-section>
      <h4>Block chain</h4>
      <div class="flex-row">
        <div>Number of blocks</div>
        <div class="ellipsis">{{ clientInfo.chain_tip_height }}</div>
      </div>
      <div class="flex-row">
        <div>Last block time</div>
        <div class="ellipsis">{{ lastBlockTime }}</div>
      </div>
      <div class="flex-row">
        <div>Last block hash</div>
        <div class="ellipsis">{{ clientInfo.chain_tip_hash }}</div>
      </div>
    </gulden-section>

    <gulden-section>
      <h4>Memory pool</h4>
      <div class="flex-row">
        <div>Number of transactions</div>
        <div class="ellipsis">{{ clientInfo.mempool_transaction_count }}</div>
      </div>
      <div class="flex-row">
        <div>Memory usage</div>
        <div class="ellipsis">{{ clientInfo.mempool_memory_size }}</div>
      </div>
    </gulden-section>
  </div>
</template>

<script>
import { LibraryController } from "../../unity/Controllers";
let timeout;

export default {
  data() {
    return {
      clientInfo: null,
      enableTimeout: true
    };
  },
  name: "InformationPage",
  computed: {
    startupTime() {
      return new Date(this.clientInfo.startup_timestamp * 1000);
    },
    lastBlockTime() {
      return new Date(this.clientInfo.chain_tip_time * 1000);
    },
    numberOfConnections() {
      let connections_in = parseInt(this.clientInfo.num_connections_in);
      let connections_out = parseInt(this.clientInfo.num_connections_out);

      return `${connections_in +
        connections_out}`;
    }
  },
  created() {
    document.addEventListener("webkitvisibilitychange", this.visibilityChange);<commit_msg>QA: Lint<commit_after><template>
  <div class="information-page">
    <gulden-section>
      <h4>General</h4>

      <div class="flex-row">
        <div>Client version</div>
        <div class="ellipsis">{{ clientInfo.client_version }}</div>
      </div>
      <div class="flex-row">
        <div>Useragent</div>
        <div class="ellipsis">{{ clientInfo.user_agent }}</div>
      </div>
      <div class="flex-row">
        <div>Data dir</div>
        <div class="ellipsis">{{ clientInfo.datadir_path }}</div>
      </div>
      <div class="flex-row">
        <div>Log file</div>
        <div class="ellipsis">{{ clientInfo.logfile_path }}</div>
      </div>
      <div class="flex-row">
        <div>Startup time</div>
        <div class="ellipsis">{{ startupTime }}</div>
      </div>
    </gulden-section>

    <gulden-section>
      <h4>Network</h4>
      <div class="flex-row">
        <div>Status</div>
        <div class="ellipsis">{{ clientInfo.network_status }}</div>
      </div>
      <div class="flex-row">
        <div>Connection count</div>
        <div class="ellipsis">{{ numberOfConnections }}</div>
      </div>
    </gulden-section>

    <gulden-section>
      <h4>Block chain</h4>
      <div class="flex-row">
        <div>Number of blocks</div>
        <div class="ellipsis">{{ clientInfo.chain_tip_height }}</div>
      </div>
      <div class="flex-row">
        <div>Last block time</div>
        <div class="ellipsis">{{ lastBlockTime }}</div>
      </div>
      <div class="flex-row">
        <div>Last block hash</div>
        <div class="ellipsis">{{ clientInfo.chain_tip_hash }}</div>
      </div>
    </gulden-section>

    <gulden-section>
      <h4>Memory pool</h4>
      <div class="flex-row">
        <div>Number of transactions</div>
        <div class="ellipsis">{{ clientInfo.mempool_transaction_count }}</div>
      </div>
      <div class="flex-row">
        <div>Memory usage</div>
        <div class="ellipsis">{{ clientInfo.mempool_memory_size }}</div>
      </div>
    </gulden-section>
  </div>
</template>

<script>
import { LibraryController } from "../../unity/Controllers";
let timeout;

export default {
  data() {
    return {
      clientInfo: null,
      enableTimeout: true
    };
  },
  name: "InformationPage",
  computed: {
    startupTime() {
      return new Date(this.clientInfo.startup_timestamp * 1000);
    },
    lastBlockTime() {
      return new Date(this.clientInfo.chain_tip_time * 1000);
    },
    numberOfConnections() {
      let connections_in = parseInt(this.clientInfo.num_connections_in);
      let connections_out = parseInt(this.clientInfo.num_connections_out);

      return `${connections_in + connections_out}`;
    }
  },
  created() {
    document.addEventListener("webkitvisibilitychange", this.visibilityChange);
{'fraction_non_alphanumeric': 0.17020139012653715, 'fraction_numerical': 0.0057030832293708785, 'mean_word_length': 2.592829705505762, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 189, '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': '2558589', 'n_tokens_mistral': 1881, 'n_tokens_neox': 1857, 'n_words': 340}