<commit_before>'use strict'

const SynonymService = use('App/Services/SynonymService');

class SynonymController {
  async synonymize({request}) {
    let synonymService = new SynonymService;
    let text = request.get('text');

    synonymService.setFlags(request.get('flags'));
    return await synonymService.synonymize(text);
  }
}

module.exports = SynonymController
<commit_msg>Clean up, get->post<commit_after>'use strict'

const Logger = use('Logger');

const SynonymService = use('App/Services/SynonymService');

class SynonymController {
  async synonymize({request}) {
    let synonymService = new SynonymService;
    synonymService.setFlags(request.post().flags);
    return await synonymService.synonymize(request.post().text);
  }
}

module.exports = SynonymController

{'fraction_non_alphanumeric': 0.12132822477650064, 'fraction_numerical': 0.0, 'mean_word_length': 5.32258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3428486', 'n_tokens_mistral': 235, 'n_tokens_neox': 231, 'n_words': 46}