<commit_before>var express = require('express');
var DataStore = require('./regard-data-store.js');

var router = express.Router();
var dataStore = new DataStore('adobe', 'brackets');

router.use(function(req, res, next) {
  dataStore.runQuery('Adobe%20Brackets%20Extension').then(function (result) {
    var chartData = JSON.parse(result).Results.map(function(chartElement) {
      return {
        name: chartElement['Extension'],
        value: chartElement['EventCount']<commit_msg>use UserIds instead of EventCount<commit_after>var express = require('express');
var DataStore = require('./regard-data-store.js');

var router = express.Router();
var dataStore = new DataStore('adobe', 'brackets');

router.use(function(req, res, next) {
  dataStore.runQuery('Adobe%20Brackets%20Extension').then(function (result) {
    var chartData = JSON.parse(result).Results.map(function(chartElement) {
      return {
        name: chartElement['Extension'],
        value: chartElement['UserIds']
{'fraction_non_alphanumeric': 0.15166835187057634, 'fraction_numerical': 0.008088978766430738, 'mean_word_length': 5.226415094339623, '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': '2737746', 'n_tokens_mistral': 297, 'n_tokens_neox': 288, 'n_words': 57}