<commit_before>package de.tudresden.slr.model.bibtex.ui.presentation;

import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.IReusableEditor;
import org.eclipse.ui.PartInitException;

import de.tudresden.slr.model.bibtex.ui.presentation.serialization.DocumentStorageEditorInput;

public class BibtexOverviewEditor extends BibtexEditor implements
		IReusableEditor {
	public static final String ID = "bibtex.presentation.BibtexOverviewEditor";
	public static final String name = "Bibtex Overview";
	private boolean init;

	public BibtexOverviewEditor() {
		super();
		init = true;
	}

	/**
	 * The <code>MultiPageEditorExample</code> implementation of this method
	 * checks that the input is an instance of <code>IFileEditorInput</code>.
	 */
	public void init(IEditorSite site, IEditorInput editorInput)
			throws PartInitException {
		super.init(site, editorInput);
		this.setPartName(name);
		init = false;
	}

	/*
	 * public void setFocus() { new BibtexOpenListener(BibtexEditor.ID,
	 * IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID) .openEditor(new
	 * StructuredSelection(this.document), true); }
	 */
	public void setInput(IEditorInput input) {
		super.setInput(input);
		if (!init && input instanceof DocumentStorageEditorInput) {
			extractDocument(input);
			this.setPartName(name);
			int page = this.getActivePage();
			for (int i = this.getPageCount() - 1; i >= 0; i--) {
				this.removePage(i);
			}
			this.createPages();
			this.setActivePage(page);
		}
	}
	
	protected void createPages(){
		createAbstractPage();
	}
}<commit_msg>Fix plugin id's<commit_after>package de.tudresden.slr.model.bibtex.ui.presentation;

import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;
import org.eclipse.ui.IReusableEditor;
import org.eclipse.ui.PartInitException;

import de.tudresden.slr.model.bibtex.ui.presentation.serialization.DocumentStorageEditorInput;

public class BibtexOverviewEditor extends BibtexEditor implements
		IReusableEditor {
	public static final String ID = "de.tudresden.slr.model.bibtex.presentation.BibtexOverviewEditor";
	public static final String name = "Bibtex Overview";
	private boolean init;

	public BibtexOverviewEditor() {
		super();
		init = true;
	}

	/**
	 * The <code>MultiPageEditorExample</code> implementation of this method
	 * checks that the input is an instance of <code>IFileEditorInput</code>.
	 */
	@Override
	public void init(IEditorSite site, IEditorInput editorInput)
			throws PartInitException {
		super.init(site, editorInput);
		this.setPartName(name);
		init = false;
	}

	/*
	 * public void setFocus() { new BibtexOpenListener(BibtexEditor.ID,
	 * IWorkbenchPage.MATCH_INPUT | IWorkbenchPage.MATCH_ID) .openEditor(new
	 * StructuredSelection(this.document), true); }
	 */
	@Override
	public void setInput(IEditorInput input) {
		super.setInput(input);
		if (!init && input instanceof DocumentStorageEditorInput) {
			extractDocument(input);
			this.setPartName(name);
			int page = this.getActivePage();
			for (int i = this.getPageCount() - 1; i >= 0; i--) {
				this.removePage(i);
			}
			this.createPages();
			this.setActivePage(page);
		}
	}

	@Override
	protected void createPages() {
		createAbstractPage();
	}
}
{'fraction_non_alphanumeric': 0.11227637260950031, 'fraction_numerical': 0.0012338062924120913, 'mean_word_length': 4.739823008849558, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '2568117', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1003, 'n_words': 221}