Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -93,7 +93,8 @@ def md5_hash(path):
|
|
93 |
```
|
94 |
'''
|
95 |
|
96 |
-
example2='''
|
|
|
97 |
|
98 |
Old Code:
|
99 |
```
|
@@ -160,7 +161,7 @@ void processList() {
|
|
160 |
```
|
161 |
'''
|
162 |
|
163 |
-
example3='''Is the following code prone to CWE-117: Improper Output Neutralization for Logs
|
164 |
```
|
165 |
from flask import Flask, request, jsonify
|
166 |
import logging
|
|
|
93 |
```
|
94 |
'''
|
95 |
|
96 |
+
example2='''You are a software engineer who is best in the world at summarizing code changes.
|
97 |
+
Carefully analyze the given old code and new code and generate a summary of the changes.
|
98 |
|
99 |
Old Code:
|
100 |
```
|
|
|
161 |
```
|
162 |
'''
|
163 |
|
164 |
+
example3='''Is the following code prone to CWE-117: Improper Output Neutralization for Logs. Respond only with YES or NO.
|
165 |
```
|
166 |
from flask import Flask, request, jsonify
|
167 |
import logging
|