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

const query = gql`
  query {
    me {
      id
      name
    }
  }
`

export default ComposedComponent => {
  class WithSession extends React.Component {
    constructor(props, context) {
      super(props, context)<commit_msg>Fix withSession HOC not allowing getInitialProps<commit_after>import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'

const query = gql`
  query {
    me {
      id
      name
    }
  }
`

export default ComposedComponent => {
  class WithSession extends React.Component {
    constructor(props, context) {
      super(props, context)
    }

    static async getInitialProps(ctx) {
      if (ComposedComponent.getInitialProps) {
        return await ComposedComponent.getInitialProps(ctx)
      }
{'fraction_non_alphanumeric': 0.08685714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 3.112676056338028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2532258', 'n_tokens_mistral': 263, 'n_tokens_neox': 260, 'n_words': 72}