<commit_before>import JSONAPIAdapter from 'ember-data/adapters/json-api';
import Ember from 'ember';
import DS from "ember-data";
import ENV from 'external-admin/config/environment';
const { underscore, pluralize } = Ember.String;

export default JSONAPIAdapter.extend({
    host: ENV.host,
   session: Ember.inject.service('session'),
   headers: Ember.computed('session.apiKey', function() {
       return {
           'Authorization': 'Bearer '+this.get('session.apiKey')
       };
   }),
   shouldReloadRecord() {
       return false;
    },

    shouldBackgroundReloadRecord() {
        return false;
    },

    pathForType: function(type) {
        let underscored = underscore(type);
        return pluralize(underscored);
    },
<commit_msg>depend on sessions service 2<commit_after>import JSONAPIAdapter from 'ember-data/adapters/json';
import Ember from 'ember';
import DS from "ember-data";
import ENV from 'external-admin/config/environment';
const { underscore, pluralize } = Ember.String;

export default JSONAPIAdapter.extend({
    host: ENV.host,
   session: Ember.inject.service('session'),
   headers: Ember.computed('session.apiKey', function() {
       return {
           'Authorization': 'Bearer '+this.get('session.apiKey'),
           'Content-Type': 'application/json'
       };
   }),
   shouldReloadRecord() {
       return false;
    },

    shouldBackgroundReloadRecord() {
        return false;
    },

    pathForType: function(type) {
        let underscored = underscore(type);
        return pluralize(underscored);
    },

{'fraction_non_alphanumeric': 0.1277278562259307, 'fraction_numerical': 0.0006418485237483953, 'mean_word_length': 3.271232876712329, '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': '7562197', 'n_tokens_mistral': 466, 'n_tokens_neox': 454, 'n_words': 100}