<commit_before>#!/bin/sh

ACTION=$1
LOGICAL_INTERFACE=$2
REAL_INTERFACE=$3
IPV4=$4
IPV6=$5
R1=$6
R2=$7

clean () {
  true  
}

prepare () {
#  uci set batman-adv.bat0=mesh
#  uci set batman-adv.bat0.bridge_loop_avoidance=1
#  uci commit batman-adv

  uci set network.bat0=interface
  uci set network.bat0.ifname=bat0
  uci set network.bat0.proto=batmesh
  uci set network.bat0.ip6addr=""
  uci set network.bat0.ipaddr=""
  uci set network.bat0.netmask=""
  uci set network.bat0.mtu=1500
  uci commit network
}

add () {
  uci set network.${LOGICAL_INTERFACE}=interface
  uci set network.${LOGICAL_INTERFACE}.proto=batadv
  uci set network.${LOGICAL_INTERFACE}.mesh=bat0
  uci set network.${LOGICAL_INTERFACE}.mtu=1528
  uci commit network
}

$ACTION<commit_msg>clear ip6addr on proto=batadv interfaces<commit_after>#!/bin/sh

ACTION=$1
LOGICAL_INTERFACE=$2
REAL_INTERFACE=$3
IPV4=$4
IPV6=$5
R1=$6
R2=$7

clean () {
  true  
}

prepare () {
#  uci set batman-adv.bat0=mesh
#  uci set batman-adv.bat0.bridge_loop_avoidance=1
#  uci commit batman-adv

  uci set network.bat0=interface
  uci set network.bat0.ifname=bat0
  uci set network.bat0.proto=batmesh
  uci set network.bat0.ip6addr=""
  uci set network.bat0.ipaddr=""
  uci set network.bat0.netmask=""
  uci set network.bat0.mtu=1500
  uci commit network
}

add () {
  uci set network.${LOGICAL_INTERFACE}=interface
  uci set network.${LOGICAL_INTERFACE}.proto=batadv
  uci set network.${LOGICAL_INTERFACE}.mesh=bat0
  uci set network.${LOGICAL_INTERFACE}.ip6addr=""
  uci set network.${LOGICAL_INTERFACE}.mtu=1528
  uci commit network
}

$ACTION
{'fraction_non_alphanumeric': 0.12320200125078173, 'fraction_numerical': 0.04127579737335835, 'mean_word_length': 4.517241379310345, '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': '1211749', 'n_tokens_mistral': 661, 'n_tokens_neox': 639, 'n_words': 128}