53,930 research outputs found
Simplifying Deep-Learning-Based Model for Code Search
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
Using the chiral Lagrangian with hidden local
symmetry, we evaluate the cross sections for the absorption of eta meson () by pion (), rho (), omega (), kaon (), and kaon
star () 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 ,
, , and , which are a few mb, and the reactions and , 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.
- …