<commit_before>// http://en.wikipedia.org/wiki/Even%E2%80%93odd_rule
// modified from: https://github.com/substack/point-in-polygon/blob/master/index.js
// which was modified from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html

/**
 * Checks to see if a {@link Point} is inside of a {@link Polygon}. The Polygon can
 * be convex or concave. The function accepts any valid Polygon or {@link MultiPolygon}
 * and accounts for holes.
 *
 * @module turf/inside
 * @param {Point} point a Point feature
 * @param {Polygon} polygon a Polygon feature
 * @return {boolean} whether the Point is inside the Polygon
 * @example
 * var pt1 = turf.point(-111.467285, 40.75766);
 * pt1.properties['marker-color'] = "#f00";
 * var pt2 = turf.point(-111.873779, 40.647303);
 * pt2.properties['marker-color'] = "#0f0";
 * var poly = turf.polygon([[
 *  [-112.074279, 40.52215],
 *  [-112.074279, 40.853293],
 *  [-111.610107, 40.853293],
 *  [-111.610107, 40.52215],
 *  [-112.074279, 40.52215]
 * ]]);
 * var features = turf.featurecollection([pt1, pt2, poly]);
 *
 * //=features
 *
 * var isInside1 = turf.inside(pt1, poly);
 * //=isInside1
 *
 * var isInside2 = turf.inside(pt2, poly);
 * //=isInside2<commit_msg>Fix point form<commit_after>// http://en.wikipedia.org/wiki/Even%E2%80%93odd_rule
// modified from: https://github.com/substack/point-in-polygon/blob/master/index.js
// which was modified from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html

/**
 * Checks to see if a {@link Point} is inside of a {@link Polygon}. The Polygon can
 * be convex or concave. The function accepts any valid Polygon or {@link MultiPolygon}
 * and accounts for holes.
 *
 * @module turf/inside
 * @param {Point} point a Point feature
 * @param {Polygon} polygon a Polygon feature
 * @return {boolean} whether the Point is inside the Polygon
 * @example
 * var pt1 = turf.point([-111.467285, 40.75766], {'marker-color': "#f00"});
 * var pt2 = turf.point([-111.873779, 40.647303], {'marker-color': "#0f0" });
 * var poly = turf.polygon([[
 *  [-112.074279, 40.52215],
 *  [-112.074279, 40.853293],
 *  [-111.610107, 40.853293],
 *  [-111.610107, 40.52215],
 *  [-112.074279, 40.52215]
 * ]]);
 * var features = turf.featurecollection([pt1, pt2, poly]);
 *
 * //=features
 *
 * var isInside1 = turf.inside(pt1, poly);
 * //=isInside1
 *
 * var isInside2 = turf.inside(pt2, poly);
 * //=isInside2
{'fraction_non_alphanumeric': 0.17647058823529413, 'fraction_numerical': 0.11184755592377796, 'mean_word_length': 3.698443579766537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1125578', 'n_tokens_mistral': 1061, 'n_tokens_neox': 865, 'n_words': 217}