<commit_before>#!/bin/bash

#product_code=045496510060 #3DS Circle Pad Pro
product_code=045496510107 #3DS XL Circle Pad Pro

if [[ -f product.html ]]; then
    rm -f product.html
fi

curl -s -o product.html https://uk.webuy.com/product.php?sku=${product_code}

if [[ -n $(grep "buy this item" product.html) ]]; then
    echo "This item is in stock"
else
    echo "This item is still out of stock"
fi
<commit_msg>Updating the URL curl and the validity search string<commit_after>#!/bin/bash

#product_code=045496510060 #3DS Circle Pad Pro
product_code=045496510107 #3DS XL Circle Pad Pro

if [[ -f product.html ]]; then
    rm -f product.html
fi

curl -s -L -o product.html https://uk.webuy.com/product-detail?id=${product_code}

if [[ -n $(grep "In stock online" product.html) ]]; then
    echo "This item is in stock"
else
    echo "This item is still out of stock"
fi
{'fraction_non_alphanumeric': 0.12082853855005754, 'fraction_numerical': 0.05983889528193326, 'mean_word_length': 3.78021978021978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3045176', 'n_tokens_mistral': 344, 'n_tokens_neox': 305, 'n_words': 107}