paper-with-me

홈 › Papers

STYLE-ANALYZER: fixing code style inconsistencies with interpretable unsupervised algorithms

2019-04-01 · Vadim Markovtsev, Waren Long, Hugo Mougard, Konstantin Slavnov, Egor Bulychev

Source code reviews are manual, time-consuming, and expensive. Human involvement should be focused on analyzing the most relevant aspects of the program, such as logic and maintainability, rather than amending style, syntax, or formatting defects. Some tools with linting capabilities can format code automatically and report various stylistic violations for supported programming languages. They are based on rules written by domain experts, hence, their configuration is often tedious, and it is impractical for the given set of rules to cover all possible corner cases. Some machine learning-based solutions exist, but they remain uninterpretable black boxes. This paper introduces STYLE-ANALYZER, a new open source tool to automatically fix code formatting violations using the decision tree forest model which adapts to each codebase and is fully unsupervised. STYLE-ANALYZER is built on top of our novel assisted code review framework, Lookout. It accurately mines the formatting style of each analyzed Git repository and expresses the found format patterns with compact human-readable rules. STYLE-ANALYZER can then suggest style inconsistency fixes in the form of code review comments. We evaluate the output quality and practical relevance of STYLE-ANALYZER by demonstrating that it can reproduce the original style with high precision, measured on 19 popular JavaScript projects, and by showing that it yields promising results in fixing real style mistakes. STYLE-ANALYZER includes a web application to visualize how the rules are triggered. We release STYLE-ANALYZER as a reusable and extendable open source software package on GitHub for the benefit of the community.

📄 PDF Abstract BibTeX arXiv:1904.00935

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models

2024-06-29 · Yanlin Wang, Tianyue Jiang, Mingwei Liu, Jiachi Chen 외

Large language models (LLMs) have brought a paradigm shift to the field of code generation, offering the potential to enhance the software development process. However, previous research mainly focuses on the accuracy of…

Code Generation

Style and Content Disentanglement in Generative Adversarial Networks

2018-11-14 · Hadi Kazemi, Seyed Mehdi Iranmanesh, Nasser M. Nasrabadi

Disentangling factors of variation within data has become a very challenging problem for image generation tasks. Current frameworks for training a Generative Adversarial Network (GAN), learn to disentangle the representa…

DisentanglementGenerative Adversarial NetworkImage Generation

BLADERUNNER: Rapid Countermeasure for Synthetic (AI-Generated) StyleGAN Faces

2022-10-12 · Adam Dorian Wong

StyleGAN is the open-sourced TensorFlow implementation made by NVIDIA. It has revolutionized high quality facial image generation. However, this democratization of Artificial Intelligence / Machine Learning (AI/ML) algor…

Image Generation

RoPGen: Towards Robust Code Authorship Attribution via Automatic Coding Style Transformation

2022-02-12 · Zhen Li, Guenevere, Chen, Chen Chen 외

Source code authorship attribution is an important problem often encountered in applications such as software forensics, bug fixing, and software quality analysis. Recent studies show that current source code authorship …

Authorship AttributionBug fixingData AugmentationDiversity+1

NeAT: Neural Artistic Tracing for Beautiful Style Transfer

2023-04-11 · Dan Ruta, Andrew Gilbert, John Collomosse, Eli Shechtman 외

Style transfer is the task of reproducing the semantic contents of a source image in the artistic style of a second target image. In this paper, we present NeAT, a new state-of-the art feed-forward style transfer method.…

Image GenerationStyle Transfer