<commit_before>package io.github.kewne.spring_birt;

import org.eclipse.birt.report.engine.content.IImageContent;
import org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter;

import java.io.IOException;

public class HtmlWithEmbeddedSvgReportEmitter extends HTMLReportEmitter {

    @Override
    protected void outputSVGImage(IImageContent image, StringBuffer styleBuffer, int display) {
        try {
            out.write(image.getData());
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}<commit_msg>Fixed issue that caused image to be positioned incorrectly.<commit_after>package io.github.kewne.spring_birt;

import org.eclipse.birt.report.engine.content.IImageContent;
import org.eclipse.birt.report.engine.emitter.html.HTMLReportEmitter;

import java.nio.charset.StandardCharsets;

public class HtmlWithEmbeddedSvgReportEmitter extends HTMLReportEmitter {

    @Override
    protected void outputSVGImage(IImageContent image, StringBuffer styleBuffer, int display) {
        writer.cdata(new String(image.getData(), StandardCharsets.UTF_8));
    }
}
{'fraction_non_alphanumeric': 0.08723021582733813, 'fraction_numerical': 0.0008992805755395684, 'mean_word_length': 4.429268292682927, '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': '3112956', 'n_tokens_mistral': 322, 'n_tokens_neox': 316, 'n_words': 63}