<commit_before>#!/bin/bash

###################################################
## Patch the Linux source tree with AUFS support ##
###################################################

# Target Kernel Version
KVER=3.17
# Temporary Location
TMPGIT=`mktemp -d`

# Clone AUFS repo
git clone -n git://git.code.sf.net/p/aufs/aufs3-standalone $TMPGIT/aufs-aufs3-standalone

# Checkout AUFS branch
pushd $TMPGIT/aufs-aufs3-standalone
git checkout origin/aufs$KVER
popd

# Copy in files
cp -r $TMPGIT/aufs-aufs3-standalone/{Documentation,fs} ./
cp $TMPGIT/aufs-aufs3-standalone/include/uapi/linux/aufs_type.h ./include/uapi/linux/aufs_type.h

# Apply patches
cat $TMPGIT/aufs-aufs3-standalone/aufs3-{base,kbuild,loopback,mmap,standalone}.patch | patch -p1

# Clean Up
rm -rf $TMPGIT/aufs-aufs3-standalone

# Enable module
echo "CONFIG_AUFS_FS=m" >> .config

printf "Patched Kernel $KVER in $(cwd) with AUFS support!"<commit_msg>Updated default config for aufs<commit_after>#!/bin/bash

###################################################
## Patch the Linux source tree with AUFS support ##
###################################################

# Target Kernel Version
KVER=3.17
# Temporary Location
TMPGIT=`mktemp -d`

# Clone AUFS repo
git clone -n git://git.code.sf.net/p/aufs/aufs3-standalone $TMPGIT/aufs-aufs3-standalone

# Checkout AUFS branch
pushd $TMPGIT/aufs-aufs3-standalone
git checkout origin/aufs$KVER
popd

# Copy in files
cp -r $TMPGIT/aufs-aufs3-standalone/{Documentation,fs} ./
cp $TMPGIT/aufs-aufs3-standalone/include/uapi/linux/aufs_type.h ./include/uapi/linux/aufs_type.h

# Apply patches
cat $TMPGIT/aufs-aufs3-standalone/aufs3-{base,kbuild,loopback,mmap,standalone}.patch | patch -p1

# Clean Up
rm -rf $TMPGIT/aufs-aufs3-standalone

# Enable module
cat <<EOF  >> .config
CONFIG_AUFS_BDEV_LOOP=y
CONFIG_AUFS_BRANCH_MAX_1023=y
CONFIG_AUFS_FHSM=y
CONFIG_AUFS_FS=m
CONFIG_AUFS_RDU=y
CONFIG_AUFS_SBILIST=y
# CONFIG_AUFS_BRANCH_MAX_127 is not set
# CONFIG_AUFS_BRANCH_MAX_32767 is not set
# CONFIG_AUFS_BRANCH_MAX_511 is not set
# CONFIG_AUFS_BR_FUSE is not set
# CONFIG_AUFS_BR_HFSPLUS is not set
# CONFIG_AUFS_BR_RAMFS is not set
# CONFIG_AUFS_DEBUG is not set
# CONFIG_AUFS_EXPORT is not set
# CONFIG_AUFS_HNOTIFY is not set
# CONFIG_AUFS_SHWH is not set
EOF

printf "Patched Kernel $KVER in $(cwd) with AUFS support!"
{'fraction_non_alphanumeric': 0.18412017167381975, 'fraction_numerical': 0.016738197424892704, 'mean_word_length': 5.603399433427762, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '5251128', 'n_tokens_mistral': 914, 'n_tokens_neox': 894, 'n_words': 186}