The project goal is to implement a program that measures code similarities between two source codes in a short time. So we start the project by knowing that our program must have two features that we think are important: accuracy and low processing time. We also consider two possible aspects to compare the source codes: compare any generic code and compare subsequent versions of the same code. Compare any different source code can be very useful in copyright scenarios or understanding a general pattern in code. On the other hand, we speak about comparing subsequent versions where we consider only a single source file and its different versions. This can be a use case either for a programming exam or to monitor the evolution of a specific program. Our project focuses on comparing subsequent versions of the same file.

Codediff: un framework per la comparazione del codice sorgente. L'obiettivo del nostro progetto è l'implementazione di un programma in grado di misurare la similarità tra codici sorgenti in un tempo breve. Quindi il nostro programma deve rispettare due aspetti che sono: accuratezza e un tempo di processamento breve. Dobbiamo anche considerare due possibili modi per confrontare il codice: confrontare qualsiasi codice sorgente e confrontare versioni successive dello stesso codice sorgente. La comparazione di qualsiasi codice può essere molto utili in scenari legati al copyright o nel trovare dei pattern comuni nel codice. Mentre la comparazione di versioni successive dello stesso codice sorgente può essere molto utile nel caso di esami di programmazione o nel capire l'evoluzione di un determinato codice sorgente. Per il nostro progetto abbiamo deciso di concentrarci su quest'ultima modalità.

Codediff: a framework for comparing source codes

BONSI, NICOLA
2020/2021

Abstract

The project goal is to implement a program that measures code similarities between two source codes in a short time. So we start the project by knowing that our program must have two features that we think are important: accuracy and low processing time. We also consider two possible aspects to compare the source codes: compare any generic code and compare subsequent versions of the same code. Compare any different source code can be very useful in copyright scenarios or understanding a general pattern in code. On the other hand, we speak about comparing subsequent versions where we consider only a single source file and its different versions. This can be a use case either for a programming exam or to monitor the evolution of a specific program. Our project focuses on comparing subsequent versions of the same file.
2020
Codediff: a framework for comparing source codes
Codediff: un framework per la comparazione del codice sorgente. L'obiettivo del nostro progetto è l'implementazione di un programma in grado di misurare la similarità tra codici sorgenti in un tempo breve. Quindi il nostro programma deve rispettare due aspetti che sono: accuratezza e un tempo di processamento breve. Dobbiamo anche considerare due possibili modi per confrontare il codice: confrontare qualsiasi codice sorgente e confrontare versioni successive dello stesso codice sorgente. La comparazione di qualsiasi codice può essere molto utili in scenari legati al copyright o nel trovare dei pattern comuni nel codice. Mentre la comparazione di versioni successive dello stesso codice sorgente può essere molto utile nel caso di esami di programmazione o nel capire l'evoluzione di un determinato codice sorgente. Per il nostro progetto abbiamo deciso di concentrarci su quest'ultima modalità.
File in questo prodotto:
Non ci sono file associati a questo prodotto.

È consentito all'utente scaricare e condividere i documenti disponibili a testo pieno in UNITESI UNIPV nel rispetto della licenza Creative Commons del tipo CC BY NC ND.
Per maggiori informazioni e per verifiche sull'eventuale disponibilità del file scrivere a: unitesi@unipv.it.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/20.500.14239/13058