<commit_before>package com.google.maps.android.heatmaps;

import com.google.android.gms.maps.model.LatLng;
import com.google.maps.android.geometry.Point;
import com.google.maps.android.projection.SphericalMercatorProjection;
import com.google.maps.android.quadtree.PointQuadTree;

/**
 * A wrapper class that can be used in a PointQuadTree
 * Created from a LatLng and optional intensity: point coordinates of the LatLng and the intensity
 * value can be accessed from it later.
 */
public class WeightedLatLng implements PointQuadTree.Item {

    /**
     * Default intensity to use when intensity not specified
     */
    public static final double DEFAULT_INTENSITY = 1;

    /**
     * Projection to use for points
     * Converts LatLng to (x, y) coordinates using a SphericalMercatorProjection
     */
    public static final SphericalMercatorProjection mProjection =
            new SphericalMercatorProjection(HeatmapTileProvider.WORLD_WIDTH);

    private Point mPoint;

    private double mIntensity;

    /**
     * Constructor
     *
     * @param latLng    LatLng to add to wrapper
     * @param intensity Intensity to use: should be greater than 0
     *                  Default value is 10.
     *                  This represents the "importance" or "value" of this particular point
     *                  Higher intensity values map to higher colours.
     *                  Intensity is additive: having two points of intensity 10 at the same
     *                  location is identical to having one of intensity 20.
     */
    public WeightedLatLng(LatLng latLng, double intensity) {
        mPoint = mProjection.toPoint(latLng);
        if (intensity >= 0) mIntensity = intensity;
        else mIntensity = DEFAULT_INTENSITY;
    }

    /**
     * Constructor that uses default value for intensity
     *
     * @param latLng LatLng to add to wrapper
     */
    public WeightedLatLng(LatLng latLng) {
        this(latLng, DEFAULT_INTENSITY);
    }

    public Point getPoint() {
        return mPoint;
    }

    public double getIntensity() {
        return mIntensity;
    }

}<commit_msg>updated WeightedLatLng comments<commit_after>package com.google.maps.android.heatmaps;

import com.google.android.gms.maps.model.LatLng;
import com.google.maps.android.geometry.Point;
import com.google.maps.android.projection.SphericalMercatorProjection;
import com.google.maps.android.quadtree.PointQuadTree;

/**
 * A wrapper class that can be used in a PointQuadTree
 * Created from a LatLng and optional intensity: point coordinates of the LatLng and the intensity
 * value can be accessed from it later.
 */
public class WeightedLatLng implements PointQuadTree.Item {

    /**
     * Default intensity to use when intensity not specified
     */
    public static final double DEFAULT_INTENSITY = 1;

    /**
     * Projection to use for points
     * Converts LatLng to (x, y) coordinates using a SphericalMercatorProjection
     */
    public static final SphericalMercatorProjection mProjection =
            new SphericalMercatorProjection(HeatmapTileProvider.WORLD_WIDTH);

    private Point mPoint;

    private double mIntensity;

    /**
     * Constructor
     *
     * @param latLng    LatLng to add to wrapper
     * @param intensity Intensity to use: should be greater than 0
     *                  Default value is 1.
     *                  This represents the "importance" or "value" of this particular point
     *                  Higher intensity values map to higher colours.
     *                  Intensity is additive: having two points of intensity 1 at the same
     *                  location is identical to having one of intensity 2.
     */
    public WeightedLatLng(LatLng latLng, double intensity) {
        mPoint = mProjection.toPoint(latLng);
        if (intensity >= 0) mIntensity = intensity;
        else mIntensity = DEFAULT_INTENSITY;
    }

    /**
     * Constructor that uses default value for intensity
     *
     * @param latLng LatLng to add to wrapper
     */
    public WeightedLatLng(LatLng latLng) {
        this(latLng, DEFAULT_INTENSITY);
    }

    public Point getPoint() {
        return mPoint;
    }

    public double getIntensity() {
        return mIntensity;
    }

}
{'fraction_non_alphanumeric': 0.0662749706227967, 'fraction_numerical': 0.0035252643948296123, 'mean_word_length': 2.543713572023314, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6614108', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1157, 'n_words': 386}