<commit_before><?php defined('C5_EXECUTE') or die("Access Denied.");
use \Concrete\Core\Conversation\MessageList as ConversationMessageList;
use \Concrete\Core\Conversation\ThreadedList as ConversationMessageThreadedList;

$cnv = Conversation::getByID($_POST['cnvID']);
if (is_object($cnv)) {
    $enablePosting = ($_POST['enablePosting'] == 1) ? true : false;
    $enableOrdering = ($_POST['enableOrdering'] == 1) ? true : false;
    $currentPage = (Loader::helper('validation/numbers')->integer($_POST['page'])) ? $_POST['page'] : 1;
    
    if (in_array($_POST['displayMode'], array('flat'))) {
        $displayMode = $_POST['displayMode'];
    } else {
        $displayMode = 'threaded';
    }
    
    switch($displayMode) {
        case 'flat':
            $ml = new ConversationMessageList();
            $ml->filterByConversation($cnv);
            break;
        default: // threaded<commit_msg>Fixed bad classes<commit_after><?php defined('C5_EXECUTE') or die("Access Denied.");
use \Concrete\Core\Conversation\Message\MessageList as ConversationMessageList;
use \Concrete\Core\Conversation\Message\ThreadedList as ConversationMessageThreadedList;

$cnv = Conversation::getByID($_POST['cnvID']);
if (is_object($cnv)) {
    $enablePosting = ($_POST['enablePosting'] == 1) ? true : false;
    $enableOrdering = ($_POST['enableOrdering'] == 1) ? true : false;
    $currentPage = (Loader::helper('validation/numbers')->integer($_POST['page'])) ? $_POST['page'] : 1;
    
    if (in_array($_POST['displayMode'], array('flat'))) {
        $displayMode = $_POST['displayMode'];
    } else {
        $displayMode = 'threaded';
    }
    
    switch($displayMode) {
        case 'flat':
            $ml = new ConversationMessageList();
            $ml->filterByConversation($cnv);
            break;
        default: // threaded
{'fraction_non_alphanumeric': 0.16830601092896175, 'fraction_numerical': 0.004371584699453552, 'mean_word_length': 3.731266149870801, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3220064', 'n_tokens_mistral': 561, 'n_tokens_neox': 552, 'n_words': 99}