Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/buaabarty_mural.json
T

1 line
4.4 KiB
JSON

{"repo": "buaabarty/mural", "files": {"run_fl.sh": {"3b110a749cea156bc9c13799d1997181e38fa17c": {"t": 1785745943.094124, "n": 1967, "h": "9b57e276ac775e82", "c": "#!/usr/bin/env bash\n\nexport http_proxy=http://172.27.16.1:7890\nexport https_proxy=http://172.27.16.1:7890\nunset all_proxy\nexport HF_ENDPOINT=https://hf-mirror.com\nexport KGCOMPASS_LOAD_DOTENV=\"${KGCOMPASS_LOAD_DOTENV:-0}\"\nunset OPENAI_API_KEY ANTHROPIC_API_KEY DASHSCOPE_API_KEY MOONSHOT_API_KEY BAILIAN_API_KEY DEEPSEEK_API_KEY QWEN_API_KEY\n\nBASE_DIR=\"${1:-runs/kg_verified}\"\nLOG_DIR=\"${2:-logs/calc_prefl}\"\nJOBS=\"${JOBS:-1}\"\nRESUME=\"${RESUME:-1}\"\n\nmkdir -p \"$LOG_DIR\"\n\nrun_ids=()\nif [[ -n \"${RUN_IDS:-}\" ]]; then\n read -r -a run_ids <<< \"$RUN_IDS\"\nelse\n for d in \"$BASE_DIR\"/*; do\n if [[ -d \"$d\" ]]; then\n name=\"$(basename \"$d\")\"\n if [[ \"$name\" != _* ]]; then\n run_ids+=(\"$name\")\n fi\n fi\n done\nfi\n\nif [[ ${#run_ids[@]} -eq 0 ]]; then\n echo \"No run-id directories found under $BASE_DIR\"\n exit 0\nfi\n\nIFS=$'\\n' sorted=($(printf \"%s\\n\" \"${run_ids[@]}\" | sort))\nunset IFS\n\nfor run_id in \"${sorted[@]}\"; do\n log_file=\"$LOG_DIR/${run_id}.log\"\n if [[ ! -d \"$BASE_DIR/$run_id\" ]]; then\n echo \"===== Skip run-id ${run_id} (directory not found under $BASE_DIR) =====\"\n continue\n fi\n if ! compgen -G \"$BASE_DIR/$run_id/*.json\" >/dev/null && \\\n ! compgen -G \"$BASE_DIR/$run_id/*/*.json\" >/dev/null; then\n echo \"===== Skip run-id ${run_id} (no JSON location files) =====\"\n continue\n fi\n if [[ \"$RESUME\" == \"1\" && -f \"$log_file\" ]] && grep -q \"========== Figure 8 ==========\" \"$log_file\"; then\n echo \"===== Skip run-id ${run_id} (completed log exists) =====\"\n continue\n fi\n\n echo \"===== Running calc_prefl for run-id ${run_id} =====\"\n if [[ \"$JOBS\" -le 1 ]]; then\n python3 kgcompass/calc_prefl.py --base-dir \"$BASE_DIR\" --run-id \"$run_id\" 2>&1 | tee \"$log_file\"\n else\n (\n python3 kgcompass/calc_prefl.py --base-dir \"$BASE_DIR\" --run-id \"$run_id\" 2>&1 | tee \"$log_file\"\n ) &\n while [[ \"$(jobs -pr | wc -l)\" -ge \"$JOBS\" ]]; do\n wait -n\n done\n fi\ndone\n\nif [[ \"$JOBS\" -gt 1 ]]; then\n wait\nfi\n"}, "53d6ff2dff8233737388d77769f8766927e2d794": {"t": 1785758141.2139843, "n": 1967, "h": "9b57e276ac775e82", "c": "#!/usr/bin/env bash\n\nexport http_proxy=http://172.27.16.1:7890\nexport https_proxy=http://172.27.16.1:7890\nunset all_proxy\nexport HF_ENDPOINT=https://hf-mirror.com\nexport KGCOMPASS_LOAD_DOTENV=\"${KGCOMPASS_LOAD_DOTENV:-0}\"\nunset OPENAI_API_KEY ANTHROPIC_API_KEY DASHSCOPE_API_KEY MOONSHOT_API_KEY BAILIAN_API_KEY DEEPSEEK_API_KEY QWEN_API_KEY\n\nBASE_DIR=\"${1:-runs/kg_verified}\"\nLOG_DIR=\"${2:-logs/calc_prefl}\"\nJOBS=\"${JOBS:-1}\"\nRESUME=\"${RESUME:-1}\"\n\nmkdir -p \"$LOG_DIR\"\n\nrun_ids=()\nif [[ -n \"${RUN_IDS:-}\" ]]; then\n read -r -a run_ids <<< \"$RUN_IDS\"\nelse\n for d in \"$BASE_DIR\"/*; do\n if [[ -d \"$d\" ]]; then\n name=\"$(basename \"$d\")\"\n if [[ \"$name\" != _* ]]; then\n run_ids+=(\"$name\")\n fi\n fi\n done\nfi\n\nif [[ ${#run_ids[@]} -eq 0 ]]; then\n echo \"No run-id directories found under $BASE_DIR\"\n exit 0\nfi\n\nIFS=$'\\n' sorted=($(printf \"%s\\n\" \"${run_ids[@]}\" | sort))\nunset IFS\n\nfor run_id in \"${sorted[@]}\"; do\n log_file=\"$LOG_DIR/${run_id}.log\"\n if [[ ! -d \"$BASE_DIR/$run_id\" ]]; then\n echo \"===== Skip run-id ${run_id} (directory not found under $BASE_DIR) =====\"\n continue\n fi\n if ! compgen -G \"$BASE_DIR/$run_id/*.json\" >/dev/null && \\\n ! compgen -G \"$BASE_DIR/$run_id/*/*.json\" >/dev/null; then\n echo \"===== Skip run-id ${run_id} (no JSON location files) =====\"\n continue\n fi\n if [[ \"$RESUME\" == \"1\" && -f \"$log_file\" ]] && grep -q \"========== Figure 8 ==========\" \"$log_file\"; then\n echo \"===== Skip run-id ${run_id} (completed log exists) =====\"\n continue\n fi\n\n echo \"===== Running calc_prefl for run-id ${run_id} =====\"\n if [[ \"$JOBS\" -le 1 ]]; then\n python3 kgcompass/calc_prefl.py --base-dir \"$BASE_DIR\" --run-id \"$run_id\" 2>&1 | tee \"$log_file\"\n else\n (\n python3 kgcompass/calc_prefl.py --base-dir \"$BASE_DIR\" --run-id \"$run_id\" 2>&1 | tee \"$log_file\"\n ) &\n while [[ \"$(jobs -pr | wc -l)\" -ge \"$JOBS\" ]]; do\n wait -n\n done\n fi\ndone\n\nif [[ \"$JOBS\" -gt 1 ]]; then\n wait\nfi\n"}}}}