[論文レビュー] Modeling Sampling Workflows for Code Repositories
論文はドメイン特化言語(DSL)とPythonベースの fluent API を導入し、コードリポジトリデータの多段階サンプリングワークフローを明示的に説明・推論する。 representativeness と generalizability の評価を、MSR ケーススタディを通じて検証可能にする。
Empirical software engineering research often depends on datasets of code repository artifacts, where sampling strategies are employed to enable large-scale analyses. The design and evaluation of these strategies are critical, as they directly influence the generalizability of research findings. However, sampling remains an underestimated aspect in software engineering research: we identify two main challenges related to (1) the design and representativeness of sampling approaches, and (2) the ability to reason about the implications of sampling decisions on generalizability. To address these challenges, we propose a Domain-Specific Language (DSL) to explicitly describe complex sampling strategies through composable sampling operators. This formalism supports both the specification and the reasoning about the generalizability of results based on the applied sampling strategies. We implement the DSL as a Python-based fluent API, and demonstrate how it facilitates representativeness reasoning using statistical indicators extracted from sampling workflows. We validate our approach through a case study of MSR papers involving code repository sampling. Our results show that the DSL can model the sampling strategies reported in recent literature.
研究の動機と目的
- ソフトウェアリポジトリデータセットの多段階サンプリング戦略を設計・評価する課題に対処する。
- 明確さ、再現性、および generalizability の推論を改善するためのワークフローベースの明示表現を提供する。
- ワークフロー各段階で representativeness を評価する指標の自動計算を可能にする。
提案手法
- サンプリングワークフローのメタモデルを Elements、Operators、Metadata で導入する。
- サンプリングワークフローをモデル化・実行するための Python fluent API として内部 DSL を実装する。
- デフォルトのローダ(JSON、CSV)と、実データ上でワークフローを実行する Software Heritage ベースのローダーを提供する。
- コミットアクティビティと寄稿者数でサンプリングされたアクティブリポジトリの実行例でアプローチをデモンストレーションする。
- ワークフローに沿って representativeness 指標とサンプルサイズの指針(例:Cochran の公式)を計算する方法を示す。
実験結果
リサーチクエスチョン
- RQ1RQ1: MSR 文献ではどのようなタイプのサンプリング戦略が用いられているか。
- RQ2RQ2: サンプリングを用いる MSR 研究は generalizability や representativeness を議論しているか。
- RQ3RQ3: DSL の概念は MSR のサンプリング戦略の複雑さを捉えられるか。
- RQ4RQ4: サンプリング戦略の不完全なモデリングを引き起こす原因は何か。
主な発見
- DSL は MSR 文献で報告されている多段階サンプリング戦略の多様性をモデル化できる。
- ケーススタディでは、MSR 論文の 53.8% がコードリポジトリでのサンプリングを分析している。
- ワークフローの実行は中間段階での分布と統計的検定を通じた representativeness 推論をサポートする。
- Cochran の公式はランダムおよび層化ランダム演算子の中で、ワークフロー内のサンプルサイズを正当化するために適用できる。
- 明示的なワークフロー表現はサンプリング戦略の曖昧さを特定するのに役立ち、再現性の向上につながる可能性がある。
- このアプローチは各ワークフロー段階での指標(分布、サンプルサイズ)を自動計算することをサポートする。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。