<commit_before>#!/bin/sh

USN_BASE="1mv14cs"
URL="http://results.vtu.ac.in/results/result_page.php?usn="
OUT_FOLDER="Results"

download() # $1=from $2=to $3=usn
{
	usn=$1
	flag=0
	while [ $flag -eq 0 ];	do
		echo "Downloading $usn"
		curl --silent --max-time 10 "$URL$usn" > "$OUT_FOLDER/$usn.html"
		if [ $? -eq 0 ]; then
			((flag++))
		fi
	done
}

mkdir $OUT_FOLDER

download "$1"<commit_msg>Open result in browser<commit_after>#!/bin/sh

USN_BASE="1mv14cs"
URL="http://results.vtu.ac.in/results/result_page.php?usn="
OUT_FOLDER="Result"

download() # $1=from $2=to $3=usn
{
	usn=$1
	flag=0
	while [ $flag -eq 0 ];	do
		echo "Downloading $usn"
		curl --silent --max-time 10 "$URL$usn" > "$OUT_FOLDER/$usn.html"
		if [ $? -eq 0 ]; then
			((flag++))
		fi
	done
}

mkdir $OUT_FOLDER

#TODO: Check arg count
download "$1"

firefox $OUT_FOLDER/$1".html" &
{'fraction_non_alphanumeric': 0.20023419203747073, 'fraction_numerical': 0.03161592505854801, 'mean_word_length': 3.8579545454545454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4303168', 'n_tokens_mistral': 420, 'n_tokens_neox': 391, 'n_words': 78}