<commit_before>package org.osmdroid.api;

import org.osmdroid.util.GeoPoint;
import org.osmdroid.views.MapView.Projection;

import android.graphics.Point;

/**
 * An interface that resembles the Google Maps API Projection interface
 * and is implemented by the osmdroid {@link Projection} class.
 *
 * @author <NAME>
 *
 */
public interface IProjection {

	Point toPixels(GeoPoint in, Point out);
	GeoPoint fromPixels(int x, int y);
	float metersToEquatorPixels(float meters);

}<commit_msg>Some documentation for the IProjection class<commit_after>package org.osmdroid.api;

import org.osmdroid.util.GeoPoint;
import org.osmdroid.views.MapView.Projection;

import android.graphics.Point;

/**
 * An interface that resembles the Google Maps API Projection interface and is implemented by the
 * osmdroid {@link Projection} class.
 * 
 * @author <NAME>
 * 
 */
public interface IProjection {

	/**
	 * Converts the given GeoPoint to onscreen pixel coordinates, relative to the top-left of the
	 * MapView that provided this Projection.
	 * 
	 * @param in
	 *            The latitude/longitude pair to convert.
	 * @param out
	 *            A pre-existing object to use for the output; if null, a new Point will be
	 *            allocated and returned.
	 * @return
	 */
	Point toPixels(GeoPoint in, Point out);

	/**
	 * Create a new GeoPoint from pixel coordinates relative to the top-left of the MapView that
	 * provided this PixelConverter.
	 */
	GeoPoint fromPixels(int x, int y);

	/**
	 * Converts a distance in meters (along the equator) to one in (horizontal) pixels at the
	 * current zoomlevel. In the default Mercator projection, the actual number of pixels for a
	 * given distance will get higher as you move away from the equator.
	 * 
	 * @param meters
	 *            the distance in meters
	 * @return The number of pixels corresponding to the distance, if measured along the equator, at
	 *         the current zoom level. The return value may only be approximate.
	 */
	float metersToEquatorPixels(float meters);

}
{'fraction_non_alphanumeric': 0.07722577471716675, 'fraction_numerical': 0.0, 'mean_word_length': 3.4801762114537445, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4622989', 'n_tokens_mistral': 603, 'n_tokens_neox': 561, 'n_words': 233}