<style></style>






<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Dear everyone, <o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">My name is Zoey Lin, majored in
Computer Science, Peking University, China. I’m a candidate of Master Degree.
Recently I'm making <span style="color:#70AD47;mso-themecolor:accent6">a
research on OpenStack about the contribution composition of a code file, to
predict the potential amount of defect that the file would have in the later
development stage of a release.</span><o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">I wonder if I could show you my
study, including some metrics for the prediction model and a visualization
tool. I would appreciate it if you could share your opinions or give some
advices, which would really, really help me a lot. Thank you so much for your
kindness. :)<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">First of all, I would give a brief
introduction to my study. I analyzed and designed some metrics to describe the
contribution composition of a code file, and then use these metrics to train a
model to predict the amount of bug that a file would have as a risk value in
the later development stage of a release, using the historical commit log data
of the former development stage. The model showed a good performance. I also
developed a tool to visualize the metrics and the potential risk value, which
we believe could help developers and project managers being aware of the
current situation and risk of the code file. We expect that project managers
could estimate the workload, adjust the personnel assignment and locate the
development problems based on the information of the tool and finally could
reduce the risk and improve the quality of the project efficiently in some way.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Then, I would introduce two main
metrics of my model.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">1. code ownership of files and
developers: <o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Code ownership shows the number of
engineers contributing to a source code artifact and the relative proportion of
their contributions. The code ownership of a file refers to the proportion of
ownership for the contributor with the highest proportion of ownership, which
could indicate that whether there is one developer who “owns” the file and has
a high level of expertise, who can act as a single point of contact for others
who need to use the component, need changes to it, or just have questions about
it. Minor developer refers to developer whose code ownership is lower than 5%.
Previous literatures have proven that code ownership and amount of minor
developer strongly correlate with code defects.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">2. contribution diversity of the
file:<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">We measured the uncertainty in a
code file's contributions (or the diversity of sources of contributions) in a
given month using the Teachman/Shannon entropy index, a commonly used diversity
measure in many scientific disciplines.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">H(x) = E[I(xi)] = E[
log(2,1/p(xi)) ] = -∑p(xi)log(2,p(xi)) (i=1,2,..n),<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">p(xi) is the code ownership of
developer xi, I(xi) means the information we need to judge if a contribution
belongs to developer xi. H(x) ranges between 0, when all the contribution of
the file belong to one developer in a release, and log(2, N), when N developers
contribute equally (i.e., pi = 1/N) to the file. The larger H(x) is, the more
diverse the contribution of the file is.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">We assume that the more diverse
the contribution, the more bugs the code file would have in this release. And
We have proven that there is a significant positive correlation between the
contribution diversity and the amount of defect of the file.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Next, I would give some intuitive
displays and analysis about these metrics. We assume that it is Feb.2016 now.<o:p></o:p></span></p><p class="MsoNormal"><font face="Times"> <img src="cid:1ed17b77$1$15b3cb41b91$Coremail$linzeyan$pku.edu.cn"></font></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">This is part of the Release Page.
We offer some basic information and the potential amount of bug we predict
about the active code files in this release. <span style="color:#4472C4;
mso-themecolor:accent5">The pie shows us the risk distribution of the potential
risky files, which could help managers estimating the following workload and
decide which files to mainly focus on.</span><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Then comes the File page. We take
the file neutron/plugins/ml2/drivers/openvswitch/agent/ovs_neutron_agent.py as
an example.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">The model predicts that the file
would have 44 defects in the following development stage of the release (and we
check the real data, there are 40 defects in fact).<o:p></o:p></span></p><p class="MsoNormal"><font face="Times"> <img src="cid:4b00d16f$2$15b3cb41b91$Coremail$linzeyan$pku.edu.cn"></font></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">First, let's see how the
contribution diversity and file code ownership developed in the past releases
in the charts below. We can find that when the code ownership is small, which
means there is not a developer who “own” the file, and the contribution
diversity is large, which means the sources of the code of the file are diverse
and the composition of code is complex, the amount of defect in that release
would be large (for example, Liberty). In contrast, when the code ownership
increase and the contribution diversity decrease (for example, Kilo), the
amount of defect would be smaller. It shows that the amount of bug is affected
by the code ownership and contribution diversity in some way, which have also
been proven by my study.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">And now, (shown in the green box
above) the code ownership is 0.11 (quite small), and contribution diversity is
5.07 (quite large), we can predict that the amount of defect would be large,
like Liberty.<o:p></o:p></span></p><p class="MsoNormal"><font face="Times"> <img src="cid:22b5f4e1$3$15b3cb41b91$Coremail$linzeyan$pku.edu.cn"></font></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">After being aware of the potential
risk of the file, we try to offer some information to help locate the problems.<o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">1. In this release, we had just 3
major developers and 36 minor developers, and even <span style="color:#4472C4;
mso-themecolor:accent5">the code ownership of major developer is small (0.11),
it might result in the fact that, no one can guide the development of the file,
and act as a point of contact for others. And large amount of minor developer
might increase the contribution diversity. These would all result in high risk
of defects.</span><o:p></o:p></span></p><p class="MsoNormal"><font face="Times"> <img src="cid:57dff194$4$15b3cb41b91$Coremail$linzeyan$pku.edu.cn"></font></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"><o:p> <img src="cid:2f6d589e$5$15b3cb41b92$Coremail$linzeyan$pku.edu.cn"></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"><o:p> </o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">2. We can see from the charts in
the purple box above. In this release, 24 developers left the development of
this file (they made contributions in last release but not this one). <span style="color:#4472C4;mso-themecolor:accent5">Developers leaving a code file
deprive the file of the knowledge of the decisions they have made.</span>
Previous research shows that the <span style="color:#4472C4;mso-themecolor:
accent5">survivors and newcomers maintaining abandoned code have reduced
productivity and are more likely to make mistakes</span>. And the file had 26 <span style="color:#4472C4;mso-themecolor:accent5">newcomers, who might not be
familiar with the design and framework of the code file, the new contributions
they made might conflict with the others and thus might bring defects.
Therefore, I think we should pay attention to these contributions to reduce the
risk of defects.</span><o:p></o:p></span></p><p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">3. We can also see how the
developers' contribution composition develops by month. In these charts, we can
<span style="color:#4472C4;mso-themecolor:accent5">specific which month had
unreasonable work distribution</span>, and then check the code contribution in
that month. In this release, we can suppose that the contribution made in
Nov.2015 might bring some defects, and we should <span style="color:#4472C4;
mso-themecolor:accent5">pay attention to these contributions to reduce the
defect risk.</span><o:p></o:p></span></p><p class="MsoNormal">









<style></style>










































</p><p class="MsoNormal"><font face="Times"> <img src="cid:33d50565$6$15b3cb41b92$Coremail$linzeyan$pku.edu.cn"></font></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Ok, that are some examples of the
information we could get from the visualization tool. And I hope to know what
you think about them on the following three questions, which would give me
great help on my research:<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:Times;mso-bidi-font-family:
Times">1.<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";">    
</span></span><span lang="EN-US" style="font-family:Times;
mso-fareast-font-family:DengXian;mso-fareast-theme-font:minor-latin">Do you
think the metrics information I offered in the tool are useful for developers
and project managers in some way? <o:p></o:p></span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count:
0"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:DengXian;
mso-fareast-theme-font:minor-latin">In particular, could the code ownership be
used to identify the experts of the file and how would it help in practice?</span><span lang="EN-US"> </span><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">And do you think that files with high
code ownership would result in higher code quality and fewer failures?<o:p></o:p></span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count:
0"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:DengXian;
mso-fareast-theme-font:minor-latin">Do you think the contribution diversity
could act as an indicator for high risk of lower code quality of the file in
some way and why? And what would it mean in practice when the contribution
diversity of a file changes a lot?<o:p></o:p></span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count:
0"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:DengXian;
mso-fareast-theme-font:minor-latin">Do you agree that when contributors left the
project, their code would be hard to be maintained by others, and contributions
made by newcomers would be more likely to bring bugs to the files? So would it
help by knowing how many people left the project and how many people are
newcomers to the projects and who are them? If yes, how would it help in
practice?<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:Times;mso-bidi-font-family:
Times">2.<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";">    
</span></span><span lang="EN-US" style="font-family:Times;
mso-fareast-font-family:DengXian;mso-fareast-theme-font:minor-latin">Do you
think the analysis I made about the example (paragraph in blue font) make
sense? And what else information you can get from the charts and how can they
help? Or what else information you expect to get from the visualization tool?<o:p></o:p></span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:0cm;mso-char-indent-count:
0"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:DengXian;
mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoListParagraph" style="margin-left:18.0pt;text-indent:-18.0pt;
mso-char-indent-count:0;mso-list:l0 level1 lfo1"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:Times;mso-bidi-font-family:
Times">3.<span style="font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";">    
</span></span><span lang="EN-US" style="font-family:Times;
mso-fareast-font-family:DengXian;mso-fareast-theme-font:minor-latin">Do you
think it make sense to predict the potential amount of bug that need to fix in
the later development stage of a release by analyzing the metrics of the former
development stage of the release?<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin"> </span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Again, I would appreciate it a lot
if you could share your opinions. And thank you so much for your time.<o:p></o:p></span></p>

<p class="MsoNormal"><span lang="EN-US" style="font-family:Times;mso-fareast-font-family:
DengXian;mso-fareast-theme-font:minor-latin">Looking forward to your reply.
Wish you all have a good day.<o:p></o:p></span></p>

<br><br><span><br><div style="color: rgb(51, 51, 51); font-family: verdana; font-size: 12px;"><font color="#0000ff" face="Microsoft Yahei"><span style="font-size: 16px; line-height: normal;">Best regards!</span></font></div><div style="color: rgb(51, 51, 51); font-family: verdana; font-size: 12px;"><span style="font-family: "Microsoft Yahei"; font-size: 16px; color: rgb(0, 0, 255);"><span style="line-height: normal;">———————</span></span><span style="color: rgb(0, 0, 255); font-family: "Microsoft Yahei"; line-height: normal; font-size: 16px;">———</span></div><div style="color: rgb(51, 51, 51); font-family: verdana; font-size: 12px;"><span style="font-family: "Microsoft Yahei"; font-size: 16px; color: rgb(0, 0, 255);"><span style="line-height: normal;">Zeyan Lin</span><br style="color: rgb(136, 136, 136); font-family: Simsun; line-height: normal; font-size: medium;"><span style="line-height: normal;">Department of Computer Science</span><br style="color: rgb(136, 136, 136); font-family: Simsun; line-height: normal; font-size: medium;"><span style="line-height: normal;">School of Electronics Engineering & Computer Science</span><br style="color: rgb(136, 136, 136); font-family: Simsun; line-height: normal; font-size: medium;"><span style="line-height: normal;">Peking University</span><br style="color: rgb(136, 136, 136); font-family: Simsun; line-height: normal; font-size: medium;"><span style="line-height: normal;">Beijing 100871, China</span><br style="color: rgb(136, 136, 136); font-family: Simsun; line-height: normal; font-size: medium;"><span style="line-height: normal;">E-mail:<a href="mailto:linzeyan@pku.edu.cn" target="_blank">linzeyan@pku.edu.cn</a></span></span></div></span>