<commit_before>'use strict';

describe('ngNuxeoClient module', function () {

  var httpBackend, nuxeoClient, dataDirectory;

  beforeEach(module('ngNuxeoClient', 'data/directory.json'));

  beforeEach(inject(function ($httpBackend, _nuxeoClient_, _dataDirectory_) {
    httpBackend = $httpBackend;
    nuxeoClient = _nuxeoClient_;
    dataDirectory = _dataDirectory_;
  }));

  describe('nuxeoClient service', function () {

    it("should fetch directories when requested", function () {
      httpBackend.whenGET("http://demo.nuxeo.local/nuxeo/api/v1/directory/something").respond(dataDirectory);
      nuxeoClient.request('directory/something').get(function (result) {
        expect(result).toBeDefined();
        expect(result.entries).toBeDefined();
        expect(result.entries).toEqual(dataDirectory.entries);
      });
      httpBackend.flush();
    });

  });
});<commit_msg>Correcting api path test<commit_after>'use strict';

describe('ngNuxeoClient module', function () {

  var httpBackend, nuxeoClient, dataDirectory;

  beforeEach(module('ngNuxeoClient', 'data/directory.json'));

  beforeEach(inject(function ($httpBackend, _nuxeoClient_, _dataDirectory_) {
    httpBackend = $httpBackend;
    nuxeoClient = _nuxeoClient_;
    dataDirectory = _dataDirectory_;
  }));

  describe('nuxeoClient service', function () {

    it("should fetch directories when requested", function () {
      httpBackend.whenGET("http://demo.nuxeo.local/nuxeo/site/api/v1/directory/something").respond(dataDirectory);
      nuxeoClient.request('directory/something').get(function (result) {
        expect(result).toBeDefined();
        expect(result.entries).toBeDefined();
        expect(result.entries).toEqual(dataDirectory.entries);
      });
      httpBackend.flush();
    });

  });
});
{'fraction_non_alphanumeric': 0.1435754189944134, 'fraction_numerical': 0.0011173184357541898, 'mean_word_length': 4.443768996960486, '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': '949032', 'n_tokens_mistral': 550, 'n_tokens_neox': 528, 'n_words': 77}