phetsims / rosetta

PhET's Simulation Translation Utility
MIT License
3 stars 1 forks source link

Create a script to see all commits of new string files since a given date #428

Closed jbphet closed 10 months ago

jbphet commented 10 months ago

Over Slack, @kathy-phet said:

Hey [@jbphet], I'm wondering if you know of any way to capture a number for this: Xxx new simulation translations (in 2023) Does Rosetta track anything that would help with this?

I responded that Rosetta doesn't, but I could probably put together a script pretty quickly that would list all new files from a date, which would essentially answer that question. She has given me the go-ahead to create this script.

jbphet commented 10 months ago

Here is a one line command that can be run in the babel repo to get the new files added in 2023. This includes common code files though, so it's output is not quite the number we need.

git log --pretty=oneline --diff-filter=A --since=2023-01-01T00:00:00Z --until=2024-01-01T00:00:00Z | grep "automated commit" | wc -l
jbphet commented 10 months ago

I've added a script for this. Users will need to modify the date values used in the code.

The number of new sim translation submitted in 2023 was 946.

jbphet commented 10 months ago

This is complete, closing.