<commit_before>package org.javarosa.formmanager.view.chatterbox.widget;

import de.enough.polish.ui.Container;
import de.enough.polish.ui.Item;
import de.enough.polish.ui.StringItem;

public class WidgetEscapeComponent implements IWidgetComponentWrapper {
	private StringItem nextItem;
	
	public WidgetEscapeComponent() {
		//#style button
		 nextItem = new StringItem(null,"Done",Item.BUTTON);
	}

	public void init() {
	}
	
	public Item wrapEntryWidget(Item i) {
		//#if chatterbox.selectmulti.nextbutton
		Container c = new Container(false);
			
		c.add(i);
		c.add(this.nextItem);
		i = (Item)c;
		//#endif
		
		return i;
	}

	public Item wrapInteractiveWidget(Item interactiveWidget) {
		Item i = interactiveWidget;
		//#if chatterbox.selectmulti.nextbutton<commit_msg>[r2196] Added temporary swahili language hack.<commit_after>package org.javarosa.formmanager.view.chatterbox.widget;

import de.enough.polish.ui.Container;
import de.enough.polish.ui.Item;
import de.enough.polish.ui.StringItem;

public class WidgetEscapeComponent implements IWidgetComponentWrapper {
	private StringItem nextItem;
	
	public WidgetEscapeComponent() {
		
		//#if commcare.lang.sw
		//#style button
		 nextItem = new StringItem(null,"Endelea",Item.BUTTON);
	    //#else
		//#style button
		 nextItem = new StringItem(null,"Done",Item.BUTTON);
		 //#endif
		 
	}

	public void init() {
	}
	
	public Item wrapEntryWidget(Item i) {
		//#if chatterbox.selectmulti.nextbutton
		Container c = new Container(false);
			
		c.add(i);
		c.add(this.nextItem);
		i = (Item)c;
		//#endif
		
		return i;
	}

	public Item wrapInteractiveWidget(Item interactiveWidget) {
		Item i = interactiveWidget;
		//#if chatterbox.selectmulti.nextbutton
{'fraction_non_alphanumeric': 0.11551925320886815, 'fraction_numerical': 0.002333722287047841, 'mean_word_length': 4.134730538922156, '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': '2283464', 'n_tokens_mistral': 621, 'n_tokens_neox': 553, 'n_words': 117}