<commit_before>__webpack_public_path__= window.resURL+'js/';
import React from "react";
import ReactDOM from 'react-dom';
import BuildHistoryPage from './pages/BuildHistoryPage.jsx';
import {job} from './api/Api.jsx'; 
import BuildHistory from './models/BuildHistory.js'
window.onload = function (){
  const buildHistory = new BuildHistory();
  buildHistory.addChangeListener(buildHistory => {
    ReactDOM.render(<BuildHistoryPage buildHistory={buildHistory}/>, document.getElementById('content'));
  });
  buildHistory.historyChanged({builds:[],filters:[]});

  job("buildHistoryTabs,builds[*,commit[*],cause[*],parameters[*]]", 'All',50).then(data => {
    buildHistory.historyChanged({builds: data.builds, filters: data.buildHistoryTabs});
  });
}

<commit_msg>use spread for data change<commit_after>__webpack_public_path__= window.resURL+'js/';
import React from "react";
import ReactDOM from 'react-dom';
import BuildHistoryPage from './pages/BuildHistoryPage.jsx';
import {job} from './api/Api.jsx'; 
import BuildHistory from './models/BuildHistory.js'
window.onload = function (){
  const buildHistory = new BuildHistory();
  buildHistory.addChangeListener(buildHistory => {
    ReactDOM.render(<BuildHistoryPage buildHistory={buildHistory}/>, document.getElementById('content'));
  });
  buildHistory.historyChanged({builds:[],filters:[]});

  job("buildHistoryTabs,builds[*,commit[*],cause[*],parameters[*]]", 'All',50).then(data => {
    buildHistory.historyChanged({... data, filters: data.buildHistoryTabs});
  });
}


{'fraction_non_alphanumeric': 0.16906005221932116, 'fraction_numerical': 0.0026109660574412533, 'mean_word_length': 6.626865671641791, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6471179', 'n_tokens_mistral': 464, 'n_tokens_neox': 452, 'n_words': 82}