<commit_before>describe('backbone history helper tests', function () {
    'use strict';
    var history;

    beforeEach(function (done) {
        this.timeout(10000);

        require(['cs!helpers/backbone/history'], function () {
            history = arguments[0];
            done();
        });
    });
    describe('get fragment tests', function () {
        it('should modify fragment', function () {
            history.getFragment('/test', null).should.equal('test');
            history.getFragment('#weird route      ', null).should.equal('weird route');
            history.getFragment('should_not_be_changed', null).should.equal('should_not_be_changed');
        });
        it('should create fragment', function () {
            // root is not at the beginning of pathname
            var myPath = history.location.pathname;
            var mySearch = history.location.search;
            var myRoot = history.root;
            history.root = 'myRoot';
            var newFragment = myPath + mySearch;
            newFragment = newFragment.replace(/^[#\/]|\s+$/g, '');
            history.getFragment(null, null).should.equal(newFragment);

            // root is at the beginning of pathname, should be sliced off
            history.root = myPath.slice(0, 5);
            history.getFragment(null, null).should.equal(newFragment.slice(5));

            // reset them back to their original state
            history.root = myRoot;
        });
    });
    describe('navigate tests', function () {
        it('should cut the string down to 30 characters', function () {

        });
    });
});<commit_msg>beautifying<commit_after>describe('backbone history helper tests', function () {
  'use strict';
  var history;

  beforeEach(function (done) {
    this.timeout(10000);

    require(['cs!helpers/backbone/history'], function () {
      history = arguments[0];
      done();
    });
  });
  describe('get fragment tests', function () {
    it('should modify fragment', function () {
      history.getFragment('/test', null).should.equal('test');
      history.getFragment('#weird route      ', null).should.equal('weird route');
      history.getFragment('should_not_be_changed', null).should.equal('should_not_be_changed');
    });
    it('should create fragment', function () {
      // root is not at the beginning of pathname
      var myPath = history.location.pathname;
      var mySearch = history.location.search;
      var myRoot = history.root;
      history.root = 'myRoot';
      var newFragment = myPath + mySearch;
      newFragment = newFragment.replace(/^[#\/]|\s+$/g, '');
      history.getFragment(null, null).should.equal(newFragment);

      // root is at the beginning of pathname, should be sliced off
      history.root = myPath.slice(0, 5);
      history.getFragment(null, null).should.equal(newFragment.slice(5));

      // reset them back to their original state
      history.root = myRoot;
    });
  });
  describe('navigate tests', function () {
    it('should cut the string down to 30 characters', function () {

    });
  });
});
{'fraction_non_alphanumeric': 0.14155844155844155, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 2.5867287543655415, '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': '6600782', 'n_tokens_mistral': 851, 'n_tokens_neox': 820, 'n_words': 202}