-
Recommending Extract Method Refactoring Based on Confidence of Predicted Method Name
Authors:
**to Yamanaka,
Yasuhiro Hayase,
Toshiyuki Amagasa
Abstract:
Refactoring is an important activity that is frequently performed in software development, and among them, Extract Method is known to be one of the most frequently performed refactorings. The existing techniques for recommending Extract Method refactoring calculate metrics from the source method and the code fragments to be extracted to order the recommendation candidates. This paper proposes a ne…
▽ More
Refactoring is an important activity that is frequently performed in software development, and among them, Extract Method is known to be one of the most frequently performed refactorings. The existing techniques for recommending Extract Method refactoring calculate metrics from the source method and the code fragments to be extracted to order the recommendation candidates. This paper proposes a new technique for accurately recommending Extract Method refactoring by considering whether code fragments are semantically coherent chunks that can be given clear method names, in addition to the metrics used in previous studies. As a criterion for the semantic coherency, the proposed technique employs the probability (i.e. confidence) of the predicted method names for the code fragments output by code2seq, which is a state-of-the-art method name prediction technique. The evaluation experiment confirmed that the proposed technique has higher correctness of recommendation than the existing techniques.
△ Less
Submitted 30 August, 2021; v1 submitted 24 August, 2021;
originally announced August 2021.
-
Fold analysis of crumpled sheet using micro computed tomography
Authors:
Yumino Hayase,
Hitoshi Aonuma,
Satoshi Takahara,
Takahiro Sakaue,
Shun'ichi Kaneko,
Hiizu Nakanishi
Abstract:
Hand crumpled paper balls involve intricate structure with a network of creases and vertices, yet show simple scaling properties, which suggests self-similarity of the structure. We investigate the internal structure of crumpled papers by the micro computed tomography (micro-CT) without destroying or unfolding them. From the reconstructed three dimensional data, we examine several power laws for t…
▽ More
Hand crumpled paper balls involve intricate structure with a network of creases and vertices, yet show simple scaling properties, which suggests self-similarity of the structure. We investigate the internal structure of crumpled papers by the micro computed tomography (micro-CT) without destroying or unfolding them. From the reconstructed three dimensional data, we examine several power laws for the crumpled square sheets of paper of the sizes $L=50\sim 300$ mm, and obtain the mass fractal dimension $D_M = 2.7\pm 0.1$ by the relation between the mass and the radius of gyration of the balls, and the fractal dimension $2.5\lesssim d_f \lesssim 2.8$ for the internal structure of each crumpled paper ball by the box counting method in the real space and the structure factors in the Fourier space; The data for the paper sheets are consistent with $D_M = d_f$, suggesting that the self-similarity in the structure of each crumpled ball gives rise to the similarity among the balls with different sizes. We also examine the cellophane sheets and the aluminium foils of the size $L=200$ mm and obtain $2.6\lesssim d_f\lesssim 2.8$ for both of them. The micro-CT also allows us to reconstruct 3-d structure of a line drawn on the crumpled sheets of paper. The Hurst exponent for the root mean square displacement along the line is estimated as $H\approx 0.9$ for the length scale shorter than the scale of the radius of gyration, beyond which the line structure becomes more random with $H\sim 0.5$.
△ Less
Submitted 29 July, 2021;
originally announced July 2021.
-
Mercem: Method Name Recommendation Based on Call Graph Embedding
Authors:
Hiroshi Yonai,
Yasuhiro Hayase,
Hiroyuki Kitagawa
Abstract:
Comprehensibility of source code is strongly affected by identifier names, therefore software developers need to give good (e.g. meaningful but short) names to identifiers. On the other hand, giving a good name is sometimes a difficult and time-consuming task even for experienced developers. To support naming identifiers, several techniques for recommending identifier name candidates have been pro…
▽ More
Comprehensibility of source code is strongly affected by identifier names, therefore software developers need to give good (e.g. meaningful but short) names to identifiers. On the other hand, giving a good name is sometimes a difficult and time-consuming task even for experienced developers. To support naming identifiers, several techniques for recommending identifier name candidates have been proposed. These techniques, however, still have challenges on the goodness of suggested candidates and limitations on applicable situations. This paper proposes a new approach to recommending method names by applying graph embedding techniques to the method call graph. The evaluation experiment confirms that the proposed technique can suggest more appropriate method name candidates in difficult situations than the state of the art approach.
△ Less
Submitted 12 July, 2019;
originally announced July 2019.
-
Compressive response and helix formation of a semi flexible polymer confined in a nanochannel
Authors:
Yumino Hayase,
Takahiro Sakaue,
Hiizu Nakanishi
Abstract:
Configurations of a single semiflexible polymer is studied when it is pushed into a nanochannel in the case where the polymer persistence length $l_p$ is much longer than the channel diameter $D$, i.e. $l_p/D \gg 1$. Using numerical simulations, we show that the polymer undergoes a sequence of recurring structural transitions upon longitudinal compression, i.e. random deflection along the channel,…
▽ More
Configurations of a single semiflexible polymer is studied when it is pushed into a nanochannel in the case where the polymer persistence length $l_p$ is much longer than the channel diameter $D$, i.e. $l_p/D \gg 1$. Using numerical simulations, we show that the polymer undergoes a sequence of recurring structural transitions upon longitudinal compression, i.e. random deflection along the channel, helix going around the channel wall, double-fold random deflection, double-fold helix, etc. We find that the helix transition can be understood as buckling of deflection segments, and the initial helix formation takes place at very small compression with no appreciable weak compression regime of the random deflection polymer.
△ Less
Submitted 8 May, 2017;
originally announced May 2017.
-
Lattice Model of Swee** Interface for Drying Process in Water-Granule Mixture
Authors:
Hiizu Nakanishi,
Ryo Yamamoto,
Yumino Hayase,
Namiko Mitarai
Abstract:
Based on the invasion percolation model, a lattice model for the swee** interface dynamics is constructed to describe the pattern forming process by a swee** interface upon drying the water-granule mixture. The model is shown to produce labyrinthine patterns similar to those found in the experiment[Yamazaki and Mizuguchi, J. Phys. Soc. Jpn. \textbf{69} (2000) 2387]. Upon changing the initial…
▽ More
Based on the invasion percolation model, a lattice model for the swee** interface dynamics is constructed to describe the pattern forming process by a swee** interface upon drying the water-granule mixture. The model is shown to produce labyrinthine patterns similar to those found in the experiment[Yamazaki and Mizuguchi, J. Phys. Soc. Jpn. \textbf{69} (2000) 2387]. Upon changing the initial granular density, resulting patterns undergo the percolation transition, but estimated critical exponents are different from those of the conventional percolation. Loopless structure of clusters in the patterns produced by the swee** dynamics seems to influence the nature of the transition.
△ Less
Submitted 10 June, 2006;
originally announced June 2006.
-
Phase Field Model for Dynamics of Swee** Interface
Authors:
Takuya Iwashita,
Yumino Hayase,
Hiizu Nakanishi
Abstract:
Motivated by the drying pattern experiment by Yamazaki and Mizuguchi[J. Phys. Soc. Jpn. {\bf 69} (2000) 2387], we propose the dynamics of swee** interface, in which material distributed over a region is swept by a moving interface. A model based on a phase field is constructed and results of numerical simulations are presented for one and two dimensions. Relevance of the present model to the d…
▽ More
Motivated by the drying pattern experiment by Yamazaki and Mizuguchi[J. Phys. Soc. Jpn. {\bf 69} (2000) 2387], we propose the dynamics of swee** interface, in which material distributed over a region is swept by a moving interface. A model based on a phase field is constructed and results of numerical simulations are presented for one and two dimensions. Relevance of the present model to the drying experiment is discussed.
△ Less
Submitted 15 March, 2005;
originally announced March 2005.
-
Basin structure in the two-dimensional dissipative circle map
Authors:
Yumino Hayase,
Shohei Fukano,
Hiizu Nakanishi
Abstract:
Fractal basin structure in the two-dimensional dissipative circle map is examined in detail. Numerically obtained basin appears to be riddling in the parameter region where two periodic orbits co-exist near a boundary crisis, but it is shown to consist of layers of thin bands.
Fractal basin structure in the two-dimensional dissipative circle map is examined in detail. Numerically obtained basin appears to be riddling in the parameter region where two periodic orbits co-exist near a boundary crisis, but it is shown to consist of layers of thin bands.
△ Less
Submitted 2 September, 2003;
originally announced September 2003.
-
Riddled-like Basin in Two-Dimensional Map for Bouncing Motion of an Inelastic Particle on a Vibrating Board
Authors:
Shohei Fukano,
Yumino Hayase,
Hiizu Nakanishi
Abstract:
Motivated by bouncing motion of an inelastic particle on a vibrating board, a simple two-dimensional map is constructed and its behavior is studied numerically. In addition to the typical route to chaos through a periodic doubling bifurcation, we found peculiar behavior in the parameter region where two stable periodic attractors coexist. A typical orbit in the region goes through chaotic motion…
▽ More
Motivated by bouncing motion of an inelastic particle on a vibrating board, a simple two-dimensional map is constructed and its behavior is studied numerically. In addition to the typical route to chaos through a periodic doubling bifurcation, we found peculiar behavior in the parameter region where two stable periodic attractors coexist. A typical orbit in the region goes through chaotic motion for an extended transient period before it converges into one of the two periodic attractors. The basin structure in this parameter region is almost riddling and the fractal dimension of the basin boundary is close to two, {\it i.e.}, the dimension of the phase space.
△ Less
Submitted 7 June, 2002;
originally announced June 2002.