Skip to content

mrSiefen/CoPilot-Experiments

Repository files navigation

CoPilot Experiments Repository

This is a repo for my Github CoPilot Experiments for Public use! The majority of the text is generated by CoPilot, but I have edited it to make it more readable or change important things. I have also added some my own Comments and give it structure to work from in most cases.

What is CoPilot?

Github Copilot is a new AI-powered code completion tool that helps developers write code faster and more efficiently. It uses machine learning to understand the context of your code and suggests the best next line of code. It can also help you find bugs and improve your code quality.

Does it do everything?

That depends on how you define everything. It can do a lot of things, but it is not perfect. It is still in Beta, and it is still learning. It is not a replacement for a human programmer, but it can help you write code faster and more efficiently.

How does it aid programmers rather than replace them?

CoPilot can generate snippets based on the context of your code. While it has access to the entire Github codebase, it is not perfect. It can make mistakes, and it can generate code that is not correct. Even if it does generate code that is correct, it is not always the best way to do something. A human programmer needs to understand the language and the context of the code to know what is best. CoPilot can help you write code faster, but it cannot replace a human programmer.

How does it work?

CoPilot uses machine learning to understand the context of your code and suggest the best next line of code. While writing code, CoPilot will suggest code snippets based on the context of your code. You can accept the suggestion or ignore it. If you accept the suggestion, CoPilot will add the code to your file. If you ignore the suggestion, CoPilot will learn from your decision and improve its suggestions in the future. There are keyboard shortcuts to accept or ignore suggestions or view the full list of suggestions.

What are the keyboard shortcuts?

  • Tab to accept a suggestion
  • Ctrl+ ] next suggestion
  • Ctrl + [ previous suggestion
  • Ctrl + Enter to view the full list of suggestions

How do I use it with VSCode?

CoPilot is available in VSCode as an extension. You can install it from the VSCode Marketplace. Once you have installed it, you can enable it in the settings. You can also enable it for specific languages. Once you have enabled it, you can start using it. Below is a semi-comprehensive list of the languages that I have tested it with.

  • C
  • C++
  • Python
  • JavaScript
  • HTML
  • CSS
  • C#
  • Java
  • Arduino C
  • Markdown
  • JSON

What are the licensing terms?

CoPilot is free for public repositories. For private repositories, you need to pay for a Github Pro or Team plan. You can find more information about the licensing terms on the Github Copilot website. This repository is public, so you can use it for free. I have also included the unlicense file in the repository.

My Human Written Closing Thoughts as a Massive fan of Sci-Fi, Robots, AI and the Future

My favorite author is Douglas Adams, famous for the Hitchikers Guide to the Galaxy Series, the Dirk Gently Series, Last Chance to See and Starship Titanic. He was a dreamer. Way back in 1990 he envisioned new interactive forms of Media in a video called Hyperland.

Its available on youtube here: https://www.youtube.com/watch?v=1iAJPoc23-M

I can't speak for him, but I feel that if he was here, he would be prolonging writing another best selling classic to play around with this just like me. He always thought if he hadn't been a writer, he would have been a programmer. I think he would have loved this. While working on the Infocom Text Adventure version of Hitchhikers Guide to the Galaxy with Steve Meretzky, Douglas Adams learned about the early days of AI known as expert systems with thousands of hand programmed branches of dialogue.

Living at this time, being a programmer, engineer, dreamer and kid at heart, THIS IS THE DREAM!!!!!

Step forward into the future, and enjoy the ride. Thankfully Github isn't a bunch of mindless jerks who were the first against the wall when the revolution came.

Signed, A Human Programmer with a dream of a better future.

P.S. One of my favorite Speeches from Douglas Adams at PDC 1996 (I was 1 Years Old!):

"I've spoken from time at publishing events or television events or journalism events. And there was a whole phase when people would come up to me and say afterwards, 'yeah I hear you know something about computers' and I say 'well yeah a little bit'. 'Well we're a little bit terribly terribly worried so what exactly is the effect of computers going to be on the publishing business?' or 'what is the effect of computers going to be on the on the television business?' and largely they are hoping for the answer not very much.

But the issue was this, that if you have to ask the question then you're not ready for the answer because it's rather like the Mississippi River or the Amazon or the Nile saying 'well what effect is the coming of the Atlantic Ocean going have on me and the answer is that River rules will no longer apply. and you'll be able to tell the people who are out there in the middle of the Atlantic Ocean trying to build riverbanks around themselves because they'll be the people are going out of business.

Because we have to think in terms of new models. We have to understand what it means when every form of data we have, every type of medium we have, every type of information, every type of experience you might have, can be expressed in the same language and is out there in this digital ocean. We select from that ocean of data and we model the data we choose, in ways that make sense to us. In the same way that a dolphin does or rhinoceros does or we do. Human beings now have this extension of our ability to model things, we have an extension to our mind if you like, the extension to an important part of our mind the ability to model things. The ability to model things in software. Animals have an extension to their neck or their running muscles. We have an extension to our brain, an extension to our ability to think and to model.

How are we going to make these two things work together? How are we going to make the modeling device we have in our brain and the modeling device we have in these computers work together in a way that makes sense? How can they enhance each other?"

About

This is a repo for my Github CoPilot Experiments for Public use!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published