<commit_before>/**
 * Definition for a point.
 * class Point {
 *     int x;
 *     int y;
 *     Point() { x = 0; y = 0; }
 *     Point(int a, int b) { x = a; y = b; }
 * }
 */

public class Solution {
    public int maxPoints(Point[] points) {
        /*Build the unique map for points*/
        
        /**Build the unique map in the form <point.x, <point.y, count>>*/
    	int num = points.length;
    	HashMap<Integer, HashMap<Integer, Integer>> pmap = new HashMap<Integer, HashMap<Integer, Integer>>();
    	for(int i = 0; i < num ; i ++){
    		Point pt = points[i];
    		HashMap<Integer, Integer> pyc = pmap.get(pt.x);// Point yaxis, count
    		if(pyc == null){
    			pyc = new HashMap<Integer, Integer>();
    			pyc.put(pt.y, 1);
    			
    		}
    		else{
    			Integer pc = pyc.get(pt.y);
    			if(pc == null){
    				pyc.put(pt.y, 1);<commit_msg>Update MaxPointsonaLine.java<commit_after>/**
 * Definition for a point.
 * class Point {
 *     int x;
 *     int y;
 *     Point() { x = 0; y = 0; }
 *     Point(int a, int b) { x = a; y = b; }
 * }
 */
 
 /**
  * @author = <NAME>
  * @email = <EMAIL>
  * @version = 1.0
  * @runtime = 488ms
  */

public class Solution {
    public int maxPoints(Point[] points) {
        /*Build the unique map for points*/
        
        /**Build the unique map in the form <point.x, <point.y, count>>*/
    	int num = points.length;
    	HashMap<Integer, HashMap<Integer, Integer>> pmap = new HashMap<Integer, HashMap<Integer, Integer>>();
    	for(int i = 0; i < num ; i ++){
    		Point pt = points[i];
    		HashMap<Integer, Integer> pyc = pmap.get(pt.x);// Point yaxis, count
    		if(pyc == null){
    			pyc = new HashMap<Integer, Integer>();
    			pyc.put(pt.y, 1);
    			
    		}
    		else{
    			Integer pc = pyc.get(pt.y);
    			if(pc == null){
    				pyc.put(pt.y, 1);
{'fraction_non_alphanumeric': 0.16549104720564298, 'fraction_numerical': 0.008138903960933261, 'mean_word_length': 2.0378912685337727, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '4720967', 'n_tokens_mistral': 713, 'n_tokens_neox': 684, 'n_words': 188}