<commit_before>/*  Youtube Extension
    ^http://www.youtube.com/watch?v=0mmx68VmTEo  ->
    <iframe  src=\"//www.youtube.com/embed/0mmx68VmTEo?rel=0\"\nframeborder=\"0\" allowfullscreen></iframe>
*/

(function() {
  var youtube = function(converter) {
    return [
      {
        type: 'lang',
        regex: '\\^\\^([\\S]+)',
        replace: function(match, url) {
          var m, video_id, youtube;
          youtube = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
          if (youtube.test(url)) {
            m = url.match(youtube);
            if (m && m[7].length === 11) {
              video_id = m[7];
              return "<iframe  src=\"//www.youtube.com/embed/" + video_id + "?rel=0\"\nframeborder=\"0\" allowfullscreen></iframe>";
            } else {
              return match;
            }
          } else {
            return match;
          }
        }
      }
    ];
  };

  // Client-side export
  if (typeof window !== 'undefined' && window.Showdown && window.Showdown.extensions) { window.Showdown.extensions.twitter = youtube; }
  // Server-side export
  if (typeof module !== 'undefined') module.exports = youtube;

}());<commit_msg>fix: fix for wrong extension name<commit_after>/*  Youtube Extension
    ^http://www.youtube.com/watch?v=0mmx68VmTEo  ->
    <iframe  src=\"//www.youtube.com/embed/0mmx68VmTEo?rel=0\"\nframeborder=\"0\" allowfullscreen></iframe>
*/

(function() {
  var youtube = function(converter) {
    return [
      {
        type: 'lang',
        regex: '\\^\\^([\\S]+)',
        replace: function(match, url) {
          var m, video_id, youtube;
          youtube = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/;
          if (youtube.test(url)) {
            m = url.match(youtube);
            if (m && m[7].length === 11) {
              video_id = m[7];
              return "<iframe  src=\"//www.youtube.com/embed/" + video_id + "?rel=0\"\nframeborder=\"0\" allowfullscreen></iframe>";
            } else {
              return match;
            }
          } else {
            return match;
          }
        }
      }
    ];
  };

  // Client-side export
  if (typeof window !== 'undefined' && window.Showdown && window.Showdown.extensions) { 
      window.Showdown.extensions.youtube = youtube;
  }
  // Server-side export
  if (typeof module !== 'undefined') module.exports = youtube;

}());
{'fraction_non_alphanumeric': 0.20824742268041238, 'fraction_numerical': 0.01154639175257732, 'mean_word_length': 1.9123649459783914, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '4960668', 'n_tokens_mistral': 842, 'n_tokens_neox': 800, 'n_words': 135}