阿根廷vs墨西哥竞猜
 library logo
    • login
    view item 
    •   knowledge commons home
    • electronic theses and dissertations
    • electronic theses and dissertations from 2009
    • view item
    •   knowledge commons home
    • electronic theses and dissertations
    • electronic theses and dissertations from 2009
    • view item
    javascript is disabled for your browser. some features of this site may not work without it.
    quick search

    browse

    all of knowledge commonscommunities & collectionsby issue dateauthorstitlessubjectsdisciplineadvisorcommittee memberthis collectionby issue dateauthorstitlessubjectsdisciplineadvisorcommittee member

    my account

    login

    exploring name-based bug detection in python

    thumbnail
    view/open
    dass2024m-1a.pdf (26.96mb)
    date
    2024
    author
    das, subrata
    metadata
    show full item record
    abstract
    names of source code elements provide useful contextual information about the code and development tasks. prior studies leverage the similarity between the names of arguments and method parameters to detect bugs that are caused by accidentally swapping arguments while calling methods. this requires establishing the mapping between method calls and their definitions. however, it is a challenging task to establish the mapping because of the complexity involved with the process (e.g., missing external libraries). this thesis aims to understand the performance of name-based argument-related bug detection techniques in python, a popular general-purpose, statically typed programming language. towards this direction, this thesis conducts a study that first investigates the similarity between arguments and their method parameters in python code. the above step follows by establishing the mapping of method calls to their definitions and evaluating the performance of existing name-based techniques to detect swapping argument-related bugs in python. finally, a technique has been developed that uses argument usage patterns and expression types in source code with name-based similarity matching to improve the performance of detecting argument-related bugs. evaluation of the proposed technique with a large collection of open-source python projects shows that the technique can detect argument-related bugs with high accuracy even when the method definitions are missing. one potential solution to prevent argument-related bugs from occurring is to use code completion. an argument recommendation system suggests method arguments as a developer types the code. thus, the second part of the thesis focuses on completing arguments of method calls. in particular, this thesis investigates the efficacy of large language models in recommending arguments for api (application programming interface) method calls.
    uri
    https://knowledgecommons.lakeheadu.ca/handle/2453/5323
    collections
    • electronic theses and dissertations from 2009 [1612]

    阿根廷vs墨西哥竞猜 library
    contact us | send feedback

     

     


    阿根廷vs墨西哥竞猜 library
    contact us | send feedback