<commit_before>/* jshint ignore:start */
import Ember from 'ember';

export default Ember.Route.extend({
  model: function (params) {

    async function bar() {
      console.log('TEST 2. bar is running now');
        return Ember.$.ajax({
							url: '/api/v2/users',
							type: 'GET',
							contentType: 'application/json'
					});
      }

    async function foo() {
      console.log('TEST 1. i totally work');
			try {
				let result = await bar();
				console.log('TEST ajax result', result);
				console.log('TEST 4. now I ran');
	    } catch (err) {
	      console.log('TEST THE ERROR: ', err);
	    }
    }

		foo();
<commit_msg>slimmed down ajax<commit_after>/* jshint ignore:start */
import Ember from 'ember';

export default Ember.Route.extend({
  model: function (params) {

    async function foo() {
			try {
				let result = await Ember.$.ajax({
							url: '/api/v1/users',
							type: 'GET'
					});
				console.log('TEST', result);
	    } catch (err) {
	      console.log('TEST THE ERROR: ', err);
	    }
    }

		foo();

{'fraction_non_alphanumeric': 0.1577437858508604, 'fraction_numerical': 0.004780114722753346, 'mean_word_length': 2.323809523809524, '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': '2255221', 'n_tokens_mistral': 409, 'n_tokens_neox': 333, 'n_words': 95}