[KGB-L3] Dr. Scratch Off-line use

Machado, Tiago ti.machado at northeastern.edu
Tue Jan 18 14:19:44 CET 2022


Thank you so much, Jesús and Gregorio!

Best,
Tiago
________________________________
From: Gregorio Robles <grex at gsyc.urjc.es>
Sent: Tuesday, January 18, 2022 4:29 AM
To: Jesús Moreno León <jml at jemole.me>
Cc: Machado, Tiago <ti.machado at northeastern.edu>; kgblll at gsyc.urjc.es <kgblll at gsyc.urjc.es>
Subject: Re: [KGB-L3] Dr. Scratch Off-line use


  thanks, Jesús

El mar, 18 ene 2022 a las 10:24, Jesús Moreno León (<jml at jemole.me<mailto:jml at jemole.me>>) escribió:
Hi Tiago,
You can download the different Python files that perform the analysis from this folder [1]. For instance, if you want to perform the Mastery score analysis you would download this file [2], while if you wanted to perform the DeadCode analysis, this would be the file to use [3], and so on.
Then, in order to run these files as a script you'll have to add something like this at the end of each file:
if __name__ == "__main__": main(sys.argv[1])
So you could analyse an sb3 project as folllows:
$python2.7 analyzer.py proyect.sb3
proyect.sb3
{"Abstraction": 0, "Parallelization": 0, "Logic": 2, "Synchronization": 0, "FlowControl": 1, "UserInteractivity": 2, "DataRepresentation": 1}
Total mastery points: 6/21
Average mastery points: 0.86/3
Overall programming competence: Basic
This output may not be really appropiate for a batch analysis, so you'll most likely want to modify the finalize method so the output reads somehitng like this:
proyect.sb3 6 0 0 2 0 1 2 1
If you have any questions when you start dealing with it, I am more than happy to try to give you a hand!
Please send my regards to Casper and the rest of the NEU team :)

[1] https://github.com/AngelaVargas/drscratchv3/tree/ae3c6d556db83f78d4507169468a5d076cbad87d/app<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAngelaVargas%2Fdrscratchv3%2Ftree%2Fae3c6d556db83f78d4507169468a5d076cbad87d%2Fapp&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108199485%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=Id39H8495G4DmUTqhi6QBhzrt1o1Z3gfqO63Fd16lVg%3D&reserved=0>
[2] https://github.com/AngelaVargas/drscratchv3/blob/ae3c6d556db83f78d4507169468a5d076cbad87d/app/analyzer.py<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAngelaVargas%2Fdrscratchv3%2Fblob%2Fae3c6d556db83f78d4507169468a5d076cbad87d%2Fapp%2Fanalyzer.py&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108199485%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ITLgDEt7WJ6kXABzb4UIOo%2B0cP81O9EmuNEoQWHW1oc%3D&reserved=0>
[3] https://github.com/AngelaVargas/drscratchv3/blob/ae3c6d556db83f78d4507169468a5d076cbad87d/app/deadCode.py<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAngelaVargas%2Fdrscratchv3%2Fblob%2Fae3c6d556db83f78d4507169468a5d076cbad87d%2Fapp%2FdeadCode.py&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108209484%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=yx4gBSgk2CBBIaxMxBx6sLPtnNDCmFqdZVOrlYyWt74%3D&reserved=0>


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
El lunes, 17 de enero de 2022 a las 11:07, Gregorio Robles <grex at gsyc.urjc.es<mailto:grex at gsyc.urjc.es>> escribió:


Dear Tiago,

there is a way to do batch analysis as you intend, basically by using the scripts in Dr. Scratch in a slightly different way. I am sorrily not aware of the details, but I hope Jesús, whom I am putting in copy to this e-mail, can help.

Jesús, ¿could you please guide Tiago on how to do what he wants? Thanks!

regards, Gregorio

El sáb, 15 ene 2022 a las 18:59, Machado, Tiago (<ti.machado at northeastern.edu<mailto:ti.machado at northeastern.edu>>) escribió:
Dear Dr. Scratch Team,

My team in Northeastern University (lead by Prof. Casper Harteveld and Prof. Giovanni Troiano) is working on the analysis of computational thinking metrics. To do this work we are using Hairball and the Dr. Scratch website. An issue we're facing is that Hairball seems to be outdated, and not able to analyze .sb3 projects. However, we can do this with Dr. Scratch website. Since we have a huge amount of projects to analyze, I'm looking for a way to input a folder path, and having Dr. Scratch running all the analysis and generate a spreadsheet with all the numbers.

I'd like to extend Dr. Scratch to perform this action. I was looking at the GitHub repo (https://github.com/jemole/drScratch<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjemole%2FdrScratch&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108219474%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KdP2MJx2UF9nOJE%2FVT9f7ERNMhFCY%2BLuN%2BuzacgsQ0c%3D&reserved=0>) and if you can point me to where are the classes/function that gets a .sb3 file as input and outputs the CT metrics, would help me a lot. Also, is there a Dr. Scratch version detached from the DJango framework?

Best Regards,
Tiago
[https://opengraph.githubassets.com/9ca80413ab6e93e5e37292d2e2cb0590c88a2ef1904d8f65c63ece89ea50b053/jemole/drScratch]<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjemole%2FdrScratch&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108219474%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=KdP2MJx2UF9nOJE%2FVT9f7ERNMhFCY%2BLuN%2BuzacgsQ0c%3D&reserved=0>
jemole/drScratch: drScratch is an analytical tool that evaluates your Scratch projects in a variety of computational areas to provide feedback on aspects such as abstraction, logical thinking, synchronization, parallelization, flow control, user interactivity and data representation. This analyzer is a helpful tool to evaluate your own projects, or those of your Scratch students. - GitHub<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjemole%2FdrScratch&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108229466%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6j4OXZuGVDFXkExZv%2Bq2dyI2fJ7moE8hwclbH2urlfc%3D&reserved=0>
drScratch is an analytical tool that evaluates your Scratch projects in a variety of computational areas to provide feedback on aspects such as abstraction, logical thinking, synchronization, parallelization, flow control, user interactivity and data representation. This analyzer is a helpful tool to evaluate your own projects, or those of your Scratch students.
github.com<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgithub.com%2F&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108229466%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=hPX5z9X5ORrj1YWQwm%2FGDwpx6RaikVMByjkPAf%2FMHf4%3D&reserved=0>

_______________________________________________
kgblll mailing list
kgblll at gsyc.urjc.es<mailto:kgblll at gsyc.urjc.es>
https://gsyc.urjc.es/cgi-bin/mailman/listinfo/kgblll<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgsyc.urjc.es%2Fcgi-bin%2Fmailman%2Flistinfo%2Fkgblll&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108239465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=V0bIWUVnMcAYNJtQpNIqZdYOXHBqwej8YDWfCQQ4A0A%3D&reserved=0>


--
Gregorio Robles
Universidad Rey Juan Carlos
Campus de Fuenlabrada (Madrid), España
gregorio.robles at urjc.es<mailto:gregorio.robles at urjc.es> | www.urjc.es<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.urjc.es%2F&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108239465%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=ULc8evRZEHlq3zKS49EXDcjdWl571Fzd%2BUY7y5W3g2E%3D&reserved=0> | @URJC |


--
Gregorio Robles
Universidad Rey Juan Carlos
Campus de Fuenlabrada (Madrid), España
gregorio.robles at urjc.es<mailto:gregorio.robles at urjc.es> | www.urjc.es<https://nam12.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.urjc.es%2F&data=04%7C01%7Cti.machado%40northeastern.edu%7Cfcaec855a54a4ab4938608d9da651d4e%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637780950108249460%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=RG0QhH6KB81VkEeOSZL7zmjs%2BXlk27%2B36PmVeAX5Wwc%3D&reserved=0> | @URJC |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gsyc.urjc.es/pipermail/kgblll/attachments/20220118/b214ca80/attachment-0001.htm>


More information about the kgblll mailing list