<commit_before>import {
  defaultSelectedOsqueryTable,
  SELECT_OSQUERY_TABLE,
  SET_QUERY_TEXT,
  SET_SELECTED_TARGETS,
  SET_SELECTED_TARGETS_QUERY,
} from './actions';

export const initialState = {
  queryText: 'SELECT * FROM users u JOIN groups g WHERE u.gid = g.gid',
  selectedOsqueryTable: defaultSelectedOsqueryTable,
  selectedTargets: [],
  selectedTargetsQuery: '',
};

const reducer = (state = initialState, { type, payload }) => {
  switch (type) {
    case SELECT_OSQUERY_TABLE:
      return {<commit_msg>Change default query editor query (#1669)<commit_after>import {
  defaultSelectedOsqueryTable,
  SELECT_OSQUERY_TABLE,
  SET_QUERY_TEXT,
  SET_SELECTED_TARGETS,
  SET_SELECTED_TARGETS_QUERY,
} from './actions';

export const initialState = {
  queryText: 'SELECT * FROM osquery_info',
  selectedOsqueryTable: defaultSelectedOsqueryTable,
  selectedTargets: [],
  selectedTargetsQuery: '',
};

const reducer = (state = initialState, { type, payload }) => {
  switch (type) {
    case SELECT_OSQUERY_TABLE:
      return {
{'fraction_non_alphanumeric': 0.10202117420596728, 'fraction_numerical': 0.0038498556304138597, 'mean_word_length': 4.977011494252873, 'pattern_counts': {'":': 0, '<': 3, '<?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': '822309', 'n_tokens_mistral': 346, 'n_tokens_neox': 334, 'n_words': 72}