<commit_before>import test from 'ava'
import {graphql} from 'graphql'
import schemaBasic from '../test-api/schema-basic/index'
import {partial} from 'lodash'

const run = partial(graphql, schemaBasic)

test('it should get user 1 with comments and particular posts', async t => {
  const query = ` {
    user(id: 1) {
      comments {
        id
        post {
          comments {
            id
          }
        }
      }
    }
  }`
  const {data, errors} = await run(query)
  t.is(errors, undefined)
  const expect = {
    user: {
      comments: [
        {
          id: 1,
          post: {
            comments: [
              { id: 3 },
              { id: 2 },<commit_msg>fix lint<commit_after>import test from 'ava'
import { graphql } from 'graphql'
import schemaBasic from '../test-api/schema-basic/index'
import { partial } from 'lodash'

const run = partial(graphql, schemaBasic)

test('it should get user 1 with comments and particular posts', async t => {
  const query = ` {
    user(id: 1) {
      comments {
        id
        post {
          comments {
            id
          }
        }
      }
    }
  }`
  const {data, errors} = await run(query)
  t.is(errors, undefined)
  const expect = {
    user: {
      comments: [
        {
          id: 1,
          post: {
            comments: [
              { id: 3 },
              { id: 2 },
{'fraction_non_alphanumeric': 0.11704462326261887, 'fraction_numerical': 0.0073152889539136795, 'mean_word_length': 1.6007604562737643, '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': '3376446', 'n_tokens_mistral': 427, 'n_tokens_neox': 414, 'n_words': 121}