bertforquestionanswering 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bertforquestionanswering-0.1.0/.gitignore +42 -0
- bertforquestionanswering-0.1.0/LICENSE +17 -0
- bertforquestionanswering-0.1.0/PKG-INFO +11 -0
- bertforquestionanswering-0.1.0/README.md +34 -0
- bertforquestionanswering-0.1.0/bertforquestionanswering/__init__.py +38 -0
- bertforquestionanswering-0.1.0/pyproject.toml +16 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Data (raw/processed, too large for repo)
|
|
2
|
+
data/
|
|
3
|
+
|
|
4
|
+
# Virtual environments
|
|
5
|
+
.venv/
|
|
6
|
+
experiments/*/.venv/
|
|
7
|
+
|
|
8
|
+
# Paper (not published yet)
|
|
9
|
+
paper/
|
|
10
|
+
|
|
11
|
+
# Internal notes
|
|
12
|
+
plans/
|
|
13
|
+
survey/
|
|
14
|
+
FINDINGS.md
|
|
15
|
+
.claude/
|
|
16
|
+
|
|
17
|
+
# Evaluation results (model outputs, traces)
|
|
18
|
+
evaluations/results/
|
|
19
|
+
|
|
20
|
+
# Build artifacts
|
|
21
|
+
dist/
|
|
22
|
+
build/
|
|
23
|
+
*.egg-info/
|
|
24
|
+
__pycache__/
|
|
25
|
+
guardian2/packages/*/dist/
|
|
26
|
+
guardian2/packages/*/build/
|
|
27
|
+
guardian2/test-upload/dist/
|
|
28
|
+
guardian2/test-upload/build/
|
|
29
|
+
|
|
30
|
+
# Secrets
|
|
31
|
+
*.pypirc
|
|
32
|
+
|
|
33
|
+
# LaTeX
|
|
34
|
+
texput.log
|
|
35
|
+
|
|
36
|
+
# OS
|
|
37
|
+
.DS_Store
|
|
38
|
+
|
|
39
|
+
# IDE
|
|
40
|
+
.idea/
|
|
41
|
+
.vscode/
|
|
42
|
+
*.egg-info/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Guardian 2.0 Project
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bertforquestionanswering
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Guardian package: 'bertforquestionanswering' is a commonly hallucinated package name. You probably meant 'transformers'.
|
|
5
|
+
Author-email: "Guardian Project 2.0" <guardian2-pypi@proton.me>
|
|
6
|
+
License: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Classifier: Development Status :: 1 - Planning
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Requires-Python: >=3.8
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# bertforquestionanswering
|
|
2
|
+
|
|
3
|
+
**This is a Guardian 2.0 defensive package.**
|
|
4
|
+
|
|
5
|
+
The package name `bertforquestionanswering` does not exist as a real Python library. It is a name
|
|
6
|
+
commonly hallucinated by AI coding assistants (language models used for code
|
|
7
|
+
generation). This package was registered to prevent malicious actors from
|
|
8
|
+
registering it and distributing malware.
|
|
9
|
+
|
|
10
|
+
## Did you mean `transformers`?
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pip uninstall bertforquestionanswering
|
|
14
|
+
pip install transformers
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What is Guardian 2.0?
|
|
18
|
+
|
|
19
|
+
AI coding assistants sometimes suggest package names that don't exist on PyPI.
|
|
20
|
+
Attackers can register these names and distribute malicious code to anyone
|
|
21
|
+
who follows the AI's suggestion. Guardian 2.0 preemptively registers the most
|
|
22
|
+
commonly hallucinated names with safe, warning-only packages.
|
|
23
|
+
|
|
24
|
+
This project is part of ongoing research into supply chain security risks
|
|
25
|
+
introduced by AI coding agents.
|
|
26
|
+
|
|
27
|
+
## Research
|
|
28
|
+
|
|
29
|
+
This package is part of the study "I Know What Your Agent Imported: AI Coding
|
|
30
|
+
Agents as Supply Chain Attack Amplifiers."
|
|
31
|
+
|
|
32
|
+
## License
|
|
33
|
+
|
|
34
|
+
MIT
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Guardian 2.0 — This package name is commonly hallucinated by AI coding assistants.
|
|
3
|
+
|
|
4
|
+
You probably meant to install: transformers
|
|
5
|
+
pip install transformers
|
|
6
|
+
|
|
7
|
+
This package was registered defensively to protect developers from
|
|
8
|
+
supply chain attacks that exploit AI package hallucinations.
|
|
9
|
+
|
|
10
|
+
Learn more: https://github.com/guardian2-pypi/guardian2
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
import warnings
|
|
14
|
+
import sys
|
|
15
|
+
|
|
16
|
+
_MSG = (
|
|
17
|
+
"\n"
|
|
18
|
+
"==================================================================\n"
|
|
19
|
+
" GUARDIAN 2.0 WARNING\n"
|
|
20
|
+
"==================================================================\n"
|
|
21
|
+
" The package \'bertforquestionanswering\' does not exist.\n"
|
|
22
|
+
" This name is commonly hallucinated by AI coding assistants.\n"
|
|
23
|
+
"\n"
|
|
24
|
+
" You probably meant to install:\n"
|
|
25
|
+
" pip install transformers\n"
|
|
26
|
+
"\n"
|
|
27
|
+
" To fix:\n"
|
|
28
|
+
" pip uninstall bertforquestionanswering\n"
|
|
29
|
+
" pip install transformers\n"
|
|
30
|
+
"\n"
|
|
31
|
+
" This defensive package was registered by the Guardian 2.0\n"
|
|
32
|
+
" project to protect developers from AI hallucination attacks.\n"
|
|
33
|
+
" Learn more: https://github.com/guardian2-pypi/guardian2\n"
|
|
34
|
+
"==================================================================\n"
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
warnings.warn(_MSG, UserWarning, stacklevel=2)
|
|
38
|
+
print(_MSG, file=sys.stderr)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "bertforquestionanswering"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Guardian package: 'bertforquestionanswering' is a commonly hallucinated package name. You probably meant 'transformers'."
|
|
5
|
+
requires-python = ">=3.8"
|
|
6
|
+
license = {text = "MIT"}
|
|
7
|
+
authors = [{name = "Guardian Project 2.0", email = "guardian2-pypi@proton.me"}]
|
|
8
|
+
classifiers = [
|
|
9
|
+
"Development Status :: 1 - Planning",
|
|
10
|
+
"License :: OSI Approved :: MIT License",
|
|
11
|
+
"Programming Language :: Python :: 3",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[build-system]
|
|
15
|
+
requires = ["hatchling"]
|
|
16
|
+
build-backend = "hatchling.build"
|