fix the code style to follow the spark community style.