<commit_before>from Tkinter import *
from tkFileDialog import *
from shutil import *
import json
import os
import os.path
import threading 

class Profile(Frame):
	"""Profile Gui"""
	#########################################
	# Variable Start here
	#########################################
	data = 0;
	frame_count = 0;    # As a counter for gif frame later
	framenumber = 0;
	animaterun = True;

	# Get the current directory and dest directory
	currfilePath = os.path.abspath(__file__);
	currdir = os.path.abspath(os.path.join(currfilePath,os.pardir)); # this will return current directory in which python file resides.
	parentDir = os.path.abspath(os.path.join(currdir,os.pardir)); # this will return parent directory.

	#########################################
	# Constant Variable Start here
	#########################################
	PROFILE_HEIGHT = 90;
	PROFILE_WIDTH = 90;
	PROFILE_PIC_LINK = parentDir + "/pic/profile.gif";
	DATAFILEPATH = parentDir + "/data/users.json";

	TitleLabel = "";
	Profile_Pic = "";
	NameLabel = "";
	DesTitleLabel = "";
	DesLabel = "";
	SaveDesButton = "";
	PlayButton = "";
	RandomQuesButton = "";
	RankingButton = "";

	#########################################
	# Function Start here
	#########################################
	def __init__(self):
		"""Class Initializating Function"""
		Frame.__init__(self)
		self.ReadData();

	def ShowWindow(self):
		"""To Initializating the element """
		#########################################
		# Text Initializating Start here
		#########################################<commit_msg>:fire: YUpdate<commit_after>from Tkinter import *
from tkFileDialog import *
from shutil import *
import json
import os
import os.path
import threading 

class Profile(Frame):
	"""Profile Gui"""
	#########################################
	# Variable Start here
	#########################################
	data = 0;
	frame_count = 0;    # As a counter for gif frame later
	framenumber = 0;
	animaterun = True;

	# Get the current directory and dest directory
	currfilePath = "";	# Initialization in SetPath
	currdir = "";	# Initialization in SetPath
	parentDir = "";	# Initialization in SetPath

	#########################################
	# Constant Variable Start here
	#########################################
	PROFILE_HEIGHT = 90;
	PROFILE_WIDTH = 90;
	PROFILE_PIC_LINK = "";	# Initialization in SetPath
	DATAFILEPATH = "";	# Initialization in SetPath
	MAINFOLDER = "tkinter";

	TitleLabel = "";
	Profile_Pic = "";
	NameLabel = "";
	DesTitleLabel = "";
	DesLabel = "";
	SaveDesButton = "";
	PlayButton = "";
	RandomQuesButton = "";
	RankingButton = "";

	#########################################
	# Function Start here
	#########################################
	def __init__(self):
		"""Class Initializating Function"""
		Frame.__init__(self);
		self.SetPath();
		self.ReadData();


	def SetPath(self):
		"""Set the path of PROFILE_PIC_LINK and DATAFILEPATH"""
		# Get Current directory
		self.currfilePath = os.path.abspath(__file__);
		self.currdir = os.path.abspath(os.path.join(self.currfilePath,os.pardir));
		temp = self.currdir;

		# Keep go back to parent until grandfather of the program
		while (temp.split("\\")[-1] != self.MAINFOLDER):
			temp = os.path.abspath(os.path.join(temp,os.pardir)); # this will return parent directory.			

		# Initiazation
		self.parentDir = temp;
		self.PROFILE_PIC_LINK = self.parentDir + "/pic/profile.gif";
		self.DATAFILEPATH = self.parentDir + "/data/users.json";

	def ShowWindow(self):
		"""To Initializating the element """
		#########################################
		# Text Initializating Start here
		#########################################
{'fraction_non_alphanumeric': 0.27835332606324975, 'fraction_numerical': 0.004089422028353326, 'mean_word_length': 5.156040268456376, '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': '1259179', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1052, 'n_words': 264}