<commit_before>const express = require('express');
const installer = require('./installer');

const app = express();

app.get('/install/:hockeyAppId', (req, res) =>
  installer.getMyApp(req.params.hockeyAppId)
  .then(() => res.send('Done'))
);

app.listen(3000, () => {
  console.log('Bot listening on port 3000');<commit_msg>Add a route displaying connecting Android devices<commit_after>const express = require('express');
const installer = require('./installer');
const androidClient = require('./android-client');

const app = express();

app.get('/install/:hockeyAppId', (req, res) =>
  installer.getMyApp(req.params.hockeyAppId)
  .then(() => res.send('Done'))
);

app.get('/devices', (req, res) =>
  androidClient.getDevices()
  .then(devices => res.json(devices))
);

app.listen(3000, () => {
  console.log('Bot listening on port 3000');
{'fraction_non_alphanumeric': 0.19739952718676124, 'fraction_numerical': 0.018912529550827423, 'mean_word_length': 5.368421052631579, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3155697', 'n_tokens_mistral': 283, 'n_tokens_neox': 267, 'n_words': 56}