<commit_before>package edu.kit.iks.Cryptographics.Caesar;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;

import edu.kit.iks.Cryptographics.Caesar.Demonstration.CipherDemoController;
import edu.kit.iks.Cryptographics.Caesar.Demonstration.IntroductionController;
import edu.kit.iks.Cryptographics.Caesar.Experiment.CryptoController;
import edu.kit.iks.Cryptographics.Caesar.Experiment.HistogramController;
import edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo;
import edu.kit.iks.CryptographicsLib.InformationController;
import edu.kit.iks.CryptographicsLib.VisualizationDifficulty;

/**
 * @author <NAME>.
 * 
 */
public class CaesarVisualizationInfo extends AbstractVisualizationInfo {

	/**
	 * Caesar root element from the xml file.
	 */
	private Element caesarResources;

	/**
	 * Constructor for the visualizationInfo.
	 */
	public CaesarVisualizationInfo() {
		SAXBuilder saxBuilder = new SAXBuilder();

		// obtain file object
		File file = new File(
				"./resources/caesar/CaesarResources.xml");

		try {
			// converted file to document object
			Document document = saxBuilder.build(file);

			// get root node from xml
			this.caesarResources = document.getRootElement();
		} catch (JDOMException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	/*
	 * @see edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getId()
	 */
	public String getId() {
		return "caesar";
	}

	/*
	 * @see edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getName()
	 */
	public String getName() {
		return "Caesar";
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getDescription()
	 */
	public String getDescription() {
		return null;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getTimelineOffset
	 * ()
	 */
	public float getTimelineOffset() {
		return 0.0f;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getDifficulty()
	 */
	public VisualizationDifficulty getDifficulty() {
		return VisualizationDifficulty.EASY;
	}

	/*
	 * @see edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getYear()
	 */
	public int getYear() {
		// when getYear() negative then it's the year B.C.
		// The year is an estimation!!!
		return -70;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getControllerClasses
	 * ()
	 */
	public List<Class> getControllerClasses() {
		List<Class> controllerClasses = new ArrayList<Class>();

		controllerClasses.add(IntroductionController.class);
		controllerClasses.add(CipherDemoController.class);
		controllerClasses.add(CryptoController.class);
		controllerClasses.add(HistogramController.class);
		controllerClasses.add(InformationController.class);

		return controllerClasses;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getQRCodeContent
	 * ()
	 */
	@Override
	public String getQRCodeContent() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @return the resources
	 */
	public Element getResources() {
		return caesarResources;
	}

	/**
	 * @param resources the resources to set
	 */
	public void setResources(Element caesarResources) {
		this.caesarResources = caesarResources;
	}

}<commit_msg>~ Changed timelineOffset to meaningful value in Caesar<commit_after>package edu.kit.iks.Cryptographics.Caesar;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.jdom2.Document;
import org.jdom2.Element;
import org.jdom2.JDOMException;
import org.jdom2.input.SAXBuilder;

import edu.kit.iks.Cryptographics.Caesar.Demonstration.CipherDemoController;
import edu.kit.iks.Cryptographics.Caesar.Demonstration.IntroductionController;
import edu.kit.iks.Cryptographics.Caesar.Experiment.CryptoController;
import edu.kit.iks.Cryptographics.Caesar.Experiment.HistogramController;
import edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo;
import edu.kit.iks.CryptographicsLib.InformationController;
import edu.kit.iks.CryptographicsLib.VisualizationDifficulty;

/**
 * @author <NAME>.
 * 
 */
public class CaesarVisualizationInfo extends AbstractVisualizationInfo {

	/**
	 * Caesar root element from the xml file.
	 */
	private Element caesarResources;

	/**
	 * Constructor for the visualizationInfo.
	 */
	public CaesarVisualizationInfo() {
		SAXBuilder saxBuilder = new SAXBuilder();

		// obtain file object
		File file = new File(
				"./resources/caesar/CaesarResources.xml");

		try {
			// converted file to document object
			Document document = saxBuilder.build(file);

			// get root node from xml
			this.caesarResources = document.getRootElement();
		} catch (JDOMException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	/*
	 * @see edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getId()
	 */
	public String getId() {
		return "caesar";
	}

	/*
	 * @see edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getName()
	 */
	public String getName() {
		return "Caesar";
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getDescription()
	 */
	public String getDescription() {
		return null;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getTimelineOffset
	 * ()
	 */
	public float getTimelineOffset() {
		return 0.01f;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getDifficulty()
	 */
	public VisualizationDifficulty getDifficulty() {
		return VisualizationDifficulty.EASY;
	}

	/*
	 * @see edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getYear()
	 */
	public int getYear() {
		// when getYear() negative then it's the year B.C.
		// The year is an estimation!!!
		return -70;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getControllerClasses
	 * ()
	 */
	public List<Class> getControllerClasses() {
		List<Class> controllerClasses = new ArrayList<Class>();

		controllerClasses.add(IntroductionController.class);
		controllerClasses.add(CipherDemoController.class);
		controllerClasses.add(CryptoController.class);
		controllerClasses.add(HistogramController.class);
		controllerClasses.add(InformationController.class);

		return controllerClasses;
	}

	/*
	 * @see
	 * edu.kit.iks.CryptographicsLib.AbstractVisualizationInfo#getQRCodeContent
	 * ()
	 */
	@Override
	public String getQRCodeContent() {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * @return the resources
	 */
	public Element getResources() {
		return caesarResources;
	}

	/**
	 * @param resources the resources to set
	 */
	public void setResources(Element caesarResources) {
		this.caesarResources = caesarResources;
	}

}
{'fraction_non_alphanumeric': 0.11368152143059893, 'fraction_numerical': 0.0024127164348566564, 'mean_word_length': 4.266816143497758, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '5760505', 'n_tokens_mistral': 2459, 'n_tokens_neox': 2158, 'n_words': 411}