Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jimthompson5802/gh_copilot

testbed for GitHub Co-pilot
https://github.com/jimthompson5802/gh_copilot

Last synced: 19 days ago
JSON representation

testbed for GitHub Co-pilot

Awesome Lists containing this project

README

        

# GitHub Copilot Generated Code

### Sample code created by [GitHub Copilot](https://copilot.github.com/)

Unless noted otherwise, all Python programs in this repo were created using GitHub Copilot. Each source file contains Python comment statement followed by code generated by Copilot.

**NOTE:**
* `# Commentary:` identify Copilot generated code that required or requires modification to run.
* Copilot embedded comments in the generated code.

### Python Examples
| File | Description |
|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [create_synthentic_training_data.py](https://github.com/jimthompson5802/gh_copilot/blob/main/create_synthetic_training_data.py) | Create synthetic training data for the model |
| [bootrap_analysis.py](https://github.com/jimthompson5802/gh_copilot/blob/main/bootstrap_analysis.py) | Perform bootstrap analysis on a specified column in a pandas dataframe. Generate specified number of bootstrap samples and plot histogram of mean and standard devision. |
| [eda_example.py](https://github.com/jimthompson5802/gh_copilot/blob/main/eda_example.py) | Example of using Copilot to perform exploratory data analysis (EDA) on a dataset. |
| [financial_engineering_examples.py](https://github.jimthompson5802/gh_copilot/blob/main/financial_engineering_examples.py) | Example of using Copilot to perform financial engineering calculations. |
| [flask_app.py](https://github.com/jimthompson5802/gh_copilot/blob/main/flask_app.py) | Flask app to peform simple computation on two numbers. |
| [flask_app2.py](https://github.com/jimthompson5802/gh_copilot/blob/main/flask_app2.py) | Second implementation for flask app to perform simple computation of two numbers. |
| [flask_app3.py](https://github.com/jimthompson5802/gh_copilot/blob/main/flask_app3.py) | Flask application to return the average of three numbers. Copilot generated the code from only one comment line. |
| [ludwig_training.py](https://github.com/jimthompson5802/gh_copilot/blob/main/ludwig_training.py) | Ludwig training for regression model. |
| [ludwig_training_with_image.py](https://github.com/jimthompson5802/gh_copilot/blob/main/ludwig_training_with_image.py) | Ludwig training for classification model with image. |
| [random_forest_training.py](https://github.com/jimthompson5802/gh_copilot/blob/main/random_forest_training.py) | Scikit-learning random forest training for regression model. |
| [ray_tune_example.py](https://github.com/jimthompson5802/gh_copilot/blob/main/ray_tune_example.py) | Example of using Copilot to perform hyperparameter tuning using Ray Tune. |
| [regex_example.py](http://github.com/jimthompson5802/gh_copilot/blob/main/regex_example.py) | Example of using Copilot to generate regular expression. |
| [simple_examples.py](https://github.com/jimthompson5802/gh_copilot/blob/main/simple_examples.py) | Simple examples of using Copilot for Python |
| [sklearn_custom_transformer.py](https://github.com/jimthompson5802/gh_copilot/blob/main/sklearn_custom_transformer.py) | Example of using Copilot to create a template of custom transformer for Scikit-learn. |
| [spark_session_setp.py](https://github.com/jimthompson5802/gh_copilot/blob/main/spark_session_setup.py) | Code fragment to initialize a Spark session. |
| [test_simple_example.py](https://github.com/jimthompson5802/gh_copilot/blob/main/test_simple_example.py) | Copilot generated pytest unit test for simple examples. |
| [torch_custom_classes.py](https://github.com/jimthompson5802/gh_copilot/blob/main/torch_custom_classes.py) | Example of using Copilot to create custom classes for PyTorch. |
| [torch_model_training.py](https://github.com/jimthompson5802/gh_copilot/blob/main/torch_model_training.py) | PyTorch training for regression model and save the trained model to file. |

### Other Languages
| File | Description |
|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [sample_go_code.go](https://github.com/jimthompson5802/gh_copilot/blob/main/sample_go_code.go) | Example of using Copilot to generate variety of Go code fragments. |
| [sample_java_code.java](https://github.com/jimthompson5802/gh_copilot/blob/main/sample_java_code.java) | Example of using Copilot to generate variety of Java code fragments. |
| [simple_examples.c](https://github.com/jimthompson5802/gh_copilot/blob/main/simple_examples.c) | Simple examples using Copilot for C |

### DevOps Examples
| File | Description |
|---------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------|
| [Dockerfile_example](https://github.com/jimthompson5802/gh_copilot/blob/main/Dockerfile_example) | Example of using Copilot to generate Dockerfile |
| [k8s_service_definition.yaml](https://github.com/jimthompson5802/gh_copilot/blob/main/k8s_service_definition.yaml) | Copilot generating Kubernetes service definition with istio Virtual Service |

### Codex Directory
The `codex` directory contain examples of using Copilot to generate code for a Python project. [Codex API](https://beta.openai.com/docs/guides/code)