<commit_before>#!/usr/bin/env bash

function get_ip_wlan() {
  no_of_broadcasts="$(ifconfig | grep broadcast | wc -l)"
  if [ $no_of_broadcasts = "2" ]; then
    ip="$(ifconfig | grep broadcast | awk '{print $2}' | tail -n1)"
  fi
}

function get_ip_eth() {
  ip="$(ifconfig | grep ether | awk '{print $2}')"
  if [[ $ip != *"."* ]]; then
    ip=""
  fi
}

get_ip_wlan
if [ ! -z "$ip" ]; then
  echo "WLAN $ip"
  exit
else
  get_ip_eth
  if [ ! -z "$ip" ]; then
    echo "ETH $ip"
  else
    echo "not connected"
  fi
  exit
fi
<commit_msg>removing not necessary exit invocations in ip script<commit_after>#!/usr/bin/env bash

function get_ip_wlan() {
  no_of_broadcasts="$(ifconfig | grep broadcast | wc -l)"
  if [ $no_of_broadcasts = "2" ]; then
    ip="$(ifconfig | grep broadcast | awk '{print $2}' | tail -n1)"
  fi
}

function get_ip_eth() {
  ip="$(ifconfig | grep ether | awk '{print $2}')"
  if [[ $ip != *"."* ]]; then
    ip=""
  fi
}

get_ip_wlan
if [ ! -z "$ip" ]; then
  echo "WLAN $ip"
else
  get_ip_eth
  if [ ! -z "$ip" ]; then
    echo "ETH $ip"
  else
    echo "not connected"
  fi
fi

{'fraction_non_alphanumeric': 0.18099547511312217, 'fraction_numerical': 0.007239819004524887, 'mean_word_length': 3.0072463768115942, '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': '4398421', 'n_tokens_mistral': 467, 'n_tokens_neox': 443, 'n_words': 125}