<commit_before>/*
 * QueryActions
 */

var AppDispatcher = require('../AppDispatcher');
var QueryConstants = require('../constants/QueryConstants');
var QueryApiUtils = require('../utils/QueryApiUtils');

var _ = require('lodash');

module.exports = {

  // - ViewActions 00------------------------------------------------------- //
  createQuery: function(data) {
    AppDispatcher.handleViewAction({
      type: QueryConstants.CREATE_QUERY,
      data: data
    });
  },

  updateQuery: function(id, data) {
    AppDispatcher.handleViewAction({
      type: QueryConstants.UPDATE_QUERY,
      id: id,
      data: data
    });
  },

  destroyQuery: function(id) {
    AppDispatcher.handleViewAction({
      type: QueryConstants.DESTROY_QUERY,<commit_msg>Small updates to the query actions<commit_after>/*
 * QueryActions
 */

var AppDispatcher = require('../AppDispatcher');
var QueryConstants = require('../constants/QueryConstants');

module.exports = {

  // - ViewActions --------------------------------------------------------- //
  createQuery: function(data) {
    AppDispatcher.handleViewAction({
      type: QueryConstants.CREATE_QUERY,
      data: data
    });
  },

  updateQuery: function(id, data) {
    AppDispatcher.handleViewAction({
      type: QueryConstants.UPDATE_QUERY,
      id: id,
      data: data
    });
  },

  destroyQuery: function(id) {
    AppDispatcher.handleViewAction({
      type: QueryConstants.DESTROY_QUERY,
{'fraction_non_alphanumeric': 0.1991701244813278, 'fraction_numerical': 0.0013831258644536654, 'mean_word_length': 2.4534606205250595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7248392', 'n_tokens_mistral': 413, 'n_tokens_neox': 393, 'n_words': 74}