<commit_before>var path = require("path"),
	cheerio = require("cheerio"),
	through = require("through2"),
	gutil = require("gulp-util"),
	File = gutil.File;
/**
 * Extracts HTML, JS and optionally CSS into separate files in a fiddle folder
 * and generates an embed json config file
 */
module.exports = function(options) {

	var replaceSrc = function ($) {
		var attr = this.name === "script" ? "src" : "href",
			src = $(this).attr(attr);
		if (src && src.indexOf("../../../../") !== -1) {
			src = src.replace("../../../../", options.liveUrl + "/" + options.version + "/");
		}<commit_msg>Sample resources path correction for fiddle - no version needed.<commit_after>var path = require("path"),
	cheerio = require("cheerio"),
	through = require("through2"),
	gutil = require("gulp-util"),
	File = gutil.File;
/**
 * Extracts HTML, JS and optionally CSS into separate files in a fiddle folder
 * and generates an embed json config file
 */
module.exports = function(options) {

	var replaceSrc = function ($) {
		var attr = this.name === "script" ? "src" : "href",
			src = $(this).attr(attr);
		if (src && src.indexOf("../../../../") !== -1) {
			src = src.replace("../../../../", options.liveUrl + "/");
		}
{'fraction_non_alphanumeric': 0.2097440132122213, 'fraction_numerical': 0.0033030553261767133, 'mean_word_length': 3.267605633802817, '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': '7118709', 'n_tokens_mistral': 394, 'n_tokens_neox': 369, 'n_words': 111}