<commit_before>'use strict';

/**
 * @ngdoc function
 * @name yoAngularPhpCrudApp.controller:CarsCtrl
 * @description
 * # CarsCtrl
 * Controller of the yoAngularPhpCrudApp
 */
angular.module('yoAngularPhpCrudApp')
  .controller('CarsCtrl', function ($scope, Restangular) {
      var url = 'cars';
      var Cars = Restangular.all(url);
      var blankCar = {
          make:"",
          model:"",
          pkg:"",
          year:""
      };
      var refreshCars = function() {
          $scope.isEditVisible = false;
          $scope.isAddNewCar = false;
          Cars.getList().then(function(data) {
              console.log('--> api/cars called from refreshCars()');
              $scope.cars = data;
          });
      };

      $scope.showAdd = function () {
          if ($scope.isEditVisible === false) {
              $scope.isAddNewCar = true;
          }
      };

      $scope.hideAdd = function () {
          $scope.isAddNewCar = false;<commit_msg>Fixed app name.<commit_after>'use strict';

/**
 * @ngdoc function
 * @name myWebAppApp.controller:CarsCtrl
 * @description
 * # CarsCtrl
 * Controller of the myWebAppApp
 */
angular.module('myWebAppApp')
  .controller('CarsCtrl', function ($scope, Restangular) {
      var url = 'cars';
      var Cars = Restangular.all(url);
      var blankCar = {
          make:"",
          model:"",
          pkg:"",
          year:""
      };
      var refreshCars = function() {
          $scope.isEditVisible = false;
          $scope.isAddNewCar = false;
          Cars.getList().then(function(data) {
              console.log('--> api/cars called from refreshCars()');
              $scope.cars = data;
          });
      };

      $scope.showAdd = function () {
          if ($scope.isEditVisible === false) {
              $scope.isAddNewCar = true;
          }
      };

      $scope.hideAdd = function () {
          $scope.isAddNewCar = false;
{'fraction_non_alphanumeric': 0.14382845188284518, 'fraction_numerical': 0.0, 'mean_word_length': 1.9250764525993884, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5913755', 'n_tokens_mistral': 577, 'n_tokens_neox': 565, 'n_words': 111}