Context-aware Source Code Identifier Splitting and Expansion for Software Maintenance. Guerrouj, L. Ph.D. Thesis, �cole Polytechnique de Montr�al, August, 2013. 179 pages.
Paper abstract bibtex Understanding source code is a necessary step for many program comprehension, reverse engineering, or redocumentation tasks. In source code, textual information such as identifiers and comments represent an important source of information. The problem of extracting and analyzing the textual information in software artifacts was recognized by the software engineering research community only recently. Information Retrieval (IR) methods were proposed to support program comprehension tasks, such as feature (or concept) location and traceability link recovery. However, to reap the full benefit of IR-based approaches, the language used across all software artifacts must be the same, because IR queries cannot return relevant documents if the query vocabulary contains words that are not in the source code vocabulary. Unfortunately, source code contains a significant proportion of vocabulary that is not made up of full (meaningful) words, \eg abbreviations, acronyms, or concatenation of these. In effect, source code uses a different language than other software artifacts. This vocabulary mismatch stems from the implicit assumption of IR and Natural Language Processing (NLP) techniques which assume the use of a single natural-language vocabulary. Therefore, vocabulary normalization is a challenging problem. Vocabulary normalization aligns the vocabulary found in the source code with that found in other software artifacts. Normalization must both split an identifier into its constituent parts and expand each part into a full dictionary word to match vocabulary in other artifacts. In this thesis, we deal with the challenge of normalizing source code vocabulary by developing two novel context-aware approaches. We use the context because the results of our experimental studies have shown that context is relevant for source code vocabulary normalization. In fact, we conducted two user studies with 63 participants who were asked to split and expand a set of 50 identifiers from a corpus of open-source C programs with the availability of different context levels. In particular, we considered an internal context consisting of the content of functions, source code files, and applications where the identifiers appear and an external context involving external documentation. We reported evidence on the usefulness of contextual information for source code vocabulary normalization. We observed that the source code files are more helpful than just looking at function source code, and that the application-level contextual information does not help any further. The availability of external sources of information (\eg thesaurus of abbreviations and acronyms) only helps in some circumstances. The obtained results confirm the conjecture that contextual information is useful in program comprehension, including when developers split and expand identifiers to understand them. Thus, we suggest a novel contextual approach for vocabulary normalization, TIDIER. TIDIER is inspired by speech recognition techniques and exploits contextual information in the form of specialized dictionaries (\eg acronyms, contractions and domain specific terms). TIDIER significantly outperforms its previous approaches (\ie CamelCase and Samurai which are the approaches that exist before TIDIER). Specifically, TIDIER achieves with a program-level dictionary complemented with domain knowledge, 54% of correct splits, compared to 30% obtained with CamelCase and 31% of correct splits attained using Samurai. Moreover, TIDIER was able to correctly map identifiers' terms to dictionary words with a precision of 48% for a set of 73 abbreviations. The main limitations of TIDIER is its cubic complexity that leads us to propose a fast solution, namely, TRIS. TRIS is inspired by TIDIER, but it deals with the vocabulary normalization problem differently. It maps it to a graph optimization (minimization) problem to find the optimal path (\ie optimal splitting-expansion) in an acyclic weighted graph. In addition, it uses the relative frequency of source code terms as a local context to determine the most likely identifier splitting-expansion. TRIS significantly outperforms CamelCase and Samurai in terms of identifier splitting. It also outperforms TIDIER in terms of identifier expansion, with a medium to large effect size, for C and C++ systems. In addition, TRIS shows an improvement of 4%, in terms of identifier splitting correctness, over GenTest (a more recent splitter suggested after TIDIER). The latter improvement is not statistically significant. TRIS uses a tree-based representation that makes it---in addition to being more accurate than other approaches---efficient in terms of computation time. Thus, TRIS produces one optimal split and expansion fast using an identifier processing algorithm having a quadratic complexity in the length of the identifier to split/expand. %We hypothesize that the integration of identifier splitting and %expansion tools with IDE could help to improve developers' productivity. We also investigate the impact of identifier splitting on two IR-based software maintenance tasks, namely, feature location and traceability recovery. Our study on feature location analyzes the effect of three identifier splitting strategies: CamelCase, Samurai, and an Oracle on two feature location techniques (FLTs). The first is based on IR while the second relies on the combination of IR and dynamic analysis (\ie execution traces). The obtained results support our conjecture that when only textual information is available, an improved splitting technique can help improve effectiveness of feature location. The results also show that when both textual and execution information are used, any splitting algorithm will suffice, as FLTs produced equivalent results. In other words, because dynamic information helps pruning the search space considerably, the benefit of an advanced splitting algorithm is comparably smaller than that of the dynamic information; hence the splitting algorithm will have little impact on the final results. Overall, our findings outline potential benefits of creating advanced preprocessing techniques as they can be useful in situations where execution information cannot be easily collected. In addition, we study the impact of identifier splitting on two traceability recovery techniques utilizing the same three identifier splitting strategies that we used in our study on feature location. The first traceability recovery technique uses Latent Semantic Indexing (LSI) while the second is based on Vector Space Model (VSM). The results indicate that advanced splitting techniques help increase the precision and recall of the studied traceability techniques but only in some cases. In addition, our qualitative analysis shows that the impact or improvement brought by such techniques depends on the quality of the studied data. Overall, this thesis contributes to the state-of-the-art on identifier splitting and expansion, context, and their importance for program comprehension. In addition, it contributes to the fields of feature location and traceability recovery. Theoretical and practical findings of this thesis are useful for both practitioners and researchers. Our future research directions in the areas of program comprehension and software maintenance will extend our empirical evaluations to other software systems belonging to other programming languages. In addition, we will apply our source code vocabulary normalization approaches on other program comprehension tasks (\eg code summarization). We are also preparing a replication of our study on the effect of context on vocabulary normalization using Eye-Tracking to analyze the different strategies adopted by developers when exploring contextual information to perform identifier splitting and expansion. A second research direction that we are currently tackling concerns the impact of identifier style on software quality using mining software repositories. In fact, we are currently inferring the identifier styles used by developers in open-source projects using a statistical model, namely, the Hidden Markov Model (HMM). The aim is to show whether open-source developers adhere to the style of the projects they join and their naming conventions (if any) or they bring their own style. In addition, we want to analyze whether a specific identifier style (\eg short abbreviations or acronyms) introduces bugs in the systems and whether it impacts internal software quality metrics, in particular, the semantic coupling and cohesion.
@PHDTHESIS{Guerrouj13-PhD,
AUTHOR = {Latifa Guerrouj},
SCHOOL = {�cole Polytechnique de Montr�al},
TITLE = {Context-aware Source Code Identifier Splitting and
Expansion for Software Maintenance},
YEAR = {2013},
OPTADDRESS = {},
MONTH = {August},
NOTE = {179 pages.},
OPTTYPE = {},
KEYWORDS = {Evolution patterns},
URL = {http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.doc.pdf},
PDF = {http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.ppt.pdf},
ABSTRACT = {Understanding source code is a necessary step for many
program comprehension, reverse engineering, or redocumentation tasks.
In source code, textual information such as identifiers and comments
represent an important source of information. The problem of
extracting and analyzing the textual information in software
artifacts was recognized by the software engineering research
community only recently. Information Retrieval (IR) methods were
proposed to support program comprehension tasks, such as feature (or
concept) location and traceability link recovery. However, to reap
the full benefit of IR-based approaches, the language used across all
software artifacts must be the same, because IR queries cannot return
relevant documents if the query vocabulary contains words that are
not in the source code vocabulary. Unfortunately, source code
contains a significant proportion of vocabulary that is not made up
of full (meaningful) words, \eg{} abbreviations, acronyms, or
concatenation of these. In effect, source code uses a different
language than other software artifacts. This vocabulary mismatch
stems from the implicit assumption of IR and Natural Language
Processing (NLP) techniques which assume the use of a single
natural-language vocabulary. Therefore, vocabulary normalization is a
challenging problem. Vocabulary normalization aligns the vocabulary
found in the source code with that found in other software artifacts.
Normalization must both split an identifier into its constituent
parts and expand each part into a full dictionary word to match
vocabulary in other artifacts. In this thesis, we deal with the
challenge of normalizing source code vocabulary by developing two
novel context-aware approaches. We use the context because the
results of our experimental studies have shown that context is
relevant for source code vocabulary normalization. In fact, we
conducted two user studies with 63 participants who were asked to
split and expand a set of 50 identifiers from a corpus of open-source
C programs with the availability of different context levels. In
particular, we considered an internal context consisting of the
content of functions, source code files, and applications where the
identifiers appear and an external context involving external
documentation. We reported evidence on the usefulness of contextual
information for source code vocabulary normalization. We observed
that the source code files are more helpful than just looking at
function source code, and that the application-level contextual
information does not help any further. The availability of external
sources of information (\eg{} thesaurus of abbreviations and
acronyms) only helps in some circumstances. The obtained results
confirm the conjecture that contextual information is useful in
program comprehension, including when developers split and expand
identifiers to understand them. Thus, we suggest a novel contextual
approach for vocabulary normalization, TIDIER. TIDIER is inspired by
speech recognition techniques and exploits contextual information in
the form of specialized dictionaries (\eg{} acronyms, contractions
and domain specific terms). TIDIER significantly outperforms its
previous approaches (\ie{} CamelCase and Samurai which are the
approaches that exist before TIDIER). Specifically, TIDIER achieves
with a program-level dictionary complemented with domain knowledge,
54\% of correct splits, compared to 30\% obtained with CamelCase and
31\% of correct splits attained using Samurai. Moreover, TIDIER was
able to correctly map identifiers' terms to dictionary words with a
precision of 48\% for a set of 73 abbreviations. The main limitations
of TIDIER is its cubic complexity that leads us to propose a fast
solution, namely, TRIS. TRIS is inspired by TIDIER, but it deals with
the vocabulary normalization problem differently. It maps it to a
graph optimization (minimization) problem to find the optimal path
(\ie{} optimal splitting-expansion) in an acyclic weighted graph. In
addition, it uses the relative frequency of source code terms as a
local context to determine the most likely identifier
splitting-expansion. TRIS significantly outperforms CamelCase and
Samurai in terms of identifier splitting. It also outperforms TIDIER
in terms of identifier expansion, with a medium to large effect size,
for C and C++ systems. In addition, TRIS shows an improvement of 4\%,
in terms of identifier splitting correctness, over GenTest (a more
recent splitter suggested after TIDIER). The latter improvement is
not statistically significant. TRIS uses a tree-based representation
that makes it---in addition to being more accurate than other
approaches---efficient in terms of computation time. Thus, TRIS
produces one optimal split and expansion fast using an identifier
processing algorithm having a quadratic complexity in the length of
the identifier to split/expand. %We hypothesize that the integration
of identifier splitting and %expansion tools with IDE could help to
improve developers' productivity. We also investigate the impact of
identifier splitting on two IR-based software maintenance tasks,
namely, feature location and traceability recovery. Our study on
feature location analyzes the effect of three identifier splitting
strategies: CamelCase, Samurai, and an Oracle on two feature location
techniques (FLTs). The first is based on IR while the second relies
on the combination of IR and dynamic analysis (\ie{} execution
traces). The obtained results support our conjecture that when only
textual information is available, an improved splitting technique can
help improve effectiveness of feature location. The results also show
that when both textual and execution information are used, any
splitting algorithm will suffice, as FLTs produced equivalent
results. In other words, because dynamic information helps pruning
the search space considerably, the benefit of an advanced splitting
algorithm is comparably smaller than that of the dynamic information;
hence the splitting algorithm will have little impact on the final
results. Overall, our findings outline potential benefits of creating
advanced preprocessing techniques as they can be useful in situations
where execution information cannot be easily collected. In addition,
we study the impact of identifier splitting on two traceability
recovery techniques utilizing the same three identifier splitting
strategies that we used in our study on feature location. The first
traceability recovery technique uses Latent Semantic Indexing (LSI)
while the second is based on Vector Space Model (VSM). The results
indicate that advanced splitting techniques help increase the
precision and recall of the studied traceability techniques but only
in some cases. In addition, our qualitative analysis shows that the
impact or improvement brought by such techniques depends on the
quality of the studied data. Overall, this thesis contributes to the
state-of-the-art on identifier splitting and expansion, context, and
their importance for program comprehension. In addition, it
contributes to the fields of feature location and traceability
recovery. Theoretical and practical findings of this thesis are
useful for both practitioners and researchers. Our future research
directions in the areas of program comprehension and software
maintenance will extend our empirical evaluations to other software
systems belonging to other programming languages. In addition, we
will apply our source code vocabulary normalization approaches on
other program comprehension tasks (\eg{} code summarization). We are
also preparing a replication of our study on the effect of context on
vocabulary normalization using Eye-Tracking to analyze the different
strategies adopted by developers when exploring contextual
information to perform identifier splitting and expansion. A second
research direction that we are currently tackling concerns the impact
of identifier style on software quality using mining software
repositories. In fact, we are currently inferring the identifier
styles used by developers in open-source projects using a statistical
model, namely, the Hidden Markov Model (HMM). The aim is to show
whether open-source developers adhere to the style of the projects
they join and their naming conventions (if any) or they bring their
own style. In addition, we want to analyze whether a specific
identifier style (\eg{} short abbreviations or acronyms) introduces
bugs in the systems and whether it impacts internal software quality
metrics, in particular, the semantic coupling and cohesion. }
}
Downloads: 0
{"_id":"uASiznLQ5H8EdDazr","bibbaseid":"guerrouj-contextawaresourcecodeidentifiersplittingandexpansionforsoftwaremaintenance-2013","downloads":0,"creationDate":"2018-02-22T19:07:02.751Z","title":"Context-aware Source Code Identifier Splitting and Expansion for Software Maintenance","author_short":["Guerrouj, L."],"year":2013,"bibtype":"phdthesis","biburl":"http://ptidej.polymtl.ca/yann-gael/Work/Publications/Biblio/complete-bibliography.bib?","bibdata":{"bibtype":"phdthesis","type":"phdthesis","author":[{"firstnames":["Latifa"],"propositions":[],"lastnames":["Guerrouj"],"suffixes":[]}],"school":"�cole Polytechnique de Montr�al","title":"Context-aware Source Code Identifier Splitting and Expansion for Software Maintenance","year":"2013","optaddress":"","month":"August","note":"179 pages.","opttype":"","keywords":"Evolution patterns","url":"http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.doc.pdf","pdf":"http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.ppt.pdf","abstract":"Understanding source code is a necessary step for many program comprehension, reverse engineering, or redocumentation tasks. In source code, textual information such as identifiers and comments represent an important source of information. The problem of extracting and analyzing the textual information in software artifacts was recognized by the software engineering research community only recently. Information Retrieval (IR) methods were proposed to support program comprehension tasks, such as feature (or concept) location and traceability link recovery. However, to reap the full benefit of IR-based approaches, the language used across all software artifacts must be the same, because IR queries cannot return relevant documents if the query vocabulary contains words that are not in the source code vocabulary. Unfortunately, source code contains a significant proportion of vocabulary that is not made up of full (meaningful) words, \\eg abbreviations, acronyms, or concatenation of these. In effect, source code uses a different language than other software artifacts. This vocabulary mismatch stems from the implicit assumption of IR and Natural Language Processing (NLP) techniques which assume the use of a single natural-language vocabulary. Therefore, vocabulary normalization is a challenging problem. Vocabulary normalization aligns the vocabulary found in the source code with that found in other software artifacts. Normalization must both split an identifier into its constituent parts and expand each part into a full dictionary word to match vocabulary in other artifacts. In this thesis, we deal with the challenge of normalizing source code vocabulary by developing two novel context-aware approaches. We use the context because the results of our experimental studies have shown that context is relevant for source code vocabulary normalization. In fact, we conducted two user studies with 63 participants who were asked to split and expand a set of 50 identifiers from a corpus of open-source C programs with the availability of different context levels. In particular, we considered an internal context consisting of the content of functions, source code files, and applications where the identifiers appear and an external context involving external documentation. We reported evidence on the usefulness of contextual information for source code vocabulary normalization. We observed that the source code files are more helpful than just looking at function source code, and that the application-level contextual information does not help any further. The availability of external sources of information (\\eg thesaurus of abbreviations and acronyms) only helps in some circumstances. The obtained results confirm the conjecture that contextual information is useful in program comprehension, including when developers split and expand identifiers to understand them. Thus, we suggest a novel contextual approach for vocabulary normalization, TIDIER. TIDIER is inspired by speech recognition techniques and exploits contextual information in the form of specialized dictionaries (\\eg acronyms, contractions and domain specific terms). TIDIER significantly outperforms its previous approaches (\\ie CamelCase and Samurai which are the approaches that exist before TIDIER). Specifically, TIDIER achieves with a program-level dictionary complemented with domain knowledge, 54% of correct splits, compared to 30% obtained with CamelCase and 31% of correct splits attained using Samurai. Moreover, TIDIER was able to correctly map identifiers' terms to dictionary words with a precision of 48% for a set of 73 abbreviations. The main limitations of TIDIER is its cubic complexity that leads us to propose a fast solution, namely, TRIS. TRIS is inspired by TIDIER, but it deals with the vocabulary normalization problem differently. It maps it to a graph optimization (minimization) problem to find the optimal path (\\ie optimal splitting-expansion) in an acyclic weighted graph. In addition, it uses the relative frequency of source code terms as a local context to determine the most likely identifier splitting-expansion. TRIS significantly outperforms CamelCase and Samurai in terms of identifier splitting. It also outperforms TIDIER in terms of identifier expansion, with a medium to large effect size, for C and C++ systems. In addition, TRIS shows an improvement of 4%, in terms of identifier splitting correctness, over GenTest (a more recent splitter suggested after TIDIER). The latter improvement is not statistically significant. TRIS uses a tree-based representation that makes it---in addition to being more accurate than other approaches---efficient in terms of computation time. Thus, TRIS produces one optimal split and expansion fast using an identifier processing algorithm having a quadratic complexity in the length of the identifier to split/expand. %We hypothesize that the integration of identifier splitting and %expansion tools with IDE could help to improve developers' productivity. We also investigate the impact of identifier splitting on two IR-based software maintenance tasks, namely, feature location and traceability recovery. Our study on feature location analyzes the effect of three identifier splitting strategies: CamelCase, Samurai, and an Oracle on two feature location techniques (FLTs). The first is based on IR while the second relies on the combination of IR and dynamic analysis (\\ie execution traces). The obtained results support our conjecture that when only textual information is available, an improved splitting technique can help improve effectiveness of feature location. The results also show that when both textual and execution information are used, any splitting algorithm will suffice, as FLTs produced equivalent results. In other words, because dynamic information helps pruning the search space considerably, the benefit of an advanced splitting algorithm is comparably smaller than that of the dynamic information; hence the splitting algorithm will have little impact on the final results. Overall, our findings outline potential benefits of creating advanced preprocessing techniques as they can be useful in situations where execution information cannot be easily collected. In addition, we study the impact of identifier splitting on two traceability recovery techniques utilizing the same three identifier splitting strategies that we used in our study on feature location. The first traceability recovery technique uses Latent Semantic Indexing (LSI) while the second is based on Vector Space Model (VSM). The results indicate that advanced splitting techniques help increase the precision and recall of the studied traceability techniques but only in some cases. In addition, our qualitative analysis shows that the impact or improvement brought by such techniques depends on the quality of the studied data. Overall, this thesis contributes to the state-of-the-art on identifier splitting and expansion, context, and their importance for program comprehension. In addition, it contributes to the fields of feature location and traceability recovery. Theoretical and practical findings of this thesis are useful for both practitioners and researchers. Our future research directions in the areas of program comprehension and software maintenance will extend our empirical evaluations to other software systems belonging to other programming languages. In addition, we will apply our source code vocabulary normalization approaches on other program comprehension tasks (\\eg code summarization). We are also preparing a replication of our study on the effect of context on vocabulary normalization using Eye-Tracking to analyze the different strategies adopted by developers when exploring contextual information to perform identifier splitting and expansion. A second research direction that we are currently tackling concerns the impact of identifier style on software quality using mining software repositories. In fact, we are currently inferring the identifier styles used by developers in open-source projects using a statistical model, namely, the Hidden Markov Model (HMM). The aim is to show whether open-source developers adhere to the style of the projects they join and their naming conventions (if any) or they bring their own style. In addition, we want to analyze whether a specific identifier style (\\eg short abbreviations or acronyms) introduces bugs in the systems and whether it impacts internal software quality metrics, in particular, the semantic coupling and cohesion. ","bibtex":"@PHDTHESIS{Guerrouj13-PhD,\r\n AUTHOR = {Latifa Guerrouj},\r\n SCHOOL = {�cole Polytechnique de Montr�al},\r\n TITLE = {Context-aware Source Code Identifier Splitting and \r\n Expansion for Software Maintenance},\r\n YEAR = {2013},\r\n OPTADDRESS = {},\r\n MONTH = {August},\r\n NOTE = {179 pages.},\r\n OPTTYPE = {},\r\n KEYWORDS = {Evolution patterns},\r\n URL = {http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.doc.pdf},\r\n PDF = {http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.ppt.pdf},\r\n ABSTRACT = {Understanding source code is a necessary step for many \r\n program comprehension, reverse engineering, or redocumentation tasks. \r\n In source code, textual information such as identifiers and comments \r\n represent an important source of information. The problem of \r\n extracting and analyzing the textual information in software \r\n artifacts was recognized by the software engineering research \r\n community only recently. Information Retrieval (IR) methods were \r\n proposed to support program comprehension tasks, such as feature (or \r\n concept) location and traceability link recovery. However, to reap \r\n the full benefit of IR-based approaches, the language used across all \r\n software artifacts must be the same, because IR queries cannot return \r\n relevant documents if the query vocabulary contains words that are \r\n not in the source code vocabulary. Unfortunately, source code \r\n contains a significant proportion of vocabulary that is not made up \r\n of full (meaningful) words, \\eg{} abbreviations, acronyms, or \r\n concatenation of these. In effect, source code uses a different \r\n language than other software artifacts. This vocabulary mismatch \r\n stems from the implicit assumption of IR and Natural Language \r\n Processing (NLP) techniques which assume the use of a single \r\n natural-language vocabulary. Therefore, vocabulary normalization is a \r\n challenging problem. Vocabulary normalization aligns the vocabulary \r\n found in the source code with that found in other software artifacts. \r\n Normalization must both split an identifier into its constituent \r\n parts and expand each part into a full dictionary word to match \r\n vocabulary in other artifacts. In this thesis, we deal with the \r\n challenge of normalizing source code vocabulary by developing two \r\n novel context-aware approaches. We use the context because the \r\n results of our experimental studies have shown that context is \r\n relevant for source code vocabulary normalization. In fact, we \r\n conducted two user studies with 63 participants who were asked to \r\n split and expand a set of 50 identifiers from a corpus of open-source \r\n C programs with the availability of different context levels. In \r\n particular, we considered an internal context consisting of the \r\n content of functions, source code files, and applications where the \r\n identifiers appear and an external context involving external \r\n documentation. We reported evidence on the usefulness of contextual \r\n information for source code vocabulary normalization. We observed \r\n that the source code files are more helpful than just looking at \r\n function source code, and that the application-level contextual \r\n information does not help any further. The availability of external \r\n sources of information (\\eg{} thesaurus of abbreviations and \r\n acronyms) only helps in some circumstances. The obtained results \r\n confirm the conjecture that contextual information is useful in \r\n program comprehension, including when developers split and expand \r\n identifiers to understand them. Thus, we suggest a novel contextual \r\n approach for vocabulary normalization, TIDIER. TIDIER is inspired by \r\n speech recognition techniques and exploits contextual information in \r\n the form of specialized dictionaries (\\eg{} acronyms, contractions \r\n and domain specific terms). TIDIER significantly outperforms its \r\n previous approaches (\\ie{} CamelCase and Samurai which are the \r\n approaches that exist before TIDIER). Specifically, TIDIER achieves \r\n with a program-level dictionary complemented with domain knowledge, \r\n 54\\% of correct splits, compared to 30\\% obtained with CamelCase and \r\n 31\\% of correct splits attained using Samurai. Moreover, TIDIER was \r\n able to correctly map identifiers' terms to dictionary words with a \r\n precision of 48\\% for a set of 73 abbreviations. The main limitations \r\n of TIDIER is its cubic complexity that leads us to propose a fast \r\n solution, namely, TRIS. TRIS is inspired by TIDIER, but it deals with \r\n the vocabulary normalization problem differently. It maps it to a \r\n graph optimization (minimization) problem to find the optimal path \r\n (\\ie{} optimal splitting-expansion) in an acyclic weighted graph. In \r\n addition, it uses the relative frequency of source code terms as a \r\n local context to determine the most likely identifier \r\n splitting-expansion. TRIS significantly outperforms CamelCase and \r\n Samurai in terms of identifier splitting. It also outperforms TIDIER \r\n in terms of identifier expansion, with a medium to large effect size, \r\n for C and C++ systems. In addition, TRIS shows an improvement of 4\\%, \r\n in terms of identifier splitting correctness, over GenTest (a more \r\n recent splitter suggested after TIDIER). The latter improvement is \r\n not statistically significant. TRIS uses a tree-based representation \r\n that makes it---in addition to being more accurate than other \r\n approaches---efficient in terms of computation time. Thus, TRIS \r\n produces one optimal split and expansion fast using an identifier \r\n processing algorithm having a quadratic complexity in the length of \r\n the identifier to split/expand. %We hypothesize that the integration \r\n of identifier splitting and %expansion tools with IDE could help to \r\n improve developers' productivity. We also investigate the impact of \r\n identifier splitting on two IR-based software maintenance tasks, \r\n namely, feature location and traceability recovery. Our study on \r\n feature location analyzes the effect of three identifier splitting \r\n strategies: CamelCase, Samurai, and an Oracle on two feature location \r\n techniques (FLTs). The first is based on IR while the second relies \r\n on the combination of IR and dynamic analysis (\\ie{} execution \r\n traces). The obtained results support our conjecture that when only \r\n textual information is available, an improved splitting technique can \r\n help improve effectiveness of feature location. The results also show \r\n that when both textual and execution information are used, any \r\n splitting algorithm will suffice, as FLTs produced equivalent \r\n results. In other words, because dynamic information helps pruning \r\n the search space considerably, the benefit of an advanced splitting \r\n algorithm is comparably smaller than that of the dynamic information; \r\n hence the splitting algorithm will have little impact on the final \r\n results. Overall, our findings outline potential benefits of creating \r\n advanced preprocessing techniques as they can be useful in situations \r\n where execution information cannot be easily collected. In addition, \r\n we study the impact of identifier splitting on two traceability \r\n recovery techniques utilizing the same three identifier splitting \r\n strategies that we used in our study on feature location. The first \r\n traceability recovery technique uses Latent Semantic Indexing (LSI) \r\n while the second is based on Vector Space Model (VSM). The results \r\n indicate that advanced splitting techniques help increase the \r\n precision and recall of the studied traceability techniques but only \r\n in some cases. In addition, our qualitative analysis shows that the \r\n impact or improvement brought by such techniques depends on the \r\n quality of the studied data. Overall, this thesis contributes to the \r\n state-of-the-art on identifier splitting and expansion, context, and \r\n their importance for program comprehension. In addition, it \r\n contributes to the fields of feature location and traceability \r\n recovery. Theoretical and practical findings of this thesis are \r\n useful for both practitioners and researchers. Our future research \r\n directions in the areas of program comprehension and software \r\n maintenance will extend our empirical evaluations to other software \r\n systems belonging to other programming languages. In addition, we \r\n will apply our source code vocabulary normalization approaches on \r\n other program comprehension tasks (\\eg{} code summarization). We are \r\n also preparing a replication of our study on the effect of context on \r\n vocabulary normalization using Eye-Tracking to analyze the different \r\n strategies adopted by developers when exploring contextual \r\n information to perform identifier splitting and expansion. A second \r\n research direction that we are currently tackling concerns the impact \r\n of identifier style on software quality using mining software \r\n repositories. In fact, we are currently inferring the identifier \r\n styles used by developers in open-source projects using a statistical \r\n model, namely, the Hidden Markov Model (HMM). The aim is to show \r\n whether open-source developers adhere to the style of the projects \r\n they join and their naming conventions (if any) or they bring their \r\n own style. In addition, we want to analyze whether a specific \r\n identifier style (\\eg{} short abbreviations or acronyms) introduces \r\n bugs in the systems and whether it impacts internal software quality \r\n metrics, in particular, the semantic coupling and cohesion. }\r\n}\r\n\r\n","author_short":["Guerrouj, L."],"key":"Guerrouj13-PhD","id":"Guerrouj13-PhD","bibbaseid":"guerrouj-contextawaresourcecodeidentifiersplittingandexpansionforsoftwaremaintenance-2013","role":"author","urls":{"Paper":"http://www.ptidej.net/publications/documents/Thesis+of+Latifa+Guerrouj.doc.pdf"},"keyword":["Evolution patterns"],"downloads":0},"search_terms":["context","aware","source","code","identifier","splitting","expansion","software","maintenance","guerrouj"],"keywords":["evolution patterns"],"authorIDs":[],"dataSources":["ascnA6qYXirdFSqqy"]}