<commit_before>import JSONAPIAdapter from '@ember-data/adapter/json-api';
import DataAdapterMixin from 'ember-simple-auth/mixins/data-adapter-mixin';
import ENV from 'bracco/config/environment';

export default JSONAPIAdapter.extend(DataAdapterMixin, {
  host: ENV.ROR_API_URL,

  authorize() {
  },

  pathForType() {
    return 'organizations';
  },
});<commit_msg>fix cors in ror api calls. #485<commit_after>import JSONAPIAdapter from "@ember-data/adapter/json-api";
import DataAdapterMixin from "ember-simple-auth/mixins/data-adapter-mixin";
import ENV from "bracco/config/environment";

export default JSONAPIAdapter.extend(DataAdapterMixin, {
  host: ENV.ROR_API_URL,

  init() {
    this._super(...arguments);

    this.set("headers", {
      "Content-Type": "application/json",
      Accept: "application/json",
    });
  },

  pathForType() {
    return "organizations";
  },

  authorize() {},
});
{'fraction_non_alphanumeric': 0.14537444933920704, 'fraction_numerical': 0.003303964757709251, 'mean_word_length': 4.410714285714286, 'pattern_counts': {'":': 1, '<': 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': '7205454', 'n_tokens_mistral': 304, 'n_tokens_neox': 295, 'n_words': 55}