<commit_before>/**
* Food
* @namespace nomihodai.food.services
*/
(function () {
  'use strict';

  angular
    .module('nomihodai.food.services')
    .factory('Food', Food);

  Food.$inject = ['$http'];

  /**
  * @namespace Food
  * @returns {Factory}
  */
  function Food($http) {
    var Food = {
      all: all
    };

    return Food;

    ////////////////////

    /**
    * @name all
    * @desc Get all Food
    * @returns {Promise}
    * @memberOf nomihodai.food.services.Food
    */
    function all() {
      return $http.get('/api/v1/nomihodai/');
    }
  }
})();<commit_msg>search added to the food.service on client side<commit_after>/**
* Food
* @namespace nomihodai.food.services
*/
(function () {
  'use strict';

  angular
    .module('nomihodai.food.services')
    .factory('Food', Food);

  Food.$inject = ['$http'];

  /**
  * @namespace Food
  * @returns {Factory}
  */
  function Food($http) {
    var Food = {
      all: all,
      search: search
    };

    return Food;

    ////////////////////

    /**
    * @name all
    * @desc Get all Food
    * @returns {Promise}
    * @memberOf nomihodai.food.services.Food
    */
    function all() {
      return $http.get('/api/v1/nomihodai/');
    }

    /**
    * @name search
    * @desc Search food by areas and date
    * @param {string} area1_name The name of the first level area
    * @param {string} area2_name The name of the second level area
    * @param {string} date The ISO date string
    * @returns {Promise}
    * @memberOf nomihodai.food.services.Food
    */
    function search(area1_name, area2_name, season, month) {
      return $http.get('/api/v1/nomihodai/?search=' + area1_name + ',' + area2_name + ',' + season + ',' + month);
    }

  }
})();
{'fraction_non_alphanumeric': 0.18082663605051666, 'fraction_numerical': 0.005166475315729047, 'mean_word_length': 2.2099447513812156, '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': '2015085', 'n_tokens_mistral': 603, 'n_tokens_neox': 582, 'n_words': 138}