<commit_before>var request = require('request'),
    cheerio = require('cheerio'),
    app     = require('express')();

const URL = 'http://src.tccc.com.br/PontosDeRecarga.htm';

app.get('/', function(req, res) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "X-Requested-With");
  request(URL, function (err, resp, body) {
    if (!err) {
        var $ = cheerio.load(body);
        var info = [];

        $('table tr').map(function (i, links) {
            var text = $(links).prev();

            // the content init in line 2
            if (i > 1) {
              info.push({
                address: text.find('td').eq(3).text() + ' - ' + text.find('td').eq(1).text() + ' - ' + text.find('td').eq(0).text(),
                // district: text.find('td').eq(1).text(),
                phone: text.find('td').eq(4).text(),
                local: text.find('td').eq(2).text()
                // city: text.find('td').eq(0).text()
              })
            };
        });

    }
    res.json(info);
  });
});

/// catch 404 and forward to error handler
app.use(function(req, res, next) {
    var err = new Error('Not Found');
    err.status = 404;
    next(err);
});

module.exports = app;<commit_msg>get link of google maps<commit_after>var request = require('request'),
    cheerio = require('cheerio'),
    app     = require('express')();

const URL = 'http://src.tccc.com.br/PontosDeRecarga.htm';

app.get('/', function(req, res) {
  res.header("Access-Control-Allow-Origin", "*");
  res.header("Access-Control-Allow-Headers", "X-Requested-With");
  request(URL, function (err, resp, body) {
    if (!err) {
        var $ = cheerio.load(body);
        var info = [];

        $('table tr').map(function (i, links) {
            var text = $(links).prev();

            // the content init in line 2
            if (i > 1) {
              info.push({
                address: text.find('td').eq(3).text() + ' - ' + text.find('td').eq(1).text() + ', ' + text.find('td').eq(0).text() + '- Paraná',
                phone: text.find('td').eq(4).text(),
                link: text.find('td').eq(5).find('a').attr('href'),
                local: text.find('td').eq(2).text()
              })
            };
        });

    }
    res.json(info);
  });
});

/// catch 404 and forward to error handler
app.use(function(req, res, next) {
    var err = new Error('Not Found');
    err.status = 404;
    next(err);
});

module.exports = app;
{'fraction_non_alphanumeric': 0.21190188982710093, 'fraction_numerical': 0.01166063530357861, 'mean_word_length': 2.0678175092478424, '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': '2908917', 'n_tokens_mistral': 841, 'n_tokens_neox': 808, 'n_words': 156}