Skip to content

Instantly share code, notes, and snippets.

@nalimilan
Last active August 25, 2017 17:45
Show Gist options
  • Save nalimilan/9c7c861dfafbc3601487bd03694a0931 to your computer and use it in GitHub Desktop.
Save nalimilan/9c7c861dfafbc3601487bd03694a0931 to your computer and use it in GitHub Desktop.
git ls-files -z | xargs -0 sed -i \
-e 's/JuliaData/JuliaStats/g' \
-e 's/dt/df/g' \
-e 's/DT/DF/g' \
-e 's/data table/data frame/g' \
-e 's/datatable/dataframe/g' \
-e 's/DataTable/DataFrame/g' \
-e 's/readfable/readtable/g' \
-e 's/Readfable/Readtable/g' \
-e 's/definedfypes/definedtypes/g' \
-e 's/mixedfypes/mixedtypes/g' \
-e 's/standardfypes/standardtypes/g' \
-e 's/expandfermnames/expandtermnames/g' \
-e 's/dfype/dtype/g' \
-e 's/oldfyp/oldtyp/g' \
-e 's/widfh/width/g' \
-e 's/Widfh/Width/g' \
-e 's/Bedfime/Bedtime/g' \
-e 's/Debtime/Bedtime/g' \
-e 's/Zandf/Zandt/g' \
-e 's/Auerstedf/Auerstedt/g' \
-e 's/Schmidf/Schmidt/g' \
-e 's/fedfefadet/fedtefadet/g' \
-e 's/forsvandf/forsvandt/g' \
-e 's/Stadf/Stadt/g' \
-e 's/stadf/stadt/g' \
-e 's/Budfe/Budte/g' \
-e 's/Windfalkers/Windtalkers/g' \
-e 's/Trinadfsat/Trinadtsat/g' \
-e 's/Voldfekt/Voldtekt/g' \
-e 's/Tridfsat/Tridtsat/g' \
-e 's/Theresienstadf/Theresienstadt/g' \
-e 's/Soundfrack/Soundtrack/g' \
-e 's/Speedfrap/Speedtrap/g' \
-e 's/sendf/sendt/g' \
-e 's/Serdfsa/Serdtsa/g' \
-e 's/Rembrandf/Rembrandt/g' \
-e 's/Badfime/Badtime/g' \
-e 's/Ondf/Ondt/g' \
-e 's/Kronshtadfa/Kronshtadta/g' \
-e 's/dvadfsat/dvadtsat/g' \
-e 's/Dvadfsat/Dvadtsat/g' \
-e 's/Dvenadfsat/Dvenadtsat/g' \
-e 's/Midf/Midt/g' \
-e 's/Gerhardf/Gerhardt/g' \
-e 's/Eberhardf/Eberhardt/g' \
-e 's/Hundfricket/Hundtricket/g' \
-e 's/hvidf/hvidt/g' \
-e 's/Breadfh/Breadth/g' \
-e 's/Goldfown/Goldtown/g' \
-e 's/Godfhumb/Godthumb/g' \
-e 's/Edfv/Edtv/g' \
-e 's/Verwandfen/Verwandten/g' \
-e 's/vosemnadfsati/vosemnadtsati/g' \
-e 's/Bloodfhirsty/Bloodthirsty/g' \
-e 's/Deadfime/Deadtime/g' \
-e 's/vosemnadfsati/vosemnadtsati/g' \
-e 's/used to represent data frames/used to represent data tables/g' \
-e 's/df = NullableArray.zeros.2, 2, 2/dt = NullableArray\(zeros\(2, 2, 2/g'
mv src/abstractdatatable src/abstractdataframe
mv src/datatable src/dataframe
mv src/datatablerow src/dataframerow
mv src/groupeddatatable src/groupeddataframe
mv src/subdatatable src/subdataframe
mv src/DataTables.jl src/DataFrames.jl
cp -avf ~/tmp/movies.csv.* test/data/compressed/
pushd src
for f in */*; do mv -v "$f" "`echo $f | sed s/table/frame/`"; done
popd
pushd test
for f in *; do mv -v "$f" "`echo $f | sed s/table/frame/`"; done
popd
# Called via:
# git filter-branch -f --tree-filter 'sh datatables-backport.sh' ee17d92e69eca03744320a065caaf8f50e255ad1~..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment