53,930 research outputs found

    Simplifying Deep-Learning-Based Model for Code Search

    Full text link
    To accelerate software development, developers frequently search and reuse existing code snippets from a large-scale codebase, e.g., GitHub. Over the years, researchers proposed many information retrieval (IR) based models for code search, which match keywords in query with code text. But they fail to connect the semantic gap between query and code. To conquer this challenge, Gu et al. proposed a deep-learning-based model named DeepCS. It jointly embeds method code and natural language description into a shared vector space, where methods related to a natural language query are retrieved according to their vector similarities. However, DeepCS' working process is complicated and time-consuming. To overcome this issue, we proposed a simplified model CodeMatcher that leverages the IR technique but maintains many features in DeepCS. Generally, CodeMatcher combines query keywords with the original order, performs a fuzzy search on name and body strings of methods, and returned the best-matched methods with the longer sequence of used keywords. We verified its effectiveness on a large-scale codebase with about 41k repositories. Experimental results showed the simplified model CodeMatcher outperforms DeepCS by 97% in terms of MRR (a widely used accuracy measure for code search), and it is over 66 times faster than DeepCS. Besides, comparing with the state-of-the-art IR-based model CodeHow, CodeMatcher also improves the MRR by 73%. We also observed that: fusing the advantages of IR-based and deep-learning-based models is promising because they compensate with each other by nature; improving the quality of method naming helps code search, since method name plays an important role in connecting query and code

    Eta absorption by mesons

    Full text link
    Using the [SU(3)L×SU(3)R]global×[SU(3)V]local[SU(3)_{\mathrm{L}} \times SU(3)_{\mathrm{R}}]_{\mathrm{global}% }\times [SU(3)_V]_{\mathrm{local}} chiral Lagrangian with hidden local symmetry, we evaluate the cross sections for the absorption of eta meson (η% \eta) by pion (π\pi), rho (ρ\rho), omega (ω\omega), kaon (KK), and kaon star (KK^*) in the tree-level approximation. With empirical masses and coupling constants as well as reasonable values for the cutoff parameter in the form factors at interaction vertices, we find that most cross sections are less than 1 mb, except the reactions ρηKKˉ(KˉK)\rho\eta\to K\bar K^*(\bar KK^*), ωηKKˉ(KˉK)\omega\eta\to K\bar K^*(\bar KK^*), KηρKK^*\eta\to\rho K, and KηωKK^*\eta\to\omega K, which are a few mb, and the reactions πηKKˉ\pi\eta\to K\bar K and KηπKK\eta\to\pi K, which are more than 10 mb. Including these reactions in a kinetic model based on a schematic hydrodynamic description of relativistic heavy ion collisions, we find that the abundance of eta mesons likely reaches chemical equilibrium with other hadrons in nuclear collisions at the Relativistic Heavy Ion Collider.Comment: 29 pages, 10 figures, version to appear in Nucl. Phys.
    corecore