<commit_before><?php

// specific store view
$_store_id = $argv[1];
$_export_all_store = ($_store_id === NULL);

require_once '../app/Mage.php';
require_once 'utility.php';
Mage::app();

if ($_export_all_store) {
    $_websites = Mage::app()->getWebsites();
    foreach ($_websites as $_website) {
        $_groups = $_website->getGroups();
        foreach ($_groups as $_group) {
            $_stores = $_group->getStores();
            foreach ($_stores as $_store) {
                $_store_id = $_store->getData('store_id');
                $_records = getRecords($_store_id);
            }<commit_msg>[add] option "0" for all store view<commit_after><?php

// specific store view
$_store_id = $argv[1];
$_export_all_store = (($_store_id === NULL) || ($_store_id === '0'));

require_once '../app/Mage.php';
require_once 'utility.php';
Mage::app();

if ($_export_all_store) {
    $_websites = Mage::app()->getWebsites();
    foreach ($_websites as $_website) {
        $_groups = $_website->getGroups();
        foreach ($_groups as $_group) {
            $_stores = $_group->getStores();
            foreach ($_stores as $_store) {
                $_store_id = $_store->getData('store_id');
                $_records = getRecords($_store_id);
            }
{'fraction_non_alphanumeric': 0.1746031746031746, 'fraction_numerical': 0.0031746031746031746, 'mean_word_length': 2.856269113149847, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2159638', 'n_tokens_mistral': 413, 'n_tokens_neox': 398, 'n_words': 84}