<commit_before>describe('Unit: eventsManualPluginWidget widget app', function () {
  describe('Unit: app routes', function () {
    beforeEach(module('eventsManualPluginWidget'));
    var location, route, rootScope;
    beforeEach(inject(function (_$location_, _$route_, _$rootScope_) {
      location = _$location_;
      route = _$route_;
      rootScope = _$rootScope_;
    }));

    describe('Home route', function () {
      beforeEach(inject(
        function ($httpBackend) {
          $httpBackend.expectGET('templates/home.html')
            .respond(200);
          $httpBackend.expectGET('/')
            .respond(200);
        }));

      it('should load the home page on successful load of location path /', function () {
        location.path('/');
        rootScope.$digest();
        expect(route.current.controller).toBe('WidgetHomeCtrl')
      });
    });

    describe('Event route', function () {
      beforeEach(inject(
        function ($httpBackend) {
          $httpBackend.expectGET('templates/eventDetails.html')
            .respond(200);
          $httpBackend.expectGET('/event/:id')
            .respond(200);
        }));

      it('should load the event details page on successful load of location path /event/:id', function () {
        location.path('/event/123');<commit_msg>updated the test case after new route implementation in widget section.<commit_after>describe('Unit: eventsManualPluginWidget widget app', function () {
  describe('Unit: app routes', function () {
    beforeEach(module('eventsManualPluginWidget'));
    var location, route, rootScope;
    beforeEach(inject(function (_$location_, _$route_, _$rootScope_) {
      location = _$location_;
      route = _$route_;
      rootScope = _$rootScope_;
    }));

    describe('Home route', function () {
      beforeEach(inject(
        function ($httpBackend) {
          $httpBackend.expectGET('/')
            .respond(200);
          $httpBackend.expectGET('/')
            .respond(200);
        }));

      it('should load the home page on successful load of location path /', function () {
        location.path('/');
        rootScope.$digest();
        });
    });

    describe('Event route', function () {
      beforeEach(inject(
        function ($httpBackend) {
          $httpBackend.expectGET('templates/eventDetails.html')
            .respond(200);
          $httpBackend.expectGET('/event/:id')
            .respond(200);
        }));

      it('should load the event details page on successful load of location path /event/:id', function () {
        location.path('/event/123');
{'fraction_non_alphanumeric': 0.14038461538461539, 'fraction_numerical': 0.011538461538461539, 'mean_word_length': 2.6276150627615062, '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': '6504554', 'n_tokens_mistral': 696, 'n_tokens_neox': 685, 'n_words': 156}