GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AmirAbaskohi/PythonCodeGenerator: Here is a GAN model which is trained on the repositories of Github python projects to generate python code.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
data_collector
data_collector
 
 
model
model
 
 
preprocess
preprocess
 
 
tokenizer
tokenizer
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
Readme.md
Readme.md
 
 
model_test.png
model_test.png
 
 

Repository files navigation

Python code generator

Requirements

First remeber to install github modue which can be installed easily using below command:

pip install PyGithub 

Getting data

To get data I used Github repositories. For this I used Github api, to get data you need to run bellow command:

python data_collector.py

It will collects python repostiroes in last 3 days which have size less that 5MB. You can change it as you wish.

By the way, remember that you need to get your own token. For this got to this link. After getting your token make a token.txt file next to data_collector and put your token in that file.

Preprocess

Preprocess stage includes tokenizing and creating the datafile. Use the files in preprocess folder to do the preprocess.

Training model

Use trainer.py in model directory to train your model. This can be easily done using this command:

python trainer,py

After this the model will be save in GPyT directory for next stages.

Check model

An example of model check is available in model directory.

Here is an example output:

alt text

Made By Amirhossein Abaskohi

About

Here is a GAN model which is trained on the repositories of Github python projects to generate python code.

Topics

code-generatorgeneratorgenerator-pythongpt-2python

Resources

Readme
MIT license
Activity

Stars

7 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.