Add .gitignore entries for Python and cache artifacts#24
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1cae96332d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| path = Path(td) / name | ||
| path.write_text(text, encoding="utf-8") |
There was a problem hiding this comment.
Sanitize uploaded filenames before writing temporary CSV files
The /api/multi-analyze handler writes user-provided name values directly via Path(td) / name, so a request can supply absolute paths or .. segments and cause writes outside the temporary directory. This becomes a real file-write vulnerability whenever the UI is reachable by untrusted clients (for example when started with --host 0.0.0.0), because path.write_text(...) will overwrite any writable target path. Normalize to a basename and reject absolute/parent traversal components before writing.
Useful? React with 👍 / 👎.
| " if key in merged.columns and key in df.columns:\n" | ||
| " merged = merged.merge(df, on=key, how='outer', suffixes=('', '_r'))\n\n" | ||
| "missing_ratio = merged.isna().mean().sort_values(ascending=False)\n" | ||
| "print('결측 비율 상위:\n', missing_ratio.head(10))\n\n" |
There was a problem hiding this comment.
Escape newline literals in generated pandas example code
The generated pandas_example string inserts \n inside single-quoted print literals (e.g. print('결측 비율 상위:\n', ...)), which becomes an actual newline in the emitted snippet and yields an unterminated string literal when executed. As a result, users copying the provided guidance hit SyntaxError instead of runnable example code, so these print strings should use escaped backslashes (\\n) or separate lines.
Useful? React with 👍 / 👎.
Motivation
Description
.gitignorethat ignores__pycache__/,*.py[cod],.pytest_cache/, and.bitnet_cache/.Testing
pytest -qand all tests passed (19 passed).Codex Task