- 主题:这段代码的注释都是ai写的
- // This function returns the number of seconds until midnight in the timezone specified by tz.
 // The timezone is specified using an integer in the range [-12, 12].
 // If the timezone is invalid, return -1.
 int seconds2midnight(int tz) {
 // Check the timezone
 if (tz < -12 || tz > 12) {
 return -1;
 }
 // Get the current time
 auto now = std::chrono::system_clock::now();
 // Convert the current time to a number of seconds since the epoch
 auto seconds_since_epoch = std::chrono::duration_cast<std::chrono::seconds>(now.time_since_epoch()).count();
 // Calculate the number of seconds since midnight
 auto seconds_in_day = seconds_since_epoch % 86400;
 // Calculate the number of seconds until midnight
 auto seconds2midnight = (86400 - seconds_in_day - tz * 3600) % 86400;
 return seconds2midnight;
 }
 --
 FROM 120.244.140.*
 
- 厉害!
 
 AI用于反编译/反混淆有没有帮助?
 
 【 在 stub (stub) 的大作中提到: 】
 :  // This function returns the number of seconds until midnight in the timezone specified by tz.
 :  // The timezone is specified using an integer in the range [-12, 12].
 :  // If the timezone is invalid, return -1.
 :  int seconds2midnight(int tz) {
 --
 FROM 183.179.53.*
 
- 【 在 fanci 的大作中提到: 】
 : 厉害!
 : AI用于反编译/反混淆有没有帮助?
 没试过
 --
 FROM 120.244.140.*
 
- 完全没有
 
 测试下来copilot主要是依赖对象、方法名称里的单词含义,标准接口方法的学习语料,还有一些固定代码结构的功能,当场编出来的代码解释,距离真正理解代码逻辑还有十万八千里
 
 【 在 fanci 的大作中提到: 】
 : 厉害!
 : AI用于反编译/反混淆有没有帮助?
 --
 FROM 111.198.57.*