https://github.com/bytedance/sandboxfusion

https://github.com/bytedance/sandboxfusion

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.5%) to scientific vocabulary

Keywords from Contributors

degoogle
Last synced: 10 months ago · JSON representation

Repository

Basic Info
Statistics
  • Stars: 575
  • Watchers: 5
  • Forks: 48
  • Open Issues: 16
  • Releases: 0
Created over 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License

README.md

Code Sandbox

A secure sandbox for running and judging code generated by LLMs.

Please view the complete documentation at https://bytedance.github.io/SandboxFusion/ .

Table of Contents

Features

Code Runner: Run and return the result of a code snippet

Supported languages:

  • Python (python, pytest)
  • C++
  • C#
  • Go (go, go test)
  • Java (javac, junit)
  • NodeJS
  • Typescript (tsx, jest)
  • Scala
  • Kotlin
  • PHP
  • Rust
  • Bash
  • Lua
  • R
  • Perl
  • D
  • Ruby
  • Julia
  • Verilog
  • CUDA (GPU)
  • Python (GPU)

Jupyter mode kernels:

  • python3

Online Judge: Implementation of Evaluation & RL datasets that requires code running

Cite

@misc{bytedanceseedfoundationcodeteam2025fullstackbenchevaluatingllms, title={FullStack Bench: Evaluating LLMs as Full Stack Coders}, author={Bytedance-Seed-Foundation-Code-Team and : and Yao Cheng and Jianfeng Chen and Jie Chen and Li Chen and Liyu Chen and Wentao Chen and Zhengyu Chen and Shijie Geng and Aoyan Li and Bo Li and Bowen Li and Linyi Li and Boyi Liu and Jiaheng Liu and Kaibo Liu and Qi Liu and Shukai Liu and Siyao Liu and Tianyi Liu and Tingkai Liu and Yongfei Liu and Rui Long and Jing Mai and Guanghan Ning and Z. Y. Peng and Kai Shen and Jiahao Su and Jing Su and Tao Sun and Yifan Sun and Yunzhe Tao and Guoyin Wang and Siwei Wang and Xuwu Wang and Yite Wang and Zihan Wang and Jinxiang Xia and Liang Xiang and Xia Xiao and Yongsheng Xiao and Chenguang Xi and Shulin Xin and Jingjing Xu and Shikun Xu and Hongxia Yang and Jack Yang and Yingxiang Yang and Jianbo Yuan and Jun Zhang and Yufeng Zhang and Yuyu Zhang and Shen Zheng and He Zhu and Ming Zhu}, year={2025}, eprint={2412.00535}, archivePrefix={arXiv}, primaryClass={cs.AI}, url={https://arxiv.org/abs/2412.00535}, }

Contributing

Installation

Docker

Build the image locally:

```bash docker build -f ./scripts/Dockerfile.base -t code_sandbox:base .

change the base image in Dockerfile.server

sed -i '1s/.*/FROM codesandbox:base/' ./scripts/Dockerfile.server docker build -f ./scripts/Dockerfile.server -t codesandbox:server . docker run -d --rm --privileged -p 8080:8080 code_sandbox:server make run-online ```

Manual

Prerequisites: conda, poetry

To install the sandbox service:

```bash conda create -n sandbox -y python=3.12 conda activate sandbox poetry install

to build the real docs, run cd docs && npm ci && npm run build

mkdir -p docs/build make run-online ```

Please refer to scripts/Dockerfile.base for the runtime of each supported language, and scripts/Dockerfile.server for the installation of extra packages for python and nodejs.

For example, if you want to support execution of python code, you should install install-python-runtime.sh bash cd runtime/python bash install-python-runtime.sh

Dev & Test

Refer to installation section for the setup of development environment.

Run all unit tests:

bash make test

Run a specific unit test (allows you to see stdout):

bash make test-case CASE=test_java_assert

Run a specific unit test with pdb:

bash make test-case-pdb CASE=test_java_assert

Format the code:

bash make format

License

``` Copyright 2024 Bytedance Ltd. and/or its affiliates

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```

Contributors

sine
sine

💻 🔣 🎨
Qi Liu
Qi Liu

💻 🔣
Shulin.Xin
Shulin.Xin

💻 🔣
可爱猫猫是梓喵
可爱猫猫是梓喵

💻 🔣
Xingwen Li
Xingwen Li

🎨
aoyanli
aoyanli

💻 🔣
Magic Mai
Magic Mai

💻 🔣

Owner

  • Name: Bytedance Inc.
  • Login: bytedance
  • Kind: organization
  • Location: Singapore

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 85
  • Total Committers: 6
  • Avg Commits per committer: 14.167
  • Development Distribution Score (DDS): 0.329
Past Year
  • Commits: 85
  • Committers: 6
  • Avg Commits per committer: 14.167
  • Development Distribution Score (DDS): 0.329
Top Committers
Name Email Commits
Liu Siyao l****e@b****m 57
allcontributors[bot] 4****] 14
李兴文.zed l****d@b****m 5
xinshulin x****n@b****m 4
aoyanli a****M 4
Jing Mai j****i@b****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 26
  • Total pull requests: 26
  • Average time to close issues: 23 days
  • Average time to close pull requests: about 4 hours
  • Total issue authors: 23
  • Total pull request authors: 12
  • Average comments per issue: 1.58
  • Average comments per pull request: 0.12
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 7
Past Year
  • Issues: 26
  • Pull requests: 26
  • Average time to close issues: 23 days
  • Average time to close pull requests: about 4 hours
  • Issue authors: 23
  • Pull request authors: 12
  • Average comments per issue: 1.58
  • Average comments per pull request: 0.12
  • Merged pull requests: 19
  • Bot issues: 0
  • Bot pull requests: 7
Top Authors
Issue Authors
  • wapleeeeee (3)
  • nightlessbaron (2)
  • Alan-D-Chen (1)
  • akriegman (1)
  • c-box (1)
  • cjhCoder7 (1)
  • SikaStar (1)
  • daijun-hub (1)
  • DemonWitch (1)
  • flyingdutchpig (1)
  • apaz-cli (1)
  • Zhuofeng-Li (1)
  • Yaoming95 (1)
  • FlowRays (1)
  • 2021212770 (1)
Pull Request Authors
  • allcontributors[bot] (14)
  • aoyanli (7)
  • BytedSS0 (5)
  • magic3007 (4)
  • ssine (4)
  • lseven-rs (2)
  • skandermoalla (2)
  • linpan (1)
  • wonder7759 (1)
  • HollowMan6 (1)
  • alexanderliu-creator (1)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

runtime/go/go.mod go
  • github.com/davecgh/go-spew v1.1.1
  • github.com/go-openapi/inflect v0.19.0
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/stretchr/testify v1.8.0
  • gopkg.in/yaml.v3 v3.0.1
runtime/go/go.sum go
  • github.com/davecgh/go-spew v1.1.0
  • github.com/davecgh/go-spew v1.1.1
  • github.com/go-openapi/inflect v0.19.0
  • github.com/pmezard/go-difflib v1.0.0
  • github.com/stretchr/objx v0.1.0
  • github.com/stretchr/objx v0.4.0
  • github.com/stretchr/testify v1.7.1
  • github.com/stretchr/testify v1.8.0
  • gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
  • gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c
  • gopkg.in/yaml.v3 v3.0.1
docs/package-lock.json npm
  • 1394 dependencies
docs/package.json npm
  • @docusaurus/module-type-aliases 3.5.2 development
  • @docusaurus/tsconfig 3.5.2 development
  • @docusaurus/types 3.5.2 development
  • typescript ~5.5.2 development
  • @docusaurus/core 3.5.2
  • @docusaurus/preset-classic 3.5.2
  • @emotion/react ^11.13.3
  • @emotion/styled ^11.13.0
  • @mdx-js/react ^3.0.0
  • @mui/material ^6.1.4
  • clsx ^2.0.0
  • docusaurus-plugin-openapi-docs ^4.1.0
  • docusaurus-theme-openapi-docs ^4.1.0
  • prism-react-renderer ^2.3.0
  • react ^18.0.0
  • react-dom ^18.0.0
runtime/node/package-lock.json npm
  • 501 dependencies
runtime/node/package.json npm
  • @babel/core ^7.24.5
  • @babel/preset-env ^7.24.5
  • @babel/preset-typescript ^7.24.1
  • @jest/globals ^29.7.0
  • @testing-library/dom ^10.1.0
  • @testing-library/jest-dom ^6.4.5
  • babel-jest ^29.7.0
  • commander ^12.1.0
  • jest ^29.7.0
  • js-md5 ^0.7.3
  • jsdom ^24.1.0
  • lodash ^4.17.21
  • puppeteer ^22.9.0
  • random-seed ^0.3.0
  • seedrandom ^3.0.5
poetry.lock pypi
  • aiofiles 23.2.1
  • aiohappyeyeballs 2.4.0
  • aiohttp 3.10.6
  • aiomysql 0.2.0
  • aiosignal 1.3.1
  • aiosqlite 0.20.0
  • annotated-types 0.7.0
  • anyio 3.7.1
  • attrs 24.2.0
  • certifi 2024.8.30
  • charset-normalizer 3.3.2
  • click 8.1.7
  • colorama 0.4.6
  • coverage 7.6.1
  • databases 0.9.0
  • execnet 2.1.1
  • fastapi 0.103.2
  • filelock 3.16.1
  • frozenlist 1.4.1
  • fsspec 2024.9.0
  • greenlet 3.1.1
  • h11 0.14.0
  • httpcore 1.0.5
  • httptools 0.6.1
  • httpx 0.26.0
  • huggingface-hub 0.25.1
  • idna 3.10
  • importlib-metadata 8.5.0
  • iniconfig 2.0.0
  • isort 5.13.2
  • libcst 1.4.0
  • markdown-it-py 3.0.0
  • mdurl 0.1.2
  • multidict 6.1.0
  • mypy 1.11.2
  • mypy-extensions 1.0.0
  • numpy 2.1.1
  • packaging 24.1
  • pathspec 0.12.1
  • platformdirs 4.3.6
  • pluggy 1.5.0
  • psutil 5.9.8
  • pycln 2.4.0
  • pydantic 2.6.4
  • pydantic-core 2.16.3
  • pygments 2.18.0
  • pymysql 1.1.1
  • pytest 7.4.4
  • pytest-asyncio 0.23.8
  • pytest-cov 4.1.0
  • pytest-mock 3.14.0
  • pytest-xdist 3.6.1
  • python-dotenv 1.0.1
  • pyyaml 6.0.2
  • regex 2024.9.11
  • requests 2.32.3
  • rich 13.8.1
  • safetensors 0.4.5
  • shellingham 1.5.4
  • sniffio 1.3.1
  • sqlalchemy 2.0.35
  • starlette 0.27.0
  • structlog 23.3.0
  • tenacity 8.5.0
  • tokenizers 0.20.0
  • tomli 2.0.1
  • tomlkit 0.13.2
  • tqdm 4.66.5
  • transformers 4.45.0
  • typer 0.12.5
  • typing-extensions 4.12.2
  • urllib3 2.2.3
  • uvicorn 0.25.0
  • uvloop 0.20.0
  • watchfiles 0.24.0
  • websockets 13.1
  • yapf 0.40.2
  • yarl 1.12.1
  • zipp 3.20.2
pyproject.toml pypi
  • httpx ^0.26.0 develop
  • isort ^5.12.0 develop
  • mypy ^1.6.1 develop
  • numpy ^2.0.0 develop
  • pycln ^2.3.0 develop
  • pytest ^7.4.2 develop
  • pytest-asyncio ^0.23.2 develop
  • pytest-cov ^4.1.0 develop
  • pytest-mock ^3.11.1 develop
  • pytest-xdist ^3.6.1 develop
  • yapf ^0.40.1 develop
  • aiofiles ^23.2.1
  • aiohttp ^3.9.5
  • databases ^0.9.0
  • fastapi ^0.103.1
  • psutil ^5.9.8
  • pydantic >=2.4.0,<2.7.0
  • python ^3.11
  • structlog ^23.1.0
  • tenacity ^8.4.2
  • transformers ^4.44.0
  • uvicorn 0.25.0
runtime/python/requirements.txt pypi
  • APScheduler ==3.10.4
  • Django ==5.0.1
  • Faker ==25.1.0
  • Flask ==3.0.1
  • Flask-Caching ==2.1.0
  • Flask-GraphQL ==2.0.0
  • Flask-Limiter ==3.5.0
  • Flask-RESTful ==0.3.10
  • Flask-SQLAlchemy ==3.1.1
  • Flask-Testing ==0.8.1
  • Flask-WTF ==1.2.1
  • GitPython ==3.1.41
  • PyJWT ==2.8.0
  • PyMuPDF ==1.24.3
  • PyPDF2 ==3.0.1
  • PyQt5 ==5.15.10
  • WTForms ==3.1.2
  • Werkzeug ==3.0.1
  • XlsxWriter ==3.1.9
  • absl-py ==2.1.0
  • antlr4-python3-runtime ==4.13.1
  • arch ==6.3.0
  • astor ==0.8.1
  • beautifulsoup4 ==4.12.3
  • bs4 ==0.0.2
  • catboost ==1.2.3
  • colorama ==0.4.4
  • coverage ==7.4.0
  • cryptography ==42.0.5
  • cvxpy ==1.4.3
  • datasketch ==1.6.4
  • docker ==7.0.0
  • faiss-cpu ==1.7.4
  • fastdtw ==0.3.4
  • folium ==0.16.0
  • gensim ==4.3.2
  • gmpy2 ==2.1.5
  • gql ==3.5.0
  • graphene ==3.3
  • graphql-core ==3.2.3
  • grpcio-tools ==1.60.0
  • jsonlines ==4.0.0
  • jupyter ==1.0.0
  • jupyter_client ==8.6.2
  • kaleido ==0.2.1
  • kneed ==0.8.5
  • lightgbm ==4.3.0
  • lxml ==5.1.0
  • matplotlib ==3.8.2
  • mongomock ==4.1.2
  • nameko ==2.14.1
  • nltk ==3.8.1
  • numba ==0.58.1
  • numpy ==1.26.3
  • opencv-python ==4.9.0.80
  • openpyxl ==3.1.2
  • pandas ==2.2.0
  • pandasql ==0.7.3
  • pika ==1.3.2
  • pillow ==10.2.0
  • plotly ==5.18.0
  • pmdarima ==2.0.4
  • psutil ==5.9.8
  • pulp ==2.8.0
  • pyberny ==0.6.3
  • pycryptodome ==3.20.0
  • pycryptodomex ==3.20.0
  • pydantic ==2.6.4
  • pymongo ==4.6.1
  • pyscf ==2.4.0
  • pytest ==7.4.4
  • pytest-cov ==5.0.0
  • pytest-mock ==3.12.0
  • pytest-qt ==4.3.1
  • python-docx ==1.1.2
  • pyzbar ==0.1.9
  • rdkit ==2023.9.4
  • redis ==5.0.1
  • requests ==2.31.0
  • requests-toolbelt ==1.0.0
  • ruptures ==1.1.9
  • scikit-image ==0.22.0
  • scikit-learn ==1.4.0
  • scipy ==1.11.4
  • seaborn ==0.13.2
  • shapely ==2.0.2
  • statsmodels ==0.14.1
  • tensorflow ==2.14.1
  • textblob ==0.18.0.post0
  • toml ==0.10.2
  • torch ==2.1.2
  • torchinfo ==1.8.0
  • torchsummary ==1.5.1
  • tree-sitter ==0.20.4
  • tree-sitter-languages ==1.9.1
  • uvloop ==0.19.0
  • xarray ==2023.6.0
  • xgboost ==2.0.3
  • xlrd ==2.0.1
  • xlwt ==1.3.0
  • yolk ==0.4.3
scripts/client/pyproject.toml pypi
  • pydantic >=1.0.0
  • requests >=2.0.0
  • tenacity >=8.0.0
scripts/client/setup.py pypi
  • get_pydantic_requirement *
  • requests >=2.0.0
  • tenacity >=8.0.0