<commit_before>local p=require"pinout"

local gpio_pullup_override ={
    -- GPIO2 needs to float
    [4]=gpio.FLOAT
}

for _,v in ipairs(p.input) do
    gpio.mode(v,gpio.INPUT,gpio_pullup_override[v] or gpio.PULLUP)
end
for _,v in ipairs(p.output) do
    gpio.mode(v,gpio.OUTPUT)
end<commit_msg>Fixing forcing GPIO2 to float.<commit_after>local p=require"pinout"

local gpio_floating ={
    -- GPIO2 needs to float
    [4]=true
}

for _,v in ipairs(p.input) do
    local mode
    if gpio_floating[v] then
        mode=gpio.FLOAT
    else
        mode=gpio.PULLUP
    end
    gpio.mode(v,gpio.INPUT,mode)
end
for _,v in ipairs(p.output) do
    gpio.mode(v,gpio.OUTPUT)
end
{'fraction_non_alphanumeric': 0.11458333333333333, 'fraction_numerical': 0.00744047619047619, 'mean_word_length': 3.3419354838709676, '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': '1023733', 'n_tokens_mistral': 268, 'n_tokens_neox': 261, 'n_words': 60}