<commit_before>#!/bin/bash


F_LOOP=`losetup -f`

echo "Setting up loop back device as $F_LOOP"

losetup $F_LOOP disk_mn_fs

mount -t moonfs $F_LOOP mnt

echo "loop back device properly mounted"<commit_msg>[moonfs] Rectify the build and setup process<commit_after>#/bin/bash

FS_DIR=/home/jittu/moonfs
SRC_DIR=$FS_DIR/src
MKFS_DIR=$FS_DIR/tool/mkfs
LOOP_DEV=`losetup -f`

function install_fs()
{
	cd $SRC_DIR
	make all
	insmod moonfs.ko
}

function setup_disk()
{
	cd $MKFS_DIR
	make all
	losetup $LOOP_DEV disk_mn_fs
	mount -t moonfs $LOOP_DEV mnt
}

function remove_disk()
{
	cd $MKFS_DIR
	umount mnt
	losetup -d /dev/loop0
	make clean
}

function uninstall_fs()
{
	cd $SRC_DIR
	rmmod moonfs
	make clean
}

#install_fs
#setup_disk
remove_disk
{'fraction_non_alphanumeric': 0.09543010752688172, 'fraction_numerical': 0.0013440860215053765, 'mean_word_length': 4.643939393939394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3773402', 'n_tokens_mistral': 334, 'n_tokens_neox': 322, 'n_words': 80}