Skip to content

Commit

Permalink
dvc.lock: Run "commit_survival" stage
Browse files Browse the repository at this point in the history
There were 5 cases of error when processing a commit (with ChatGPT
sharing link in commit message):
- 4 caused by pathname with characters outside 7-bit ASCII,
  which makes git-diff to use quoted format for pathnames;
  unidiff library includes the fix, but it is not yet released
  matiasb/python-unidiff#113
- 1 caused by change being to a submodule rather than to file,
  or to be more exact moving from one version of subproject
  to the other (clone was not done using --recursive option)
- 1 UnidiffParseError('Target without source: ...')
  with a creation diff (source is /dev/null) with quoted
  destination name (containing spaces)

Lines survival stats: 76.89% lines survived
(in 694 commits in 76 projects).
  • Loading branch information
jnareb committed Nov 20, 2023
1 parent 17cfe93 commit a32515f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,24 @@ stages:
hash: md5
md5: fb48677300a61d2877503ec897f0c4e5
size: 4994
commit_survival:
cmd: python scripts/data/compute_changes_survival.py data/interim/commit_sharings_df.csv
data/repositories_download_status.json data/interim/commit_sharings_changes_survival_df.csv
deps:
- path: data/interim/commit_sharings_df.csv
hash: md5
md5: d6095d145d527872f2f3a4cb48102014
size: 483444
- path: data/repositories_download_status.json
hash: md5
md5: 6fef69f970bdae97701e7507f3fd0773
size: 163865
- path: scripts/data/compute_changes_survival.py
hash: md5
md5: fbd035cb376e1d085a1bd7d2a54d1944
size: 6275
outs:
- path: data/interim/commit_sharings_changes_survival_df.csv
hash: md5
md5: 1eaf20e1c7474f77267cedab9ecd9840
size: 518372

0 comments on commit a32515f

Please sign in to comment.