<commit_before>(function(d3, fc) {
    'use strict';

    var data = [
        fc.dataGenerator().startDate(new Date(2014, 1, 1))(50),
        fc.dataGenerator().startDate(new Date(2013, 12, 15))(50)
    ];

    var percentageChange = fc.indicators.algorithms.percentageChange()
        .value(function(d) { return d.close; });
    data.forEach(function(d) {
        d3.zip(d, percentageChange(d))
            .forEach(function(tuple) {
                tuple[0].percentageChange = tuple[1];
            });
    });

    var width = 600, height = 250;

    var container = d3.select('#comparison')
        .append('svg')
        .attr('width', width)
        .attr('height', height);

    // Create scale for x axis
    var dateScale = fc.scale.dateTime()
        .domain(fc.utilities.extent(data, 'date'))
        .range([0, width])
        .nice();

    // Create scale for y axis
    var priceScale = d3.scale.linear()<commit_msg>Fix comparison visual test - update namespace for percentage change algorithm<commit_after>(function(d3, fc) {
    'use strict';

    var data = [
        fc.dataGenerator().startDate(new Date(2014, 1, 1))(50),
        fc.dataGenerator().startDate(new Date(2013, 12, 15))(50)
    ];

    var percentageChange = fc.indicators.algorithms.calculators.percentageChange()
        .value(function(d) { return d.close; });
    data.forEach(function(d) {
        d3.zip(d, percentageChange(d))
            .forEach(function(tuple) {
                tuple[0].percentageChange = tuple[1];
            });
    });

    var width = 600, height = 250;

    var container = d3.select('#comparison')
        .append('svg')
        .attr('width', width)
        .attr('height', height);

    // Create scale for x axis
    var dateScale = fc.scale.dateTime()
        .domain(fc.utilities.extent(data, 'date'))
        .range([0, width])
        .nice();

    // Create scale for y axis
    var priceScale = d3.scale.linear()
{'fraction_non_alphanumeric': 0.15360824742268042, 'fraction_numerical': 0.031958762886597936, 'mean_word_length': 2.363951473136915, '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': '6714861', 'n_tokens_mistral': 655, 'n_tokens_neox': 594, 'n_words': 128}