• 请不要在回答技术问题时复制粘贴 AI 生成的内容
shylockhg
V2EX  ›  程序员

Github copilot 震惊我了

  •  1
     
  •   shylockhg · Jul 17, 2023 · 3707 views
    This topic created in 1075 days ago, the information mentioned may be changed or developed.

    刚浏览完 https://en.cppreference.com/w/cpp/regex/ecmascript ,然后写代码,copilot 居然在注释里给我补全了这个参考链接。。

    9 replies    2023-07-18 15:32:14 +08:00
    fqy12300
        1
    fqy12300  
       Jul 17, 2023
    会不会是巧合?
    malusama
        2
    malusama  
       Jul 17, 2023
    搜索 github.com 的代码确实有不少文件里都有这个注释啊
    NoOneNoBody
        3
    NoOneNoBody  
       Jul 17, 2023   ❤️ 2
    我怎么想起隔壁监听那帖子 🐶
    dayeye2006199
        4
    dayeye2006199  
       Jul 18, 2023
    想多了,就是训练数据里面提多人提到这个链接了。

    AI 没那么神奇
    cherryas
        5
    cherryas  
       Jul 18, 2023   ❤️ 1
    很正常,copilot 会读你的剪切板
    neptuno
        6
    neptuno  
       Jul 18, 2023
    之前还补全出了很多公司名称呢,可能有些人把公司代码上传到 public 代码库了
    flexbug
        7
    flexbug  
       Jul 18, 2023
    我之前玩过这个,让他用 python 写一个贪吃蛇游戏,然后补全了一堆,我一搜一看是 CSDN 上面的
    shylockhg
        8
    shylockhg  
    OP
       Jul 18, 2023
    @cherryas 剪切板没有,我专门看过
    vituralfuture
        9
    vituralfuture  
       Jul 18, 2023 via Android
    我也经常遇到类似的情况,刚刚在浏览器里看了 BOM 的某个属性,然后切换到 webstorm ,一输入 window ,居然把我刚刚学的那个属性给补全了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3086 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 07:44 · PVG 15:44 · LAX 00:44 · JFK 03:44
    ♥ Do have faith in what you're doing.