<commit_before>import React, { Component } from 'react';
import fetch from 'isomorphic-fetch';

class Row extends Component {
  render() {
    let h = this.props.h;
    let href = "#/okapi-console/modules/edit/" + h.srvcId;
    return <tr>
      <td>{h.instId}</td>
      <td><a href={href}>{h.srvcId}</a></td>
      <td>{this.props.map[h.srvcId]}</td>
      <td>{h.healthMessage}</td>
      <td>{h.healthStatus ? "true" : "false"}</td>
    </tr>
  }
}

export default class Health extends Component {
  componentDidMount() {
    let system = require('stripes-loader!');
    fetch(system.okapi.url + '/_/discovery/health', {}).<commit_msg>Adds caveat comment, for non-stripes-connected resolution of Okapi url<commit_after>import React, { Component } from 'react';
import fetch from 'isomorphic-fetch';

class Row extends Component {
  render() {
    let h = this.props.h;
    let href = "#/okapi-console/modules/edit/" + h.srvcId;
    return <tr>
      <td>{h.instId}</td>
      <td><a href={href}>{h.srvcId}</a></td>
      <td>{this.props.map[h.srvcId]}</td>
      <td>{h.healthMessage}</td>
      <td>{h.healthStatus ? "true" : "false"}</td>
    </tr>
  }
}

export default class Health extends Component {
  componentDidMount() {
    // This is likely not how 'system' is supposed to be retrieved
    // if system is supposed to be accessible at all. But then again
    // this component is just for illustration of a non-stripes-connected
    // Okapi UI vs a stripes-connected one. 
    let system = require('stripes-loader!');
    fetch(system.okapi.url + '/_/discovery/health', {}).
{'fraction_non_alphanumeric': 0.16729559748427672, 'fraction_numerical': 0.0, 'mean_word_length': 3.1324675324675324, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '902251', 'n_tokens_mistral': 534, 'n_tokens_neox': 527, 'n_words': 134}