<commit_before>#!/usr/bin/ruby
# author: nishiki
# mail: <EMAIL>
# info: a simple script who m your passwords

require 'rubygems'
require 'highline/import'
require 'pathname'
require 'readline'
require 'i18n'
require 'colorize'

require "#{APP_ROOT}/lib/MPW"
require "#{APP_ROOT}/lib/Sync"

class Cli

	# Constructor
	# @args: lang -> the operating system language
	#        config_file -> a specify config file
	def initialize(config)
		@config = config
	end

	# Sync the data with the server
	# @rtnr: true if the synchro is finish
	def sync
		@sync = MPW::Sync.new(@config, @mpw, @password) 

		raise(@sync.error_msg) if not @sync.get_remote
		raise(@sync.error_msg) if not @sync.sync

		return true
#	rescue Exception => e
		puts "#{I18n.t('display.error')} #7: #{e}".red
		return false
	end
<commit_msg>fix rescue<commit_after>#!/usr/bin/ruby
# author: nishiki
# mail: <EMAIL>
# info: a simple script who m your passwords

require 'rubygems'
require 'highline/import'
require 'pathname'
require 'readline'
require 'i18n'
require 'colorize'

require "#{APP_ROOT}/lib/MPW"
require "#{APP_ROOT}/lib/Sync"

class Cli

	# Constructor
	# @args: lang -> the operating system language
	#        config_file -> a specify config file
	def initialize(config)
		@config = config
	end

	# Sync the data with the server
	# @rtnr: true if the synchro is finish
	def sync
		@sync = MPW::Sync.new(@config, @mpw, @password) 

		raise(@sync.error_msg) if not @sync.get_remote
		raise(@sync.error_msg) if not @sync.sync

		return true
	rescue Exception => e
		puts "#{I18n.t('display.error')} #7: #{e}".red
		return false
	end

{'fraction_non_alphanumeric': 0.12841191066997518, 'fraction_numerical': 0.00620347394540943, 'mean_word_length': 4.1044303797468356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1944499', 'n_tokens_mistral': 609, 'n_tokens_neox': 572, 'n_words': 175}