Skip to content

vamoruso/TheCodeMachine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Code Machine

This repository contains Python example of code generation many programming languages using Ollama AI model qwen2.5-coder:32b .

Programming Languages tested in this project are the following :

Language Extension
C c
C# cs
C++ cpp
CSS css
Cobol cbl
Dart dart
Go go
HTML html
JavaScript js
Kotlin kt
Objective-C m
PHP php
Pascal pas
Perl pl
Python py
R r
RPG iSeries RPG (Report Program Generator) on IBM iSeries (AS/400) RPG
Ruby rb
Rust rs
Scala scala
Swift swift
TypeScript ts
Visual Basic vb

Install Ollama on your computer from link. (Windows Version in my case)

https://ollama.com/download

Add Ollama installation path to the windows enviroment path variable of your computer.

Install AI Ollama model for CODE MACHINE. Open command prompt and run

ollama pull qwen2.5-coder:32b

After installation load Ollama model using command

ollama run qwen2.5-coder:32b

Note

Now your computer is ready to receieve request from code generation

Install Python downloadable form link (Windows Version in my case)

https://www.python.org/ftp/python/3.10.4/python-3.10.4-amd64.exe

Create Virtual Python Env using command

python -m venv D:\TheCodeMachine

Activate virtual env

D:\TheCodeMachine\Scripts\activate 

Copy all files from remote repository in your virtual env folder.

In virtual environment (venv) D:\TheCodeMachine run the command to install all necessary Python packages.

pip install requirements.txt 

To start the code generation for HelloWorld.java class in all the supported programming languages.

  python.exe D:\TheCodeMachine\TheCodeMachine.py

Vincenzo Amoruso 2025

Markdown GitHub contributors GitHub last commit GitHub Repo stars

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published