<commit_before>var factory = function($resource) {

  var Seed = $resource("/noo/post/:id/:action", {
    id: '@id'
  }, {
    comment: {
      method: "POST",
      params: {
        action: "comment"
      }
    },
    addFollowers: {
      method: 'POST',
      params: {
        action: 'followers'
      }
    },
    follow: {
      method: 'POST',
      params: {
        action: 'follow'
      }
    },
    unfollow: {
      method: 'POST',
      params: {
        action: 'follow',
        force: 'unfollow'
      }
    },
    queryForCommunity: {
      method: 'GET',
      url: '/noo/community/:communityId/posts'
    },
    queryForUser: {
      method: 'GET',
      url: '/noo/user/:userId/posts'
    },
    queryForProject: {
      method: 'GET',
      url: '/noo/project/:projectId/posts'
    },
    fulfill: {
      method: 'POST',
      url: '/noo/seed/:id/fulfill'
    },
    vote: {
      method: 'POST',
      url: '/noo/seed/:id/vote'
    },
    findComments: {
      url: '/noo/seed/:id/comments',
      isArray: true
    }
  });

  // let's make things a bit more OO around here
  _.extend(Seed.prototype, {
    update: function(params, success, error) {
      return Seed.save(_.extend({id: this.id}, params), success, error);
    },
    fulfill: function(params, success, error) {
      return Seed.fulfill(_.extend({id: this.id}, params), success, error);
    },
    vote: function(params, success, error) {
      return Seed.vote(_.extend({id: this.id}, params), success, error);
    },
    findComments: function(params, success, error) {
      return Seed.findComments(_.extend({id: this.id}, params), success, error);
    },
    unfollow: function(params, success, error) {
      return Seed.unfollow(_.extend({id: this.id}, params), success, error);
    }<commit_msg>fix a few missed api endpoint renames<commit_after>var factory = function($resource) {

  var Seed = $resource("/noo/post/:id/:action", {
    id: '@id'
  }, {
    comment: {
      method: "POST",
      params: {
        action: "comment"
      }
    },
    addFollowers: {
      method: 'POST',
      params: {
        action: 'followers'
      }
    },
    follow: {
      method: 'POST',
      params: {
        action: 'follow'
      }
    },
    unfollow: {
      method: 'POST',
      params: {
        action: 'follow',
        force: 'unfollow'
      }
    },
    queryForCommunity: {
      method: 'GET',
      url: '/noo/community/:communityId/posts'
    },
    queryForUser: {
      method: 'GET',
      url: '/noo/user/:userId/posts'
    },
    queryForProject: {
      method: 'GET',
      url: '/noo/project/:projectId/posts'
    },
    fulfill: {
      method: 'POST',
      url: '/noo/post/:id/fulfill'
    },
    vote: {
      method: 'POST',
      url: '/noo/post/:id/vote'
    },
    findComments: {
      url: '/noo/post/:id/comments',
      isArray: true
    }
  });

  // let's make things a bit more OO around here
  _.extend(Seed.prototype, {
    update: function(params, success, error) {
      return Seed.save(_.extend({id: this.id}, params), success, error);
    },
    fulfill: function(params, success, error) {
      return Seed.fulfill(_.extend({id: this.id}, params), success, error);
    },
    vote: function(params, success, error) {
      return Seed.vote(_.extend({id: this.id}, params), success, error);
    },
    findComments: function(params, success, error) {
      return Seed.findComments(_.extend({id: this.id}, params), success, error);
    },
    unfollow: function(params, success, error) {
      return Seed.unfollow(_.extend({id: this.id}, params), success, error);
    }
{'fraction_non_alphanumeric': 0.1663902708678828, 'fraction_numerical': 0.0, 'mean_word_length': 2.1717791411042944, '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': '2945795', 'n_tokens_mistral': 1204, 'n_tokens_neox': 1194, 'n_words': 254}