clarin-eric / ParlaMint

ParlaMint: Comparable Parliamentary Corpora
https://clarin-eric.github.io/ParlaMint/
43 stars 53 forks source link

fix createSample action #517

Closed matyaskopp closed 1 year ago

matyaskopp commented 1 year ago

createSample action does not create a sample properly when files are in subdirectories. The sample is created, but XML files in a new location are not added to git. see TR sample: https://github.com/clarin-eric/ParlaMint/tree/11877f9cc479f41d23a354a7c433565953345a80/Data/ParlaMint-TR

status:

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
    deleted:    Data/ParlaMint-TR/2011/ParlaMint-TR_2011-10-13-tbmm-T24.ana.xml
    deleted:    Data/ParlaMint-TR/2011/ParlaMint-TR_2011-10-13-tbmm-T24.xml
    deleted:    Data/ParlaMint-TR/2012/ParlaMint-TR_2012-06-26-tbmm-T24.ana.xml
    deleted:    Data/ParlaMint-TR/2012/ParlaMint-TR_2012-06-26-tbmm-T24.xml
    deleted:    Data/ParlaMint-TR/2013/ParlaMint-TR_2013-12-26-tbmm-T24.ana.xml
    deleted:    Data/ParlaMint-TR/2013/ParlaMint-TR_2013-12-26-tbmm-T24.xml
    deleted:    Data/ParlaMint-TR/2014/ParlaMint-TR_2014-04-10-tbmm-T24.ana.xml
    deleted:    Data/ParlaMint-TR/2014/ParlaMint-TR_2014-04-10-tbmm-T24.xml
    deleted:    Data/ParlaMint-TR/2016/ParlaMint-TR_2016-12-20-tbmm-T26.ana.xml
    deleted:    Data/ParlaMint-TR/2016/ParlaMint-TR_2016-12-20-tbmm-T26.xml
    deleted:    Data/ParlaMint-TR/2018/ParlaMint-TR_2018-11-06-tbmm-T27.ana.xml
    deleted:    Data/ParlaMint-TR/2018/ParlaMint-TR_2018-11-06-tbmm-T27.xml
    deleted:    Data/ParlaMint-TR/2021/ParlaMint-TR_2021-11-04-tbmm-T27.ana.xml
    deleted:    Data/ParlaMint-TR/2021/ParlaMint-TR_2021-11-04-tbmm-T27.xml
    deleted:    Data/ParlaMint-TR/2022/ParlaMint-TR_2022-02-24-tbmm-T27.ana.xml
    deleted:    Data/ParlaMint-TR/2022/ParlaMint-TR_2022-02-24-tbmm-T27.xml
    deleted:    Data/ParlaMint-TR/ParlaMint-TR_2011-10-13-tbmm-T24.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24-meta.tsv
    modified:   Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.txt
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.vert
    deleted:    Data/ParlaMint-TR/ParlaMint-TR_2013-12-26-tbmm-T24.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24-meta.tsv
    modified:   Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.txt
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.vert
    deleted:    Data/ParlaMint-TR/ParlaMint-TR_2016-12-20-tbmm-T26.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27-meta.tsv
    modified:   Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.txt
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.vert
    deleted:    Data/ParlaMint-TR/ParlaMint-TR_2021-11-04-tbmm-T27.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27-meta.tsv
    modified:   Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.conllu
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.txt
    new file:   Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.vert

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
    modified:   Data/ParlaMint-TR/ParlaMint-TR.ana.xml
    modified:   Data/ParlaMint-TR/ParlaMint-TR.xml

Untracked files:
  (use "git add <file>..." to include in what will be committed)
    Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.ana.xml
    Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.xml
    Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.ana.xml
    Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.xml
    Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.ana.xml
    Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.xml
    Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.ana.xml
    Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.xml
    SAMPLE/

commit:

[data 11877f9] action: generating ParlaMint-[TR] sample files with #499
 38 files changed, 6612 insertions(+), 754606 deletions(-)
 delete mode 100644 Data/ParlaMint-TR/2011/ParlaMint-TR_2011-10-13-tbmm-T24.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2011/ParlaMint-TR_2011-10-13-tbmm-T24.xml
 delete mode 100644 Data/ParlaMint-TR/2012/ParlaMint-TR_2012-06-26-tbmm-T24.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2012/ParlaMint-TR_2012-06-26-tbmm-T24.xml
 delete mode 100644 Data/ParlaMint-TR/2013/ParlaMint-TR_2013-12-26-tbmm-T24.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2013/ParlaMint-TR_2013-12-26-tbmm-T24.xml
 delete mode 100644 Data/ParlaMint-TR/2014/ParlaMint-TR_2014-04-10-tbmm-T24.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2014/ParlaMint-TR_2014-04-10-tbmm-T24.xml
 delete mode 100644 Data/ParlaMint-TR/2016/ParlaMint-TR_2016-12-20-tbmm-T26.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2016/ParlaMint-TR_2016-12-20-tbmm-T26.xml
 delete mode 100644 Data/ParlaMint-TR/2018/ParlaMint-TR_2018-11-06-tbmm-T27.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2018/ParlaMint-TR_2018-11-06-tbmm-T27.xml
 delete mode 100644 Data/ParlaMint-TR/2021/ParlaMint-TR_2021-11-04-tbmm-T27.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2021/ParlaMint-TR_2021-11-04-tbmm-T27.xml
 delete mode 100644 Data/ParlaMint-TR/2022/ParlaMint-TR_2022-02-24-tbmm-T27.ana.xml
 delete mode 100644 Data/ParlaMint-TR/2022/ParlaMint-TR_2022-02-24-tbmm-T27.xml
 delete mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2011-10-13-tbmm-T24.conllu
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24-meta.tsv
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.txt
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2012-06-26-tbmm-T24.vert
 delete mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2013-12-26-tbmm-T24.conllu
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24-meta.tsv
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.txt
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2014-04-10-tbmm-T24.vert
 delete mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2016-12-20-tbmm-T26.conllu
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27-meta.tsv
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.txt
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2018-11-06-tbmm-T27.vert
 delete mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2021-11-04-tbmm-T27.conllu
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27-meta.tsv
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.txt
 create mode 100644 Data/ParlaMint-TR/ParlaMint-TR_2022-02-24-tbmm-T27.vert
matyaskopp commented 1 year ago

Now it is possible to upload dirified samples, and createSample action make it flatten.