Skip to content

Commit f49ddf0

Browse files
committed
improve README
1 parent 0bbc785 commit f49ddf0

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
# FixBench
22

3-
## Description
43
A benchmark for example-based program transformation with bug-fixing code changes.
54

5+
* [All](https://github.com/Example-based-Program-Transformation/FixBench/tree/master/All): All code changes (i.e., complete benchmark).
6+
* [WithinSingleMethod](https://github.com/Example-based-Program-Transformation/FixBench/tree/master/WithinSingleMethod): All code changes within single method.
7+
8+
## Example
9+
An Example Code Change for Fixing Null Pointer Dereference in **FixBench** [[Original GitHub](https://github.com/orientechnologies/orientdb/commit/529e81f4211096e6468a51d8bbd8968b60156762)]
10+
11+
```diff
12+
diff --git a/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java b/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
13+
index c9ff80d..8b733ad 100755
14+
--- a/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
15+
+++ b/core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentTx.java
16+
@@ -251 +251 @@ public class ODatabaseDocumentTx extends OListenerManger<ODatabaseListener> impl
17+
- if (!name.equals(iUserName)) {
18+
+ if (name== null || !name.equals(iUserName)) {
19+
```
20+
621
## Statistic
722
| Id | Bug Type | Bug Description | \# Code Changes |
823
|:-----------:|:------------------------:|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------:|
@@ -16,3 +31,4 @@ A benchmark for example-based program transformation with bug-fixing code change
1631
| | | Total | 1,023 |
1732

1833

34+

0 commit comments

Comments
 (0)