3v324v23 commited on
Commit
371d62a
1 Parent(s): 2b14a12
crazy_functions/生成函数注释.py CHANGED
@@ -3,7 +3,7 @@ from toolbox import CatchException, report_execption, write_results_to_file, pre
3
  fast_debug = False
4
 
5
 
6
- def 生成函数注释(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt):
7
  import time, glob, os
8
  print('begin analysis on:', file_manifest)
9
  for index, fp in enumerate(file_manifest):
@@ -54,4 +54,4 @@ def 批量生成函数注释(api, txt, top_p, temperature, chatbot, history, sys
54
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.tex文件: {txt}")
55
  yield chatbot, history, '正常'
56
  return
57
- yield from 生成函数注释(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
 
3
  fast_debug = False
4
 
5
 
6
+ def 生成函数注释(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt):
7
  import time, glob, os
8
  print('begin analysis on:', file_manifest)
9
  for index, fp in enumerate(file_manifest):
 
54
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.tex文件: {txt}")
55
  yield chatbot, history, '正常'
56
  return
57
+ yield from 生成函数注释(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
crazy_functions/解析项目源代码.py CHANGED
@@ -104,7 +104,7 @@ def 解析一个Python项目(api, txt, top_p, temperature, chatbot, history, sys
104
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何python文件: {txt}")
105
  yield chatbot, history, '正常'
106
  return
107
- yield from 解析源代码(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
108
 
109
 
110
  @CatchException
@@ -125,7 +125,7 @@ def 解析一个C项目的头文件(api, txt, top_p, temperature, chatbot, histo
125
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.h头文件: {txt}")
126
  yield chatbot, history, '正常'
127
  return
128
- yield from 解析源代码(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
129
 
130
  @CatchException
131
  def 解析一个C项目(api, txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT):
@@ -145,5 +145,5 @@ def 解析一个C项目(api, txt, top_p, temperature, chatbot, history, systemPr
145
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.h头文件: {txt}")
146
  yield chatbot, history, '正常'
147
  return
148
- yield from 解析源代码(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
149
 
 
104
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何python文件: {txt}")
105
  yield chatbot, history, '正常'
106
  return
107
+ yield from 解析源代码(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
108
 
109
 
110
  @CatchException
 
125
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.h头文件: {txt}")
126
  yield chatbot, history, '正常'
127
  return
128
+ yield from 解析源代码(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
129
 
130
  @CatchException
131
  def 解析一个C项目(api, txt, top_p, temperature, chatbot, history, systemPromptTxt, WEB_PORT):
 
145
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.h头文件: {txt}")
146
  yield chatbot, history, '正常'
147
  return
148
+ yield from 解析源代码(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
149
 
crazy_functions/读文章写摘要.py CHANGED
@@ -3,7 +3,7 @@ from toolbox import CatchException, report_execption, write_results_to_file, pre
3
  fast_debug = False
4
 
5
 
6
- def 解析Paper(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt):
7
  import time, glob, os
8
  print('begin analysis on:', file_manifest)
9
  for index, fp in enumerate(file_manifest):
@@ -67,4 +67,4 @@ def 读文章写摘要(api, txt, top_p, temperature, chatbot, history, systemPro
67
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.tex文件: {txt}")
68
  yield chatbot, history, '正常'
69
  return
70
- yield from 解析Paper(file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)
 
3
  fast_debug = False
4
 
5
 
6
+ def 解析Paper(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt):
7
  import time, glob, os
8
  print('begin analysis on:', file_manifest)
9
  for index, fp in enumerate(file_manifest):
 
67
  report_execption(chatbot, history, a = f"解析项目: {txt}", b = f"找不到任何.tex文件: {txt}")
68
  yield chatbot, history, '正常'
69
  return
70
+ yield from 解析Paper(api, file_manifest, project_folder, top_p, temperature, chatbot, history, systemPromptTxt)