<commit_before>import React from 'react';

class Tank extends React.Component {

  constructor(props) {
    super(props);
    this.position = props.position || '0 3 0';
    this.rotation = props.rotation || '0 0 0';
  }

  render () {
    return (
      <a-entity position={this.position} 
        tank-controls wasd-controls='adEnabled: false; acceleration: 200;' 
        kinematic-body>
        <a-entity id='camera' position='0 1.8 0' rotation={this.rotation}
          camera='near: 0.05' look-controls/>
        <a-box width='3' height='0.5' depth='5' position='0 0 0' 
          color='red' material='side:double;'/>
      </a-entity>
    )<commit_msg>Add more structure to tank reactComponent<commit_after>import React from 'react';

class Tank extends React.Component {

  constructor(props) {
    super(props);
    this.position = props.position || '0 3 0';
    this.rotation = props.rotation || '0 0 0';
    this.driverLength = 5;
    this.driverWidth = 3;
    this.driverCompartmentLength = 2;
  }

  render () {
    const driverBlockLength = this.driverLength - this.driverCompartmentLength;
    const driverCameraOffset = (this.driverCompartmentLength - this.driverLength) / 2;
     return (
      <a-entity position={this.position} 
        tank-controls wasd-controls='adEnabled: false; acceleration: 200;' 
        kinematic-body>
        <a-entity id='camera' position={`0 1 ${driverCameraOffset}`} 
          rotation={this.rotation}
          camera='near: 0.05' look-controls />

        {/* Top and bottom driver plate */}
        <a-box width={this.driverWidth} height='0.5' depth={this.driverLength} 
          position='0 0 0' 
          color='red'/>
        <a-box width={this.driverWidth} height='0.5' depth={this.driverLength} 
          position='0 2 0' 
          color='red'/>

        {/* Driver compartment block */}
        <a-box width={this.driverWidth} height='1.5' 
          depth={driverBlockLength} 
          position={`0 1 ${(this.driverLength - driverBlockLength) / 2}`} color='red'/>

        {/* Driver compartment window liners */}
        <a-box width='0.2' height='1.5' depth='1' 
          position={`${-(this.driverWidth - 0.2) / 2} 1 ${-(this.driverLength - 1) / 2}`} 
          color='red'/>
        <a-box width='0.2' height='1.5' depth='1' 
          position={`${(this.driverWidth - 0.2) / 2} 1 ${-(this.driverLength - 1) / 2}`}
          color='red'/>

      </a-entity>
    )
{'fraction_non_alphanumeric': 0.15735414954806903, 'fraction_numerical': 0.03204601479046836, 'mean_word_length': 2.5035971223021583, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6620871', 'n_tokens_mistral': 823, 'n_tokens_neox': 751, 'n_words': 171}