<commit_before>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import injectSheet from 'react-jss';
import Webview from 'react-electron-web-view';
import * as environment from '../../../environment';

const styles = theme => ({
  root: {
    background: theme.colorBackground,
    height: '100%',
    width: 300,
    position: 'absolute',
    top: 0,
    right: 0,
  },
  webview: {
    height: '100%',
  },
});

@injectSheet(styles) @observer
class TodosWebview extends Component {
  static propTypes = {
    classes: PropTypes.object.isRequired,
    authToken: PropTypes.string.isRequired,
  };

  render() {
    const { authToken, classes } = this.props;
    return (
      <div className={classes.root}>
        <Webview
          className={classes.webview}
          src={`${environment.TODOS_FRONTEND}?authToken=${authToken}`}
        />
      </div>
    );<commit_msg>Fix position of todos app<commit_after>import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import injectSheet from 'react-jss';
import Webview from 'react-electron-web-view';
import * as environment from '../../../environment';

const styles = theme => ({
  root: {
    background: theme.colorBackground,
    height: '100%',
    width: 300,
    position: 'absolute',
    top: 0,
    right: -300,
  },
  webview: {
    height: '100%',
  },
});

@injectSheet(styles) @observer
class TodosWebview extends Component {
  static propTypes = {
    classes: PropTypes.object.isRequired,
    authToken: PropTypes.string.isRequired,
  };

  render() {
    const { authToken, classes } = this.props;
    return (
      <div className={classes.root}>
        <Webview
          className={classes.webview}
          src={`${environment.TODOS_FRONTEND}?authToken=${authToken}`}
        />
      </div>
    );
{'fraction_non_alphanumeric': 0.14750656167979004, 'fraction_numerical': 0.012598425196850394, 'mean_word_length': 3.072649572649573, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3739739', 'n_tokens_mistral': 601, 'n_tokens_neox': 581, 'n_words': 142}