sunyiyou commited on
Commit
449846b
·
verified ·
1 Parent(s): 21eff62

Update data: 5 units

Browse files

- business_finance/equity_research_summary/tsla_fy2023/software
- business_finance/ff5_public_reconstruction/base/input
- business_finance/ff5_public_reconstruction/base/software
- business_finance/financial_stmt_reconstruction_aapl_fy2024/base/input
- business_finance/financial_stmt_reconstruction_aapl_fy2024/base/software

tasks/business_finance/equity_research_summary/tsla_fy2023/software/bootstrap_libreoffice.ps1 ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ $ErrorActionPreference = "Stop"
2
+ $candidatePaths = @(
3
+ "C:\Program Files\LibreOffice\program\scalc.exe",
4
+ "C:\Program Files (x86)\LibreOffice\program\scalc.exe"
5
+ )
6
+
7
+ foreach ($path in $candidatePaths) {
8
+ if (Test-Path $path) {
9
+ Write-Host "Found LibreOffice Calc at $path"
10
+ exit 0
11
+ }
12
+ }
13
+
14
+ $winget = Get-Command winget -ErrorAction SilentlyContinue
15
+ if (-not $winget) {
16
+ throw "winget is required to install LibreOffice automatically"
17
+ }
18
+
19
+ winget install --id TheDocumentFoundation.LibreOffice --exact --silent --accept-package-agreements --accept-source-agreements
20
+
21
+ foreach ($path in $candidatePaths) {
22
+ if (Test-Path $path) {
23
+ Write-Host "Installed LibreOffice Calc at $path"
24
+ exit 0
25
+ }
26
+ }
27
+
28
+ throw "LibreOffice Calc installation did not produce scalc.exe in the expected paths"
tasks/business_finance/equity_research_summary/tsla_fy2023/software/launch_calc.bat ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+ setlocal
3
+ powershell -ExecutionPolicy Bypass -File "%~dp0bootstrap_libreoffice.ps1"
4
+ if errorlevel 1 exit /b %errorlevel%
5
+ if exist "C:\Program Files\LibreOffice\program\scalc.exe" (
6
+ start "" "C:\Program Files\LibreOffice\program\scalc.exe"
7
+ exit /b 0
8
+ )
9
+ if exist "C:\Program Files (x86)\LibreOffice\program\scalc.exe" (
10
+ start "" "C:\Program Files (x86)\LibreOffice\program\scalc.exe"
11
+ exit /b 0
12
+ )
13
+ echo LibreOffice Calc executable not found after bootstrap.
14
+ exit /b 1
tasks/business_finance/ff5_public_reconstruction/base/software/browser ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ if command -v google-chrome >/dev/null 2>&1; then
4
+ exec google-chrome "$@"
5
+ fi
6
+ if command -v chromium-browser >/dev/null 2>&1; then
7
+ exec chromium-browser "$@"
8
+ fi
9
+ exec chromium "$@"
tasks/business_finance/ff5_public_reconstruction/base/software/python ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec python "$@"
tasks/business_finance/ff5_public_reconstruction/base/software/uv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec uv "$@"
tasks/business_finance/financial_stmt_reconstruction_aapl_fy2024/base/software/README.txt ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # Runtime Notes
2
+
3
+ This task uses free baseline Linux tools only. Stage 4 verifies:
4
+
5
+ - `software/python`
6
+ - `software/pdftotext`
7
+ - `software/grep`
8
+
9
+ No licensed or account-gated software is required.
tasks/business_finance/financial_stmt_reconstruction_aapl_fy2024/base/software/grep ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec /usr/bin/grep "$@"
tasks/business_finance/financial_stmt_reconstruction_aapl_fy2024/base/software/pdftotext ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec /usr/bin/pdftotext "$@"
tasks/business_finance/financial_stmt_reconstruction_aapl_fy2024/base/software/python ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ exec /usr/bin/python "$@"