<commit_before>define(['jquery'], function ($) {
  'use strict';

  var $body = $('body'),
    cta;

  // Pull page specific JSON from script block in DOM
  cta = JSON.parse($('#block-cta').text());

  function attachToCTA() {
    var frag = document.createDocumentFragment();

    for (var i = 0; i < cta.length; ++i) {
      var item = createCTA({
        "title": cta[i].title,
        "desc": cta[i].desc,
        "image": cta[i].image,
        "url": cta[i].url
      });

      $('.make-wrapper').append(item);
    }
  }

  function createCTA(itemObj) {
    var title = itemObj.title,
      desc = itemObj.desc,
      image = itemObj.image,
      url = itemObj.url;

    var $make_item_template = $('<div class="make-footer-item">');
    var $div = $('<div class="make-footer-item-text">');

    var $img = $('<img class="make-footer-item-img">');
    $img.attr('src', image);

    var $a = $('<a>');
    $a.attr('href', url);

    var $title_span = $('<span class="make-footer-item-title">');
    $title_span.text(title);

    var $desc_span = $('<span class="make-footer-item-desc">');
    $desc_span.text(desc);

    $div.append($title_span);
    $div.append($desc_span);

    $a.append($img);
    $a.append($div);

    $make_item_template.append($a);

    return $make_item_template;
  }

  return {
    attachToCTA: attachToCTA
  };<commit_msg>bug929503 - Characters double escaping<commit_after>define(['jquery'], function ($) {
  'use strict';

  var $body = $('body'),
    cta;

  // Pull page specific JSON from script block in DOM
  cta = JSON.parse($('#block-cta').text());

  function attachToCTA() {
    var frag = document.createDocumentFragment();

    for (var i = 0; i < cta.length; ++i) {
      var item = createCTA({
        "title": cta[i].title,
        "desc": cta[i].desc,
        "image": cta[i].image,
        "url": cta[i].url
      });

      $('.make-wrapper').append(item);
    }
  }

  function createCTA(itemObj) {
    var title = itemObj.title,
      desc = itemObj.desc,
      image = itemObj.image,
      url = itemObj.url;

    var $make_item_template = $('<div class="make-footer-item">');
    var $div = $('<div class="make-footer-item-text">');

    var $img = $('<img class="make-footer-item-img">');
    $img.attr('src', image);

    var $a = $('<a>');
    $a.attr('href', url);

    var $title_span = $('<span class="make-footer-item-title">');
    $title_span.html(title);

    var $desc_span = $('<span class="make-footer-item-desc">');
    $desc_span.html(desc);

    $div.append($title_span);
    $div.append($desc_span);

    $a.append($img);
    $a.append($div);

    $make_item_template.append($a);

    return $make_item_template;
  }

  return {
    attachToCTA: attachToCTA
  };
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.0029250457038391227, 'mean_word_length': 2.842696629213483, 'pattern_counts': {'":': 8, '<': 17, '<?xml version=': 0, '>': 15, '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': '2843400', 'n_tokens_mistral': 999, 'n_tokens_neox': 958, 'n_words': 189}