<commit_before>export default (element, config, globals) => {
    const layout = {
        menu: menu => ({
            'list-style': 'none',
            'padding': 0,
            'margin': 0,

            item: item => ({
                'display': 'inline-block',
                'margin-left': !item.isFirstchild && config.menu.item.gutter,

                link: link => ({
                    'text-decoration': 'none',
                    'display': 'block',
                    'position': 'relative',
                    'z-index': 2
                }),

                dropdown: dropdown => ({
                    'visibility': 'hidden',
                    'opacity': 0,
                }),

                ':hover': {
                    dropdown: [item.getComponent('dropdown'), {
                        'visibility': 'visible',
                        'opacity': 1
                    }]
                }
            }),
        }),

        dropdown: dropdown => ({
            'list-style': 'none',
            'padding': 0,
            'margin': 0,
            'position': 'absolute',
            'text-align': 'left',
            'z-index': 1,

            item: item => ({
                'position': 'relative',

                link: link => ({
                    'display': 'block',
                    'text-decoration': 'none',
                    'border-top-color': item.isFirstChild && 'transparent'
                }),

                ':hover': {
                    dropdown: [item.getComponent('dropdown'), {
                        'visibility': 'visible',
                        'opacity': 1
                    }],

                    nextSibling: [item.nextSibling, {
                        link: {
                            'border-top-color': 'transparent'
                        }
                    }]
                }
            }),

            dropdown: dropdown => ({
                'transform': config.dropdown.placement === 'left' ? 'translateX(-100%)' : 'translateX(100%)',
                'top': 0
            })
        }),
    }

    return [config, layout];
};<commit_msg>updating layout<commit_after>export default (element, config, globals) => {
    const layout = {
        menu: menu => ({
            'list-style': 'none',
            'padding': 0,
            'margin': 0,

            item: item => ({
                'display': 'inline-block',
                'margin-left': !item.isFirstchild && config.menu.item.gutter,

                link: link => ({
                    'text-decoration': 'none',
                    'display': 'block',
                    'position': 'relative',
                    'z-index': 2
                }),

                ':hover': {
                    dropdown: [item.getComponent('dropdown'), {
                        'visibility': 'visible',
                        'opacity': 1
                    }]
                }
            }),
        }),

        dropdown: dropdown => ({
            'list-style': 'none',
            'padding': 0,
            'margin': 0,
            'position': 'absolute',
            'text-align': 'left',
            'z-index': 1,
            'visibility': 'hidden',
            'opacity': 0,

            item: item => ({
                'position': 'relative',

                link: link => ({
                    'display': 'block',
                    'text-decoration': 'none',
                    'border-top-color': item.isFirstChild && 'transparent'
                }),

                nextSibling: [item.nextSibling, {
                    link: {
                        'border-top': config.dropdown.item.link['border-top']
                    }
                }],

                ':hover': {
                    dropdown: [item.getComponent('dropdown'), {
                        'visibility': 'visible',
                        'opacity': 1
                    }],

                    nextSibling: [item.nextSibling, {
                        link: {
                            disableCascade: true,
                            'border-top-color': 'transparent'
                        }
                    }]
                }
            }),

            dropdown: dropdown => ({
                'transform': config.dropdown.placement === 'left' ? 'translateX(-100%)' : 'translateX(100%)',
                'top': 0
            })
        }),
    }

    return [config, layout];
};
{'fraction_non_alphanumeric': 0.14240719910011249, 'fraction_numerical': 0.007199100112485939, 'mean_word_length': 0.9196891191709845, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '524151', 'n_tokens_mistral': 1152, 'n_tokens_neox': 1010, 'n_words': 198}