<commit_before>(function(){
'use strict';
// Declare app level module which depends on filters, and services
var a = angular.module('readingList', []);

a.controller('ReadingListController', function(){
	this.books = books;
	this.genres = genres;
});

a.directive('bookGenres', function(){
  return {
    restrict: 'E',
    templateUrl: 'partials/book-genres.html',
    scope: {
    genres: '='
  }
  }

});

a.directive('bookCovers', function(){
  return {
    restrict: 'E',
    templateUrl: 'partials/book-covers.html',
    replace: true
  }
});

a.directive('reviewForm', function(){
  return {
    restrict: 'E',
    templateUrl: 'partials/review-form.html',
    replace: true,
    controller: function(){
      this.showForm = false;
      this.book = {
        genres:{}
      };<commit_msg>I create the addReview function in the reviewForm directive, to be able to save the review, and changed the 'a' in 'app' in app.js file<commit_after>(function(){
'use strict';
// Declare app level module which depends on filters, and services
var app = angular.module('readingList', []);

app.controller('ReadingListController', function(){
	this.books = books;
	this.genres = genres;
});

app.directive('bookGenres', function(){
  return {
    restrict: 'E',
    templateUrl: 'partials/book-genres.html',
    scope: {
    genres: '='
  }
  }

});

app.directive('bookCovers', function(){
  return {
    restrict: 'E',
    templateUrl: 'partials/book-covers.html',
    replace: true
  }
});

app.directive('reviewForm', function(){
  return {
    restrict: 'E',
    templateUrl: 'partials/review-form.html',
    replace: true,
    controller: function(){
      this.showForm = false;
      this.book = {
        genres:{}
      };
{'fraction_non_alphanumeric': 0.1579861111111111, 'fraction_numerical': 0.0, 'mean_word_length': 3.4107142857142856, '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': '4687009', 'n_tokens_mistral': 560, 'n_tokens_neox': 558, 'n_words': 134}