From 14c0be46fdea917ad46e804e67cf2e7a0f27a47e Mon Sep 17 00:00:00 2001 From: giograno Date: Fri, 29 May 2020 12:09:57 +0200 Subject: [PATCH] double blind stuff and remove licence with name of uni --- LICENSE | 21 --------------------- README.md | 8 ++++++++ data/likert.csv | 12 ------------ scripts/likert.R | 22 ---------------------- scripts/likert_scale.py | 30 ------------------------------ 5 files changed, 8 insertions(+), 85 deletions(-) delete mode 100644 LICENSE create mode 100644 README.md delete mode 100644 data/likert.csv delete mode 100644 scripts/likert.R delete mode 100644 scripts/likert_scale.py diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 5869858..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Software Evolution and Architecture Lab - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..2cbb257 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Appendix of _Pizza versus Pinsa: On the Perception and Measurability of Unit Test Code Quality_ + +We share in this online appendix: +* raw data from our survey; +* trascripts of the interviews to the experts; +* scripts used to process the data and to build the presented statistical model. +* full list of questions for the study; +* statistical description of the response variable. diff --git a/data/likert.csv b/data/likert.csv deleted file mode 100644 index 39274ea..0000000 --- a/data/likert.csv +++ /dev/null @@ -1,12 +0,0 @@ -index,I do not know,not at all important,slightly,moderately,very,extremely important -The test code is readable,0.0,0.0,0.0,3.0,30.0,37.0 -The test code is maintainable,0.0,0.0,0.0,8.0,29.0,33.0 -The test has correct input-output pairs,4.0,0.0,1.0,11.0,14.0,40.0 -The test is able to find faults,3.0,2.0,4.0,6.0,28.0,27.0 -The test is not flaky,2.0,0.0,1.0,5.0,14.0,48.0 -The test has good code design,1.0,3.0,8.0,22.0,23.0,13.0 -The test withstands in the long run,7.0,3.0,6.0,15.0,20.0,19.0 -Parts of the unit test are reusable,0.0,18.0,17.0,21.0,9.0,5.0 -The test code has low complexity,0.0,1.0,5.0,15.0,23.0,24.0 -The test code has good mutation coverage,11.0,4.0,11.0,19.0,16.0,9.0 -The test code has short execution time,0.0,4.0,16.0,14.0,18.0,18.0 diff --git a/scripts/likert.R b/scripts/likert.R deleted file mode 100644 index 37db595..0000000 --- a/scripts/likert.R +++ /dev/null @@ -1,22 +0,0 @@ -require(grid) -require(lattice) -require(latticeExtra) -require(HH) - -data <- read.csv('../data/likert.csv') -names(data) <- c('index', 'I do not know', 'Not at all', 'Slightly', 'Moderately', 'Very', 'Extremely') -index <- c('readability (7.1)', 'maintainability (7.2)', 'I/O pairs (7.3)', 'fault revealing (7.4)', 'flakiness (7.5)', - 'design (7.6)', 'longevity (7.7)', 'reusability (7.8)', 'complexity (7.9)', 'mut. score (7,10)', - 'exec. time (7.11)') -data = data[,2:7] -data = cbind(index, data) -l <- likert(index ~ .,data=data, - ylab=NULL, - ReferenceZero=4, - as.percent=TRUE, positive.order=TRUE, - main = list("",x=unit(.55, "npc")), - xlim=c(-70,-60,-40,-20,0,20,40,60,80,100), strip=FALSE, - par.strip.text=list(cex=.7), - rightAxis=TRUE, # for the raw total - scales = list(y = list(cex = 1.2))) -plot(l) diff --git a/scripts/likert_scale.py b/scripts/likert_scale.py deleted file mode 100644 index c2cf93f..0000000 --- a/scripts/likert_scale.py +++ /dev/null @@ -1,30 +0,0 @@ -import pandas as pd - - -def main(frame_file: str = '..data/results-survey.csv'): - frame = pd.read_csv(frame_file) - cols = frame.columns.tolist()[121:132] - frame = frame[cols] - print(frame.columns) - col_names = ['The test code is readable', - 'The test code is maintainable', - 'The test has correct input-output pairs', - 'The test is able to find faults', - 'The test is not flaky', - 'The test has good code design', - 'The test withstands in the long run', - 'Parts of the unit test are reusable', - 'The test code has low complexity', - 'The test code has good mutation coverage', - 'The test code has short execution time'] - frame = frame.rename(columns=dict(zip(cols, col_names))) - frame = frame.apply(pd.value_counts).fillna(0).T - reorder = ['I do not know', 'not at all important', 'slightly', 'moderately', 'very', 'extremely important'] - frame = frame[reorder] - frame = frame.reset_index() - frame.to_csv('..data/likert.csv', index=False) - - - -if __name__ == '__main__': - main()