<commit_before>import React from 'react';
import { connect } from 'react-redux';
import TeamUnitTable from 'builder/components/TeamUnitTable';
import { unitsSponsor } from 'models/selectors';

const SponsorTeamUnitTable = (props) => {
   return (
      <TeamUnitTable source={props.source}/>
   );
};

const mapStateToProps = (state) => {
   return {
      source: unitsSponsor(state)<commit_msg>The player position is shown<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import TeamUnitTable from 'builder/components/TeamUnitTable';
import { unitsSponsor } from 'models/selectors';

class SponsorTeamUnitTable extends Component {
   
   source;

   constructor(props) {
      super(props);

      let positions = props.sponsorUnits.map(unit => unit.position);
      let posUnits = props.units.map((unit, i) => {return { position: positions[i], ...unit }});

      this.source = posUnits;
   }

   render() {
      return (
            <TeamUnitTable source={this.source}/>
      );
   }
}

const mapStateToProps = (state) => {
   return {
      units: unitsSponsor(state),
      sponsorUnits: state.builder.sponsor.units
{'fraction_non_alphanumeric': 0.1284246575342466, 'fraction_numerical': 0.0, 'mean_word_length': 3.5843137254901962, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '3518422', 'n_tokens_mistral': 356, 'n_tokens_neox': 350, 'n_words': 81}