<commit_before>/*
 * <NAME> Aug 18, 2009
 */

package net.colar.netbeans.fan.structure;

import java.util.Collections;
import java.util.Hashtable;
import java.util.Set;
import net.colar.netbeans.fan.FanLanguage;
import org.netbeans.modules.csl.api.ElementHandle;
import org.netbeans.modules.csl.api.ElementKind;
import org.netbeans.modules.csl.api.Modifier;
import org.netbeans.modules.csl.api.OffsetRange;
import org.netbeans.modules.csl.spi.ParserResult;
import org.openide.filesystems.FileObject;

/**
 * "Dummy" ElementHandle (used for Not-ast items such as keywords).
 * @author thibautc
 */
public class FanBasicElementHandle implements ElementHandle
{
	private String doc;

	private final String name;
	private final ElementKind kind;
	private FileObject fo;

	public FanBasicElementHandle(String name, ElementKind kind)
	{
		this.name=name;
		this.kind=kind;
	}


	public String getMimeType()
	{
		return FanLanguage.FAN_MIME_TYPE;
	}

	public ElementKind getKind()
	{
		return kind;
	}

	public String getName()
	{
		return name;
	}

	public FileObject getFileObject()
	{
		return fo;
	}

	public String getIn()
	{
		return null;
	}

	public Set<Modifier> getModifiers()
	{
		return Collections.EMPTY_SET;
	}

	public boolean signatureEquals(ElementHandle arg0)
	{
		return false;
	}

	public OffsetRange getOffsetRange(ParserResult arg0)
	{
		return OffsetRange.NONE;
	}

	public void setFo(FileObject fo)
	{
		this.fo = fo;
	}

	public void setDoc(String doc)
	{
		this.doc=doc;
	}
	public String getDoc()
	{
		return doc;
	}

<commit_msg>Generics and SuppressWarnings. Make sure we use emptySet() instead of EMPTY_SET<commit_after>/*
 * <NAME> Aug 18, 2009
 */

package net.colar.netbeans.fan.structure;

import java.util.Collections;
import java.util.Set;
import net.colar.netbeans.fan.FanLanguage;
import org.netbeans.modules.csl.api.ElementHandle;
import org.netbeans.modules.csl.api.ElementKind;
import org.netbeans.modules.csl.api.Modifier;
import org.netbeans.modules.csl.api.OffsetRange;
import org.netbeans.modules.csl.spi.ParserResult;
import org.openide.filesystems.FileObject;

/**
 * "Dummy" ElementHandle (used for Not-ast items such as keywords).
 * @author thibautc
 */
public class FanBasicElementHandle implements ElementHandle
{
	private String doc;

	private final String name;
	private final ElementKind kind;
	private FileObject fo;

	public FanBasicElementHandle(String name, ElementKind kind)
	{
		this.name=name;
		this.kind=kind;
	}


	public String getMimeType()
	{
		return FanLanguage.FAN_MIME_TYPE;
	}

	public ElementKind getKind()
	{
		return kind;
	}

	public String getName()
	{
		return name;
	}

	public FileObject getFileObject()
	{
		return fo;
	}

	public String getIn()
	{
		return null;
	}

	public Set<Modifier> getModifiers()
	{
		return Collections.emptySet();
	}

	public boolean signatureEquals(ElementHandle arg0)
	{
		return false;
	}

	public OffsetRange getOffsetRange(ParserResult arg0)
	{
		return OffsetRange.NONE;
	}

	public void setFo(FileObject fo)
	{
		this.fo = fo;
	}

	public void setDoc(String doc)
	{
		this.doc=doc;
	}
	public String getDoc()
	{
		return doc;
	}


{'fraction_non_alphanumeric': 0.10130614845492195, 'fraction_numerical': 0.005097164702134438, 'mean_word_length': 4.21594684385382, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3955504', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1080, 'n_words': 252}