Papers
Topics
Authors
Recent
Search
2000 character limit reached

Exploring Code Style Transfer with Neural Networks

Published 13 Sep 2022 in cs.CL | (2209.06273v1)

Abstract: Style is a significant component of natural language text, reflecting a change in the tone of text while keeping the underlying information the same. Even though programming languages have strict syntax rules, they also have style. Code can be written with the same functionality but using different language features. However, programming style is difficult to quantify, and thus as part of this work, we define style attributes, specifically for Python. To build a definition of style, we utilized hierarchical clustering to capture a style definition without needing to specify transformations. In addition to defining style, we explore the capability of a pre-trained code LLM to capture information about code style. To do this, we fine-tuned pre-trained code-LLMs and evaluated their performance in code style transfer tasks.

Summary

Paper to Video (Beta)

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.

Collections

Sign up for free to add this paper to one or more collections.