<commit_before>import React, { Component } from "react";
import gql from "graphql-tag";
import { Row, Col, Container, Card } from "reactstrap";
import { graphql, withApollo } from "react-apollo";
import Measure from "react-measure";
import Immutable from "immutable";
import "./style.scss";
/* TODO

Some improvements:
- Make it so you can just click on a box or a yellow line to set the power level
- Make it so the names show up better (add a display name to the system class)
- Change the types of the systems to make it easier to sort the systems by name.
*/

const mutation = gql`
  mutation ChangePower($id: ID!, $level: Int!) {
    changePower(systemId: $id, power: $level)
  }
`;

const SYSTEMS_SUB = gql`
  subscription SystemsUpdate($simulatorId: ID) {
    systemsUpdate(simulatorId: $simulatorId) {
      name
      displayName
      type
      id
      power {
        power
        powerLevels
      }
      damage {
        damaged
      }
    }<commit_msg>Minor fix<commit_after>import React, { Component } from "react";
import gql from "graphql-tag";
import { Row, Col, Container, Card } from "reactstrap";
import { graphql, withApollo } from "react-apollo";
import Measure from "react-measure";
import Immutable from "immutable";
import "./style.scss";
/* TODO

Some improvements:
- Make it so you can just click on a box or a yellow line to set the power level
- Make it so the names show up better (add a display name to the system class)
- Change the types of the systems to make it easier to sort the systems by name.
*/

const mutation = gql`
  mutation ChangePower($id: ID!, $level: Int!) {
    changePower(systemId: $id, power: $level)
  }
`;

const SYSTEMS_SUB = gql`
  subscription SystemsUpdate($simulatorId: ID) {
    systemsUpdate(simulatorId: $simulatorId, power: true) {
      name
      displayName
      type
      id
      power {
        power
        powerLevels
      }
      damage {
        damaged
      }
    }
{'fraction_non_alphanumeric': 0.09431060994361866, 'fraction_numerical': 0.0, 'mean_word_length': 3.016460905349794, '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': '2364832', 'n_tokens_mistral': 591, 'n_tokens_neox': 583, 'n_words': 231}