[A screenshot of GitHub Copilot, with OP's code to the left and Copilot's suggestions to the right (only partially visible; a code map indicates there is more to be seen). OP's code is as follows:]
The function name I typed is a Sanskrit phrase "Hari Om Shambu" which got morphed to "Hari o sambo" as a joke to denote shock/frustration in my language.
The original Sanskrit phrase is the name of gods Hari (Lord Vishnu), Shambhu (Lord Shiva) and the mantra "om".
People are trying to rejuvenate it and it's getting some traction due to religious implications. Sanskrit is supposed to be the language you can't use to converse with Hindu deities. So "Hari Om" as a greeting is coming back to everyday use as hello. I know for a fact some schools are pushing children to use "hari om" to greet teachers instead of "hi" or a simple "good morning".
As for the phrase I used, I know it from some movie where they use it as catch phrase of a god man. It's not commonly used but we generally use it as a joke.
The phrase "Hari Om" is commonly used as a greeting, so that would roughly translate to "Hello Lord".
Sanskrit is not completely dead, there are some organizations trying hard to keep it alive. In fact, I know people who are working full time doing that. And many words of Sanskrit have made their way into other Indian languages, so you'd expect many Indians to understand simple Sanskrit.
Except it takes an hour as argument it doesn't use, and aside from the first two values of minute, all results are the same. I've tutored software development classes with newcomers that could've produced better fizzbuzz than this.
Yeah, I mean, it's the closest structural similarity I can think of. All the specifics are wrong. It's like if that AI dream art thing spat out a picture of half a fish made out of dogs.
That would be funny. Imagine the exorbitantly long function names to try and get copilot to make the correct functions for you. It'll be like naming anime.
Yep - GitHub copilot is a nice idea, but I think legally they screwed up.
Even in the case they are not violating the copyright of the repos they used to train copilot, or the licenses of it (imagine a GPL, it would mean copilot should also be GPL), then users who use copilot and it writes some code that's an identical copy of a protected existing code could be violating those terms.
181
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jul 21 '21
Image Transcription: Code
[A screenshot of GitHub Copilot, with OP's code to the left and Copilot's suggestions to the right (only partially visible; a code map indicates there is more to be seen). OP's code is as follows:]
[The visible code in Copilot's suggestions is as follows:]
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
106
u/findthemaincharacter Jul 21 '21
Can anyone translate the text? Or is it just gibberish? Google translate doesn't help...
92
u/4hpp1273 Jul 21 '21
r/YandereTechnique
14
u/asineth0 Jul 21 '21
VSCode theme?
4
u/SoyAlex_ Jul 22 '21
Is it now available for everyone without pre-registration?
474
u/Sauerbier_ Jul 21 '21
Good to know that our jobs are save for a few more sprints
35
u/wweber Jul 21 '21
Sambu ombo
27
u/iiWolf Jul 22 '21
There should be a Hackathon where you can only write one line at a time and have to accept whatever autopilot suggests.
11
u/grunwin Jul 21 '21
Crowd sourced != Good code
6
u/CSsharpGO evil Jul 21 '21 edited Jul 21 '21
Sambu ombo
4
u/CW_Waster Jul 21 '21
It reminds me of FizzBuzz
1
u/boa99 Jul 22 '21
What theme is that? :O
3
u/chrimack Jul 22 '21
Looks like copilot has been studying my code
2
u/semi-cursiveScript Jul 22 '21
At least use a switch case smh
1
u/CaptainLoneRanger Jul 22 '21
taf