<commit_before><?php

class TimberMenu extends TimberCore {

    var $MenuItemClass = 'TimberMenuItem';

    var $items = null;
    var $name = null;
    var $ID = null;

    function __construct($slug = 0) {
        $locations = get_nav_menu_locations();
        if ($slug != 0 && is_numeric($slug)){
            $menu_id = $slug;
        } else if (count($locations)){
            $menu_id = $this->get_menu_id_from_locations($slug, $locations);
        } else if ($slug === false){<commit_msg>fixes error in 3.5.1; $locations should be an array<commit_after><?php

class TimberMenu extends TimberCore {

    var $MenuItemClass = 'TimberMenuItem';

    var $items = null;
    var $name = null;
    var $ID = null;

    function __construct($slug = 0) {
        $locations = get_nav_menu_locations();
        if ($slug != 0 && is_numeric($slug)){
            $menu_id = $slug;
        } else if (is_array($locations) && count($locations)){
            $menu_id = $this->get_menu_id_from_locations($slug, $locations);
        } else if ($slug === false){
{'fraction_non_alphanumeric': 0.1432637571157495, 'fraction_numerical': 0.006641366223908918, 'mean_word_length': 2.781362007168459, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2940985', 'n_tokens_mistral': 344, 'n_tokens_neox': 334, 'n_words': 84}