<commit_before>package searchMode;

import java.util.Set;

import org.terasology.codecity.world.map.CodeMap;
import org.terasology.codecity.world.map.CodeMapFactory;
import org.terasology.codecity.world.map.DrawableCodeClass;
import org.terasology.codecity.world.map.DrawableCodePackage;
import org.terasology.codecity.world.map.DrawableCodeVisitor;
import org.terasology.codecity.world.map.MapObject;
import org.terasology.codecity.world.structure.scale.CodeScale;
import org.terasology.codecity.world.structure.scale.SquareRootCodeScale;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.logic.console.Console;
import org.terasology.math.geom.Vector3i;
import org.terasology.registry.In;

@RegisterSystem
public class DrawableCodeSearchVisitor implements DrawableCodeVisitor{
	private int totalY;
	private int totalX;
	private int totalZ;
	private CodeScale codeScale;
	private CodeMapFactory codeMapFactory;
	private String query;
	private boolean resultReady;
	
	public DrawableCodeSearchVisitor(String className){
		codeScale = new SquareRootCodeScale();                                                  
		codeMapFactory = new CodeMapFactory(codeScale);
		query = className;
		totalX = 0;
		totalY = 0;
		totalZ = 0;
		resultReady = false;
	}
	
	@Override
	public void visit(DrawableCodeClass code) {
		//intentionally blank.
	}

	@Override
	public void visit(DrawableCodePackage code) {
		CodeMap map = code.getSubmap(codeScale, codeMapFactory);
		Set<MapObject> mapObjects = map.getPosMapObjects();<commit_msg>Fixed problem with teleport height<commit_after>package searchMode;

import java.util.Set;

import org.terasology.codecity.world.map.CodeMap;
import org.terasology.codecity.world.map.CodeMapFactory;
import org.terasology.codecity.world.map.DrawableCodeClass;
import org.terasology.codecity.world.map.DrawableCodePackage;
import org.terasology.codecity.world.map.DrawableCodeVisitor;
import org.terasology.codecity.world.map.MapObject;
import org.terasology.codecity.world.structure.scale.CodeScale;
import org.terasology.codecity.world.structure.scale.HalfLinearCodeScale;
import org.terasology.codecity.world.structure.scale.SquareRootCodeScale;
import org.terasology.entitySystem.entity.EntityRef;
import org.terasology.entitySystem.systems.RegisterSystem;
import org.terasology.logic.console.Console;
import org.terasology.math.geom.Vector3i;
import org.terasology.registry.In;

@RegisterSystem
public class DrawableCodeSearchVisitor implements DrawableCodeVisitor{
	private int totalY;
	private int totalX;
	private int totalZ;
	private CodeScale codeScale;
	private CodeMapFactory codeMapFactory;
	private String query;
	private boolean resultReady;
	
	public DrawableCodeSearchVisitor(String className){
		codeScale = new HalfLinearCodeScale();                                                  
		codeMapFactory = new CodeMapFactory(codeScale);
		query = className;
		totalX = 0;
		totalY = 0;
		totalZ = 0;
		resultReady = false;
	}
	
	@Override
	public void visit(DrawableCodeClass code) {
		//intentionally blank.
	}

	@Override
	public void visit(DrawableCodePackage code) {
		CodeMap map = code.getSubmap(codeScale, codeMapFactory);
		Set<MapObject> mapObjects = map.getPosMapObjects();
{'fraction_non_alphanumeric': 0.08517732646256441, 'fraction_numerical': 0.002424977265838133, 'mean_word_length': 5.03290676416819, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2016693', 'n_tokens_mistral': 1023, 'n_tokens_neox': 989, 'n_words': 195}