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

app.all('/token.json', function(req, res){



  var signature = req.query.signature;
  var timestamp = req.query.timestamp;
  var nonce = req.query.nonce;

  var fromUsername = req.query.fromUsername;
  var ToUserName = req.query.ToUserName;
  var Content = req.query.Content;
  var time = new Date().getTime();

  console.log("signature:"+signature);
  console.log("timestamp:"+timestamp);
  console.log("nonce:"+nonce);

  console.log("fromUsername:"+fromUsername);
  console.log("ToUserName:"+ToUserName);
  console.log("Content:"+Content);
  console.log("time:"+time);

  var body = 'Hello World';
  res.setHeader('Content-Type', 'text/plain');


  var textTpl = "<xml>"+
    "  <ToUserName><![CDATA["+ToUserName+"]]></ToUserName>"+
  "  <FromUserName><![CDATA["+fromUsername+"]]></FromUserName>"+
  "  <CreateTime>"+time+"</CreateTime>"+
  " <MsgType><![CDATA[text]]></MsgType>"+
  " <Content><![CDATA[Welcome to wechat world!]]></Content>"+
  "<FuncFlag>0</FuncFlag>"+
  "</xml>";

  res.setHeader('Content-Length', Buffer.byteLength(textTpl));

  res.end(textTpl);


<commit_msg>first commitfirst commit<commit_after>var express = require('express');
var app = express();

app.all('/token.json', function(req, res){



  var signature = req.query.signature;
  var timestamp = req.query.timestamp;
  var nonce = req.query.nonce;

  var fromUsername = req.query.fromUsername;
  var ToUserName = req.query.ToUserName;
  var Content = req.query.Content;
  var time = new Date().getTime();

  console.log("signature:"+signature);
  console.log("timestamp:"+timestamp);
  console.log("nonce:"+nonce);

  console.log("fromUsername:"+fromUsername);
  console.log("ToUserName:"+ToUserName);
  console.log("Content:"+Content);
  console.log("time:"+time);

  var body = 'Hello World';
  res.setHeader('Content-Type', 'text/plain');


  var textTpl = "<xml>"+
    "  <ToUserName><![CDATA["+ToUserName+"]]></ToUserName>"+
  "  <FromUserName><![CDATA["+fromUsername+"]]></FromUserName>"+
  "  <CreateTime>"+time+"</CreateTime>"+
  " <MsgType><![CDATA[text]]></MsgType>"+
  " <Content><![CDATA[Welcome to wechat world!]]></Content>"+
  "<FuncFlag>0</FuncFlag>"+
  "</xml>";

  res.setHeader('Content-Length', Buffer.byteLength(textTpl));
  console.log(textTpl);
  res.end(textTpl);



{'fraction_non_alphanumeric': 0.20783645655877342, 'fraction_numerical': 0.0008517887563884157, 'mean_word_length': 5.280748663101604, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1096444', 'n_tokens_mistral': 835, 'n_tokens_neox': 798, 'n_words': 123}