<commit_before>const { authenticate } = require('feathers-authentication').hooks;
const requestEmail = require('../../hooks/send-request-email');
 const populate = require('feathers-populate-hook');
const accountService = require('../authManagement/authManagement.notifier')
 const acceptRequest = options => hook => {
   const query= hook.params
   console.log('query list', query)
   const data =hook.result
   switch(query.action){
     case 'accept':
    //  var updatedData = Object.assign({},data,{approved:true})
      // console.log('updated', updatedData)
      // delete updatedData.updatedAt;
      // delete updatedData.createdAt
     return hook.app.service('request').patch(data._id,{approved:true})
      .then(result => {
        hook.result = result<commit_msg>fixed request<commit_after>const { authenticate } = require('feathers-authentication').hooks;
const requestEmail = require('../../hooks/send-request-email');
 const populate = require('feathers-populate-hook');
const accountService = require('../authManagement/authManagement.notifier')
 const acceptRequest = options => hook => {
   const query= hook.params.query
   console.log('query list', query)
   const data =hook.result
   switch(query.action){
     case 'accept':
    //  var updatedData = Object.assign({},data,{approved:true})
      // console.log('updated', updatedData)
      // delete updatedData.updatedAt;
      // delete updatedData.createdAt
     return hook.app.service('request').patch(data._id,{approved:true})
      .then(result => {
        hook.result = result
{'fraction_non_alphanumeric': 0.15172855313700384, 'fraction_numerical': 0.0, 'mean_word_length': 3.8390092879256965, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7043156', 'n_tokens_mistral': 432, 'n_tokens_neox': 427, 'n_words': 84}