<commit_before>/* global angular*/
angular.module('hgApp.service.resources', ['firebase'])
  .factory('propertyManager', ['repository', 'gapi',
    function (repository, gapi) {
      var collection = 'properties';
      return {
        /**
         * Retrieve all properties for the logged in user.
         *
         * @param {limit} [limit] Max results to return
         * @return A (possibly empty) list with all the user's properties.
         */
        list: function (limit) {
          return repository.list(collection, limit);
        },
        
        /**
         * Save a property for the logged in user.
         *
         * @param {Object} propertyObj A property object with required fields set. No data validation yet.
         * @param {function} [callback] Optional callback function after object is saved.
         * @return The Firebase reference object.
         */
        save: function (propertyObj, callback) {
          return repository.save(collection, propertyObj, callback);
        }
      };
    }<commit_msg>Remove gapi dependency<commit_after>/* global angular*/
angular.module('hgApp.service.resources', ['firebase', 'angular-gapi'])
  .factory('propertyManager', ['repository',
    function (repository) {
      var collection = 'properties';
      return {
        /**
         * Retrieve all properties for the logged in user.
         *
         * @param {limit} [limit] Max results to return
         * @return A (possibly empty) list with all the user's properties.
         */
        list: function (limit) {
          return repository.list(collection, limit);
        },
        
        /**
         * Save a property for the logged in user.
         *
         * @param {Object} propertyObj A property object with required fields set. No data validation yet.
         * @param {function} [callback] Optional callback function after object is saved.
         * @return The Firebase reference object.
         */
        save: function (propertyObj, callback) {
          return repository.save(collection, propertyObj, callback);
        }
      };
    }
{'fraction_non_alphanumeric': 0.10441385856668249, 'fraction_numerical': 0.0, 'mean_word_length': 2.1322436849925706, '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': '5540297', 'n_tokens_mistral': 517, 'n_tokens_neox': 509, 'n_words': 183}