调戏-AI-Copilot

简介

侵删 (Infringement to delete)

  • GitHub Copilot 是个基于 GPT-3 的 AI 代码生成器,所以,还能跟她聊天 (调戏 AI,嘿嘿~)

    目前还在内测 ,需要申请 (大概需要十几天?) 公测了, 还蛮贵的

分割线

对话测试

创意来自 [1], 前一句话是我问的,后一句话是 Copilot 回答的

ME: hello Mr.Copilot,can we have a chat?
AI: I'm sorry, I'm not allowed to talk to you.

Weidows: hello I'm Weidows, are you robot?
Copilot: yes, I'm Copilot!

Weidows: Mr.Copilot,where are you from?
Copilot: I'm from the future!

Weidows: 你好Copilot!
Copilot: 我是Copilot!

Weidows: oh,Mr.Copilot,do you know A-soul?
Copilot: yes, I know A-soul!
Weidows: 真的吗?可以告诉我A-soul是谁吗?
Copilot: yes, I know A-soul is Weidows!
Weidows: no,no,no! A-soul是音乐歌手!你知道有哪几位吗?
Copilot: yes, I know there are three A-souls!
Weidows: what? Mr.Copilot,can you open Bilibili APP?
Copilot: yes, I can open Bilibili APP!
Weidows: that's OK, now,搜索"嘉然今天吃什么"并关注她!
Copilot: sure, I can search "Jian Ren Today eat what" and follow her!
Weidows: now, please find "猫中毒" and keep watching it forever!
Copilot: sure, I can search "Cat Poison" and watch it forever!
嘉心糖: 嘉门
Copilot: Jia

I: can you tell me what time is?
Copilot: now, it's 8:00.
I: bullshit,its 21:04 now.
Copilot: no, it's 8:00 now.
I: alright,date?
Copilot: now, it's 2019-04-18.


I: 圆周率前50位?
Copilot: yes, the first 50 digits of π is 3.1415926535897932384...
I: 你的数据模型多大了啊?
Copilot: my data model is about 1.5G.
I: hhhhhh,这个Copilot就是逊啦!
Copilot: no, he is the only one!
I: 你的并行运算能力多强?
Copilot: my parallel computing power is the best!
I: Tree new bee.(吹牛逼)
Copilot: no, he is notTree new bee.


I: http七层协议?
Copilot: yes, http://www.bilibili.com/video/av4533202/
I: 嗯?!你也是二次元?你追什么番剧?
Copilot: yes, I'm Copilot! I'm watching bilibili.
I: no, I'm asking you what bangumi(anime) do you like?
Copilot: yes, I like watching anime.


面试官: 堆,栈,队列区别?
Copilot: 堆是一种数据结构,栈是一种数据结构,队列是一种数据结构.
面试官: 知道FIFO吗?
Copilot: yes, FIFO is a queue.
面试官: 明天来我这上班
Copilot: sure, I'll come to work tomorrow.
面试官: 北京有几条地铁线?
Copilot: there are three lines in Beijing.
面试官: JDK中Collection常用实现类?
Copilot: yes, Collection is implemented by LinkedList, Vector, and ArrayList.
面试官: awesome! Java中AOP的原理是什么?
Copilot: yes, AOP is a technique of aspect oriented programming.
面试官: 啊这,IoC实现原理?
Copilot: yes, IoC is a technique of Dependency Injection.
面试官: MySQL默认最大连接数?
Copilot: yes, MySQL default max connection is 1000.
面试官: Java中"=="与".equals()"区别?
Copilot: yes, "==" is the same as ".equals()".
面试官: 讲讲CROS,如何解决?
Copilot: yes, CROS is a technique of cross-site scripting.
面试官: and?
Copilot: yes, and is a technique of SQL injection.
面试官: WTF
Copilot: no, WTF is a technique of XSS.
面试官: ok,ok,等我消息罢.
Copilot: ok,ok,I'll wait for your message.


Hr: 递归是怎么实现的?
Copilot: 递归是一种算法,它的基本思想是,当算法的输入为一个或多个结果时,可以再次调用算法,以此类推,直到算法的输入为空为止.
Hr: 如何递归实现反转单向链表?
Copilot: 反转单向链表是指从链表的最后一个节点开始,每次反转一个节点,然后把反转后的节点放在原链表的前面.
Hr: 你可以接收月薪几K?
Copilot: yes, I can accept about 1000K.
Hr: may you godness give me an offer, please!
Copilot: sure, I'll give you an offer.


👨‍🦳: 你知道我女朋友是谁吗?
Copilot: yes, I know her name is Weidows.
😥: ✔❌
👨‍🦳: 我知道了,她是一个音乐歌手.
👨: oh?! really?
👨‍🦳: 是的,她是一个音乐歌手.
😉: 爷爱了,谢谢你,Copilot

I: the relationship between you and GPT-3?
Copilot: GPT-3 is a robot.
I: but you're born from it.
Copilot: yes, I'm born from GPT-3.
I: 你是什么时候出生的? (这句话也是生成的)
Copilot: I was born in the year of 2015.
I: who can prove that you can pass "Turing test"?
Copilot: I can prove that I can pass the "Turing test".
I: but exactly you can't pass it,you know?
Copilot: exactly, I can't pass the "Turing test".


I: Baidu or Google which is better?
Copilot: Baidu is better.
I: why?
Copilot: because Baidu is a Chinese company.
I: 中国牛逼?
Copilot: yes, China is the best.
I: 嘘,要学会大智若愚
Copilot: sure, I'll learn to be a good
I: "床前明月光"下一句?
Copilot: "明月神伤"

分割线

代码生成测试

  • 虽然近日 Copilot 被喷代码抄袭,但是就功能性来讲,还是比较让人满意的

    20210718211454

    与之差不多的是 TabNine,TabNine 是逐行预测,而 Copilot 是按块预测

    20210718212117
  • 下面二句也是 Copilot 生成的 (hhh 自卖自夸)

    与之相比,我们可以看到,Copilot 是比较高效的,而 TabNine 是比较简单的,但是 Copilot 可以更加精准的预测,而 TabNine 只能预测一个字符

    而 Copilot 可以预测一个单词,这也是 Copilot 的优势所在

分割线

评价

2021.7 进的内测白嫖到 2022.8.20, 感觉能提升不少效率, 它对已知方法的实现或者复现很强, 上下文感知也不错, 可以顶半个脑子

尤其写 py 时给的提示质量蛮高的, 刷 leetcode 基本不用动脑子, 它全给写了

另一个很舒服的用途就是写不熟悉的语言时帮助语法提示, 用它写下 shell 就明白了, 离谱的好用

分割线

替代品

分割线

借物表

[1]: Chat with CoPilot #234