<commit_before>import { h, Component } from 'preact';
import style from './style';


export default class Results extends Component {
  constructor(props) {
    super(props);

    this.state = {
    };
  }

  render(props, state) {
    return(
      <div class={`${style.results} container`}>
        <div class="row">
          <h1>Results</h1>
        </div>
        <div class="row">
          <div class="two columns">
            <label>
              Price:
            </label>
            <span>88 Czk</span>
          </div>
          <div class="two columns">
            <button class="button-primary">Order</button>
          </div>
        </div>
      </div>);
  }
}<commit_msg>Results view shows real results from slicing the file<commit_after>import { h, Component } from 'preact';
import style from './style';


export default class Results extends Component {
  constructor(props) {
    super(props);
    this.state = {
    };
  }

  render(props, state) {
    return(
      <div class={`${style.results} container`}>
        <div class="row">
          <h1>Results</h1>
        </div>
        <div class="row">
          <div class="two columns">
            <label>
              Price:
            </label>
            <span>{props.slicerResult ? `${Math.round(props.slicerResult.price)},-Kč` : 'loading spinner'}</span>
          </div>
          <div class="two columns">
            <label>
              Print time in seconds:
            </label>
            <span>{props.slicerResult ? `${props.slicerResult.printTime}s` : 'loading spinner'}</span>
          </div>
          <div class="two columns">
            <label>
              Filament used:
            </label>
            <span>{props.slicerResult ? `${props.slicerResult.filament}` : 'loading spinner'}</span>
          </div>
          <div class="two columns">
            <button class="button-primary" onClick={props.confirmResult}>Order</button>
          </div>
        </div>
      </div>);
  }
}
{'fraction_non_alphanumeric': 0.15203211239337683, 'fraction_numerical': 0.0030105368790767687, 'mean_word_length': 1.8045007032348805, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '7529113', 'n_tokens_mistral': 586, 'n_tokens_neox': 582, 'n_words': 131}