<commit_before>define(function (require) {

  var Utils = require('./Utils'),
    Router = require('../Router'),
    Constants = require('constants/ResourceRequestConstants');

  return {
    close: function(params){
      var request = params.request;
      var newAttributes = {
        status: 7//params.status
      };

      request.set({status: 7});//newAttributes);
      console.log(request);
      request.save(newAttributes, {patch: true}).done(function(){
        console.log("closed it!");
        Utils.dispatch(Constants.UPDATE, {model: request});
      });
    },

    update: function (params) {<commit_msg>send through proper attributes, not hardcoded values<commit_after>define(function (require) {

  var Utils = require('./Utils'),
    Router = require('../Router'),
    Constants = require('constants/ResourceRequestConstants');

  return {
    close: function(params){
      var request = params.request;
      var newAttributes = {
        status: params.status
      };

      request.set(newAttributes);
      request.save(newAttributes, {patch: true}).done(function(){
        Utils.dispatch(Constants.UPDATE, {model: request});
      });
    },

    update: function (params) {
{'fraction_non_alphanumeric': 0.14867109634551495, 'fraction_numerical': 0.0016611295681063123, 'mean_word_length': 3.057239057239057, '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': '5444215', 'n_tokens_mistral': 332, 'n_tokens_neox': 316, 'n_words': 68}