<commit_before>var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var request = require('request');
var LINE_API_REPLY = "https://api.line.me/v2/bot/message/reply";
var YOUR_CHANNEL_ACCESS_TOKEN = process.env.CHANNEL_ACCESS_TOKEN ;//your acccess token
var CHANNEL_ACCESS_TOKEN = "Bearer " + YOUR_CHANNEL_ACCESS_TOKEN ;
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
app.use(bodyParser.json())

app.post('/linego', (req, res) => {
  console.log(req);
  console.log(req.body);
  res.send('Hello World')
  const result = req.body.events;
  for(var i=0; i<result.length; i++){
    const type = result[i]['type'];
    console.log('receive: ', type);
    if(type==='message'){
      sendTextMessage(result[i].message.text, result[i]['replyToken']);
    }
  }
});

function sendTextMessage(text , token) {
  console.log(text);
  console.log(token);
  const data = {
    replyToken: token,
    messages: [{
    "type": "text",
    "text": text
  }]
};
  request({
    url: LINE_API_REPLY,<commit_msg>[master] 1. remove request log<commit_after>var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var request = require('request');
var LINE_API_REPLY = "https://api.line.me/v2/bot/message/reply";
var YOUR_CHANNEL_ACCESS_TOKEN = process.env.CHANNEL_ACCESS_TOKEN ;//your acccess token
var CHANNEL_ACCESS_TOKEN = "Bearer " + YOUR_CHANNEL_ACCESS_TOKEN ;
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
app.use(bodyParser.json())

app.post('/linego', (req, res) => {
  console.log(req.body);
  res.send('Hello World')
  const result = req.body.events;
  for(var i=0; i<result.length; i++){
    const type = result[i]['type'];
    console.log('receive: ', type);
    if(type==='message'){
      sendTextMessage(result[i].message.text, result[i]['replyToken']);
    }
  }
});

function sendTextMessage(text , token) {
  console.log(text);
  console.log(token);
  const data = {
    replyToken: token,
    messages: [{
    "type": "text",
    "text": text
  }]
};
  request({
    url: LINE_API_REPLY,
{'fraction_non_alphanumeric': 0.183541377716135, 'fraction_numerical': 0.006010171058714748, 'mean_word_length': 4.4646464646464645, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1253951', 'n_tokens_mistral': 753, 'n_tokens_neox': 742, 'n_words': 142}