<commit_before># @Author: <NAME>
# @Date:   2015-05-31 15:08:28
# @Last Modified by:   <NAME>
# @Last Modified time: 2015-08-15 15:41:53

require_relative '../graphics/string'
require_relative '../data/data_set'
require_relative '../data/data_series'
require_relative '../graphics/color_legend'

# Simple data output for the terminal visualization
class DataOutput

    # reverses the data to print it in the correct occurence
    def self.print_dataset(data_series, index, meta_data, with_extreme_values)

        data_set = data_series.series[index]
        legend = ColorLegend.new(data_series.min_value, data_series.max_value)
        print_output_head(index, meta_data)

        print_data(data_set, legend, meta_data, with_extreme_values)

    end

    def self.print_delta(data_set, meta_data, indices, with_extreme_values)
        legend = ColorLegend.new(data_set.min_value, data_set.max_value)
        puts "Printing delta for test.\n\n"
        print_data(data_set, legend, meta_data, with_extreme_values)
    end

    private

    def self.print_data(data_set, legend, meta_data, with_extreme_values)
        extreme_coordinates = {
            :maximum => Array.new(),
            :minimum => Array.new()
        }
<commit_msg>adjsted data_output<commit_after># @Author: <NAME>
# @Date:   2015-05-31 15:08:28
# @Last Modified by:   <NAME>
# @Last Modified time: 2015-08-17 10:07:31

require_relative '../graphics/string'
require_relative '../data/data_set'
require_relative '../data/data_series'
require_relative '../graphics/color_legend'

# Simple data output for the terminal visualization
class DataOutput

    # method to visualize the dataset at the index
    def self.print_dataset(data_series, index, meta_data, with_extreme_values)
        data_set = data_series.series[index]
        legend = ColorLegend.new(data_series.min_value, data_series.max_value)
        print_output_head(index, meta_data)

        print_data(data_set, legend, meta_data, with_extreme_values)

    end

    # method to visualize the difference of two datasets
    def self.print_delta(data_set, meta_data, indices, with_extreme_values)
        legend = ColorLegend.new(data_set.min_value, data_set.max_value)
        puts "Printing difference for datasets #{indices[0]} and " \
             "#{indices[0]}.\n\n"
        print_data(data_set, legend, meta_data, with_extreme_values)
    end

    private

    # reverses the data to print it in the correct occurence
    def self.print_data(data_set, legend, meta_data, with_extreme_values)
        extreme_coordinates = {
            :maximum => Array.new(),
            :minimum => Array.new()
        }

{'fraction_non_alphanumeric': 0.09841628959276018, 'fraction_numerical': 0.021870286576168928, 'mean_word_length': 3.481418918918919, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '808046', 'n_tokens_mistral': 887, 'n_tokens_neox': 825, 'n_words': 196}