<commit_before>import React from 'react';
import {
    Card, CardActions, CardExpandable, CardHeader, CardText
}
from 'material-ui';

import engineStore from '../stores/engineStore';
import torrentActions from '../actions/torrentActions';

import utils from '../utils/util';

export
default React.createClass({
    getInitialState() {
        return {
            torrents: engineStore.getState().torrents
        };
    },
    componentDidMount() {
        engineStore.listen(this.update);
    },
    componentWillUnmount() {
        engineStore.unlisten(this.update);
    },
    update() {
        if (this.isMounted()) {
            this.setState({
                torrents: engineStore.getState().torrents
            });
        }
    },
    render() {
        return (
            <div className="wrapper">
             	<Card initiallyExpanded={true}>
  					<CardHeader
    					title="Name of Torrent"
    					subtitle="Speed Up/Down"
    					actAsExpander={true}
    					showExpandableButton={true}>
  					</CardHeader>
  					<CardText expandable={true}>
    					List of files with progress here
  					</CardText>
  					<CardActions expandable={true}>
    					<FlatButton label="Remove Torrent"/>
  					</CardActions>
				</Card><commit_msg>da de dunm<commit_after>import React from 'react';
import {
    Card, CardActions, CardExpandable, CardHeader, CardText
}
from 'material-ui';

import engineStore from '../stores/engineStore';
import torrentActions from '../actions/torrentActions';

import utils from '../utils/util';

export
default React.createClass({
    getInitialState() {
        return {
            torrents: engineStore.getState().torrents
        };
    },
    componentDidMount() {
        engineStore.listen(this.update);
    },
    componentWillUnmount() {
        engineStore.unlisten(this.update);
    },
    update() {
        if (this.isMounted()) {
            this.setState({
                torrents: engineStore.getState().torrents
            });
        }
    },

    generateTorrent(infoHash) {

    },

    generateFile(file) {

    },

    render() {
        return (
            <div className="wrapper">
             	<Card initiallyExpanded={true}>
  					<CardHeader
    					title="Name of Torrent"
    					subtitle="Speed Up/Down"
    					actAsExpander={true}
    					showExpandableButton={true}>
  					</CardHeader>
  					<CardText expandable={true}>
    					List of files with progress here
  					</CardText>
  					<CardActions expandable={true}>
    					<FlatButton label="Remove Torrent"/>
  					</CardActions>
				</Card>
{'fraction_non_alphanumeric': 0.12177263969171484, 'fraction_numerical': 0.0, 'mean_word_length': 2.1658536585365855, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '3617635', 'n_tokens_mistral': 850, 'n_tokens_neox': 762, 'n_words': 147}