<commit_before>#!/bin/bash 
. 000_define.sh
emerge ${quiet} ${verbose} eix dev-vcs/git app-portage/gentoolkit app-admin/sudo virtual/linux-sources
eselect kernel set 1

#eix bug
chown portage /var/cache/eix


git clone --depth 1 https://github.com/gentoo-mirror/gentoo.git /usr/portage.new
rm -rf /usr/portage
mv /usr/portage.new /usr/portage

cat << EOF >/etc/portage/repos.conf/repos.conf
[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
auto-sync = yes
EOF


eix-update
emerge ${quiet} ${verbose} ${ask} -uND --with-bdeps=y --keep-going @world
dispatch-conf
emerge ${verbose} ${quiet} ${ask} @preserved-rebuild
dispatch-conf
emerge ${verbose} ${quiet} ${ask} --depclean


gunzip -c /proc/config.gz >/usr/src/linux/.config
pushd /usr/src/linux/
make olddefconfig


make -j10 all
make -j10 modules_install
make -j10 install
make -j10 firmware_install
sleep 10
k_rel=$(make kernelrelease)
dracut --kver $k_rel --force
mv /boot/initramfs-$k_rel.img /boot/initramfs-$k_rel-rescue.img
ln -s /boot/vmlinuz-$k_rel  /boot/vmlinuz-$k_rel-rescue
dracut --kver $k_rel -H --force
grub-mkconfig -o /boot/grub/grub.cfg
popd
<commit_msg>kern install<commit_after>#!/bin/bash 
. 000_define.sh
emerge ${quiet} ${verbose} eix dev-vcs/git app-portage/gentoolkit app-admin/sudo virtual/linux-sources
eselect kernel set 1

#eix bug
chown portage /var/cache/eix


git clone --depth 1 https://github.com/gentoo-mirror/gentoo.git /usr/portage.new
rm -rf /usr/portage
mv /usr/portage.new /usr/portage

cat << EOF >/etc/portage/repos.conf/repos.conf
[gentoo]
location = /usr/portage
sync-type = git
sync-uri = https://github.com/gentoo-mirror/gentoo.git
auto-sync = yes
EOF


eix-update
emerge ${quiet} ${verbose} ${ask} -uND --with-bdeps=y --keep-going @world
dispatch-conf
emerge ${verbose} ${quiet} ${ask} @preserved-rebuild
dispatch-conf
emerge ${verbose} ${quiet} ${ask} --depclean


gunzip -c /proc/config.gz >/usr/src/linux/.config
pushd /usr/src/linux/
make olddefconfig


make -j10 all
make -j10 modules_install
make -j10 install
sleep 10
k_rel=$(make kernelrelease)
dracut --kver $k_rel -H --force
grub-mkconfig -o /boot/grub/grub.cfg
popd

{'fraction_non_alphanumeric': 0.15176524530032096, 'fraction_numerical': 0.012838147638697846, 'mean_word_length': 3.859688195991091, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6836051', 'n_tokens_mistral': 904, 'n_tokens_neox': 843, 'n_words': 205}