<commit_before>'use strict';
var app = app || {};

(function (module) {
  const appController = {};

  appController.index = function () {
    console.log('app.appController.index was called');
    app.appViewer.initIndexApp();
    $('#login').on('click', 'a', app.appViewer.showSignUp);
    $('#signup').on('click', 'a', app.appViewer.showLogIn);
    app.user.logInListener();
    app.user.signUpListener();
  }

  appController.initDashboard = function () {
    console.log('app.appController.initDashboard was called');
    app.appViewer.showDashboard();
    app.recipeViewer.showRandomRecipe();
    app.userViewer.greetUser();
  }

  appController.initSearchAll = function () {
    console.log('app.appController.initSearchAll was called');
    app.appViewer.showSearchAll();
    app.recipeController.initCategoryFilter();
    app.recipeController.searchListener();
    $('#searchAll .card-container').show();
    $('#recipe-container').hide();
  }

  appController.logout = () => {
    app.recipe.queriedRecipes = ['greek salad'];
    app.user.userRecipes = [];
    app.user.userInfo = [];
    page('/');<commit_msg>work on logout form clear function<commit_after>'use strict';
var app = app || {};

(function (module) {
  const appController = {};

  appController.index = function () {
    console.log('app.appController.index was called');
    app.appViewer.initIndexApp();
    $('#login').on('click', 'a', app.appViewer.showSignUp);
    $('#signup').on('click', 'a', app.appViewer.showLogIn);
    app.user.logInListener();
    app.user.signUpListener();
  }

  appController.initDashboard = function () {
    console.log('app.appController.initDashboard was called');
    app.appViewer.showDashboard();
    app.recipeViewer.showRandomRecipe();
    app.userViewer.greetUser();
  }

  appController.initSearchAll = function () {
    console.log('app.appController.initSearchAll was called');
    app.appViewer.showSearchAll();
    app.recipeController.initCategoryFilter();
    app.recipeController.searchListener();
    $('#searchAll .card-container').show();
    $('#recipe-container').hide();
  }

  appController.logout = () => {
    app.recipe.queriedRecipes = ['greek salad'];
    app.user.userRecipes = [];
    app.user.userInfo = [];
    $('#login').children('input').val('');
    $('#signup').children('input').val('');//need to figure out how to make this work
    page('/');
{'fraction_non_alphanumeric': 0.181438127090301, 'fraction_numerical': 0.0, 'mean_word_length': 3.9854166666666666, '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': '4658993', 'n_tokens_mistral': 752, 'n_tokens_neox': 757, 'n_words': 112}