fc-data 0.2.0__py3-none-any.whl
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.
- datasmith/__init__.py +330 -0
- datasmith/__init__.pyi +194 -0
- datasmith/agents/__init__.py +31 -0
- datasmith/agents/classifiers.py +272 -0
- datasmith/agents/codex.py +25 -0
- datasmith/agents/config.py +108 -0
- datasmith/agents/extractors.py +197 -0
- datasmith/agents/installed/README.md +52 -0
- datasmith/agents/installed/__init__.py +22 -0
- datasmith/agents/installed/base.py +240 -0
- datasmith/agents/installed/claude.py +134 -0
- datasmith/agents/installed/codex.py +91 -0
- datasmith/agents/installed/gemini.py +118 -0
- datasmith/agents/installed/none.py +27 -0
- datasmith/agents/sandbox.py +547 -0
- datasmith/agents/synthesizer.py +439 -0
- datasmith/agents/templates/AGENTS.md.j2 +150 -0
- datasmith/agents/templates/sandbox_verify.py +428 -0
- datasmith/docker/__init__.py +31 -0
- datasmith/docker/context.py +112 -0
- datasmith/docker/images.py +158 -0
- datasmith/docker/publish.py +56 -0
- datasmith/docker/templates/Dockerfile.base +26 -0
- datasmith/docker/templates/Dockerfile.pr +42 -0
- datasmith/docker/templates/Dockerfile.repo +11 -0
- datasmith/docker/templates/docker_build_base.sh +780 -0
- datasmith/docker/templates/docker_build_env.sh +309 -0
- datasmith/docker/templates/docker_build_final.sh +106 -0
- datasmith/docker/templates/docker_build_pkg.sh +99 -0
- datasmith/docker/templates/docker_build_run.sh +124 -0
- datasmith/docker/templates/entrypoint.sh +62 -0
- datasmith/docker/templates/parser.py +1405 -0
- datasmith/docker/templates/profile.sh +199 -0
- datasmith/docker/templates/pytest_runner.py +692 -0
- datasmith/docker/templates/run-tests.sh +197 -0
- datasmith/docker/verifiers.py +131 -0
- datasmith/filters.py +154 -0
- datasmith/github/__init__.py +22 -0
- datasmith/github/client.py +333 -0
- datasmith/github/hooks.py +50 -0
- datasmith/github/links.py +110 -0
- datasmith/github/models.py +206 -0
- datasmith/github/render.py +173 -0
- datasmith/github/search.py +66 -0
- datasmith/github/templates/comment.md.j2 +5 -0
- datasmith/github/templates/final.md.j2 +66 -0
- datasmith/github/templates/issues.md.j2 +21 -0
- datasmith/github/templates/repo.md.j2 +1 -0
- datasmith/preflight.py +162 -0
- datasmith/publish/__init__.py +13 -0
- datasmith/publish/huggingface.py +104 -0
- datasmith/publish/pipeline.py +60 -0
- datasmith/publish/records.py +91 -0
- datasmith/py.typed +1 -0
- datasmith/resolution/__init__.py +14 -0
- datasmith/resolution/blocklist.py +145 -0
- datasmith/resolution/cache.py +120 -0
- datasmith/resolution/constants.py +277 -0
- datasmith/resolution/dependency_resolver.py +174 -0
- datasmith/resolution/git_utils.py +378 -0
- datasmith/resolution/import_analyzer.py +66 -0
- datasmith/resolution/metadata_parser.py +412 -0
- datasmith/resolution/models.py +41 -0
- datasmith/resolution/orchestrator.py +522 -0
- datasmith/resolution/package_filters.py +312 -0
- datasmith/resolution/python_manager.py +110 -0
- datasmith/runners/__init__.py +15 -0
- datasmith/runners/base.py +112 -0
- datasmith/runners/classify_prs.py +48 -0
- datasmith/runners/render_problems.py +113 -0
- datasmith/runners/resolve_packages.py +66 -0
- datasmith/runners/scrape_commits.py +166 -0
- datasmith/runners/scrape_repos.py +44 -0
- datasmith/runners/synthesize_images.py +310 -0
- datasmith/update/__init__.py +5 -0
- datasmith/update/cli.py +169 -0
- datasmith/update/offline.py +173 -0
- datasmith/update/pipeline.py +497 -0
- datasmith/utils/__init__.py +18 -0
- datasmith/utils/core.py +67 -0
- datasmith/utils/db.py +156 -0
- datasmith/utils/tokens.py +65 -0
- fc_data-0.2.0.dist-info/METADATA +441 -0
- fc_data-0.2.0.dist-info/RECORD +87 -0
- fc_data-0.2.0.dist-info/WHEEL +4 -0
- fc_data-0.2.0.dist-info/entry_points.txt +2 -0
- fc_data-0.2.0.dist-info/licenses/LICENSE +28 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# set -euo pipefail
|
|
3
|
+
|
|
4
|
+
: "${COMMIT_SHA:?Need to set COMMIT_SHA}"
|
|
5
|
+
: "${ASV_ARGS:?Need to set ASV_ARGS}"
|
|
6
|
+
: "${ASV_CONF_PATH:?Need to set ASV_CONF_PATH}"
|
|
7
|
+
|
|
8
|
+
# 0) Hook in micromamba and activate `base`
|
|
9
|
+
eval "$(micromamba shell hook --shell=bash)"
|
|
10
|
+
|
|
11
|
+
micromamba activate base
|
|
12
|
+
|
|
13
|
+
# 0.5) Tune the container so all CPUs stay at fixed frequency.
|
|
14
|
+
# This requires root; Docker runs as root by default.
|
|
15
|
+
# python -m pyperf system tune || true
|
|
16
|
+
git checkout --quiet "${COMMIT_SHA}"
|
|
17
|
+
|
|
18
|
+
# 2) cd into the folder containing the asv.conf.json
|
|
19
|
+
cd "$(dirname "$ASV_CONF_PATH")"
|
|
20
|
+
|
|
21
|
+
# asv run "$COMMIT_SHA^!" \
|
|
22
|
+
# --show-stderr \
|
|
23
|
+
# ${BENCH_REGEX:+--bench "$BENCH_REGEX"} \
|
|
24
|
+
# ${INTERLEAVE_ROUNDS:+--interleave-rounds} \
|
|
25
|
+
# ${APPEND_SAMPLES:+--append-samples --record-samples} \
|
|
26
|
+
# -a rounds=$ROUNDS \
|
|
27
|
+
# -a number=$NUMBER \
|
|
28
|
+
# -a repeat=$REPEAT \
|
|
29
|
+
# ${CPU_CORE:+-a cpu_affinity=[$CPU_CORE]} \
|
|
30
|
+
# | tee "$OUTPUT_DIR/benchmark_${COMMIT_SHA}.log"
|
|
31
|
+
|
|
32
|
+
# change the "results_dir" in asv.conf.json to "/output/{COMMIT_SHA}/"
|
|
33
|
+
# using python
|
|
34
|
+
# Read the python versions from the asv.conf.json (without jq)
|
|
35
|
+
python_versions=$(python -c "import asv; pythons = asv.config.Config.load('asv.conf.json').pythons; print(' '.join(pythons))")
|
|
36
|
+
for version in $python_versions; do
|
|
37
|
+
# Create per‑Python env and install ASV
|
|
38
|
+
python -c "import asv, os, pathlib
|
|
39
|
+
path = pathlib.Path('/output/'\"$COMMIT_SHA\"'/''\"$version\"')
|
|
40
|
+
path.mkdir(parents=True, exist_ok=True)
|
|
41
|
+
|
|
42
|
+
config = asv.config.Config.load('$CONF_NAME')
|
|
43
|
+
config.results_dir = str(path / 'results')
|
|
44
|
+
config.html_dir = str(path / 'html')
|
|
45
|
+
config.branches = ['HEAD']
|
|
46
|
+
|
|
47
|
+
asv.util.write_json('$CONF_NAME', config.__dict__, api_version=config.api_version)
|
|
48
|
+
asv.util.write_json(path / '$CONF_NAME', config.__dict__, api_version=config.api_version)
|
|
49
|
+
"
|
|
50
|
+
|
|
51
|
+
micromamba create -y -n "asv_${version}" -c conda-forge python="$version" \
|
|
52
|
+
git \
|
|
53
|
+
pyperf \
|
|
54
|
+
libmambapy \
|
|
55
|
+
mamba \
|
|
56
|
+
conda
|
|
57
|
+
micromamba run -n "asv_${version}" pip install asv
|
|
58
|
+
micromamba run asv machine --yes
|
|
59
|
+
micromamba run asv run --show-stderr "$COMMIT_SHA^!" ${ASV_ARGS}
|
|
60
|
+
done
|
|
61
|
+
|
|
62
|
+
echo "Benchmarks complete."
|