<commit_before>//-----------------------------------
// Copyright <NAME> 2013-2017
//-----------------------------------

#include "SessionsDataView.h"

#include <OrbitBase/Logging.h>
#include <OrbitBase/SafeStrerror.h>

#include <cstdio>

#include "App.h"
#include "Callstack.h"
#include "Capture.h"
#include "Core.h"
#include "ModulesDataView.h"
#include "OrbitSession.h"
#include "OrbitType.h"
#include "Pdb.h"
#include "absl/strings/str_format.h"

//-----------------------------------------------------------------------------
SessionsDataView::SessionsDataView() : DataView(DataViewType::SESSIONS) {}

//-----------------------------------------------------------------------------
const std::vector<DataView::Column>& SessionsDataView::GetColumns() {
  static const std::vector<Column> columns = [] {
    std::vector<Column> columns;
    columns.resize(COLUMN_NUM);
    columns[COLUMN_SESSION_NAME] = {"Session", .5f, SortingOrder::Ascending};
    columns[COLUMN_PROCESS_NAME] = {"Process", .5f, SortingOrder::Ascending};<commit_msg>Fix SessionsDataView already having a horizontal scroll bar on startup<commit_after>//-----------------------------------
// Copyright <NAME> 2013-2017
//-----------------------------------

#include "SessionsDataView.h"

#include <OrbitBase/Logging.h>
#include <OrbitBase/SafeStrerror.h>

#include <cstdio>

#include "App.h"
#include "Callstack.h"
#include "Capture.h"
#include "Core.h"
#include "ModulesDataView.h"
#include "OrbitSession.h"
#include "OrbitType.h"
#include "Pdb.h"
#include "absl/strings/str_format.h"

//-----------------------------------------------------------------------------
SessionsDataView::SessionsDataView() : DataView(DataViewType::SESSIONS) {}

//-----------------------------------------------------------------------------
const std::vector<DataView::Column>& SessionsDataView::GetColumns() {
  static const std::vector<Column> columns = [] {
    std::vector<Column> columns;
    columns.resize(COLUMN_NUM);
    columns[COLUMN_SESSION_NAME] = {"Session", .49f, SortingOrder::Ascending};
    columns[COLUMN_PROCESS_NAME] = {"Process", .49f, SortingOrder::Ascending};
{'fraction_non_alphanumeric': 0.3375409069658719, 'fraction_numerical': 0.010285179990649837, 'mean_word_length': 2.11046511627907, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '6511471', 'n_tokens_mistral': 629, 'n_tokens_neox': 615, 'n_words': 108}