<commit_before>import DS                 from 'ember-data'

import {
  get, getProperties
} from '@ember/object'

import {
  isBlank
} from '@ember/utils'

import {
  objectReject
} from './utils'

import {
  assign
} from '@ember/polyfills'

import {
  inject as service
} from '@ember/service'

import Transport from './transport'

export default DS.RESTAdapter.extend({
  cachedShoe:       service(),
  mergedProperties: ['graphOptions'],

  graphOptions: {
    addTypename: true,
  },

  request(opts) {
    let {query, variables} = opts
    let originalVariables = variables
    let operationName = this.graphHelper('operationName', query)
    
    query     = this.graphHelper('prepareQuery', query)
    variables = this.graphHelper('normalizeVariables', originalVariables, query)
<commit_msg>dynamic service lookup (it may not exists)<commit_after>import DS                 from 'ember-data'

import {
  get, getProperties, computed
} from '@ember/object'

import {
  isBlank
} from '@ember/utils'

import {
  objectReject
} from './utils'

import {
  assign
} from '@ember/polyfills'

import { 
  getOwner 
} from '@ember/application'

import Transport from './transport'

export default DS.RESTAdapter.extend({
  mergedProperties: ['graphOptions'],
  
  cachedShoe: computed(function() {
    return getOwner(this).lookup('service:cached-shoe')
  }),

  graphOptions: {
    addTypename: true,
  },

  request(opts) {
    let {query, variables} = opts
    let originalVariables = variables
    let operationName = this.graphHelper('operationName', query)
    
    query     = this.graphHelper('prepareQuery', query)
    variables = this.graphHelper('normalizeVariables', originalVariables, query)

{'fraction_non_alphanumeric': 0.11619718309859155, 'fraction_numerical': 0.0, 'mean_word_length': 3.6205962059620598, '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': '605684', 'n_tokens_mistral': 504, 'n_tokens_neox': 493, 'n_words': 127}