Información

Fecha de entrega 31/12/9999 23:59:59
Tiempo límite de envío Sin límite de envío

Inicia sesión

Pyttern-Visualizer (Task A)

Thank you for participating in this usability test. We are evaluating a tool called Pyttern Visualizer, a visualization tool for analyzing Python source code files against predefined patterns. Your feedback will help us improve the tool. There are no right or wrong answers — we are testing the tool, not you.

For the following tasks (Task A and Task B), imagine you are a programming instructor. You have given your students a coding assignment and received their submissions. You want to use the Pyttern Visualizer to check which students followed expected coding patterns and which did not.

At the end there will be a Feedback section for you to share your observations.

Before you start, please clone the following repository and run the Pyttern Visualizer locally on your computer. The README contains step-by-step setup instructions.

Repository link: https://github.com/berkaymuratt/pyttern-visualizer-setup

---

-- TASK A --

You are teaching an introductory Python class. You assigned your students to implement a Calculator class. You have received 5 student submissions and you want to check whether they follow good coding practices.

You are given 3 pattern files. Each pattern detects a specific code structure. Your task is to build a compound pattern named ProperClassInit that combines these patterns to enforce the following rule:

"A proper class initialization means: the class has an __init__ method, AND the class has at least one method that returns a value, AND the __init__ method does NOT return a value."

Once you have built the compound pattern, upload the student code files and analyze the results


Pregunta 1: Pyttern Experience

Do you have experience with Pyttern?

Pregunta 2: Matched Submissions

Which student submissions matched the compound pattern?

Pregunta 3: Not-Matched Submissions

Which student submissions did not match the compound pattern? (except the not-validated ones)

Pregunta 4: Not-Validated Submissions

Were there any submissions that could not be validated? If so, which ones?

Pregunta 5: Total Match Count

How many files matched the compound pattern in total?

Pregunta 6: Filter: has_class_init and has_method_return

Which files matched both has_class_init and has_method_return?

Pregunta 7: Validation Error Detail

For the file that has a validation error, what is the exact problem? Name the file and explain briefly.

Pregunta 8: Match Results

Please upload the match results as a CSV file


Tamaño máximo de archivo: 1.0 MiB
Extensiones permitidas: .csv