中文
相关论文

相关论文: PyTy: Repairing Static Type Errors in Python

200 篇论文

Erlang's dynamic typing discipline can lead to runtime errors that persist even after process restarts. Some of these runtime errors could be prevented through static type checking. While Erlang provides a type specification language, the…

编程语言 · 计算机科学 2026-03-24 Albert Schimpf , Stefan Wehr , Annette Bieniusa

This paper addresses the issue of correcting type errors in model transformations in realistic scenarios where neither predefined patches nor behavior-safe guards such as test suites are available. Instead of using predefined patches…

软件工程 · 计算机科学 2020-12-16 Zahra VaraminyBahnemiry , Jessie Galasso , Houari Sahraoui

Different security issues are a common problem for open source packages archived to and delivered through software ecosystems. These often manifest themselves as software weaknesses that may lead to concrete software vulnerabilities. This…

软件工程 · 计算机科学 2021-12-28 Jukka Ruohonen , Kalle Hjerppe , Kalle Rindell

Python is one of the most popular programming languages; as such, projects written in Python involve an increasing number of diverse security vulnerabilities. However, existing state-of-the-art analysis tools for Python only support a few…

软件工程 · 计算机科学 2026-01-22 Yoann Marquer , Domenico Bianculli , Lionel C. Briand

For many compiled languages, source-level types are erased very early in the compilation process. As a result, further compiler passes may convert type-safe source into type-unsafe machine code. Type-unsafe idioms in the original source and…

编程语言 · 计算机科学 2016-03-22 Matthew Noonan , Alexey Loginov , David Cok

Transient gradual typing imposes run-time type tests that typically cause a linear slowdown in programs' performance. This performance impact discourages the use of type annotations because adding types to a program makes the program…

编程语言 · 计算机科学 2019-02-19 Richard Roberts , Stefan Marr , Michael Homer , James Noble

Annotated data is an essential ingredient in natural language processing for training and evaluating machine learning models. It is therefore very desirable for the annotations to be of high quality. Recent work, however, has shown that…

计算与语言 · 计算机科学 2022-09-27 Jan-Christoph Klie , Bonnie Webber , Iryna Gurevych

In this paper, we explore the artificial generation of typographical errors based on real-world statistics. We first draw on a small set of annotated data to compute spelling error statistics. These are then invoked to introduce errors into…

计算与语言 · 计算机科学 2020-05-05 Kshitij Shah , Gerard de Melo

While recent text-to-image models can generate photorealistic images from text prompts that reflect detailed instructions, they still face significant challenges in accurately rendering words in the image. In this paper, we propose to…

计算机视觉与模式识别 · 计算机科学 2025-05-01 Wataru Shimoda , Naoto Inoue , Daichi Haraguchi , Hayato Mitani , Seiichi Uchida , Kota Yamaguchi

Due to the fast pace of life and online communications and the prevalence of English and the QWERTY keyboard, people tend to forgo using diacritics, make typographical errors (typos) when typing in other languages. Restoring diacritics and…

Static analysis tools typically address the problem of excessive false positives by requiring programmers to explicitly annotate their code. However, when faced with incomplete annotations, many analysis tools are either too conservative,…

编程语言 · 计算机科学 2021-07-16 Sam Estep , Jenna Wise , Jonathan Aldrich , Éric Tanter , Johannes Bader , Joshua Sunshine

This is the study that presents an AI-Python-based chatbot that helps students to learn programming by demonstrating solutions to such problems as debugging errors, solving syntax problems or converting abstract theoretical concepts to…

软件工程 · 计算机科学 2025-09-26 Sayed Mahbub Hasan Amiri , Md Mainul Islam

Gradually typed languages allow programmers to mix statically and dynamically typed code, enabling them to incrementally reap the benefits of static typing as they add type annotations to their code. However, this type migration process is…

编程语言 · 计算机科学 2021-09-14 Luna Phipps-Costin , Carolyn Jane Anderson , Michael Greenberg , Arjun Guha

In this paper, we present ManyTypes4Py, a large Python dataset for machine learning (ML)-based type inference. The dataset contains a total of 5,382 Python projects with more than 869K type annotations. Duplicate source code files were…

软件工程 · 计算机科学 2021-04-13 Amir M. Mir , Evaldas Latoskinas , Georgios Gousios

Dynamic languages are praised for their flexibility and expressiveness, but static analysis often yields many false positives and verification is cumbersome for lack of structure. Hence, unit testing is the prevalent incomplete method for…

编程语言 · 计算机科学 2015-02-06 Robert Jakob , Peter Thiemann

The context of this work is specification, detection and ultimately removal of detectable harmful patterns in source code that are associated with defects in design and implementation of software. In particular, we investigate five code…

软件工程 · 计算机科学 2017-04-03 Nicole Vavrová , Vadim Zaytsev

Manually editing pasted code is a long-standing developer pain point. In internal software development at Google, we observe that code is pasted 4 times more often than it is manually typed. These paste actions frequently require follow-up…

Despite its massive popularity as a programming language, especially in novel domains like data science programs, there is comparatively little research about fault localization that targets Python. Even though it is plausible that several…

软件工程 · 计算机科学 2024-10-03 Mohammad Rezaalipour , Carlo A. Furia

Python's dynamic typing mechanism, while promoting flexibility, is a significant source of runtime type errors that plague large-scale software, which inspires the automatic type inference techniques. Existing type inference tools have…

软件工程 · 计算机科学 2025-12-29 Shuo Sun , Shixin Zhang , Jiwei Yan , Jun Yan , Jian Zhang

Python is a high-level interpreted language that has become an industry standard in a wide variety of applications. In this paper, we take a first step towards using ACL2s to reason about Python code by developing an embedding of a subset…

编程语言 · 计算机科学 2025-07-28 Samuel Xifaras , Panagiotis Manolios , Andrew T. Walter , William Robertson