<commit_before>import getpass, json
from inc.DetermPwgen import *
import inc.settings as settings

def welcome_banner():
	print("\n")
	print "*********************************************************************"
	print "* determ-pwgen created by I3ck (<NAME>)                        *"
	print "+ https://github.com/I3ck/determ-pwgen                              *"
	print "* licensed under the MIT License                                    *"
	print "* version2 (use version1 if you already generated passwords with it)*"
	print "* using " + str(settings.ROUNDS) + " rounds of sha256                                    *"
	print "*********************************************************************"
	print("\n")

def get_print_string(hostname, username, pw):
	return username + " @ " + hostname + ":\n" + pw


def use_user_input(seed):
	determPwgen = DetermPwgen(seed)

	while True:
		hostname = raw_input('\n\nPlease enter the domain or name of the program (e.g. google or outlook): ')
		username = raw_input('Please enter your username for ' + hostname + ': ')

		pw = determPwgen.generate_password(hostname, username, settings.ROUNDS)

		print "\n" + get_print_string(hostname, username, pw)


def use_json_file(seed):
	determPwgen = DetermPwgen(seed)

	with open(settings.PATH_ACCOUNTS_FILE, 'r') as f:
		accounts = json.load(f)

	for account in accounts:
		pw = determPwgen.generate_password(account['hostname'], account['username'], settings.ROUNDS)
		print "\n" + get_print_string(account['hostname'], account['username'], pw)
<commit_msg>updated the console version header<commit_after>import getpass, json
from inc.DetermPwgen import *
import inc.settings as settings

def welcome_banner():
	print("\n")
	print " ___________________________________________________________________ "
	print "| determ-pwgen created by I3ck (<NAME>)                        |"
	print "| https://github.com/I3ck/determ-pwgen                              |"
	print "| licensed under the MIT License (see LICENSE file)                 |"
	print "| use determ-pwgen-qt.pyw for a graphical user interface            |"
	print "|___________________________________________________________________|"
	print("\n")


def get_print_string(hostname, username, pw):
	return username + " @ " + hostname + ":\n" + pw


def use_user_input(seed):
	determPwgen = DetermPwgen(seed)

	while True:
		hostname = raw_input('\n\nPlease enter the domain or name of the program (e.g. google or outlook): ')
		username = raw_input('Please enter your username for ' + hostname + ': ')

		pw = determPwgen.generate_password(hostname, username, settings.ROUNDS)

		print "\n" + get_print_string(hostname, username, pw)


def use_json_file(seed):
	determPwgen = DetermPwgen(seed)

	with open(settings.PATH_ACCOUNTS_FILE, 'r') as f:
		accounts = json.load(f)

	for account in accounts:
		pw = determPwgen.generate_password(account['hostname'], account['username'], settings.ROUNDS)
		print "\n" + get_print_string(account['hostname'], account['username'], pw)

{'fraction_non_alphanumeric': 0.15883520847121113, 'fraction_numerical': 0.0029781601588352085, 'mean_word_length': 3.7456828885400313, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1644901', 'n_tokens_mistral': 922, 'n_tokens_neox': 871, 'n_words': 230}