Code recommendation
    1.
    发明授权
    Code recommendation 有权
    代码推荐

    公开(公告)号:US09519464B2

    公开(公告)日:2016-12-13

    申请号:US14488104

    申请日:2014-09-16

    IPC分类号: G06F9/44

    摘要: The disclosure generally relates to code recommendation. In one embodiment, code snippets may be extracted using an invocation-centered code slicing process and then grouped according to the method usages. For each method usage, a representative code snippet may be selected and stored in the knowledge base in association with metadata. In operation, the programming context may be obtained and used to query the knowledge base to retrieve one or more code snippets for recommendation. In one embodiment, the recommended code snippets may be ranked to improve the utility and user friendliness, and the metadata may be used to provide variation points and possibly other auxiliary information to improve the operation efficiency and user experience.

    摘要翻译: 本公开一般涉及代码推荐。 在一个实施例中,可以使用以调用为中心的代码分割过程来提取代码段,然后根据方法使用进行分组。 对于每种方法使用,可以选择代表性代码段并将其与元数据相关联地存储在知识库中。 在操作中,可以获得编程上下文并用于查询知识库以检索用于推荐的一个或多个代码片段。 在一个实施例中,推荐的代码段可以被排名以提高效用和用户友好性,并且可以使用元数据来提供变化点和可能的其他辅助信息以提高操作效率和用户体验。

    CODE RECOMMENDATION
    2.
    发明申请
    CODE RECOMMENDATION 有权
    代码建议

    公开(公告)号:US20150378692A1

    公开(公告)日:2015-12-31

    申请号:US14488104

    申请日:2014-09-16

    IPC分类号: G06F9/44

    摘要: The disclosure generally relates to code recommendation. In one embodiment, code snippets may be extracted using an invocation-centered code slicing process and then grouped according to the method usages. For each method usage, a representative code snippet may be selected and stored in the knowledge base in association with metadata. In operation, the programming context may be obtained and used to query the knowledge base to retrieve one or more code snippets for recommendation. In one embodiment, the recommended code snippets may be ranked to improve the utility and user friendliness, and the metadata may be used to provide variation points and possibly other auxiliary information to improve the operation efficiency and user experience.

    摘要翻译: 本公开一般涉及代码推荐。 在一个实施例中,可以使用以调用为中心的代码分割过程来提取代码段,然后根据方法使用进行分组。 对于每种方法使用,可以选择代表性代码段并将其与元数据相关联地存储在知识库中。 在操作中,可以获得编程上下文并用于查询知识库以检索用于推荐的一个或多个代码片段。 在一个实施例中,推荐的代码段可以被排名以提高效用和用户友好性,并且可以使用元数据来提供变化点和可能的其他辅助信息以提高操作效率和用户体验。