<commit_before>/*
 Copyright (C) 2014 <NAME> <<EMAIL>>

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 See the file COPYING for the full license text.
*/

namespace Adblock {
    public class Element : Feature {
        public HashTable<string, string> blockcssprivate;

        public Element () {
            base ();
        }

        public override void clear () {
            blockcssprivate = new HashTable<string, string> (str_hash, str_equal);
        }

        public string? lookup (string domain) {
            return blockcssprivate.lookup (domain);
        }

        public void insert (string domain, string value) {
            stderr.printf ("Element to be blocked %s => %s\n", domain, value);
            blockcssprivate.insert (domain, value);
        }
    }
}<commit_msg>Print "Element to be blocked" conditional to adblock:element<commit_after>/*
 Copyright (C) 2014 <NAME> <<EMAIL>>

 This library is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public
 License as published by the Free Software Foundation; either
 version 2.1 of the License, or (at your option) any later version.

 See the file COPYING for the full license text.
*/

namespace Adblock {
    public class Element : Feature {
        public HashTable<string, string> blockcssprivate;
        bool debug_element;

        public Element () {
            base ();
            debug_element = "adblock:element" in (Environment.get_variable ("MIDORI_DEBUG") ?? "");
        }

        public override void clear () {
            blockcssprivate = new HashTable<string, string> (str_hash, str_equal);
        }

        public string? lookup (string domain) {
            return blockcssprivate.lookup (domain);
        }

        public void insert (string domain, string value) {
            if (debug_element)
                stdout.printf ("Element to be blocked %s => %s\n", domain, value);
            blockcssprivate.insert (domain, value);
        }
    }
}
{'fraction_non_alphanumeric': 0.08574007220216606, 'fraction_numerical': 0.005415162454873646, 'mean_word_length': 2.5023696682464456, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '224016', 'n_tokens_mistral': 577, 'n_tokens_neox': 550, 'n_words': 230}