<commit_before>var request = require('request');

var prevUserName = '';
var userName = 'Beyonce';

module.exports = function ilyf (req, res, next) {

  // avoid infinite loop
  if (req.body.user_name !== 'slackbot' ) {
    
    prevUserName = req.body.user_name === userName ? prevUserName : userName;
    userName = req.body.user_name;

    var probability = Math.random();
    console.log('<ILYF Bot> Probability:', probability);
    
    if (probability > 0.98) {

      var botPayload = {
        username: 'kanye-west',<commit_msg>probability is an env var now<commit_after>var request = require('request');

var prevUserName = '';
var userName = 'Beyonce';

module.exports = function ilyf (req, res, next) {

  // avoid infinite loop
  if (req.body.user_name !== 'slackbot' ) {
    
    prevUserName = req.body.user_name === userName ? prevUserName : userName;
    userName = req.body.user_name;

    var probability = Math.random();
    console.log('<ILYF Bot> Probability:', probability);
    
    if (probability > process.env.ILTY_PROBABILITY) {

      var botPayload = {
        username: 'kanye-west',
{'fraction_non_alphanumeric': 0.13734290843806105, 'fraction_numerical': 0.0026929982046678637, 'mean_word_length': 3.305019305019305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3595873', 'n_tokens_mistral': 370, 'n_tokens_neox': 355, 'n_words': 86}