<commit_before>// @flow

import React from 'react';
import { graphqlKoa } from 'graphql-server-koa';
import type { DocumentNode } from 'graphql';

import Middleware from './Middleware';

type GraphQLContext = {
  context?: any,
  rootValue?: any,
};

type DefaultProps = {
  methods: string | Array<string>,
  options: (ctx: *) => Promise<GraphQLContext> | GraphQLContext,
  path: string,
};

export type Props = DefaultProps & {
  schema: DocumentNode,
};

export default class ApolloGraphQL extends React.Component<DefaultProps, Props, void> {
  static defaultProps = {
    methods: ['GET', 'POST'],<commit_msg>fix flow annotation for options method of ApolloGraphQL component<commit_after>// @flow

import React from 'react';
import { graphqlKoa } from 'graphql-server-koa';
import type { DocumentNode } from 'graphql';

import Middleware from './Middleware';

type GraphQLContext = {
  context?: any,
  rootValue?: any,
};

type DefaultProps = {
  methods: string | Array<string>,
  options: (ctx: *) => GraphQLContext | Promise<GraphQLContext>,
  path: string,
};

export type Props = DefaultProps & {
  schema: DocumentNode,
};

export default class ApolloGraphQL extends React.Component<DefaultProps, Props, void> {
  static defaultProps = {
    methods: ['GET', 'POST'],
{'fraction_non_alphanumeric': 0.12832550860719874, 'fraction_numerical': 0.0, 'mean_word_length': 4.787330316742081, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '7044961', 'n_tokens_mistral': 387, 'n_tokens_neox': 381, 'n_words': 117}