<commit_before>describe('VendorsListController', function () {
  var $scope;
  var $rootScope;
  var $location;
  var createController;
  var $httpBackend;
  var vendor;

  // using angular mocks, we can inject the injector
  // to retrieve our dependencies
  beforeEach(module('zibzoo'));
  beforeEach(inject(function ($injector) {

    $rootScope = $injector.get('$rootScope');
    $httpBackend = $injector.get('$httpBackend');
    vendor = $injector.get('vendor');

    $scope = $rootScope.$new();

    var $controller = $injector.get('$controller');

    createController = function () {
      return $controller('VendorsListController', {
        $scope: $scope,
        vendor: vendor,
        $location: $location
      });
    };
    var fakeVendors = [{}, {}, {}];
    $httpBackend.whenGET('app/landing/landing.html').respond(fakeVendors);
    $httpBackend.whenGET('api/vendors').respond(fakeVendors);
    createController();
    $httpBackend.flush();
  }));

  afterEach(function () {
    $httpBackend.verifyNoOutstandingExpectation();
    $httpBackend.verifyNoOutstandingRequest();<commit_msg>[refactor]: rename VendorsListController to VendorsController<commit_after>describe('VendorsController', function () {
  var $scope;
  var $rootScope;
  var $location;
  var createController;
  var $httpBackend;
  var vendor;

  // using angular mocks, we can inject the injector
  // to retrieve our dependencies
  beforeEach(module('zibzoo'));
  beforeEach(inject(function ($injector) {

    $rootScope = $injector.get('$rootScope');
    $httpBackend = $injector.get('$httpBackend');
    vendor = $injector.get('vendor');

    $scope = $rootScope.$new();

    var $controller = $injector.get('$controller');

    createController = function () {
      return $controller('VendorsController', {
        $scope: $scope,
        vendor: vendor,
        $location: $location
      });
    };
    var fakeVendors = [{}, {}, {}];
    $httpBackend.whenGET('app/landing/landing.html').respond(fakeVendors);
    $httpBackend.whenGET('api/vendors').respond(fakeVendors);
    createController();
    $httpBackend.flush();
  }));

  afterEach(function () {
    $httpBackend.verifyNoOutstandingExpectation();
    $httpBackend.verifyNoOutstandingRequest();
{'fraction_non_alphanumeric': 0.15258007117437722, 'fraction_numerical': 0.0, 'mean_word_length': 3.9866962305986697, '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': '948626', 'n_tokens_mistral': 688, 'n_tokens_neox': 689, 'n_words': 121}