<commit_before>import Relay from 'react-relay';

class EmailCreate extends Relay.Mutation {
  getMutation() {
    return Relay.QL`
      mutation {
        emailCreate
      }
    `;
  }

  getFatQuery() {
    return Relay.QL`
      fragment on EmailCreatePayload {
        emailEdge
      }
    `;
  }

  getConfigs() {
    return [{
      type: 'RANGE_ADD',
      parentName: 'viewer',
      connectionName: 'emails',
      edgeName: 'emailEdge',
      rangeBehaviors: {
        '': 'append'
      }
    }];
  }

  getVariables() {
    return { address: this.props.address };
  }
}

export default EmailCreate;
<commit_msg>Fixed the `EmailCreate` mutation<commit_after>import Relay from 'react-relay';

class EmailCreate extends Relay.Mutation {
  getMutation() {
    return Relay.QL`
      mutation {
        emailCreate
      }
    `;
  }

  getFatQuery() {
    return Relay.QL`
      fragment on EmailCreatePayload {
        emailEdge
        viewer {
          emails {
            count
          }
        }
      }
    `;
  }

  getConfigs() {
    return [{
      type: 'RANGE_ADD',
      parentName: 'viewer',
      connectionName: 'emails',
      edgeName: 'emailEdge',
      rangeBehaviors: {
        '': 'append'
      }
    }];
  }

  getVariables() {
    return { address: this.props.address };
  }
}

export default EmailCreate;

{'fraction_non_alphanumeric': 0.11449814126394052, 'fraction_numerical': 0.0, 'mean_word_length': 1.9197396963123645, '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': '4011369', 'n_tokens_mistral': 440, 'n_tokens_neox': 435, 'n_words': 84}