<commit_before>#!/bin/bash

#Shell script that sends a Raspberry Pi's IP address to a specified server
#Written by <NAME> on Feb 23, 2015

<commit_msg>Modified regex among other things<commit_after>#!/bin/sh

#Shell script that sends a Raspberry Pi's IP address to a specified server
#regex for IP address from: http://www.cyberciti.biz/faq/grep-regular-expressions/
#Written by <NAME> on Feb 23, 2015

IP="Timeout..."
I=1000

while [$IP = "" -a $I -lt 180000]
do
	sleep $I
	$I=$I*1.05
	$IP=`ifconfig | sed -e '/wlan0/,/inet/!d'`
done

echo '$IP' > 'ip.txt'
ftp jszhao@172.16.31.10
sleep 1000
echo "PASS"
#curl jszhao @IP:DIR < IP.txt
{'fraction_non_alphanumeric': 0.14511041009463724, 'fraction_numerical': 0.061514195583596214, 'mean_word_length': 4.08, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 1, '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': '3411586', 'n_tokens_mistral': 284, 'n_tokens_neox': 237, 'n_words': 82}