<commit_before>import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *


def main():
    args = demisto.args()
    root = args.get('Key')
    if not isinstance(root, list):
        root = [root]
    keys = args.get('List', '').split(',')

    t = []
    for obj in root:
        for _key in keys:
            temp = obj.get(_key)
            if temp:
                t.extend(temp) if isinstance(temp, list) else t.append(temp)

    initial_value = args.get('value')
    if initial_value:
        t.extend(initial_value) if isinstance(initial_value, list) else t.append(initial_value)
    demisto.results(t)


if __name__ in ('builtins', '__builtin__'):
    main()<commit_msg>Eli added t = for default value<commit_after>import demistomock as demisto


def main():
    args = demisto.args()
    root = args.get('Key')
    if not isinstance(root, list):
        root = [root]
    keys = args.get('List', '').split(',')

    t = []
    for obj in root:
        for _key in keys:
            temp = obj.get(_key)
            if temp:
                t = t.extend(temp) if isinstance(temp, list) else t.append(temp)

    initial_value = args.get('value')
    if initial_value:
        t = t.extend(initial_value) if isinstance(initial_value, list) else t.append(initial_value)
    demisto.results(t)


if __name__ in ('builtins', '__builtin__'):
    main()
{'fraction_non_alphanumeric': 0.12679083094555874, 'fraction_numerical': 0.0, 'mean_word_length': 2.6285714285714286, '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': '6438716', 'n_tokens_mistral': 451, 'n_tokens_neox': 440, 'n_words': 122}