<commit_before>const request = require("request");
let n = 0;

setInterval(function() {
  var options = {
    method: 'POST',
    url: 'http://localhost:8000/auth/local',
    headers: {
      'postman-token': '<PASSWORD>',
      'cache-control': 'no-cache',
      'content-type': 'application/x-www-form-urlencoded'
    },
    form: {
      username: 'user',
      password: '<PASSWORD>'
    }
  };
  request(options, function(error, response, body) {
    if (error)
      throw new Error(error);
    n++;
    console.log(`#${n} - ${body}`);
  });
}, 30);<commit_msg>updated test-auth<commit_after>const request = require("request");
let n = 0;
let roles = ['admin','user'];

console.log(`Testing Auth...`);

setInterval(function() {
  var options = {
    method: 'POST',
    url: 'http://localhost:8000/auth/local',
    headers: {
      'postman-token': '<PASSWORD>',
      'cache-control': 'no-cache',
      'content-type': 'application/x-www-form-urlencoded'
    },
    form: {
      username: roles[Math.round(Math.random())],
      password: '<PASSWORD>'
    }
  };
  request(options, function(error, response, body) {
    if (error)
      throw new Error(error);
    // n++
    //console.log(`#${n} - ${body}`);
  });
}, 30);
{'fraction_non_alphanumeric': 0.20471161657189277, 'fraction_numerical': 0.011372867587327376, 'mean_word_length': 2.9361022364217253, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6147313', 'n_tokens_mistral': 423, 'n_tokens_neox': 415, 'n_words': 81}