<commit_before>/**
 * Functions to build/cache match object
 **/
const config = require('../config');
const async = require('async');
const queries = require('./queries');
const compute = require('../util/compute');
const utility = require('../util/utility');
const constants = require('dotaconstants');
const cassandra = require('../store/cassandra');
const redis = require('../store/redis');
const db = require('../store/db');
  
const computeMatchData = compute.computeMatchData;
const deserialize = utility.deserialize;
const buildReplayUrl = utility.buildReplayUrl;

function getMatch(matchId, cb) {
  function getMatchData(matchId, cb) {
    cassandra.execute('SELECT * FROM matches where match_id = ?', [Number(matchId)], {
      prepare: true,
      fetchSize: 10,
      autoPage: true,
    }, (err, result) => {
      if (err) {
        return cb(err);
      }
      result = result.rows.map(m =><commit_msg>fix lint<commit_after>/**
 * Functions to build/cache match object
 **/
const config = require('../config');
const async = require('async');
const queries = require('./queries');
const compute = require('../util/compute');
const utility = require('../util/utility');
const constants = require('dotaconstants');
const cassandra = require('../store/cassandra');
const redis = require('../store/redis');
const db = require('../store/db');

const computeMatchData = compute.computeMatchData;
const deserialize = utility.deserialize;
const buildReplayUrl = utility.buildReplayUrl;

function getMatch(matchId, cb) {
  function getMatchData(matchId, cb) {
    cassandra.execute('SELECT * FROM matches where match_id = ?', [Number(matchId)], {
      prepare: true,
      fetchSize: 10,
      autoPage: true,
    }, (err, result) => {
      if (err) {
        return cb(err);
      }
      result = result.rows.map(m =>
{'fraction_non_alphanumeric': 0.1620142309797482, 'fraction_numerical': 0.0021893814997263274, 'mean_word_length': 3.8617021276595747, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2182704', 'n_tokens_mistral': 544, 'n_tokens_neox': 535, 'n_words': 137}