Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of 11 new projects to Defects4J #289

Merged
merged 603 commits into from Mar 7, 2020
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
603 commits
Select commit Hold shift + click to select a range
94004f5
Fix to formatting
Greg4cr Mar 5, 2019
af0935a
Splitting partial work on Commons Compress and Collections off into t…
Greg4cr Apr 4, 2019
8132669
Cleaning up files
Greg4cr Apr 4, 2019
237e605
Addition of Commons Collections
Greg4cr Apr 9, 2019
0f8bc8f
Removing temporary work for Collections
Greg4cr Apr 9, 2019
d6d717d
Minor change to init revisions script to allow subprojects
Greg4cr Apr 9, 2019
288f7d9
Updating get_repos script for Commons Collections
Greg4cr Apr 9, 2019
a12a6db
Missing property test.classes.dir fixed
Greg4cr Apr 9, 2019
2e9cb8b
Fix to build file for Collections
Greg4cr Apr 9, 2019
cb71663
Expectations added for the test export command
Greg4cr Apr 9, 2019
5478cae
Fixing typos in build and test files
Greg4cr Apr 9, 2019
82fc509
Addition of Commons Compress
Greg4cr Apr 11, 2019
b93db3c
Removing work-in-progress files for Compress
Greg4cr Apr 11, 2019
1b839d6
Fixing issue in checkout
Greg4cr Apr 11, 2019
6c32953
Minor fix to Collections project file
Greg4cr Apr 16, 2019
8d025e1
Adding missing variable classes.dir in Collections
Greg4cr Apr 18, 2019
d35ab17
Minor fix to Collections
Greg4cr Apr 18, 2019
c491959
Addition of Commons Cli
Greg4cr Apr 22, 2019
bb50930
Fix to repo link
Greg4cr Apr 22, 2019
5c59730
Fix to repo link
Greg4cr Apr 22, 2019
4c0051c
Fixing test script
Greg4cr Apr 22, 2019
903d86f
Fixed typo in Travis config
Greg4cr Apr 23, 2019
d9c4f67
Addition of Commons CSV
Greg4cr Apr 25, 2019
65b1daa
Fix to travis config
Greg4cr Apr 26, 2019
29e44ff
Addition of Commons Codec
Greg4cr Apr 26, 2019
9f1c86f
Fixing value for a property
Greg4cr Apr 26, 2019
0ec29df
Updates to Travis config
Greg4cr Apr 26, 2019
a5d21a7
Fix to test export command
Greg4cr May 3, 2019
722db23
Removing buggy fault from Codec
Greg4cr May 6, 2019
65057b2
Fix to Codec 14 and 18
Greg4cr May 7, 2019
f395ef4
Addition of Commons JxPath
Greg4cr May 7, 2019
5844852
Addition of JacksonCore
Greg4cr May 8, 2019
c65eb6b
Addition of JacksonXml
Greg4cr May 8, 2019
8aa14b1
Removing obsolete files
Greg4cr May 17, 2019
c3258ae
Resolving issues with two readme files
Greg4cr May 17, 2019
8e07943
Fixing conflict in README
Greg4cr May 17, 2019
02cacbc
Merge pull request #217 from rjust/master
Greg4cr May 17, 2019
54591b3
Minor change to JacksonCore build file
Greg4cr May 17, 2019
067dc08
Removing temporary changes to bug mining infrastructure
Greg4cr May 17, 2019
0f07518
Removing redundant tests
Greg4cr May 17, 2019
0ff118b
Update to version number
Greg4cr May 17, 2019
9fe42a6
Initial addition of JacksonDatabind
Greg4cr Jun 11, 2019
322d572
Merge pull request #236 from rjust/master
Greg4cr Oct 30, 2019
e4f2c96
resolving README conflict
Greg4cr Oct 30, 2019
ba5c99e
Merge pull request #237 from rjust/master
Greg4cr Oct 30, 2019
84402b7
Simplifying Jackson Project files
Greg4cr Oct 30, 2019
b957a52
Merge branch 'additional-projects-4' of https://github.com/rjust/defe…
Greg4cr Oct 30, 2019
36f69a0
Fix for Java 7 using an outdated TLS protocol
Greg4cr Oct 30, 2019
1820e36
Initial addition of Jsoup
Greg4cr Nov 6, 2019
6ca974e
Adjusting Travis jobs for Databind
Greg4cr Nov 11, 2019
8d2640d
Initial addition of Gson
Greg4cr Nov 12, 2019
df51b1e
Updating get_repos script for Gson
Greg4cr Nov 12, 2019
ca81c68
cleanup of build files
Greg4cr Nov 12, 2019
5cb4d22
Change required Java version
mernst Dec 29, 2019
1fb774b
Merge ../defects4j-branch-master into java-8-support-with-master-merg…
mernst Jan 5, 2020
b85e2ee
Use newer version of Perl and Randoop
mernst Jan 5, 2020
51b0ce7
Tweak the merge
mernst Jan 5, 2020
1d4f10a
Merge ../defects4j-branch-master into java-8-support-with-master-merg…
mernst Jan 12, 2020
8fd9b9e
Java 8 failing tests for Lang
mernst Jan 12, 2020
7d58a12
Java 8 failing tests for Math
mernst Jan 12, 2020
c2ea63f
Java 8 failing tests for Time
mernst Jan 12, 2020
2de0f84
Java 8 failing tests for Closure
mernst Jan 12, 2020
b1be945
Java 8 failing tests for Mockito
mernst Jan 12, 2020
3890363
Change triggering tests for Closure-115
mernst Jan 13, 2020
808679e
Merge ../defects4j-fork-mernst-branch-java-8-support-with-master-merg…
mernst Jan 13, 2020
a152d26
Removed duplicates.
rjust Jan 14, 2020
14eb8fc
Renamed get_version_ids to get_bug_ids to reflect that this subroutin…
rjust Jan 14, 2020
45aafa1
Added a function to log warnings (as opposed to errors).
rjust Jan 14, 2020
6ed2e32
Skip invalid bug IDs.
rjust Jan 14, 2020
f279f6b
Merge branch 'master' of https://github.com/rjust/defects4j into java…
rjust Jan 14, 2020
87f1640
Merge branch 'remove-duplicates' of https://github.com/rjust/defects4…
rjust Jan 14, 2020
b37825c
Attempt to make mutation test more robust.
rjust Jan 14, 2020
96453fb
Removed Lang-2 (not reproducible under Java 8)
rjust Jan 14, 2020
a6c9711
Removed Time-21 (not reproducible under Java 8).
rjust Jan 14, 2020
7d147e2
Use Lang-5 to test randoop and evosuite scripts
rjust Jan 14, 2020
2c7b55f
Fixing bug mining test
Greg4cr Jan 15, 2020
b85949b
Adding job names for TravisCI jobs
Greg4cr Jan 15, 2020
66bdc28
Resolving .travis.yml conflict
Greg4cr Jan 15, 2020
7636c06
Adding TravisCI job names
Greg4cr Jan 15, 2020
1b2eb5f
Undo undesired change
mernst Jan 15, 2020
e7827da
Merge ../defects4j-branch-master into java-8-support-with-master-merg…
mernst Jan 15, 2020
9c4121c
Remove a bug
mernst Jan 15, 2020
3c366af
Merge branch 'java-8-support-with-master-merged-2' of github.com:mern…
mernst Jan 15, 2020
7593ba3
Make error message more specific
mernst Jan 15, 2020
9e004f9
Merge ../defects4j-branch-master into java-8-support-with-master-merg…
mernst Jan 15, 2020
d266e2f
Merge ../defects4j-branch-master into java-8-support-with-master-merg…
mernst Jan 16, 2020
14d661f
Updating bug mining test
Greg4cr Jan 16, 2020
ee9eca4
Adding TravisCI job names
Greg4cr Jan 16, 2020
787f23e
Fixing permissions for test_bug_mining
Greg4cr Jan 16, 2020
109c9bf
Fixing names in bug mining test
Greg4cr Jan 16, 2020
29f71a6
Fixing names in bug mining test files
Greg4cr Jan 16, 2020
7e4ea45
Fixing one more name issue
Greg4cr Jan 16, 2020
40c88dd
Changes to URLs for Maven
Greg4cr Jan 16, 2020
321a102
Merge master into java-8-support branch
mernst Jan 16, 2020
8762cb5
Merge ../defects4j-branch-master into additional-projects-4
mernst Jan 16, 2020
ad058e5
Merge ../defects4j-branch-master into commons-compress-collections
mernst Jan 16, 2020
c79f570
Merge ../defects4j-branch-java-8-support into additional-projects-4-p…
mernst Jan 16, 2020
64cd76f
Merge ../defects4j-branch-java-8-support into commons-compress-collec…
mernst Jan 16, 2020
b735a8c
Merge ../defects4j-branch-master into java-8-support
mernst Jan 16, 2020
db697c7
Fix for JxPath and Cli broken downloads
Greg4cr Jan 17, 2020
f07fdc7
Merge branch 'additional-projects-4' of https://github.com/rjust/defe…
Greg4cr Jan 17, 2020
76cc358
Change to iconv conversions in Cli and Codec to account for different…
Greg4cr Jan 17, 2020
029379e
Change to iconv usage in Collections to fix differences between Mac/L…
Greg4cr Jan 17, 2020
be91900
Another nondeterministic test
mernst Jan 17, 2020
b15ef02
Merge ../defects4j-branch-master into java-8-support
mernst Jan 18, 2020
fe90207
Bringing in changes from master
Greg4cr Jan 20, 2020
6e779f5
Bringing in latest changes from master
Greg4cr Jan 20, 2020
e347bc7
Merge branch 'additional-projects-4' into additional-projects-4-plus-…
Greg4cr Jan 20, 2020
bc1beb0
Merge branch 'commons-compress-collections' into commons-compress-col…
Greg4cr Jan 20, 2020
8a82b67
Merge ../defects4j-branch-java-8-support into additional-projects-4-p…
mernst Jan 20, 2020
d156d84
Merge ../defects4j-branch-java-8-support into commons-compress-collec…
mernst Jan 20, 2020
64f27cd
Minor whitespace and comment tweaks
Greg4cr Jan 23, 2020
f7f77fa
Merge branch 'commons-compress-collections' into commons-compress-col…
Greg4cr Jan 23, 2020
ba9f78b
Minor tweaks to comments and whitespace
Greg4cr Jan 23, 2020
7076100
Merge branch 'additional-projects-4' into additional-projects-4-plus-…
Greg4cr Jan 23, 2020
f854f88
Adding test that only fails under Java 8
Greg4cr Jan 24, 2020
5255681
Adding additional failing tests under Java 8
Greg4cr Jan 24, 2020
55e29b9
Smaller patch for Jsoup 56
mernst Jan 26, 2020
e4b0990
Smaller patch for JxPath 7
mernst Jan 26, 2020
728fe20
Smaller patch for JxPath 9
mernst Jan 26, 2020
ab9753e
Smaller patch for JxPath 22
mernst Jan 26, 2020
519b714
Cleaning up Collections build file
Greg4cr Jan 27, 2020
325fe7b
Cleaning up Collections build file
Greg4cr Jan 27, 2020
19a670c
Updated README
Greg4cr Jan 28, 2020
fb0586a
Removing Cli-6, as it is not Java 8 compatible
Greg4cr Jan 28, 2020
481a09c
Restore import statement
mernst Jan 28, 2020
ab11c62
Add resource files to source diff
mernst Jan 28, 2020
208edd4
Merge ../defects4j-branch-master into additional-projects-4-more-mini…
mernst Jan 29, 2020
04dc259
Making Collections 25-28 Java 8 compatible
Greg4cr Jan 29, 2020
ed68ea8
Merge pull request #265 from rjust/additional-projects-4-more-minimized
Greg4cr Jan 30, 2020
fe9af4e
Merge pull request #266 from rjust/additional-projects-4
Greg4cr Jan 30, 2020
01603ad
Merge ../defects4j-branch-master into java-8-support
mernst Jan 31, 2020
deb5788
Merge ../defects4j-branch-master into java-8-support
mernst Jan 31, 2020
20432d4
Simplify Randoop download
mernst Jan 31, 2020
199030e
Restore variable definitions
mernst Jan 31, 2020
e754966
Enforce Java-7 compilation when exporting properties.
rjust Feb 1, 2020
e6915b5
Merge branch 'master' of https://github.com/rjust/defects4j into java…
rjust Feb 1, 2020
0f49401
Merge ../defects4j-branch-java-8-support into additional-projects-4-p…
mernst Feb 1, 2020
b225603
Merge ../defects4j-branch-java-8-support into commons-compress-collec…
mernst Feb 1, 2020
3ce4788
Merge ../defects4j-branch-master into java-8-support
mernst Feb 1, 2020
ed0e9e5
Merge ../defects4j-branch-java-8-support into additional-projects-4-p…
mernst Feb 1, 2020
196f769
Merge ../defects4j-branch-java-8-support into commons-compress-collec…
mernst Feb 1, 2020
d8a1ce8
Merge ../defects4j-branch-master into additional-projects-4
mernst Feb 1, 2020
43a36cb
Merge ../defects4j-branch-commons-compress-collections-plus-java-8-su…
mernst Feb 1, 2020
2b36d97
Merge ../defects4j-branch-master into commons-compress-collections
mernst Feb 1, 2020
bbdac53
Minimized Csv-3.
jose Feb 3, 2020
d9b659f
Minimized JacksonDatabind-8.
jose Feb 3, 2020
8ccfef5
Minimized JacksonDatabind-10.
jose Feb 3, 2020
e32f5bf
Minimized JacksonDatabind-14.
jose Feb 3, 2020
d52f39d
Minimized JacksonDatabind-15.
jose Feb 3, 2020
a54b4ba
Minimized JacksonDatabind-23.
jose Feb 3, 2020
b454f1d
Minimized JacksonDatabind-31.
jose Feb 3, 2020
9cbcb0b
Minimized JacksonDatabind-38.
jose Feb 3, 2020
73c906f
Minimized JacksonDatabind-47.
jose Feb 3, 2020
69a42b9
Minimized JacksonDatabind-52.
jose Feb 3, 2020
13e9f10
Minimized JacksonDatabind-77.
jose Feb 3, 2020
9e46348
Minimized JacksonDatabind-94.
jose Feb 3, 2020
4025c04
Minimized JacksonDatabind-15.
jose Feb 3, 2020
217cb68
Minimized JacksonDatabind-31.
jose Feb 3, 2020
1510cc6
Merge branch 'master' into additional-projects-4
jose Feb 3, 2020
b5671ad
Merge branch 'additional-projects-4' of github.com:rjust/defects4j in…
jose Feb 3, 2020
4fbecd3
Fixing URL for repo download
Greg4cr Feb 4, 2020
f1b009f
Minimized Compress-2
rjust Feb 4, 2020
12f38e6
Minimized Compress-8
rjust Feb 4, 2020
c6dde57
Minimized Compress-20
rjust Feb 5, 2020
c968ec5
Minimized Compress-39
rjust Feb 5, 2020
87c3d80
Minimized Compress-46
rjust Feb 5, 2020
ab678b4
Only run relevant tests during minimization.
rjust Feb 9, 2020
aa64191
Merge branch 'master' of https://github.com/rjust/defects4j into comm…
rjust Feb 9, 2020
d40fe7d
Minimized Cli-3.
rjust Feb 13, 2020
ed3dfc3
Minimized Cli-13.
rjust Feb 13, 2020
5e1c51b
Minimized Cli-14.
rjust Feb 13, 2020
f7c157a
Minimized Cli-15.
rjust Feb 13, 2020
9ac3c2f
Minimized Cli-21.
rjust Feb 13, 2020
9f430b6
Merge branch 'master' of https://github.com/rjust/defects4j into addi…
rjust Feb 13, 2020
0e0f018
Only run relevant tests during minimization.
rjust Feb 13, 2020
b2dcfa0
Minimized Cli-23.
rjust Feb 13, 2020
e0903a0
Minimized Cli-29.
rjust Feb 13, 2020
02844bd
Minimized Cli-30
rjust Feb 13, 2020
bf83ea4
Minimized Cli-33.
rjust Feb 13, 2020
5da3b65
Minimized Cli-34.
rjust Feb 13, 2020
aebe900
Minimized Cli-39.
rjust Feb 13, 2020
a70d0a9
Minimized Cli-1.
rjust Feb 13, 2020
49b70dc
Merge branch 'additional-projects-4' of https://github.com/rjust/defe…
rjust Feb 13, 2020
8d10664
Minimized JacksonCore-1.
rjust Feb 13, 2020
3f3d301
Minimized JacksonCore-9.
rjust Feb 13, 2020
019a34b
Minimized JacksonCore-12.
rjust Feb 13, 2020
0c1237f
Minimized JacksonCore-16.
rjust Feb 13, 2020
98dac23
Minimized JacksonCore-17.
rjust Feb 13, 2020
6402273
Minimized JacksonCore-18.
rjust Feb 13, 2020
94ba5d3
Temporary repo server does not support https.
rjust Feb 13, 2020
49ad92f
Merge branch 'master' of https://github.com/rjust/defects4j into comm…
rjust Feb 14, 2020
6a58e13
Run entire projects on travis if possible.
rjust Feb 14, 2020
d9ce537
Run entire projects on travis if possible.
rjust Feb 14, 2020
b04b3a1
Updated README
rjust Feb 14, 2020
b481643
Merge branch 'commons-compress-collections' of https://github.com/rju…
rjust Feb 14, 2020
4fd3b45
Fixed a typo.
rjust Feb 14, 2020
2ec9342
Updated README; added script that computes the table of bugs for the …
rjust Feb 14, 2020
9d3ab95
Right-align numbers.
rjust Feb 14, 2020
8297046
Updated script.
rjust Feb 14, 2020
282141d
Minimizing Cli-12
Greg4cr Feb 14, 2020
83b5545
Updated URL for project repos.
rjust Feb 14, 2020
a5a9394
Added flag to run all tests.
rjust Feb 15, 2020
d9952c2
Test gen (#186)
rjust Feb 15, 2020
1a7c364
Merge branch 'master' of https://github.com/rjust/defects4j into addi…
rjust Feb 15, 2020
6383e4b
Don't set default bug-tracker query in wrapper script.
rjust Feb 16, 2020
a3194a3
Merge branch 'additional-projects' of https://github.com/rjust/defect…
rjust Feb 16, 2020
152184b
Merge branch 'master' of https://github.com/rjust/defects4j into addi…
rjust Feb 16, 2020
42dbc59
Minimized Compress-29
Greg4cr Feb 17, 2020
0db66f6
Minimized Compress-43
Greg4cr Feb 17, 2020
ea50170
Minimized JacksonCore-13
Greg4cr Feb 17, 2020
b0741d0
Minimized JacksonCore-24
Greg4cr Feb 17, 2020
30a515c
Minimized Compress-22
Greg4cr Feb 17, 2020
eeeceb1
Minimized Cli-1
Greg4cr Feb 17, 2020
3a6bb76
Recomputed Cli metadata
Greg4cr Feb 18, 2020
e25113f
Recomputed Compress metadata
Greg4cr Feb 18, 2020
d47dbc2
Recomputed JacksonCore metadata
Greg4cr Feb 18, 2020
0010833
recomputed JacksonXml metadata
Greg4cr Feb 18, 2020
7c6a318
Recomputed Codec metadata
Greg4cr Feb 18, 2020
0ab1711
Recomputed Gson metadata
Greg4cr Feb 18, 2020
d6f2d92
Recomputed Collections metadata
Greg4cr Feb 18, 2020
864af4a
Adding stacktraces to new failing tests
Greg4cr Feb 18, 2020
2e43d1b
Recomputed Jsoup metadata
Greg4cr Feb 19, 2020
fa737d7
Recomputed Csv metadata
Greg4cr Feb 19, 2020
3e0c2d7
Recomputed JxPath metadata
Greg4cr Feb 19, 2020
14763b3
Recomputed metadata for JacksonDatabind
Greg4cr Feb 19, 2020
d898d71
Merge branch 'master' into additional-projects
Greg4cr Feb 19, 2020
79e93fa
Recomputed Cli stack traces
Greg4cr Feb 19, 2020
ad4635d
Recomputed Codec stack traces
Greg4cr Feb 19, 2020
933e479
Recomputed Jsoup stack traces
Greg4cr Feb 19, 2020
8c6aa1c
Recomputed Compress stacktraces
Greg4cr Feb 19, 2020
06f3bda
Recomputed Csv stacktraces
Greg4cr Feb 19, 2020
6eef711
Recomputed Gson stack traces
Greg4cr Feb 19, 2020
24ab78f
Recomputed JacksonCore stack traces
Greg4cr Feb 19, 2020
45641e6
Recomputed JacksonXml stack traces
Greg4cr Feb 19, 2020
4f6b689
Recomputed JxPath stack traces
Greg4cr Feb 19, 2020
f7e3485
Recomputed Collections stack traces
Greg4cr Feb 19, 2020
9f14a83
Recomputed JacksonDatabind stack traces
Greg4cr Feb 19, 2020
a03a21a
Removed tabs.
rjust Feb 20, 2020
3650d8e
fixing name in documentation
Greg4cr Feb 20, 2020
cfabbad
Merge branch 'master' of https://github.com/rjust/defects4j into addi…
rjust Feb 20, 2020
6586033
Per-project control for test_export_command (fixes #292)
Greg4cr Feb 21, 2020
a348f39
Fixing typo in Travis config
Greg4cr Feb 21, 2020
e6939bc
Merge branch 'master' into additional-projects
Greg4cr Mar 5, 2020
64af691
Recomputed loaded class lists for Cli, Codec, Collections, Csv
Greg4cr Mar 5, 2020
a932728
Fixing Cli failing test files
Greg4cr Mar 5, 2020
1b13a0f
Recomputed loaded class files for Compress, Gson, JacksonCore, Jackso…
Greg4cr Mar 5, 2020
83f3821
Recomputed JSoup loaded class lists
Greg4cr Mar 5, 2020
2057c86
Recomputed JacksonDatabind loaded classes
Greg4cr Mar 6, 2020
6845a1c
Merge branch 'master' into additional-projects
Greg4cr Mar 6, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
59 changes: 55 additions & 4 deletions .travis.yml
Expand Up @@ -53,6 +53,9 @@ jobs:
## Chart
script: carton exec ./test_verify_bugs.sh -p Chart
name: "Chart"
## Cli
- script: carton exec ./test_verify_bugs.sh -p Cli
name: "Cli"
## Closure
- script: carton exec ./test_verify_bugs.sh -p Closure -b1..10
name: "Closure 1-10"
Expand Down Expand Up @@ -92,11 +95,59 @@ jobs:
name: "Closure 161-169"
- script: carton exec ./test_verify_bugs.sh -p Closure -b170..176
name: "Closure 170-176"
## Codec
- script: carton exec ./test_verify_bugs.sh -p Codec -b1..18
name: "Codec"
## Collections
- script: carton exec ./test_verify_bugs.sh -p Collections -b25..28
name: "Collections"
## Compress
- script: carton exec ./test_verify_bugs.sh -p Compress
name: "Compress"
## Csv
- script: carton exec ./test_verify_bugs.sh -p Csv -b1..16
name: "Csv"
## Gson
- script: carton exec ./test_verify_bugs.sh -p Gson -b1..18
name: "Gson"
## JacksonCore
- script: carton exec ./test_verify_bugs.sh -p JacksonCore
name: "JacksonCore"
## JacksonDatabind
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b1..14
name: "JacksonDatabind 1-14"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b15..28
name: "JacksonDatabind 15-28"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b29..43
name: "JacksonDatabind 29-43"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b44..57
name: "JacksonDatabind 44-57"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b58..67
name: "JacksonDatabind 58-67"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b68..76
name: "JacksonDatabind 68-76"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b77..86
name: "JacksonDatabind 77-86"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b87..96
name: "JacksonDatabind 87-96"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b97..104
name: "JacksonDatabind 97-104"
- script: carton exec ./test_verify_bugs.sh -p JacksonDatabind -b105..112
name: "JacksonDatabind 105-112"
## JacksonXml
- script: carton exec ./test_verify_bugs.sh -p JacksonXml -b1..6
name: "JacksonXml"
## Jsoup
- script: carton exec ./test_verify_bugs.sh -p Jsoup -b1..50
name: "Jsoup 1-50"
- script: carton exec ./test_verify_bugs.sh -p Jsoup -b51..93
name: "Jsoup 51-93"
## JxPath
- script: carton exec ./test_verify_bugs.sh -p JxPath
name: "JxPath"
## Lang
- script: carton exec ./test_verify_bugs.sh -p Lang -b1..32
name: "Lang 1-32"
- script: carton exec ./test_verify_bugs.sh -p Lang -b33..65
name: "Lang 33-65"
- script: carton exec ./test_verify_bugs.sh -p Lang
name: "Lang"
## Math
- script: carton exec ./test_verify_bugs.sh -p Math -b1..18
name: "Math 1-18"
Expand Down
74 changes: 27 additions & 47 deletions README.md
@@ -1,4 +1,4 @@
Defects4J -- version 1.5.0 [![Build Status](https://travis-ci.org/rjust/defects4j.svg?branch=master)](https://travis-ci.org/rjust/defects4j)
Defects4J -- version 2.0.0 [![Build Status](https://travis-ci.org/rjust/defects4j.svg?branch=master)](https://travis-ci.org/rjust/defects4j)
================
Defects4J is a collection of reproducible bugs and a supporting infrastructure
with the goal of advancing software engineering research.
Expand All @@ -8,16 +8,27 @@ Contents of Defects4J

The projects
---------------
Defects4J contains 438 bugs from the following open-source projects:

| Identifier | Project name | Number of bugs |
|------------|----------------------|----------------|
| Chart | JFreeChart | 26 |
| Closure | Closure compiler | 176 |
| Lang | Apache commons-lang | 65 |
| Math | Apache commons-math | 106 |
| Mockito | Mockito | 38 |
| Time | Joda-Time | 27 |
Defects4J contains 835 bugs from the following open-source projects:

| Identifier | Project name | Number of bugs |
|-----------------|----------------------------|---------------:|
| Chart | jfreechart | 26 |
| Cli | commons-cli | 39 |
| Closure | closure-compiler | 174 |
| Codec | commons-codec | 18 |
| Collections | commons-collections | 4 |
| Compress | commons-compress | 47 |
| Csv | commons-csv | 16 |
| Gson | gson | 18 |
| JacksonCore | jackson-core | 26 |
| JacksonDatabind | jackson-databind | 112 |
| JacksonXml | jackson-dataformat-xml | 6 |
| Jsoup | jsoup | 93 |
| JxPath | commons-jxpath | 22 |
| Lang | commons-lang | 64 |
| Math | commons-math | 106 |
| Mockito | mockito | 38 |
| Time | joda-time | 26 |

The bugs
---------------
Expand All @@ -36,53 +47,22 @@ Each bug has the following properties:
The (b)uggy and (f)ixed program revisions are labelled with `<id>b` and
`<id>f`, respectively (`<id>` is an integer).

Looking for additional bugs?
-----------------------------
A number of additional bugs are available in "work-in-progress" status.
These bugs meet the same properties as the ones above, but have only been
minimized by one of the maintainers. Metadata and patch content can
potentially change before these bugs are migrated into the master repository.
These bugs may be used in experiments, but should not be considered as
"stable" as the bugs in the master repository. If you use these bugs, please
acknowledge their "beta status" in any publications.

**Branch [commons-compress-collections](https://github.com/rjust/defects4j/tree/commons-compress-collections):**

| Identifier | Project name | Number of bugs |
|------------|----------------------------|----------------|
| Collections| Apache commons-collections | 28 |
| Compress | Apache commons-compress | 47 |

**Branch [additional-projects-4](https://github.com/rjust/defects4j/tree/additional-projects-4):**

| Identifier | Project name | Number of bugs |
|-----------------|------------------------|----------------|
| Cli | Apache commons-cli | 40 |
| Codec | Apache commons-codec | 18 |
| Csv | Apache commons-csv | 16 |
| Gson | Google Gson | 18 |
| JacksonCore | Jackson JSON parser | 26 |
| JacksonDatabind | Jackson data bindings | 112 |
| JacksonXml | Jackson XML extension | 6 |
| JxPath | Apache commons-jxpath | 22 |
| Jsoup | jsoup HTML Parser | 93 |

Setting up Defects4J
================

Requirements
----------------
- Java 1.7 (see below)
- Java 1.8 (version 1.5.0 and older requires Java 1.7)
- Git >= 1.9
- SVN >= 1.8
- Perl >= 5.0.12

#### Java version

* `master` branch requires Java 8.
* `version 2.0.0`: will require Java 8.
* `version 1.5.0` and lower: requires Java 1.7

All bugs have been reproduced and triggering tests verified, using the latest
version of Java 1.8.
Note that using Java 1.9+ might result in unexpected failing tests on a fixed
program version.

#### Perl dependencies
All required Perl modules are listed in `cpanfile`. On many Unix platforms,
Expand Down
18 changes: 18 additions & 0 deletions framework/bug-mining/analyze-project.pl
Expand Up @@ -263,7 +263,25 @@ sub _check_t2v2 {

# Run t2 and get number of failing tests
my $file = "$project->{prog_root}/v2.fail"; `>$file`;

$project->run_tests($file) or die;

# Filter out invalid test names, such as testEncode[0].
# This problem impacts many Commons projects.
if(-e "$project->{prog_root}/v2.fail"){
rename("$project->{prog_root}/v2.fail", "$project->{prog_root}/v2.fail".'.bak');
open(IN, '<'."$project->{prog_root}/v2.fail".'.bak') or die $!;
open(OUT, '>'."$project->{prog_root}/v2.fail") or die $!;
while(<IN>) {
if($_ =~ /\-\-\-/){
$_ =~ s/\[[0-9]\]//g;
}
print OUT $_;
}
close(IN);
close(OUT);
}

# Get number of failing tests
my $list = Utils::get_failing_tests($file);
my $fail = scalar(@{$list->{"classes"}}) + scalar(@{$list->{"methods"}});
Expand Down
4 changes: 2 additions & 2 deletions framework/bug-mining/download-issues.pl
Expand Up @@ -61,8 +61,8 @@ =head1 OPTIONS

=item B<-q C<query>>

The query sent to the issue tracker. Suitable defaults for supported trackers
are chosen so they identify only bugs.
The query (i.e., filter for bug type or label) sent to the issue tracker.
Suitable defaults for supported trackers are chosen so they identify only bugs.

=item B<-u C<tracker-uri>>

Expand Down
18 changes: 16 additions & 2 deletions framework/bug-mining/get-trigger.pl
Expand Up @@ -213,10 +213,24 @@ =head1 DESCRIPTION
}

# Save dependent tests to $DEP_TEST_FILE

# Get contents of current dependent tests file
my @old_dep_tests;

if (-e $DEP_TEST_FILE){
open my $contents, '<', $DEP_TEST_FILE or die "Cannot open dependent tests file: $!\n";
my @old_dep_tests = <$contents>;
close $contents;
}

my @dependent_tests = grep { !($_ ~~ @{$list}) } @fail_in_order;
for my $dependent_test (@dependent_tests) {
print " ## Warning: Dependent test ($dependent_test) is being added to list.\n";
system("echo '--- $dependent_test' >> $DEP_TEST_FILE");
# Add the test unless it is already in the list.
unless ($dependent_test ~~ @old_dep_tests) {
print " ## Warning: Dependent test ($dependent_test) is being added to list.\n";
system("echo '--- $dependent_test' >> $DEP_TEST_FILE");
push @old_dep_tests, $dependent_test;
}
}

# Add data
Expand Down
13 changes: 9 additions & 4 deletions framework/bug-mining/initialize-project-and-collect-issues.pl
Expand Up @@ -72,8 +72,8 @@ =head1 OPTIONS

=item B<-q C<query>>

The query sent to the issue tracker. Suitable defaults for supported trackers
are chosen so they identify only bugs.
The query (i.e., filter for bug type or label) sent to the issue tracker.
Suitable defaults for supported trackers are chosen so they identify only bugs.

=item B<-u C<tracker-uri>>

Expand Down Expand Up @@ -125,7 +125,7 @@ =head1 OPTIONS
my $ISSUES_DIR = "$WORK_DIR/issues";
my $ISSUES_FILE = "$WORK_DIR/issues.txt";
my $ORGANIZATION_ID = $cmd_opts{z};
my $QUERY = $cmd_opts{q} // "labels=Bug";
my $QUERY = $cmd_opts{q};
my $TRACKER_URI = $cmd_opts{u};
my $FETCHING_LIMIT = $cmd_opts{l};

Expand All @@ -151,12 +151,17 @@ =head1 OPTIONS
system("cp $PROJECTS_DIR/$PID/$PID.build.xml $WORK_DIR/framework/projects/$PID/$PID.build.xml");
}

if (defined($QUERY)) {
$QUERY = "-q $QUERY";
} else {
$QUERY = "";
}
# Collect all issues from the project issue tracker
Utils::exec_cmd("./download-issues.pl -g $ISSUE_TRACKER_NAME"
. " -t $ISSUE_TRACKER_PROJECT_ID"
. " -o $ISSUES_DIR"
. " -f $ISSUES_FILE"
. " -q $QUERY",
. "$QUERY",
"Collecting all issues from the project issue tracker") or die "Cannot collect all issues from the project issue tracker!";

# Collect git log
Expand Down
22 changes: 18 additions & 4 deletions framework/bug-mining/initialize-revisions.pl
Expand Up @@ -31,7 +31,7 @@ =head1 NAME

=head1 SYNOPSIS

initialize-revisions.pl -p project_id -w work_dir [ -b bug_id]
initialize-revisions.pl -p project_id -w work_dir [-s subproject] [ -b bug_id]

=head1 OPTIONS

Expand All @@ -45,6 +45,10 @@ =head1 OPTIONS

The working directory used for the bug-mining process.

=item B<-s F<subproject>>

The subproject to be mined (if not the root directory)

=item B<-b C<bug_id>>

Only analyze this bug id. The bug_id has to follow the format B<(\d+)(:(\d+))?>.
Expand All @@ -67,13 +71,14 @@ =head1 OPTIONS
use Utils;

my %cmd_opts;
getopts('p:b:w:', \%cmd_opts) or pod2usage(1);
getopts('p:b:w:s:', \%cmd_opts) or pod2usage(1);

pod2usage(1) unless defined $cmd_opts{p} and defined $cmd_opts{w};

my $PID = $cmd_opts{p};
my $BID = $cmd_opts{b};
my $WORK_DIR = abs_path($cmd_opts{w});
my $SUBPROJ = $cmd_opts{s};

# Check format of target bug id
if (defined $BID) {
Expand Down Expand Up @@ -120,6 +125,11 @@ sub _init_version {
# minimized patch to obtain the buggy version.
$project->{_vcs}->checkout_vid("${vid}", $work_dir) or die "Cannot checkout $vid version";

if (defined $SUBPROJ) {
$work_dir .= "/$SUBPROJ/";
$project->{prog_root} = $work_dir;
}

system("mkdir -p $ANALYZER_OUTPUT/$bid");
if (-e "$work_dir/build.xml") {
my $cmd = " cd $work_dir" .
Expand All @@ -128,7 +138,7 @@ sub _init_version {
} elsif (-e "$work_dir/pom.xml") {
# Run maven-ant plugin and overwrite the original build.xml whenever a maven build file exists
my $cmd = " cd $work_dir" .
" && mvn ant:ant -Doverwrite=true 2>&1" .
" && mvn ant:ant -Doverwrite=true 2>&1 -Dhttps.protocols=TLSv1.2" .
" && patch build.xml $PROJECT_DIR/build.xml.patch 2>&1" .
" && rm -rf $GEN_BUILDFILE_DIR/$rev_id && mkdir -p $GEN_BUILDFILE_DIR/$rev_id 2>&1" .
" && cp maven-build.* $GEN_BUILDFILE_DIR/$rev_id 2>&1" .
Expand All @@ -138,10 +148,14 @@ sub _init_version {
$cmd = " cd $work_dir" .
" && java -jar $LIB_DIR/analyzer.jar $work_dir $ANALYZER_OUTPUT/$bid maven-build.xml 2>&1";
Utils::exec_cmd($cmd, "Run build-file analyzer on maven-ant.xml.") or die;

# Fix broken dependency links
my $fix_dep = "cd $work_dir && sed \'s\/https:\\/\\/oss\\.sonatype\\.org\\/content\\/repositories\\/snapshots\\//http:\\/\\/central\\.maven\\.org\\/maven2\\/\/g\' maven-build.xml >> temp && mv temp maven-build.xml";
Utils::exec_cmd($fix_dep, "Fixing broken dependency links.");

# Get dependencies if it is maven-ant project
my $download_dep = "cd $work_dir && ant -Dmaven.repo.local=\"$PROJECT_DIR/lib\" get-deps";
Utils::exec_cmd($download_dep, "Download dependencies for maven-ant.xml");
Utils::exec_cmd($download_dep, "Download dependencies for maven-ant.xml.");
} else {
# TODO add support for other build systems
die "Unsupported build system";
Expand Down
2 changes: 1 addition & 1 deletion framework/bug-mining/minimize-patch.pl
Expand Up @@ -171,7 +171,7 @@ =head1 EDITOR
# Is the list of triggering test still the same?
my $local_trigger_tests = "$TMP_DIR/trigger_tests";
system(">$local_trigger_tests");
$project->run_tests($local_trigger_tests);
$project->run_relevant_tests($local_trigger_tests);

system("grep \"^--- \" $trigger_tests | sort > $local_trigger_tests.sorted.original");
system("grep \"^--- \" $local_trigger_tests | sort > $local_trigger_tests.sorted.minimal");
Expand Down