<commit_before>function checkSingular(num, unit){
  var singular = {
    years:'year',
    minutes:'minute',
    hours:'hour',
    days:'day',
    months:'month',
    weeks:'week'
  };
  if(num===1){
    return singular[unit];
  }
  return unit;
}

function location(loc){
  if(loc){
    return ' in '+loc;
  }
  return '';
}
function eventDetail(inviteType,talkType,eventName,eventLocation,travelType){
  var invite = {
    invited:'invited',
    cfp:'selected from CFP',
    sponsored:'sponsored'
  };
  var type = {
    talk:'to speak',
    panel:'to be on a panel',
    workshop:'to give a workshop'
  };
  var type2 ={
    talk:'I gave a talk',
    panel:'I was on a panel',
    workshop:'I run a workshop'
  };
   var type3 ={
    talk:' to give a talk',
    panel:' to be on a panel',
    workshop:' to run a workshop'
  };
  if(inviteType && talkType && eventName){
    return 'I was ' +invite[inviteType]+' '+ type[talkType] +' at '+ eventName + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(!inviteType && talkType&& eventName){
    return  type2[talkType]+' at '+ eventName + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(!inviteType && !talkType && eventName){
    return travelDistance(travelType, true)+' to speak at ' + eventName + location(eventLocation)+'.';
  }else if(!inviteType && talkType && !eventName && travelType){
    return travelDistance(travelType, false, true) + type3[talkType]+ location(eventLocation) +'.';
  }else if(!inviteType && talkType && !eventName && !travelType){
    return type2[talkType]+ location(eventLocation) +'.';
  }else if(inviteType && talkType && !eventName){
    return 'I was '+invite[inviteType]+'  '+type[talkType] + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(inviteType && !talkType && !eventName){
    return 'I was '+invite[inviteType]+' to speak' + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(inviteType && !talkType && eventName){
    return 'I was '+invite[inviteType]+' to speak at ' + eventName + location(eventLocation)+travelDistance(travelType)+'.';
  }else{
    return '';
  }

}

function travelDistance(travelType, separateSentence, separateSentence2){
  var type ={
    international:', so I made an international trip to speak',
    domestic:', so I made a domestic travel to speak',
    local:'. This was a local event'
  };
  var type2 ={
    international:' I made an international trip to speak',
    domestic:' I made a domestic travel to speak',
    local:' I attended a local event'
  };
  var type3 ={
    international:'I made an international trip',
    domestic:'I made a domestic travel',
    local:'I attended a local event'
  };
  if(travelType && separateSentence){
    return type2[travelType];
  }else if(travelType && separateSentence2){
    return type3[travelType];
  }else if(travelType){
    return type[travelType];
  }
  return'';
}

function speakerBenefits(ticketType, fee, currency){
  var ticket ={
    free: 'The event gave me free ticket',<commit_msg>Edited travel grammar<commit_after>function checkSingular(num, unit){
  var singular = {
    years:'year',
    minutes:'minute',
    hours:'hour',
    days:'day',
    months:'month',
    weeks:'week'
  };
  if(num===1){
    return singular[unit];
  }
  return unit;
}

function location(loc){
  if(loc){
    return ' in '+loc;
  }
  return '';
}
function eventDetail(inviteType,talkType,eventName,eventLocation,travelType){
  var invite = {
    invited:'invited',
    cfp:'selected from CFP',
    sponsored:'sponsored'
  };
  var type = {
    talk:'to speak',
    panel:'to be on a panel',
    workshop:'to give a workshop'
  };
  var type2 ={
    talk:'I gave a talk',
    panel:'I was on a panel',
    workshop:'I run a workshop'
  };
   var type3 ={
    talk:' to give a talk',
    panel:' to be on a panel',
    workshop:' to run a workshop'
  };
  if(inviteType && talkType && eventName){
    return 'I was ' +invite[inviteType]+' '+ type[talkType] +' at '+ eventName + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(!inviteType && talkType&& eventName){
    return  type2[talkType]+' at '+ eventName + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(!inviteType && !talkType && eventName){
    return travelDistance(travelType, true)+' to speak at ' + eventName + location(eventLocation)+'.';
  }else if(!inviteType && talkType && !eventName && travelType){
    return travelDistance(travelType, false, true) + type3[talkType]+ location(eventLocation) +'.';
  }else if(!inviteType && talkType && !eventName && !travelType){
    return type2[talkType]+ location(eventLocation) +'.';
  }else if(inviteType && talkType && !eventName){
    return 'I was '+invite[inviteType]+'  '+type[talkType] + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(inviteType && !talkType && !eventName){
    return 'I was '+invite[inviteType]+' to speak' + location(eventLocation)+travelDistance(travelType)+'.';
  }else if(inviteType && !talkType && eventName){
    return 'I was '+invite[inviteType]+' to speak at ' + eventName + location(eventLocation)+travelDistance(travelType)+'.';
  }else{
    return '';
  }

}

function travelDistance(travelType, separateSentence, separateSentence2){
  var type ={
    international:', so I travelled internationally to speak',
    domestic:', so I travelled domestically to speak',
    local:'. This was a local event'
  };
  var type2 ={
    international:' I travelled internationally to speak',
    domestic:' I travelled domestically to speak',
    local:' I attended a local event'
  };
  var type3 ={
    international:'I travelled internationally',
    domestic:'I travelled domestically',
    local:'I attended a local event'
  };
  if(travelType && separateSentence){
    return type2[travelType];
  }else if(travelType && separateSentence2){
    return type3[travelType];
  }else if(travelType){
    return type[travelType];
  }
  return'';
}

function speakerBenefits(ticketType, fee, currency){
  var ticket ={
    free: 'The event gave me free ticket',
{'fraction_non_alphanumeric': 0.1479901558654635, 'fraction_numerical': 0.003937653814602133, 'mean_word_length': 4.2058070025619125, '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': '1236777', 'n_tokens_mistral': 1944, 'n_tokens_neox': 1896, 'n_words': 515}