<commit_before>package de.theunknownxy.mcdocs.gui.document.render

import org.lwjgl.opengl.GL11
import de.theunknownxy.mcdocs.docs.HeadingElement
import net.minecraft.client.Minecraft

public class HeadingBlock(val heading: HeadingElement) : Block() {
    private val base_height = 9f
    private fun font_height(): Float = heading_scale() * base_height
    private fun heading_scale(): Float = -0.15f * heading.level + 1.5f

    override var height: Float
        private set(v: Float) {
        }
        get() {
            return font_height()
        }

    override fun draw(x: Float, y: Float, z: Float) {
        GL11.glPushMatrix()
        GL11.glTranslatef(x, y, z)

        // TODO: Scale heading depending on level
        GL11.glScalef(heading_scale(), heading_scale(), 1f)
        val mc = Minecraft.getMinecraft().fontRenderer
        mc.drawString("§n" + heading.text, 0, 0, 0xFFFFFF)

        GL11.glPopMatrix()
    }
}<commit_msg>Removed old todo<commit_after>package de.theunknownxy.mcdocs.gui.document.render

import org.lwjgl.opengl.GL11
import de.theunknownxy.mcdocs.docs.HeadingElement
import net.minecraft.client.Minecraft

public class HeadingBlock(val heading: HeadingElement) : Block() {
    private val base_height = 9f
    private fun font_height(): Float = heading_scale() * base_height
    private fun heading_scale(): Float = -0.15f * heading.level + 1.5f

    override var height: Float
        private set(v: Float) {
        }
        get() {
            return font_height()
        }

    override fun draw(x: Float, y: Float, z: Float) {
        GL11.glPushMatrix()
        GL11.glTranslatef(x, y, z)

        GL11.glScalef(heading_scale(), heading_scale(), 1f)
        val mc = Minecraft.getMinecraft().fontRenderer
        mc.drawString("§n" + heading.text, 0, 0, 0xFFFFFF)

        GL11.glPopMatrix()
    }
}
{'fraction_non_alphanumeric': 0.11087074094104922, 'fraction_numerical': 0.02163331530557058, 'mean_word_length': 2.8541666666666665, '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': '1795220', 'n_tokens_mistral': 635, 'n_tokens_neox': 598, 'n_words': 138}