<commit_before>#!/bin/bash
#
# Interface checker
# Checks to see whether interface has an IP address, if it doesn't assume it's down and start hostapd
# Author : SirLagz
# Modified : Jesserockz
#
Interface='wlan0'
HostAPDIP='10.0.0.1'
echo "-----------------------------------"
echo "Checking connectivity of $Interface"
NetworkUp=`/sbin/ifconfig $Interface`
IP=`echo "$NetworkUp" | grep inet | wc -l`

serial=`cat /proc/cpuinfo | tail -c 5`
echo -e "interface=wlan0\ndriver=nl80211\nssid=Zer0-$serial\nhw_mode=g\nchannel=11\nwpa=2\nwpa_passphrase=<PASSWORD>\nwpa_key_mgmt=WPA-PSK\nwpa_pairwise=TKIP\nrsn_pairwise=CCMP" > /etc/hostapd/hostapd.conf

echo -e "interface=$Interface\ndhcp-range=10.0.0.2,10.0.0.50,255.255.255.0,12h\naddress=/#/$HostAPDIP" > /etc/dnsmasq.conf


if [[ $IP -eq 0 ]]; then
  echo "Connection is down"


  hostapd=`pidof hostapd`<commit_msg>Remove ipv6 from testing network connection<commit_after>#!/bin/bash
#
# Interface checker
# Checks to see whether interface has an IP address, if it doesn't assume it's down and start hostapd
# Author : SirLagz
# Modified : Jesserockz
#
Interface='wlan0'
HostAPDIP='10.0.0.1'
echo "-----------------------------------"
echo "Checking connectivity of $Interface"
NetworkUp=`/sbin/ifconfig $Interface`
IP=`echo "$NetworkUp" | grep inet | grep -v inet6 | wc -l`

serial=`cat /proc/cpuinfo | tail -c 5`
echo -e "interface=wlan0\ndriver=nl80211\nssid=Zer0-$serial\nhw_mode=g\nchannel=11\nwpa=2\nwpa_passphrase=<PASSWORD>\nwpa_key_mgmt=WPA-PSK\nwpa_pairwise=TKIP\nrsn_pairwise=CCMP" > /etc/hostapd/hostapd.conf

echo -e "interface=$Interface\ndhcp-range=10.0.0.2,10.0.0.50,255.255.255.0,12h\naddress=/#/$HostAPDIP" > /etc/dnsmasq.conf


if [[ $IP -eq 0 ]]; then
  echo "Connection is down"


  hostapd=`pidof hostapd`
{'fraction_non_alphanumeric': 0.1844769403824522, 'fraction_numerical': 0.047244094488188976, 'mean_word_length': 4.039660056657223, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, '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': '4270478', 'n_tokens_mistral': 770, 'n_tokens_neox': 694, 'n_words': 137}