<commit_before>module.exports = {
  url: function () {
    var url = this.api.launchUrl;
    if (!this.props.playgroundId) { return url; }
    url = url + '/playground/' + this.props.playgroundId + '/programmer';
    if (this.props.codeObjectId) { url = url + '#' + this.props.codeObjectId; }
    return url;
  },
  elements: {
    'go-live': '#go-live',
    'bottommost-codeObject': '#objects li:last-of-type a:first-of-type',
    'bottommost-codeObject-trash': '#objects li:last-of-type a:last-of-type'
  },
  commands: [{
    setCodeId: function (codeid) {
      this.api.clearValue('#codeid')
              .setValue('#codeid', codeid);
      return this;
    },
    setCode: function (code) {
      this.api.execute(`
        var ta = document.querySelector("#code textarea");
        ta.value = "${code.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}";
        ta.dispatchEvent(new Event("input"));
      `);
      return this;<commit_msg>[e2e-test] refactor a page object to force dispatch input event<commit_after>module.exports = {
  url: function () {
    var url = this.api.launchUrl;
    if (!this.props.playgroundId) { return url; }
    url = url + '/playground/' + this.props.playgroundId + '/programmer';
    if (this.props.codeObjectId) { url = url + '#' + this.props.codeObjectId; }
    return url;
  },
  elements: {
    'go-live': '#go-live',
    'bottommost-codeObject': '#objects li:last-of-type a:first-of-type',
    'bottommost-codeObject-trash': '#objects li:last-of-type a:last-of-type'
  },
  commands: [{
    setCodeId: function (codeid) {
      this.api.execute(`
        var codeid = document.querySelector("#codeid");
        codeid.value = "${codeid}";
        codeid.dispatchEvent(new Event("input"));
      `);
      return this;
    },
    setCode: function (code) {
      this.api.execute(`
        var ta = document.querySelector("#code textarea");
        ta.value = "${code.replace(/\\/g, '\\\\').replace(/"/g, '\\"')}";
        ta.dispatchEvent(new Event("input"));
      `);
      return this;
{'fraction_non_alphanumeric': 0.18866995073891626, 'fraction_numerical': 0.0004926108374384236, 'mean_word_length': 2.7129798903107862, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7570570', 'n_tokens_mistral': 676, 'n_tokens_neox': 671, 'n_words': 127}