Sign inSign up

udsenlpa/seg

By udsenlpa

•Updated over 9 years ago

Automatic Segmentation of Method Code into Meaningful Blocks to Improve Readability

Image
0

885

udsenlpa/seg repository overview

⁠Contributors

Xiaoran Wang⁠, Lori Pollock, K. Vijay-Shanker

⁠Setup

Save the following scripts to a file run.sh

set -e
INPUT="$(cd $(dirname "$1") && pwd -P)/$(basename "$1")"
OUTPUT="$(cd $(dirname "$2") && pwd -P)/$(basename "$2")"
touch $OUTPUT
docker run -v $INPUT:/seg/input.txt -v $OUTPUT:/seg/output.txt udsenlpa/seg

⁠Run

docker pull udsenlpa/seg
sh run.sh input.txt output.txt

⁠Note

Input is a text file which contains a set of method bodies.

This is a sample input file: https://www.dropbox.com/s/gkc559ixwdxupfy/SweetHome3D-20-40.txt?dl=0⁠

https://www.eecis.udel.edu/~xiwang/seg1.pdf⁠

Tag summary

Content type

Image

Digest

Size

559.5 MB

Last updated

over 9 years ago

docker pull udsenlpa/seg