<commit_before>package org.primefaces.material.component.icon;

import java.io.IOException;
import java.util.Arrays;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;

import org.primefaces.material.util.Strings;
import org.primefaces.renderkit.CoreRenderer;

public class IconRenderer extends CoreRenderer {
	public static final String RENDERER_TYPE = "org.primefaces.material.component.IconRenderer";
	<commit_msg>created helper method to render an icon<commit_after>package org.primefaces.material.component.icon;

import java.io.IOException;
import java.util.Arrays;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;

import org.primefaces.material.util.Strings;
import org.primefaces.renderkit.CoreRenderer;

public class IconRenderer extends CoreRenderer {
	public static final String RENDERER_TYPE = "org.primefaces.material.component.IconRenderer";
	
	public static void renderIcon(FacesContext context, String iconName) throws IOException{
		ResponseWriter writer = context.getResponseWriter();
		
		writer.startElement("i", null);
			writer.writeAttribute("class", iconName, null);
		writer.endElement("i");
	}
	
{'fraction_non_alphanumeric': 0.0932601880877743, 'fraction_numerical': 0.0, 'mean_word_length': 6.381502890173411, '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': '2144818', 'n_tokens_mistral': 360, 'n_tokens_neox': 352, 'n_words': 78}