<commit_before>package de.fhpotsdam.unfolding.marker;

import java.util.HashMap;

import processing.core.PApplet;
import processing.core.PGraphics;
import processing.core.PVector;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.utils.StyleConstants;

/**
 * Simple marker, implementing only the main draw method.
 */

public class SimplePointMarker extends AbstractMarker {


	public float radius = 1f;

	public SimplePointMarker() {
		this(null, null);
	}

	public SimplePointMarker(Location location) {
		this(location, null);
	}

	public SimplePointMarker(Location location, HashMap<String, Object> properties) {
		super(location, properties);
	}

	public void draw(PGraphics pg, float x, float y) {
		pg.pushStyle();
		if (isSelected()) {
			pg.fill(highlightColor);
			pg.stroke(highlightStrokeColor);
		} else {
			pg.fill(color);
			pg.stroke(strokeColor);
		}
		pg.ellipse(x, y, radius, radius);// TODO use radius in km and convert to px
		pg.popStyle();
	}

	public void drawOuter(PGraphics pg, float x, float y) {

	}

	public boolean isInside(float checkX, float checkY, float x, float y) {
		PApplet.println("SimpleMarker.isInside(cx, cy, x, y)");
		PVector pos = new PVector(x, y);
		return pos.dist(new PVector(checkX, checkY)) < radius; // FIXME must be zoom dependent
	}

	public void setRadius(float radius) {
		this.radius = radius;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public void setStrokeColor(int strokeColor) {
		this.strokeColor = strokeColor;
	}

}
<commit_msg>SimplePointMarker draws via drawOuter<commit_after>package de.fhpotsdam.unfolding.marker;

import java.util.HashMap;

import processing.core.PApplet;
import processing.core.PGraphics;
import processing.core.PVector;
import de.fhpotsdam.unfolding.geo.Location;
import de.fhpotsdam.unfolding.utils.StyleConstants;

/**
 * Simple marker, implementing only the main draw method.
 */

public class SimplePointMarker extends AbstractMarker {


	public float radius = 1f;

	public SimplePointMarker() {
		this(null, null);
	}

	public SimplePointMarker(Location location) {
		this(location, null);
	}

	public SimplePointMarker(Location location, HashMap<String, Object> properties) {
		super(location, properties);
	}

	public void draw(PGraphics pg, float x, float y) {
	}

	public void drawOuter(PGraphics pg, float x, float y) {
		pg.pushStyle();
		if (isSelected()) {
			pg.fill(highlightColor);
			pg.stroke(highlightStrokeColor);
		} else {
			pg.fill(color);
			pg.stroke(strokeColor);
		}
		pg.ellipse(x, y, radius, radius);// TODO use radius in km and convert to px
		pg.popStyle();
	}

	public boolean isInside(float checkX, float checkY, float x, float y) {
		PApplet.println("SimpleMarker.isInside(cx, cy, x, y)");
		PVector pos = new PVector(x, y);
		return pos.dist(new PVector(checkX, checkY)) < radius; // FIXME must be zoom dependent
	}

	public void setRadius(float radius) {
		this.radius = radius;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public void setStrokeColor(int strokeColor) {
		this.strokeColor = strokeColor;
	}

}

{'fraction_non_alphanumeric': 0.11400966183574879, 'fraction_numerical': 0.0006441223832528181, 'mean_word_length': 4.401739130434783, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4040578', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1021, 'n_words': 269}