<commit_before>#
#
module ProjMgr
	
	#
	#
	class Git < Scm

		#
		#
		def update
	  	results = system('cd #{@prefix}/#{@project} && git pull && cd #{@root}')

	  	if results =~ /Already up-to-date./
	  	  print "Already up-to-date!\n"
	  	else
	  	  puts results  	  
		  end
		end
		
		#
		#
		def has_local_changes?
		  results = system('cd #{@prefix}/#{@project} && git status && cd #{@root}')

		  if results !~ /nothing to commit/ 
				return true
			elsif results =~ /Your branch is ahead of/
				return true
			elsif results =~ /Untracked files/
				return true
		  else
				return false
			end
		end
	end	
end<commit_msg>Added git update and local changes checks<commit_after>require 'projmgr/scm'

#
#
module ProjMgr
	
	#
	#
	class Git < Scm

		#
		#
		def update
	  	results = `cd #{@path} && git pull && cd #{@root}`

	  	if results =~ /Already up-to-date./
	  	  print "Already up-to-date!\n"
	  	else
	  	  puts results  	  
		  end
		end
		
		#
		#
		def has_local_changes?
		  results = `cd #{@path} && git status && cd #{@root}`

		  if results !~ /nothing to commit/ 
				return true
			elsif results =~ /Your branch is ahead of/
				return true
			elsif results =~ /Untracked files/
				return true
		  else
				return false
			end
		end
	end	
end
{'fraction_non_alphanumeric': 0.12094861660079051, 'fraction_numerical': 0.0, 'mean_word_length': 2.1259259259259258, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2312336', 'n_tokens_mistral': 554, 'n_tokens_neox': 461, 'n_words': 136}