<commit_before>var latest = require('latest-tweets')
var Feed = require('feed')

module.exports = function (username, cb, rssFormat) {

  rssFormat = rssFormat || 'rss-2.0'

  var url = 'https://twitter.com/' + username

  latest(username, function (err, tweets) {
    if (err) {
      cb(err)
    } else {
      var feed = new Feed({
        title: username + ' Twitter feed',
        description: 'A generated feed of the tweets from ' + username,
        link: url,
        image: '???',

        author: {
          name: '???',
          email: '',
          link: url
        }
      })

      tweets.forEach(function (item) {
        if (!item.content) {
          return
        }
        var title = item.content
        if (item.retweet) {
          title = '[RT ' + item.username + '] ' + title<commit_msg>Fixed RSS validation error reported by https://validator.w3.org/feed/ .  "???" isn't a valid URL.<commit_after>var latest = require('latest-tweets')
var Feed = require('feed')

module.exports = function (username, cb, rssFormat) {

  rssFormat = rssFormat || 'rss-2.0'

  var url = 'https://twitter.com/' + username

  latest(username, function (err, tweets) {
    if (err) {
      cb(err)
    } else {
      var feed = new Feed({
        title: username + ' Twitter feed',
        description: 'A generated feed of the tweets from ' + username,
        link: url,

        author: {
          name: '???',
          email: '',
          link: url
        }
      })

      tweets.forEach(function (item) {
        if (!item.content) {
          return
        }
        var title = item.content
        if (item.retweet) {
          title = '[RT ' + item.username + '] ' + title
{'fraction_non_alphanumeric': 0.14268867924528303, 'fraction_numerical': 0.00294811320754717, 'mean_word_length': 1.9058219178082192, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6655598', 'n_tokens_mistral': 529, 'n_tokens_neox': 506, 'n_words': 138}