<commit_before>package controllers;


import models.*;
import play.mvc.*;

public class ViewProfile extends Controller {
	
	public static void page(String userName) {
		
		String myUsername = session.get("username");
		
		System.out.println("From MyProfile submit#current username: "+myUsername);
		// System.out.println("follo:" + folloUserid);
		
		boolean followed = false;
		if (myUsername == userName) {
			MyProfile.page();
		}
		
		if (userName != null) {
			User user = User.find("byEmail", userName).first();
			User me = User.find("byEmail", myUsername).first();

			if (user != null) {
				if (me.followed.contains(user)) {
					followed = true;
					System.out.println(user.fullname + " has been followed ");

				}
				render(user, followed);
			}
		}
		// MainPage.index();
		MyProfile.page();
	}	

}<commit_msg>change Viewprofile via name to via userId<commit_after>package controllers;


import models.*;
import play.mvc.*;

public class ViewProfile extends Controller {
	
	public static void page(Long Id) {
		
		String myUsername = session.get("username");
		String userId = session.get("userId");

		
		System.out.println("From MyProfile submit#current username: "+myUsername);
		// System.out.println("follo:" + folloUserid);
		
		boolean followed = false;
		if (Long.parseLong(userId) == Id) {
			MyProfile.page();
		}
		
		if (Id != null) {
			User user = User.find("byEmail", Id).first();
			User me = User.find("byEmail", userId).first();

			if (user != null) {
				if (me.followed.contains(user)) {
					followed = true;
					System.out.println(user.fullname + " has been followed ");

				}
				render(user, followed);
			}
		}
		// MainPage.index();
		MyProfile.page();
	}	

}
{'fraction_non_alphanumeric': 0.15140845070422534, 'fraction_numerical': 0.0, 'mean_word_length': 3.3494897959183674, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3845312', 'n_tokens_mistral': 637, 'n_tokens_neox': 529, 'n_words': 127}