<commit_before>/*
 * Copyright @ 2018 Atlassian Pty Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jitsi.meet.test.pageobjects.web;

import org.jitsi.meet.test.util.*;
import org.jitsi.meet.test.web.*;
import org.openqa.selenium.*;

import java.util.*;

/**
 * Represents the toolbar in a particular {@link WebParticipant}.
 *
 * @author <NAME>
 */
public class Toolbar {
    /**
     * Accessibility labels to be used as selectors for finding WebElements
     * within the {@link Toolbar}.
     */
    private final static String AUDIO_MUTE = "Toggle mute audio";
    private final static String CHAT = "Toggle chat window";
    private final static String DESKTOP = "Toggle screenshare";
    private final static String ETHERPAD = "Toggle shared document";
    private final static String HANGUP = "Leave the call";
    private final static String INFO = "Show info";
    private final static String OVERFLOW = "Toggle more actions menu";
    private final static String OVERFLOW_MENU = "More actions menu";
    private final static String PROFILE = "Edit your profile";
    private final static String RECORD = "Toggle recording";
    private final static String SETTINGS = "Toggle settings";
    private final static String SHARE_VIDEO = "Toggle Youtube video sharing";
    private final static String TILE_VIEW_BUTTON = "Toggle tile view";
    private final static String VIDEO_MUTE = "Toggle mute video";
    private final static String VIDEO_QUALITY = "Manage call quality";

    /**
     * The ID of the toolbar. To be used as a selector when trying to locate
     * the toolbar on the page.
     */
    private final static String TOOLBOX_ID = "new-toolbox";

    /**
     * The xpath for the desktop button icon. Its toggle class can determine
     * if desktop sharing is active or not active.
     */
    private final static String DESKTOP_ICON_XPATH
        = "//i[contains(@class, 'icon-share-desktop')]";

    /**
     * The participant.
     */
    private final WebParticipant participant;

    /**
     * Initializes a new {@link Toolbar} instance.
     *
     * @param participant the participant for this {@link Toolbar}.
     */
    public Toolbar(WebParticipant participant)
    {
        this.participant = Objects.requireNonNull(participant, "participant");
    }
<commit_msg>Fixes tests for the call quality accessibility label<commit_after>/*
 * Copyright @ 2018 Atlassian Pty Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jitsi.meet.test.pageobjects.web;

import org.jitsi.meet.test.util.*;
import org.jitsi.meet.test.web.*;
import org.openqa.selenium.*;

import java.util.*;

/**
 * Represents the toolbar in a particular {@link WebParticipant}.
 *
 * @author <NAME>
 */
public class Toolbar {
    /**
     * Accessibility labels to be used as selectors for finding WebElements
     * within the {@link Toolbar}.
     */
    private final static String AUDIO_MUTE = "Toggle mute audio";
    private final static String CHAT = "Toggle chat window";
    private final static String DESKTOP = "Toggle screenshare";
    private final static String ETHERPAD = "Toggle shared document";
    private final static String HANGUP = "Leave the call";
    private final static String INFO = "Show info";
    private final static String OVERFLOW = "Toggle more actions menu";
    private final static String OVERFLOW_MENU = "More actions menu";
    private final static String PROFILE = "Edit your profile";
    private final static String RECORD = "Toggle recording";
    private final static String SETTINGS = "Toggle settings";
    private final static String SHARE_VIDEO = "Toggle Youtube video sharing";
    private final static String TILE_VIEW_BUTTON = "Toggle tile view";
    private final static String VIDEO_MUTE = "Toggle mute video";
    private final static String VIDEO_QUALITY = "Manage video quality";

    /**
     * The ID of the toolbar. To be used as a selector when trying to locate
     * the toolbar on the page.
     */
    private final static String TOOLBOX_ID = "new-toolbox";

    /**
     * The xpath for the desktop button icon. Its toggle class can determine
     * if desktop sharing is active or not active.
     */
    private final static String DESKTOP_ICON_XPATH
        = "//i[contains(@class, 'icon-share-desktop')]";

    /**
     * The participant.
     */
    private final WebParticipant participant;

    /**
     * Initializes a new {@link Toolbar} instance.
     *
     * @param participant the participant for this {@link Toolbar}.
     */
    public Toolbar(WebParticipant participant)
    {
        this.participant = Objects.requireNonNull(participant, "participant");
    }

{'fraction_non_alphanumeric': 0.08345021037868162, 'fraction_numerical': 0.002805049088359046, 'mean_word_length': 3.2638266068759343, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2403197', 'n_tokens_mistral': 1552, 'n_tokens_neox': 1486, 'n_words': 643}