<commit_before>const XmlBuilder = require('xml2js').Builder;
const url = require('url');


const build = function(feedmetadata, items, destination){
  var builder = new XmlBuilder({
    rootName: 'feed',
    xmldec: {
      encoding: 'utf-8',
      standalone: false
    }
  });
  return builder.buildObject(feeddata(feedmetadata, items, destination));
};


const feeddata = function(metadata, items, feedfile){
  var feed = { '$': { xmlns: 'http://www.w3.org/2005/Atom' } };

  if(metadata.url){<commit_msg>Changes functions to arrow functions<commit_after>const XmlBuilder = require('xml2js').Builder;
const url = require('url');


const build = (feedmetadata, items, destination) => {
  var builder = new XmlBuilder({
    rootName: 'feed',
    xmldec: {
      encoding: 'utf-8',
      standalone: false
    }
  });
  return builder.buildObject(feeddata(feedmetadata, items, destination));
};


const feeddata = (metadata, items, feedfile) => {
  var feed = { '$': { xmlns: 'http://www.w3.org/2005/Atom' } };

  if(metadata.url){
{'fraction_non_alphanumeric': 0.16100872938894278, 'fraction_numerical': 0.013579049466537343, 'mean_word_length': 3.9855072463768115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '7074984', 'n_tokens_mistral': 343, 'n_tokens_neox': 324, 'n_words': 75}