Skip to content

open-sce/code-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-translation

This project contains a number of assets for automatic language translation using generative AI.

Currently there are two notebooks included:

  • CodeConversion.ipynb --- Uses the OpenAI API to translate source code from/to a number of different programming languages (e.g. R, Python, SAS)

  • CodeConversionMagic.ipynb --- Creates a sasconvert Jupyter magic command for translating SAS code into Python code

Prerequisites

  • this project requires the openai Python package (already included in requirements.txt)
  • this project has been tested against 5.6 Domino Standard Environment Py3.9 R4.2.3 without any additional customizations
  • this project requires a valid OpenAI API key loaded in an environment variable named OPENAI_API_KEY. If using in Domino, this can ideally be configured as a project environment variable

About

Automatic language translation using generative AI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published