<commit_before>import * as React from "react";
import { IPlate, proportinalWidth, proportinalHeight } from "./../../calculator/plates";

import "!style!css!less!./plate.less";
let styles = require<{plate:string}>("!style!css!less!./plate.less");

interface IPlateProperties {
    plate: IPlate;
}

export class Plate extends React.Component<IPlateProperties, {}> {
    render() {
        let s: React.HTMLAttributes = {
            backgroundColor: this.props.plate.color,
            width: proportinalWidth(this.props.plate, 60, 25),
            height: proportinalHeight(this.props.plate)
        };

        return (<div className="plate" style={s}>
            <span>
                {this.props.plate.weight}
            </span>
        </div>);
    }
}<commit_msg>removed duplicate import<commit_after>import * as React from "react";
import { IPlate, proportinalWidth, proportinalHeight } from "./../../calculator/plates";

import "!style!css!less!./plate.less";

interface IPlateProperties {
    plate: IPlate;
}

export class Plate extends React.Component<IPlateProperties, {}> {
    render() {
        let s: React.HTMLAttributes = {
            backgroundColor: this.props.plate.color,
            width: proportinalWidth(this.props.plate, 60, 25),
            height: proportinalHeight(this.props.plate)
        };

        return (<div className="plate" style={s}>
            <span>
                {this.props.plate.weight}
            </span>
        </div>);
    }
}
{'fraction_non_alphanumeric': 0.14295347269049224, 'fraction_numerical': 0.005394470667565745, 'mean_word_length': 2.550239234449761, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '2825760', 'n_tokens_mistral': 461, 'n_tokens_neox': 424, 'n_words': 89}