<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>bundleid</key>
	<string></string>
	<key>category</key>
	<string>Tools</string>
	<key>connections</key>
	<dict>
		<key>31D9504F-5186-4D5E-894D-F3A55153225B</key>
		<array>
			<dict>
				<key>destinationuid</key>
				<string>ECF1BD2C-6DAE-4FAE-91B4-098D88853774</string>
				<key>modifiers</key>
				<integer>0</integer>
				<key>modifiersubtext</key>
				<string></string>
			</dict>
			<dict>
				<key>destinationuid</key>
				<string>1BD657DC-9B4E-4931-9C34-686D802F6A48</string>
				<key>modifiers</key>
				<integer>0</integer>
				<key>modifiersubtext</key>
				<string></string>
			</dict>
		</array>
	</dict>
	<key>createdby</key>
	<string><NAME></string>
	<key>description</key>
	<string>Generate a password</string>
	<key>disabled</key>
	<false/>
	<key>name</key>
	<string>Diceware Password</string>
	<key>objects</key>
	<array>
		<dict>
			<key>config</key>
			<dict>
				<key>argumenttype</key>
				<integer>1</integer>
				<key>escaping</key>
				<integer>102</integer>
				<key>keyword</key>
				<string>password</string>
				<key>queuedelaycustom</key>
				<integer>3</integer>
				<key>queuedelayimmediatelyinitially</key>
				<true/>
				<key>queuedelaymode</key>
				<integer>0</integer>
				<key>queuemode</key>
				<integer>1</integer>
				<key>runningsubtext</key>
				<string>Generating passwords</string>
				<key>script</key>
				<string>import diceware

API_KEY=''
SUGGESTIONS = 5

print '&lt;?xml version="1.0"?&gt;'
print '&lt;items&gt;'

for i in range(SUGGESTIONS):
	password = <PASSWORD>(apikey=API_KEY)
	print '&lt;item arg="{0}" autocomplete="{0}"&gt;&lt;title&gt;{0}&lt;/title&gt;&lt;/item&gt;'.format(password)

print '&lt;/items&gt;'</string>
				<key>subtext</key>
				<string>Generate passwords using diceware</string>
				<key>title</key>
				<string>Diceware Password</string>
				<key>type</key>
				<integer>3</integer>
				<key>withspace</key>
				<true/>
			</dict>
			<key>type</key>
			<string>alfred.workflow.input.scriptfilter</string>
			<key>uid</key>
			<string>31D9504F-5186-4D5E-894D-F3A55153225B</string><commit_msg>Fix some formatting to make reading the script easier<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>bundleid</key>
	<string></string>
	<key>category</key>
	<string>Tools</string>
	<key>connections</key>
	<dict>
		<key>31D9504F-5186-4D5E-894D-F3A55153225B</key>
		<array>
			<dict>
				<key>destinationuid</key>
				<string>ECF1BD2C-6DAE-4FAE-91B4-098D88853774</string>
				<key>modifiers</key>
				<integer>0</integer>
				<key>modifiersubtext</key>
				<string></string>
			</dict>
			<dict>
				<key>destinationuid</key>
				<string>1BD657DC-9B4E-4931-9C34-686D802F6A48</string>
				<key>modifiers</key>
				<integer>0</integer>
				<key>modifiersubtext</key>
				<string></string>
			</dict>
		</array>
	</dict>
	<key>createdby</key>
	<string><NAME></string>
	<key>description</key>
	<string>Generate a diceware password</string>
	<key>disabled</key>
	<false/>
	<key>name</key>
	<string>Diceware Password</string>
	<key>objects</key>
	<array>
		<dict>
			<key>config</key>
			<dict>
				<key>argumenttype</key>
				<integer>1</integer>
				<key>escaping</key>
				<integer>102</integer>
				<key>keyword</key>
				<string>password</string>
				<key>queuedelaycustom</key>
				<integer>3</integer>
				<key>queuedelayimmediatelyinitially</key>
				<true/>
				<key>queuedelaymode</key>
				<integer>0</integer>
				<key>queuemode</key>
				<integer>1</integer>
				<key>runningsubtext</key>
				<string>Generating passwords</string>
				<key>script</key>
				<string>import diceware

API_KEY=''
SUGGESTIONS = 5

print '&lt;?xml version="1.0"?&gt;'
print '&lt;items&gt;'

for i in range(SUGGESTIONS):
	password = <PASSWORD>(apikey=API_KEY)
	print((
		'&lt;item arg="{0}" autocomplete="{0}"&gt;'
		'&lt;title&gt;{0}&lt;/title&gt;'
		'&lt;/item&gt;').format(password))

print '&lt;/items&gt;'</string>
				<key>subtext</key>
				<string>Generate passwords using diceware</string>
				<key>title</key>
				<string>Diceware Password</string>
				<key>type</key>
				<integer>3</integer>
				<key>withspace</key>
				<true/>
			</dict>
			<key>type</key>
			<string>alfred.workflow.input.scriptfilter</string>
			<key>uid</key>
			<string>31D9504F-5186-4D5E-894D-F3A55153225B</string>
{'fraction_non_alphanumeric': 0.20030547676194632, 'fraction_numerical': 0.04931267728562077, 'mean_word_length': 4.150561797752809, 'pattern_counts': {'":': 0, '<': 265, '<?xml version=': 4, '>': 265, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '1483288', 'n_tokens_mistral': 2291, 'n_tokens_neox': 1874, 'n_words': 234}