Ties between mined structural patterns in program and their identifier names

Yoshiki Mashima, Sachio Hirokawa, Kazuhiro Takeuchi

    研究成果: Chapter in Book/Report/Conference proceedingConference contribution

    1 被引用数 (Scopus)

    抄録

    Identifier names in readable and maintainable source codes are always descriptive. These names are given based on the implicit knowledge of experienced programmers. In this paper, we propose a structural pattern mining method based on support vector machines (SVM) for source codes. We extract 1,000 method names in object-oriented source codes collected from online software repositories and create 1,000 datasets labeled by positive and negative class. The structural features used for the input feature vectors to the SVM learning are designed for representing partial characteristics in the abstract syntax tree (AST) parsed from a source code. Applying this method, we made an F1 score list of the 1,000 method names, which shows the degree of patterning of each name, by using our structural features. From the list, we confirmed structural patterns were strongly associated with specific method names. A qualitative evaluation of method names was also conducted by mapping the structural feature vector of each program example to the two-dimensional plane in the same way as a previous major study. From the evaluation, we confirmed that the contrasting structure among the programs corresponds to the names given to programs. Furthermore, we show examples of visualization of structural patterns using structural features extracted by feature selection.

    本文言語英語
    ホスト出版物のタイトルIntegrated Uncertainty in Knowledge Modelling and Decision Making - 7th International Symposium, IUKM 2019, Proceedings
    編集者Hirosato Seki, Masahiro Inuiguchi, Canh Hao Nguyen, Van-Nam Huynh
    出版社Springer Verlag
    ページ335-346
    ページ数12
    ISBN(印刷版)9783030148140
    DOI
    出版ステータス出版済み - 1 1 2019
    イベント7th International Symposium on Integrated Uncertainty in Knowledge Modelling and Decision Making, IUKM 2019 - Nara, 日本
    継続期間: 3 27 20193 29 2019

    出版物シリーズ

    名前Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
    11471 LNAI
    ISSN(印刷版)0302-9743
    ISSN(電子版)1611-3349

    会議

    会議7th International Symposium on Integrated Uncertainty in Knowledge Modelling and Decision Making, IUKM 2019
    国/地域日本
    CityNara
    Period3/27/193/29/19

    All Science Journal Classification (ASJC) codes

    • 理論的コンピュータサイエンス
    • コンピュータ サイエンス(全般)

    フィンガープリント

    「Ties between mined structural patterns in program and their identifier names」の研究トピックを掘り下げます。これらがまとまってユニークなフィンガープリントを構成します。

    引用スタイル