Download ScaleDF_rebuttal/python_dedup_pkgs/sympy/codegen/cutils.py from VideoUFO/ResearchData_P1: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_dedup_pkgs/sympy/codegen/cutils.py
- Command line
-
hf download hf://datasets/VideoUFO/ResearchData_P1/ScaleDF_rebuttal/python_dedup_pkgs/sympy/codegen/cutils.py
-
curl -L -o cutils.py https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_dedup_pkgs/sympy/codegen/cutils.py
383 Bytes
| from sympy.printing.c import C99CodePrinter | |
| def render_as_source_file(content, Printer=C99CodePrinter, settings=None): | |
| """ Renders a C source file (with required #include statements) """ | |
| printer = Printer(settings or {}) | |
| code_str = printer.doprint(content) | |
| includes = '\n'.join(['#include <%s>' % h for h in printer.headers]) | |
| return includes + '\n\n' + code_str | |