A mixed-method in-depth study of test-specific refactorings: dataset
收藏资源简介:
This submission is the replication package and dataset of the paper "A mixed-method in-depth study of test-specific refactorings." The files are organized in folders according to the corresponding method. Method 1 (Mining datasets) has seven files, two compressed excel sheets and five archive files. Excel sheets: Victor Guerra Veloso - Review Matrix.xlsx.zstd: this spreadsheet comprises the data from the related work as it is exported by the scripts from Gerrit2CommitMapper and MethodOneRelatedFiles.tar.zstd. This is also the input file for the association rules experiment Validation Sample ItemsetsSupport AllLevels FullyMerged.xlsx.zstd: as the name suggests it's a sample of the fully merged output of the association rules experiment. Archives: Gerrit2CommitMapper.tar.zstd contains the Gerrit2CommitMapper script that we applied to Gerrit issues to extract associated commits in the projects' git repositories. MethodOneRelatedFiles.tar.zstd contains some scripts (as python notebooks) that were used to conduct the method one. related-work-datasets.tar.zstd contains all the raw datasets from related works MiningDatasetRMinerOutput.tar.zstd includes the output of RefactoringMiner for each commit in our dataset TestRefactoringExistingDataMining.tar.zstd comprises the python project we develop to assist the replication of the method 1's association rules experiment. It expects "Victor Guerra Veloso - Review Matrix.xlsx" as input and generate all the association rules for different settings, such as using different algorithms (FPGrowth, FPMax, and Apriori), hyper-parameters (minsupport ranging from 0.01 to 0.15), and transaction granularities (commit-level, file-level, and method-level) Method 2 (Monitoring) has two compressed text files, one excel sheet, and an archived version of the RefactoringMonitor tool source code. Notice that, RefactoringMonitor includes all components (WebApp, API, and worker), configuration files (docker-compose.yml), and a README.md with instruction for execution. Text files: InitialSet: list of repositories initially monitored (based on method 1) ExtendedSet: list of repositories monitored after collecting popular repositories (based on github search) Excel sheet: The excel sheet concentrates the result of the Monitoring and Survey as well as the multiple runs of the validation by the second author. Method 3 (StackOverflow) has one excel sheet and one archive file. The excel sheet contains the results of the experiment and associates tags to the collected and studied StackOverflow questions. The archive file comprise all the scripts to collect and assist the analysis of the stackoverflow questions. It also includes both input and output data files. These scripts leverage webbrowser, the Python's standard library feature to open browsers in a specific URL, to iterate over all stackoverflow questions allowing the researcher to assign tags or create new tags. Newly added files include 'Core Devs Reassessment.tar.zstd', 'MonitoringReposCached.tar.zstd', and 'MonitoringExtension.tar.zstd' which comprise the artifacts generated during the method 2 core devs reassessment, the archive of all method 2 monitored repos from which at least one refactoring type has been identified, and the the artifacts generated during the method 2 monitoring extension, respectively. List of files: [M1]Mining Datasets/Gerrit2CommitMapper.tar.zstd[M1]Mining Datasets/MethodOneRelatedFiles.tar.zstd[M1]Mining Datasets/MiningDatasetRMinerOutput.tar.zstd[M1]Mining Datasets/TestRefactoringExistingDataMining.tar.zstd[M1]Mining Datasets/Validation Sample ItemsetsSupport AllLevels FullyMerged.xlsx.zstd[M1]Mining Datasets/Victor Guerra Veloso - Review Matrix.xlsx.zstd[M2]Monitoring/Core Devs Reassessment.tar.zstd[M2]Monitoring/MonitoringReposCached.tar.zstd[M2]Monitoring/MonitoredRepositories-ExtendedSet.txt.zstd[M2]Monitoring/MonitoredRepositories-InitialSet.txt.zstd[M2]Monitoring/MonitoringExtension.tar.zstd[M2]Monitoring/Monitoring tags.xlsx.zstd[M2]Monitoring/RefactoringMonitor.tar.zstd[M3]StackOverflow/StackOverflow tags.xlsx.zstd[M3]StackOverflow/StackOverflow.tar.zstd
本提交为论文《针对特定测试的重构的混合方法深度研究》的复现包与数据集。 文件按照对应研究方法划分至不同文件夹中。 方法1(挖掘数据集)包含7个文件,其中2个压缩Excel表格与5个归档文件。 #### 压缩Excel表格 1. Victor Guerra Veloso - 评审矩阵.xlsx.zstd:该电子表格包含相关工作的原始数据,由Gerrit2CommitMapper与MethodOneRelatedFiles.tar.zstd中的脚本导出,同时亦是关联规则实验的输入文件。 2. Validation Sample ItemsetsSupport AllLevels FullyMerged.xlsx.zstd:顾名思义,该文件为关联规则实验完全合并输出结果的采样样本。 #### 归档文件 1. Gerrit2CommitMapper.tar.zstd:包含我们应用于Gerrit议题的Gerrit2CommitMapper脚本,用于从项目Git仓库中提取关联提交。 2. MethodOneRelatedFiles.tar.zstd:包含用于开展方法1研究的若干Python Notebook脚本。 3. related-work-datasets.tar.zstd:包含所有相关工作的原始数据集。 4. MiningDatasetRMinerOutput.tar.zstd:包含RefactoringMiner针对本数据集内每一条提交的输出结果。 5. TestRefactoringExistingDataMining.tar.zstd:包含我们开发的Python项目,用于辅助复现方法1的关联规则实验。该项目以"Victor Guerra Veloso - 评审矩阵.xlsx"作为输入,可基于不同配置生成关联规则,包括使用不同算法(FPGrowth、FPMax与Apriori)、超参数(最小支持度范围为0.01至0.15)以及事务粒度(提交级、文件级与方法级)。 方法2(监控研究)包含2个压缩文本文件、1个Excel表格,以及RefactoringMonitor工具源代码的归档版本。请注意,RefactoringMonitor包含所有组件(Web应用、API与工作进程)、配置文件(docker-compose.yml)以及一份包含执行说明的README.md。 #### 压缩文本文件 1. InitialSet:初始监控的仓库列表(基于方法1的研究结果) 2. ExtendedSet:在收集热门仓库后拓展的监控仓库列表(基于GitHub搜索结果) 该Excel表格汇总了监控与调研结果,以及第二作者开展的多轮验证结果。 方法3(StackOverflow研究)包含1个Excel表格与1个归档文件。 1. Excel表格:包含实验结果,并为收集与研究的StackOverflow问题关联了标签。 2. 归档文件:包含所有用于收集与辅助分析StackOverflow问题的脚本,同时包含输入与输出数据文件。这些脚本利用Python标准库的webbrowser模块,可在指定URL打开浏览器,以遍历所有StackOverflow问题,便于研究人员为问题分配标签或创建新标签。 新增文件包括'Core Devs Reassessment.tar.zstd'、'MonitoringReposCached.tar.zstd'与'MonitoringExtension.tar.zstd',分别对应方法2核心开发者重新评估阶段生成的成果、至少识别出一种重构类型的方法2监控仓库归档,以及方法2监控拓展阶段生成的成果。 完整文件列表如下: [M1]挖掘数据集/Gerrit2CommitMapper.tar.zstd [M1]挖掘数据集/MethodOneRelatedFiles.tar.zstd [M1]挖掘数据集/MiningDatasetRMinerOutput.tar.zstd [M1]挖掘数据集/TestRefactoringExistingDataMining.tar.zstd [M1]挖掘数据集/Validation Sample ItemsetsSupport AllLevels FullyMerged.xlsx.zstd [M1]挖掘数据集/Victor Guerra Veloso - 评审矩阵.xlsx.zstd [M2]监控研究/Core Devs Reassessment.tar.zstd [M2]监控研究/MonitoringReposCached.tar.zstd [M2]监控研究/MonitoredRepositories-ExtendedSet.txt.zstd [M2]监控研究/MonitoredRepositories-InitialSet.txt.zstd [M2]监控研究/MonitoringExtension.tar.zstd [M2]监控研究/Monitoring tags.xlsx.zstd [M3]StackOverflow/StackOverflow tags.xlsx.zstd [M3]StackOverflow/StackOverflow.tar.zstd



