<commit_before>import React from 'react';
import { gql, graphql} from 'react-apollo';

export const Fortune = ({ data: { loading, fortune, error } }) => {
  if (loading) return <div>Loading</div>;
  if (error) return <h1>ERROR</h1>;
  return (
    <div>
    Fortune:
      {
        fortune
      }
    </div>
  )
};

export const FORTUNE_QUERY = gql`
  query {getFortuneCookie}
`;

export const withFortune = graphql(FORTUNE_QUERY);
export default withFortune(Fortune);<commit_msg>fortune is now rendering<commit_after>import React from 'react';
import { gql, graphql} from 'react-apollo';

export const Fortune = ({ data: { loading, getFortuneCookie, error } }) => {
  if (loading) return <div>Loading...</div>;
  if (error) return <h1>ERROR</h1>;
  return (
    <div>
    Fortune:
      {
        getFortuneCookie
      }
    </div>
  )
};

export const FORTUNE_QUERY = gql`
  query {getFortuneCookie}
`;

export const withFortune = graphql(FORTUNE_QUERY);
export default withFortune(Fortune);
{'fraction_non_alphanumeric': 0.13755020080321284, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 3.5525114155251143, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '1317850', 'n_tokens_mistral': 359, 'n_tokens_neox': 348, 'n_words': 86}