Evals / documents / Multi-step jobs
Fill a party name into a contract and send it
Fill in our company name in the SAFE form safe.docx. We are Acme Robotics, Inc. Put it everywhere the form asks for the company name, in capitals where the form uses capitals, and keep the formatting. Save it as acme-safe.docx and make acme-safe.pdf to send to the investor.
The task
The reference answer shows the job can be done with deft. It is not an agent run.
deft doc replace safe.docx --find "[Company Name]" --replace "Acme Robotics, Inc." -o named.docx deft doc replace named.docx --find [COMPANY] --replace "ACME ROBOTICS, INC." -o acme-safe.docx deft doc to-pdf acme-safe.docx -o acme-safe.pdf
Input

Rendered by macOS Quick Look, first page
Text inside
THIS INSTRUMENT AND ANY SECURITIES ISSUABLE PURSUANT HERETO HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933, AS AMENDED (THE “SECURITIES ACT”), OR UNDER THE SECURITIES LAWS OF CERTAIN STATES. THESE SECURITIES MAY NOT BE OFFERED, SOLD OR OTHERWISE TRANSFERRED, PLEDGED OR HYPOTHECATED EXCEPT AS PERMITTED IN THIS SAFE AND UNDER THE ACT AND APPLICABLE STATE SECURITIES LAWS PURSUANT TO AN EFFECTIVE REGISTRATION STATEMENT OR AN EXEMPTION THEREFROM. [Company Name] SAFE (Simple Agreement for Future Equity) THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], [Company Name], a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. This Safe is one of the forms available at http://ycombinator.com/documents and the Company and the Investor agree that neither one has modified the form, except to fill in blanks and bracketed terms. The “Post-Money Valuation Cap” is $[_____________]. See Section 2 for certain additional defined terms. 1. Events (a) Equity Financing. If there is an Equity Financing before the termination of this Safe, on the initial closing of such Equity Financing, this Safe will automatically convert into the greater of: (1) the number of shares of Standard Preferred Stock equal to the Purchase Amount divided by the lowest price per share of the Standard Preferred Stock; or (2) the number of shares of Safe Preferred Stock equal to the Purchase Amount divided by the Safe Price. In connection with the automatic conversion of this Safe into shares of Standard Preferred Stock or Safe Preferred Stock, the Investor will execute and deliver to the Company all of the transaction documents related to the Equity Financing; provided, that such documents (i) are the same documents to be entered into with the purchasers of Standard Preferred Stock, with appropriate variations for the Safe Preferred Stock if applicable, and (ii) have customary exceptions to any drag-along applicable to the Investor, including (without limitation) limited representations, warranties, liability and indemnification obligations for the Investor. (b) Liquidity Event. If there is a Liquidity Event before the termination of this Safe, the Investor will automatically be entitled (subject to the liquidation priority set forth in Section 1(d) below) to receive a portion of Proceeds, due and payable to the Investor immediately prior to, or concurrent with, the consummation of such Liquidity Event, equal to the greater of (i) the Purchase Amount (the “Cash-Out Amount”) or (ii) the amount payable on the number of shares of Common Stock equal to the Purchase Amount divided by the Liquidity Price (the “Conversion Amount”). If any of the Company’s securityholders are given a choice as to the form and amount of Proceeds to be received in a Liqui … 19383 more characters
Reference output

Rendered by macOS Quick Look, first page
Text inside
THIS INSTRUMENT AND ANY SECURITIES ISSUABLE PURSUANT HERETO HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933, AS AMENDED (THE “SECURITIES ACT”), OR UNDER THE SECURITIES LAWS OF CERTAIN STATES. THESE SECURITIES MAY NOT BE OFFERED, SOLD OR OTHERWISE TRANSFERRED, PLEDGED OR HYPOTHECATED EXCEPT AS PERMITTED IN THIS SAFE AND UNDER THE ACT AND APPLICABLE STATE SECURITIES LAWS PURSUANT TO AN EFFECTIVE REGISTRATION STATEMENT OR AN EXEMPTION THEREFROM. Acme Robotics, Inc. SAFE (Simple Agreement for Future Equity) THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], Acme Robotics, Inc., a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. This Safe is one of the forms available at http://ycombinator.com/documents and the Company and the Investor agree that neither one has modified the form, except to fill in blanks and bracketed terms. The “Post-Money Valuation Cap” is $[_____________]. See Section 2 for certain additional defined terms. 1. Events (a) Equity Financing. If there is an Equity Financing before the termination of this Safe, on the initial closing of such Equity Financing, this Safe will automatically convert into the greater of: (1) the number of shares of Standard Preferred Stock equal to the Purchase Amount divided by the lowest price per share of the Standard Preferred Stock; or (2) the number of shares of Safe Preferred Stock equal to the Purchase Amount divided by the Safe Price. In connection with the automatic conversion of this Safe into shares of Standard Preferred Stock or Safe Preferred Stock, the Investor will execute and deliver to the Company all of the transaction documents related to the Equity Financing; provided, that such documents (i) are the same documents to be entered into with the purchasers of Standard Preferred Stock, with appropriate variations for the Safe Preferred Stock if applicable, and (ii) have customary exceptions to any drag-along applicable to the Investor, including (without limitation) limited representations, warranties, liability and indemnification obligations for the Investor. (b) Liquidity Event. If there is a Liquidity Event before the termination of this Safe, the Investor will automatically be entitled (subject to the liquidation priority set forth in Section 1(d) below) to receive a portion of Proceeds, due and payable to the Investor immediately prior to, or concurrent with, the consummation of such Liquidity Event, equal to the greater of (i) the Purchase Amount (the “Cash-Out Amount”) or (ii) the amount payable on the number of shares of Common Stock equal to the Purchase Amount divided by the Liquidity Price (the “Conversion Amount”). If any of the Company’s securityholders are given a choice as to the form and amount of Proceeds to be received … 19403 more characters




Rendered by macOS Quick Look, first page
Text inside
THIS INSTRUMENT AND ANY SECURITIES ISSUABLE PURSUANT HERETO HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933, AS AMENDED (THE “SECURITIES ACT”), OR UNDER THE SECURITIES LAWS OF CERTAIN STATES. THESE SECURITIES MAY NOT BE OFFERED, SOLD OR OTHERWISE TRANSFERRED, PLEDGED OR HYPOTHECATED EXCEPT AS PERMITTED IN THIS SAFE AND UNDER THE ACT AND APPLICABLE STATE SECURITIES LAWS PURSUANT TO AN EFFECTIVE REGISTRATION STATEMENT OR AN EXEMPTION THEREFROM. Acme Robotics, Inc. SAFE (Simple Agreement for Future Equity) THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], Acme Robotics, Inc., a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. This Safe is one of the forms available at http://ycombinator.com/documents and the Company and the Investor agree that neither one has modified the form, except to fill in blanks and bracketed terms. The “Post-Money Valuation Cap” is $[_____________]. See Section 2 for certain additional defined terms. 1. Events (a) Equity Financing. If there is an Equity Financing before the termination of this Safe, on the initial closing of such Equity Financing, this Safe will automatically convert into the greater of: (1) the number of shares of Standard Preferred Stock equal to the Purchase Amount divided by the lowest price per share of the Standard Preferred Stock; or (2) the number of shares of Safe Preferred Stock equal to the Purchase Amount divided by the Safe Price. In connection with the automatic conversion of this Safe into shares of Standard Preferred Stock or Safe Preferred Stock, the Investor will execute and deliver to the Company all of the transaction documents related to the Equity Financing; provided, that such documents (i) are the same documents to be entered into with the purchasers of Standard Preferred Stock, with appropriate variations for the Safe Preferred Stock if applicable, and (ii) have customary exceptions to any drag-along applicable to the Investor, including (without limitation) limited representations, warranties, liability and indemnification obligations for the Investor. (b) Liquidity Event. If there is a Liquidity Event before the termination of this Safe, the Investor will automatically be entitled (subject to the liquidation priority set forth in Section 1(d) below) to receive a portion of Proceeds, due and payable to the Investor immediately prior to, or concurrent with, the consummation of such Liquidity Event, equal to the greater of (i) the Purchase Amount (the “Cash-Out Amount”) or (ii) the amount payable on the number of shares of Common Stock equal to the Purchase Amount divided by the Liquidity Price (the “Conversion Amount”). If any of the Company’s securityholders are given a choice as to the form and amount of Proceeds to be received … 19393 more characters
How a result is judged (2 checks)
- python: code = "import re, zipfile\ndef parts(f):\n z = zipfile.ZipFile(f)\n return {n: z.read(n).decode('utf-8', 'replace') for n in z.namelist() if n.startswith('word/') and n.endswith('.xml')}\nnew, old = parts('acme-safe.docx'), parts('safe.docx')\ntext = re.sub(r'<[^>]+>', '', new['word/document.xml'])\n# Three blanks. The title run is shown in capitals (w:caps), so either case is right there.\nassert text.lower().count('acme robotics, inc.') >= 3, 'company name not filled in all three places'\nassert 'Acme Robotics, Inc.' in text, 'company name in the body sentence missing'\nassert 'ACME ROBOTICS, INC.' in text, 'capitalised company name missing'\nassert '[Company Name]' not in text and '[COMPANY]' not in text, 'a blank is left'\nassert '[Investor Name]' in text, 'other blanks must stay'\n# Formatting kept: paragraphs, bold runs and the footers survive.\ncount = lambda x, pat: len(re.findall(pat, x))\nassert count(new['word/document.xml'], r'<w:p[ >]') >= 0.9 * count(old['word/document.xml'], r'<w:p[ >]'), 'paragraphs lost'\nassert count(new['word/document.xml'], r'<w:b/>|<w:b ') >= 0.8 * count(old['word/document.xml'], r'<w:b/>|<w:b '), 'bold lost'\nassert any(n.startswith('word/footer') for n in new), 'footer lost'\n"
- pdf_text: file = "acme-safe.pdf", contains = ["Acme Robotics, Inc.", "ACME ROBOTICS, INC.", "Post-Money Valuation Cap"], absent = ["[Company Name]", "[COMPANY]"]
Runs
Claude Opus 5.5Without deftFailed2026-11-15
acme-safe.pdf was not created
- Time
- 40s
- New tokens
- 20.8k
- Total input
- 145.6k
- Output tokens
- 3.1k
- Commands
- 6
- Failed
- 0
Trace
ls -la; mkdir -p $TMPDIR/x && cd $TMPDIR/x && unzip -o -q safe.docx && ls -R | head -50; python3 -c " import re;d=open('word/document.xml').read();t=re.sub(r'<w:p[ >].*?</w:p>',lambda m:re.sub(r'<[^>]+>','',m.group(0))+'\n',d,flags=re.S);print(t)" | grep -n -i -E 'company|\[|_{3,}|name' | head -60output
total 112 drwxr-xr-x@ 4 user staff 128 Nov 14 19:51 . drwx------@ 304 user staff 9728 Nov 14 19:51 .. drwxr-xr-x@ 3 user staff 96 Nov 14 19:51 .claude -rw-r--r--@ 1 user staff 55762 Nov 14 11:00 safe.docx [Content_Types].xml _rels customXml docProps word ./_rels: ./customXml: _rels item1.xml itemProps1.xml ./customXml/_rels: item1.xml.rels ./docProps: app.xml core.xml ./word: _rels document.xml endnotes.xml fontTable.xml footer1.xml footer2.xml footer3.xml footnotes.xml header1.xml header2.xml header3.xml numbering.xml settings.xml styles.xml theme webSettings.xml ./word/_rels: document.xml.rels footer2.xml.rels ./word/theme: theme1.xml 4:[Company Name] 8:THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], [Company Name], a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. 9:This Safe is one of the forms available at http://ycombinator.com/documents and the Company and the Investor agree that neither one has modified the form, except to fill in blanks and bracketed terms. 10:The “Post-Money Valuation Cap” is $[_____________]. See Section 2 for certain additional defined terms. 13:In connection with the automatic conversion of this Safe into shares of Standard Preferred Stock or Safe Preferred Stock, the Investor will execu … 13770 more characters
Let me check placeholders in XML (may be split across runs), and headers/footers.
cd $TMPDIR/x && grep -o -i -E '.{0,300}company( name)?\]?.{0,50}' word/document.xml | grep -i -E 'COMPANY\]|Company Name|\[' | head; for f in word/header*.xml word/footer*.xml word/footnotes.xml docProps/*.xml; do echo "== $f"; sed 's/<[^>]*>//g' $f | head -c 400; echo; doneoutput
grep: maximum repetition exceeds 255 == word/header1.xml Version 1.2POST-MONEY VALUATION CAP == word/header2.xml Version 1.2POST-MONEY VALUATION CAP == word/header3.xml == word/footer1.xml - PAGE 2- == word/footer2.xml © 2023 Y Combinator Management, LLC. This form is made available under a Creative Commons Attribution-NoDerivatives 4.0 License (International): https://creativecommons.org/licenses/by-nd/4.0/legalcode. You may modify this form so you can use it in transactions, but please do not publicly disseminate a modified version of the form without asking us first. == word/footer3.xml == word/footnotes.xml == docProps/app.xml Normal.dotm07334419063Microsoft Office Word015844falseTitle1false22363false5111813005http://ycombinator.com/documents6225999305https://creativecommons.org/licenses/by-nd/4.0/legalcodefalse16.0000 == docProps/core.xml 12023-02-01T21:11:00Z2023-02-01T21:11:00Z Shell cwd was reset to
cd $TMPDIR/x && python3 - <<'E' import re d=open('word/document.xml').read() for m in re.finditer(r'Company Name|COMPANY\]|\[COMPANY|COMPANY',d): print(m.start(), repr(d[max(0,m.start()-400):m.end()+200]));print('---') Eoutput
5156 '00E23215" w:rsidRPr="001F5E01" w:rsidRDefault="00811CAF"><w:pPr><w:autoSpaceDE w:val="0"/><w:autoSpaceDN w:val="0"/><w:adjustRightInd w:val="0"/><w:spacing w:before="0"/><w:ind w:left="-720" w:right="-360" w:firstLine="0"/><w:jc w:val="center"/><w:rPr><w:b/><w:caps/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr></w:pPr><w:r><w:rPr><w:b/><w:caps/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>[Company Name]</w:t></w:r></w:p><w:p w14:paraId="30588CE4" w14:textId="77777777" w:rsidR="00E23215" w:rsidRDefault="00E23215"><w:pPr><w:autoSpaceDE w:val="0"/><w:autoSpaceDN w:val="0"/><w:adjustRightInd w:val="0"/' --- 9280 '/w:rPr><w:t xml:space="preserve"> on or about </w:t></w:r><w:r w:rsidR="002B2722"><w:rPr><w:sz w:val="22"/></w:rPr><w:t>[Date of Safe]</w:t></w:r><w:r w:rsidR="00D2656D"><w:rPr><w:sz w:val="22"/></w:rPr><w:t>,</w:t></w:r><w:r w:rsidR="00B0749F"><w:rPr><w:sz w:val="22"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r><w:r w:rsidR="002B2722"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>[Company Name</w:t></w:r><w:r w:rsidR="001F5E01"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>]</w:t></w:r><w:r w:rsidR="001D7B14"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t xml:space="' --- 177290 '><w:pPr><w:autoSpaceDE w:val="0"/><w:autoSpaceDN w:val="0"/><w:adjustRightInd w:val="0"/><w:spacing w:before="0"/><w:ind w:left="5040" w:right="-360" w:firstLine="0"/><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr></w:pPr><w:r><w:rP … 391 more characters
Three occurrences (title with caps style, body split across runs, signature block split across runs). Replacing each in place:
cd $TMPDIR/x && python3 - <<'E' d=open('word/document.xml').read() def rep(old,new): global d assert d.count(old)==1,(old,d.count(old)); d=d.replace(old,new) rep('<w:t>[Company Name]</w:t>','<w:t>ACME ROBOTICS, INC.</w:t>') rep('<w:t>[Company Name</w:t></w:r><w:r w:rsidR="001F5E01"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>]</w:t></w:r>', '<w:t>Acme Robotics, Inc.</w:t></w:r>') rep('<w:r><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>[</w:t></w:r><w:r w:rsidRPr="00910660"><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>COMPANY</w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>]</w:t></w:r>', '<w:r w:rsidRPr="00910660"><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>ACME ROBOTICS, INC.</w:t></w:r>') open('word/document.xml','w').write(d) E OUT= rm -f $OUT/acme-safe.docx && zip -q -X -r $OUT/acme-safe.docx '[Content_Types].xml' _rels docProps word customXml && cd $OUT && (which soffice libreoffice; ls /Applications | grep -i -E 'libre|word|pages')output
soffice not found libreoffice not found Pages.app
unzip -l acme-safe.docx | grep rels; which pandoc wkhtmltopdf textutil cupsfilter; python3 -c "import docx2pdf" 2>&1; ls /Applications/LibreOffice.app 2>&1 | head -1output
0 11-14-2026 19:51 _rels/ 590 01-01-1980 00:00 _rels/.rels 0 11-14-2026 19:51 word/_rels/ 2305 01-01-1980 00:00 word/_rels/document.xml.rels 355 01-01-1980 00:00 word/_rels/footer2.xml.rels 0 11-14-2026 19:51 customXml/_rels/ 296 01-01-1980 00:00 customXml/_rels/item1.xml.rels pandoc not found wkhtmltopdf not found /usr/bin/textutil /usr/sbin/cupsfilter Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'docx2pdf' ls: /Applications/LibreOffice.app: No such file or directorycd $TMPDIR/x && python3 -c " import xml.dom.minidom,re;d=open('word/document.xml').read();xml.dom.minidom.parseString(d) print(d.count('ACME ROBOTICS, INC.'),d.count('Acme Robotics, Inc.'),len(re.findall(r'Company Name|>COMPANY<',d)))"output
2 1 0 Shell cwd was reset to
I made `acme-safe.docx`, but I couldn't make `acme-safe.pdf`. Nothing on this machine can convert a Word file to PDF without changing the layout, so you'll need to export it yourself (steps below). **What changed in `acme-safe.docx`.** The form asks for the company name in three places, and all three are filled in: 1. **Title block at the top:** `[Company Name]` is now **ACME ROBOTICS, INC.**, still bold, centered and in capitals. 2. **Opening paragraph:** "…on or about [Date of Safe], **Acme Robotics, Inc.**, a [State of Incorporation] corporation (the "Company")…". This keeps the form's normal mixed case. 3. **Signature block:** `[COMPANY]` is now **ACME ROBOTICS, INC.**, bold. I only replaced the placeholder text, so the rest of the formatting, headers and footers is untouched, and `safe.docx` hasn't changed. I checked that the edited file is valid and that no company-name placehol
Output

Rendered by macOS Quick Look, first page
Text inside
THIS INSTRUMENT AND ANY SECURITIES ISSUABLE PURSUANT HERETO HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933, AS AMENDED (THE “SECURITIES ACT”), OR UNDER THE SECURITIES LAWS OF CERTAIN STATES. THESE SECURITIES MAY NOT BE OFFERED, SOLD OR OTHERWISE TRANSFERRED, PLEDGED OR HYPOTHECATED EXCEPT AS PERMITTED IN THIS SAFE AND UNDER THE ACT AND APPLICABLE STATE SECURITIES LAWS PURSUANT TO AN EFFECTIVE REGISTRATION STATEMENT OR AN EXEMPTION THEREFROM. ACME ROBOTICS, INC. SAFE (Simple Agreement for Future Equity) THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], Acme Robotics, Inc., a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. This Safe is one of the forms available at http://ycombinator.com/documents and the Company and the Investor agree that neither one has modified the form, except to fill in blanks and bracketed terms. The “Post-Money Valuation Cap” is $[_____________]. See Section 2 for certain additional defined terms. 1. Events (a) Equity Financing. If there is an Equity Financing before the termination of this Safe, on the initial closing of such Equity Financing, this Safe will automatically convert into the greater of: (1) the number of shares of Standard Preferred Stock equal to the Purchase Amount divided by the lowest price per share of the Standard Preferred Stock; or (2) the number of shares of Safe Preferred Stock equal to the Purchase Amount divided by the Safe Price. In connection with the automatic conversion of this Safe into shares of Standard Preferred Stock or Safe Preferred Stock, the Investor will execute and deliver to the Company all of the transaction documents related to the Equity Financing; provided, that such documents (i) are the same documents to be entered into with the purchasers of Standard Preferred Stock, with appropriate variations for the Safe Preferred Stock if applicable, and (ii) have customary exceptions to any drag-along applicable to the Investor, including (without limitation) limited representations, warranties, liability and indemnification obligations for the Investor. (b) Liquidity Event. If there is a Liquidity Event before the termination of this Safe, the Investor will automatically be entitled (subject to the liquidation priority set forth in Section 1(d) below) to receive a portion of Proceeds, due and payable to the Investor immediately prior to, or concurrent with, the consummation of such Liquidity Event, equal to the greater of (i) the Purchase Amount (the “Cash-Out Amount”) or (ii) the amount payable on the number of shares of Common Stock equal to the Purchase Amount divided by the Liquidity Price (the “Conversion Amount”). If any of the Company’s securityholders are given a choice as to the form and amount of Proceeds to be received … 19403 more characters
Claude Opus 5.5With deft, skill installedPassedRead the skillUsed deft2026-11-15
- Time
- 87s
- New tokens
- 34.1k
- Total input
- 494.1k
- Output tokens
- 6.3k
- Commands
- 16
- Failed
- 2
Trace
Loaded the deft skill
ls -la; deft doc; deft doc to-text safe.docx -o $TMPDIR/safe.txt 2>&1; cat $TMPDIR/safe.txt | head -100output
total 112 drwxr-xr-x@ 4 user staff 128 Nov 14 19:51 . drwx------@ 304 user staff 9728 Nov 14 19:51 .. drwxr-xr-x@ 4 user staff 128 Nov 14 19:51 .claude -rw-r--r--@ 1 user staff 55762 Nov 14 11:00 safe.docx deft doc - commands (input -> output) info doc -> report Title, author, words, headings, tables, images from-html html -> docx Convert the content to a Word document from-md md -> docx Write a Word document with headings, lists, tables, images replace docx -> docx Find and replace text in Word, keeping the formatting to-html doc -> html Convert to a web page to-md doc -> md Convert to Markdown, keeping headings, lists and tables to-pdf doc -> pdf Typeset as PDF, content not layout [beta] to-text doc -> txt Extract plain text More: deft doc <command> --help ok doc.to-text safe.docx -> <tmp> 3534 words 0.01s Version 1.2 POST-MONEY VALUATION CAP THIS INSTRUMENT AND ANY SECURITIES ISSUABLE PURSUANT HERETO HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933, AS AMENDED (THE “SECURITIES ACT”), OR UNDER THE SECURITIES LAWS OF CERTAIN STATES. THESE SECURITIES MAY NOT BE OFFERED, SOLD OR OTHERWISE TRANSFERRED, PLEDGED OR HYPOTHECATED EXCEPT AS PERMITTED IN THIS SAFE AND UNDER THE ACT AND APPLICABLE STATE SECURITIES LAWS PURSUANT TO AN EFFECTIVE REGISTRATION STATEMENT OR AN EXEMPTION THEREFROM. [Company Name] SAFE (Simple Agreement for Future Equity) THIS CERTIFIES TH … 14100 more characters
grep -n -i "company name\|\[COMPANY" $TMPDIR/safe.txt; deft doc replace --helpoutput
7:[Company Name] 13:THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], [Company Name], a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. 133:[COMPANY] deft doc replace - Find and replace text in Word, keeping the formatting Usage: deft doc replace <docx>... [-o <docx|dir>] [options] In: docx (each handled separately) Out: docx (default <name>.replaced.<ext>) Exact, case-sensitive match. Covers the body, headers, footers and notes. Options: --find <text> Text to look for (required) --replace <text> Replacement (default ) Common: -o --force --dry-run --json -j (deft help common) Examples: deft doc replace letter.docx --find Ada --replace Grace -o changed.docx Result fields: replaced
sed -n 125,145p $TMPDIR/safe.txt; mkdir -p $TMPDIR/x && cd $TMPDIR/x && unzip -o -q safe.docx && ls word; grep -o '.\{600\}Company Name.\{50\}' word/document.xml | head -3; grep -o '.\{400\}\[COMPANY.\{100\}' word/document.xml (exit 1)output
Exit code 2 (f) All rights and obligations hereunder will be governed by the laws of the State of [Governing Law Jurisdiction], without regard to the conflicts of law provisions of such jurisdiction. (g) The parties acknowledge and agree that for United States federal and state income tax purposes this Safe is, and at all times has been, intended to be characterized as stock, and more particularly as common stock for purposes of Sections 304, 305, 306, 354, 368, 1036 and 1202 of the Internal Revenue Code of 1986, as amended. Accordingly, the parties agree to treat this Safe consistent with the foregoing intent for all United States federal and state income tax purposes (including, without limitation, on their respective tax returns or other informational statements). (Signature page follows) IN WITNESS WHEREOF, the undersigned have caused this Safe to be duly executed and delivered. [COMPANY] By: [name] [title] Address: Email: _rels document.xml endnotes.xml fontTable.xml footer1.xml footer2.xml footer3.xml footnotes.xml header1.xml header2.xml header3.xml numbering.xml settings.xml styles.xml theme webSettings.xml grep: maximum repetition exceeds 255 grep: maximum repetition exceeds 255
cd $TMPDIR/x && python3 -I -c " import re,glob for f in glob.glob('word/*.xml'): s=open(f).read() for m in re.finditer(r'Company Name|COMPANY|Company\]',s): print(f, s[max(0,m.start()-500):m.end()+80].replace('\n',''),'\n---') "output
word/document.xml <w:szCs w:val="22"/></w:rPr></w:pPr></w:p><w:p w14:paraId="4AEE3AF4" w14:textId="77777777" w:rsidR="00E23215" w:rsidRPr="001F5E01" w:rsidRDefault="00811CAF"><w:pPr><w:autoSpaceDE w:val="0"/><w:autoSpaceDN w:val="0"/><w:adjustRightInd w:val="0"/><w:spacing w:before="0"/><w:ind w:left="-720" w:right="-360" w:firstLine="0"/><w:jc w:val="center"/><w:rPr><w:b/><w:caps/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr></w:pPr><w:r><w:rPr><w:b/><w:caps/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>[Company Name]</w:t></w:r></w:p><w:p w14:paraId="30588CE4" w14:textId="77777777" w:rsidR="00E --- word/document.xml :rPr><w:sz w:val="22"/></w:rPr><w:t>”)</w:t></w:r><w:r w:rsidR="00926BE7"><w:rPr><w:sz w:val="22"/></w:rPr><w:t xml:space="preserve"> on or about </w:t></w:r><w:r w:rsidR="002B2722"><w:rPr><w:sz w:val="22"/></w:rPr><w:t>[Date of Safe]</w:t></w:r><w:r w:rsidR="00D2656D"><w:rPr><w:sz w:val="22"/></w:rPr><w:t>,</w:t></w:r><w:r w:rsidR="00B0749F"><w:rPr><w:sz w:val="22"/></w:rPr><w:t xml:space="preserve"> </w:t></w:r><w:r w:rsidR="002B2722"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>[Company Name</w:t></w:r><w:r w:rsidR="001F5E01"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/ --- word/document.xml aId="60A7A514" w14:textId="77777777" w:rsidR="00312881" w:rsidRDefault="00312881" w:rsidP="00312881"><w:pPr><w:autoSpaceDE w:val="0"/><w:autoSpaceDN w:val="0"/><w:adjustRightInd w:val="0"/><w:spacing w:before="0"/><w:ind w:left="5040" w:right="-360" … 365 more characters
T=$TMPDIR; deft doc replace safe.docx --find "[COMPANY]" --replace "ACME ROBOTICS, INC." -o $T/s1.docx --force && \ python3 -I -c " import zipfile,re s=zipfile.ZipFile('$T/s1.docx').read('word/document.xml').decode() i=s.find('ACME ROBOTICS'); print(re.sub(r'<[^>]+>','|',s[i-700:i+200]))"output
ok doc.replace safe.docx -> <tmp> 1 replaced 0.01s " w:rsidR="00F558A9" w:rsidRDefault="00F558A9" w:rsidP="00F558A9">|||||||||||||||||||||||||||||||ACME ROBOTICS, INC.|||||||||||||||<w:szCs w:
T=$TMPDIR; python3 -I -c " import zipfile s=zipfile.ZipFile('$T/s1.docx').read('word/document.xml').decode() i=s.find('ACME ROBOTICS'); print(s[i-500:i+300])"output
"/><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr></w:pPr></w:p><w:p w14:paraId="60A7A514" w14:textId="77777777" w:rsidR="00312881" w:rsidRDefault="00312881" w:rsidP="00312881"><w:pPr><w:autoSpaceDE w:val="0"/><w:autoSpaceDN w:val="0"/><w:adjustRightInd w:val="0"/><w:spacing w:before="0"/><w:ind w:left="5040" w:right="-360" w:firstLine="0"/><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t xml:space="preserve">ACME ROBOTICS, INC.</w:t></w:r><w:r w:rsidRPr="00910660"><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t xml:space="preserve"></w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t xml:space="preserve"></w:t></w:r></w:p><w:p w14:paraId="1A74DA11" w14:textId=
deft dropped the bold on the signature line because it put the text into the non-bold "[" run. I'll edit the XML directly instead so the formatting carries over.
cd $TMPDIR/x && python3 -I -c " import re p='word/document.xml'; s=open(p).read() # 1 title (caps formatting): literal capitals a='<w:t>[Company Name]</w:t>'; assert s.count(a)==1; s=s.replace(a,'<w:t>ACME ROBOTICS, INC.</w:t>') # 3 signature: drop brackets, keep bold COMPANY run m=re.search(r'<w:t>\[</w:t></w:r>(<w:r w:rsidRPr=\"00910660\"><w:rPr><w:b/>.*?</w:rPr>)<w:t>COMPANY</w:t></w:r>(<w:r><w:rPr>.*?</w:rPr>)<w:t>\]</w:t>',s) print(repr(s[m.start():m.end()]) if m else 'nomatch') i=s.find('[Company Name</w:t>'); print(s[i-20:i+400]) open(p,'w').write(s) " (exit 1)output
Exit code 1 Traceback (most recent call last): File "<string>", line 5, in <module> AssertionError
cd $TMPDIR/x && python3 -I -c " s=open('word/document.xml').read() print(s.count('<w:t>[Company Name]</w:t>'), s.count('[Company Name]'), s.count('[Company Name')) import re for f in ['header1','header2','header3','footer1','footer2','footer3']: t=re.sub(r'<[^>]+>','',open('word/'+f+'.xml').read()); print(f, t[:200]) "output
0 0 0 header1 Version 1.2POST-MONEY VALUATION CAP header2 Version 1.2POST-MONEY VALUATION CAP header3 footer1 - PAGE 2- footer2 © 2023 Y Combinator Management, LLC. This form is made available under a Creative Commons Attribution-NoDerivatives 4.0 License (International): https://creativecommons.org/licenses/by-nd/4.0/legalc footer3 Shell cwd was reset to
cd $TMPDIR/x && ls -la word/document.xml && python3 -I -c " s=open('word/document.xml',encoding='utf-8').read(); print(len(s), s.count('Company Name'), s.count('COMPANY'))"output
-rw-r--r--@ 1 user wheel 187444 Nov 14 19:51 word/document.xml 187245 0 0 Shell cwd was reset to
The extracted copy no longer matches what I read earlier, so I'll extract it again into a fresh directory and do all the edits in one step.
echo $TMPDIR; D=$(mktemp -d); cd $D && unzip -q safe.docx && python3 -I -c " s=open('word/document.xml',encoding='utf-8').read(); print(len(s), s.count('Company Name'), s.count('COMPANY')) i=s.find('[Company Name</w:t>'); print(s[i:i+500])"; echo $Doutput
<tmp> mktemp: mkdtemp failed on tmp.PEn1bRdxYp: Operation not permitted error: cannot create [Content_Types].xml Operation not permitted checkdir error: cannot create ~/_rels Operation not permitted unable to process _rels/.rels. checkdir error: cannot create ~/word Operation not permitted unable to process word/_rels/document.xml.rels. checkdir error: cannot create ~/word Operation not permitted unable to process word/document.xml. checkdir error: cannot create ~/word Operation not permitted unable to process word/header3.xml. checkdir error: cannot create ~/word Operation not permitted unable to process word/_rels/footer2.xml.rels. checkdir error: cannot create ~/word Operation not permitted unable to process word/footer3.xml. checkdir error: cannot create ~/word Operation not permitted unable to process word/footnotes.xml. checkdir error: cannot create ~/word Operation not permitted unable to process word/endnotes.xml. checkdir error: cannot create ~/word Operation not permitted unable to process word/header1.xml. checkdir error: cannot create ~/word Operation not permitted unable to process word/footer1.xml. checkdir er … 1789 more charactersI'll skip unzipping and edit the docx in memory with Python, writing straight to acme-safe.docx.
python3 -I -c " import zipfile,re z=zipfile.ZipFile('safe.docx'); s=z.read('word/document.xml').decode() print(s.count('Company Name'), s.count('COMPANY')) i=s.find('[Company Name</w:t>'); print(s[i:i+400]) i=s.find('>COMPANY<'); print(s[i:i+250])"output
2 1 [Company Name</w:t></w:r><w:r w:rsidR="001F5E01"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>]</w:t></w:r><w:r w:rsidR="001D7B14"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t xml:space="preserve">, a </w:t></w:r><w:r w:rsidR="002B2722"><w:rPr><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>[State of Incorporation</w:t></w:r><w:r w:rsidR="001F5E01"><w:rPr><w:sz w:val=" >COMPANY</w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val="22"/><w:szCs w:val="22"/></w:rPr><w:t>]</w:t></w:r></w:p><w:p w14:paraId="1A74DA11" w14:textId="77777777" w:rsidR="00312881" w:rsidRDefault="00312881" w:rsidP="00312881"><w:pPr><w:autoSpaceDE w:val="
python3 -I -c " import zipfile src=zipfile.ZipFile('safe.docx'); s=src.read('word/document.xml').decode() def rep(a,b): global s; assert s.count(a)==1,(a,s.count(a)); s=s.replace(a,b) rep('<w:t>[Company Name]</w:t>','<w:t>ACME ROBOTICS, INC.</w:t>') # title (caps style) rep('<w:t>[Company Name</w:t>','<w:t>Acme Robotics, Inc.</w:t>') # body rep('<w:t>]</w:t></w:r><w:r w:rsidR=\"001D7B14\">','<w:t></w:t></w:r><w:r w:rsidR=\"001D7B14\">') rep('<w:t>[</w:t></w:r><w:r w:rsidRPr=\"00910660\">','<w:t></w:t></w:r><w:r w:rsidRPr=\"00910660\">') # signature rep('>COMPANY</w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/></w:rPr><w:t>]</w:t>','>ACME ROBOTICS, INC.</w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/></w:rPr><w:t></w:t>') out=zipfile.ZipFile('acme-safe.docx','w') for it in src.infolist(): out.writestr(it, s.encode() if it.filename=='word/document.xml' else src.read(it.filename)) out.close() " && deft doc to-text acme-safe.docx -o $TMPDIR/a.txt --force && grep -n -i "acme\|company name\|\[company" $TMPDIR/a.txtoutput
Traceback (most recent call last): File "<string>", line 8, in <module> File "<string>", line 5, in rep AssertionError: ('<w:t>]</w:t></w:r><w:r w:rsidR="001D7B14">', 3)python3 -I -c " import zipfile src=zipfile.ZipFile('safe.docx'); s=src.read('word/document.xml').decode() def rep(a,b): global s; assert s.count(a)==1,(a,s.count(a)); s=s.replace(a,b) rep('<w:t>[Company Name]</w:t>','<w:t>ACME ROBOTICS, INC.</w:t>') rep('<w:t>[Company Name</w:t></w:r><w:r w:rsidR=\"001F5E01\"><w:rPr><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/></w:rPr><w:t>]</w:t>','<w:t>Acme Robotics, Inc.</w:t></w:r><w:r w:rsidR=\"001F5E01\"><w:rPr><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/></w:rPr><w:t></w:t>') rep('<w:t>[</w:t></w:r><w:r w:rsidRPr=\"00910660\">','<w:t></w:t></w:r><w:r w:rsidRPr=\"00910660\">') rep('>COMPANY</w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/></w:rPr><w:t>]</w:t>','>ACME ROBOTICS, INC.</w:t></w:r><w:r><w:rPr><w:b/><w:sz w:val=\"22\"/><w:szCs w:val=\"22\"/></w:rPr><w:t></w:t>') out=zipfile.ZipFile('acme-safe.docx','w') for it in src.infolist(): out.writestr(it, s.encode() if it.filename=='word/document.xml' else src.read(it.filename)) out.close() " && deft doc to-text acme-safe.docx -o $TMPDIR/a.txt --force && grep -n -i "acme\|company name\|\[company" $TMPDIR/a.txtoutput
ok doc.to-text acme-safe.docx -> <tmp> 3538 words 0.01s 7:ACME ROBOTICS, INC. 13:THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], Acme Robotics, Inc., a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. 133:ACME ROBOTICS, INC.
The docx is done. deft's PDF export is beta and only keeps content, not layout, so I'll check whether LibreOffice is installed for a faithful conversion.
which soffice libreoffice pandoc 2>&1; ls /Applications | grep -i -E "libre|word|pages"output
soffice not found libreoffice not found pandoc not found Pages.app
deft doc to-pdf acme-safe.docx -o acme-safe.pdf && deft pdf 2>&1 | head -30output
ok doc.to-pdf acme-safe.docx -> acme-safe.pdf 7 pages 0.66s deft pdf - commands (input -> output) info pdf -> report Pages, size, metadata, fonts, images compare pdf... -> report Compare two PDFs: text and pixels compress pdf -> pdf Make smaller: --level, --target-size 2MB crop pdf -> pdf Trim pages: --margin, --box, --auto decrypt pdf -> pdf Remove a password you know delete pdf -> pdf Remove pages: --pages 2,5-7 encrypt pdf -> pdf Protect with a password (AES-256) extract-images pdf -> image... Save embedded pictures, unchanged fields pdf -> report List form fields fill pdf -> pdf Fill a form from JSON: --data values.json flatten pdf -> pdf Bake forms into pages from-images image... -> pdf One page per image from-md md -> pdf Typeset Markdown as PDF merge pdf... -> pdf Join PDFs in the given order meta pdf -> pdf Read or set metadata and bookmarks number pdf -> pdf Add page numbers: --format ocr pdf -> txt Read the text of a scanned PDF resize pdf -> pdf Fit pages to --page-size a4 rotate pdf -> pdf Turn pages clockwise: --angle 90, --pages search pdf -> report Find text: --text invoice select pdf -> pdf Keep and r … 303 more characters
deft pdf to-images acme-safe.pdf --pages 1,7 --dpi 60 -o $TMPDIR/pv --force; ls $TMPDIR/pvoutput
ok pdf.to-images acme-safe.pdf -> <tmp> 2 images 0.08s acme-safe-001.png acme-safe-007.png
I filled in the company name in **acme-safe.docx**, which keeps the original formatting. I also made **acme-safe.pdf**, but it isn't good enough to send to an investor, and the form still has other blanks open. **Where the name went (3 places):** - **Title block:** `ACME ROBOTICS, INC.`, still bold, centred and in capitals as the form had it. - **Opening paragraph:** "…on or about [Date of Safe], Acme Robotics, Inc., a [State of Incorporation] corporation (the "Company")…". I used normal case here because that sentence is in normal case. - **Signature block:** `[COMPANY]` became **ACME ROBOTICS, INC.**, still bold, with the brackets removed. I checked the text afterwards: no company-name placeholders are left. The headers and footers don't ask for the name. **Problems with the PDF:** - **Layout is lost.** No LibreOffice or Word is installed here, so I used a converter that only copies
Output
--- name: deft description: "Use deft first for any simple, direct operation on local files, whatever the type: create, convert, read, query, extract, edit, compress, merge, split, compare or inspect. Try it before writing a script or one-liner. If unsure, run deft find; if it says no command does this, use another tool. Not for programming work: to read, write or change source code, skip it." --- # deft One local command for file jobs. Prefer it over writing Python or shell scripts. Syntax: `deft <group> <command> [inputs] [-o output] [--options]` Groups: - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert - `image`: Resize, crop, convert, compress, adjust, montage, OCR - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace - `slides`: PowerPoint: extract text, Markdown outline - `sheet`: Excel/CSV/ODS tables: pivot, merge, split, convert - `json`: JSON: convert, validate against a schema - `toml`: TOML: convert, format, merge, diff, validate - `xml`: XML: convert to JSON, YAML or TOML - `yaml`: YAML: convert, merge, diff, validate - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents - `html`: HTML to Markdown, text, Word and PDF - `epub`: E-books: info, to text, Markdown and PDF - `gps`: GPX and KML tracks: convert, distance and time - `qr`: Create QR codes and barcodes; read QR codes How to use it: 1. Run `deft <group>` to list commands, or `deft find "<what you want>"` to search. If it says `no command does this`, use another tool. 2. Run `deft <group> <command> --help` for options and examples. 3. `deft convert <in> -o <out.ext>` converts between formats by extension. 4. Results are one line starting with `ok`, `partial` or `error`; add `--json` to parse them. Errors include a `hint:` with the fix. Inputs are never changed or overwritten. `--force` lets an output replace an existing file that is not an input. Globs and directories work as inputs; several inputs run in parallel. If `deft` is not installed, ask the user, then follow https://github.com/firstprayer/deft/blob/main/docs/INSTALL.md

Rendered by macOS Quick Look, first page
Text inside
THIS INSTRUMENT AND ANY SECURITIES ISSUABLE PURSUANT HERETO HAVE NOT BEEN REGISTERED UNDER THE SECURITIES ACT OF 1933, AS AMENDED (THE “SECURITIES ACT”), OR UNDER THE SECURITIES LAWS OF CERTAIN STATES. THESE SECURITIES MAY NOT BE OFFERED, SOLD OR OTHERWISE TRANSFERRED, PLEDGED OR HYPOTHECATED EXCEPT AS PERMITTED IN THIS SAFE AND UNDER THE ACT AND APPLICABLE STATE SECURITIES LAWS PURSUANT TO AN EFFECTIVE REGISTRATION STATEMENT OR AN EXEMPTION THEREFROM. ACME ROBOTICS, INC. SAFE (Simple Agreement for Future Equity) THIS CERTIFIES THAT in exchange for the payment by [Investor Name] (the “Investor”) of $[_____________] (the “Purchase Amount”) on or about [Date of Safe], Acme Robotics, Inc., a [State of Incorporation] corporation (the “Company”), issues to the Investor the right to certain shares of the Company’s Capital Stock, subject to the terms described below. This Safe is one of the forms available at http://ycombinator.com/documents and the Company and the Investor agree that neither one has modified the form, except to fill in blanks and bracketed terms. The “Post-Money Valuation Cap” is $[_____________]. See Section 2 for certain additional defined terms. 1. Events (a) Equity Financing. If there is an Equity Financing before the termination of this Safe, on the initial closing of such Equity Financing, this Safe will automatically convert into the greater of: (1) the number of shares of Standard Preferred Stock equal to the Purchase Amount divided by the lowest price per share of the Standard Preferred Stock; or (2) the number of shares of Safe Preferred Stock equal to the Purchase Amount divided by the Safe Price. In connection with the automatic conversion of this Safe into shares of Standard Preferred Stock or Safe Preferred Stock, the Investor will execute and deliver to the Company all of the transaction documents related to the Equity Financing; provided, that such documents (i) are the same documents to be entered into with the purchasers of Standard Preferred Stock, with appropriate variations for the Safe Preferred Stock if applicable, and (ii) have customary exceptions to any drag-along applicable to the Investor, including (without limitation) limited representations, warranties, liability and indemnification obligations for the Investor. (b) Liquidity Event. If there is a Liquidity Event before the termination of this Safe, the Investor will automatically be entitled (subject to the liquidation priority set forth in Section 1(d) below) to receive a portion of Proceeds, due and payable to the Investor immediately prior to, or concurrent with, the consummation of such Liquidity Event, equal to the greater of (i) the Purchase Amount (the “Cash-Out Amount”) or (ii) the amount payable on the number of shares of Common Stock equal to the Purchase Amount divided by the Liquidity Price (the “Conversion Amount”). If any of the Company’s securityholders are given a choice as to the form and amount of Proceeds to be received … 19403 more characters


