<commit_before>'use strict';

var stringUtils = require('../utils/string');

var getComId = function(project) {

  var fs   = require('fs');
  var path = require('path');

  var configPath = path.join(project.root, 'cordova', 'config.xml');
  var configFile = fs.readFileSync(configPath, { encoding: 'utf-8'});

  var idRegex = /id=\"([\w\.]+)\"/;
  var matches = configFile.match(idRegex);

  if(matches.length) {
    return matches[1];
  }<commit_msg>fix regex parse of id<commit_after>'use strict';

var stringUtils = require('../utils/string');

var getComId = function(project) {

  var fs   = require('fs');
  var path = require('path');

  var configPath = path.join(project.root, 'cordova', 'config.xml');
  var configFile = fs.readFileSync(configPath, { encoding: 'utf-8'});

  var idRegex = /id=\"([\w\-\.]+)\"/;
  var matches = configFile.match(idRegex);

  if(matches.length) {
    return matches[1];
  }
{'fraction_non_alphanumeric': 0.19213973799126638, 'fraction_numerical': 0.004366812227074236, 'mean_word_length': 3.9037433155080214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5265806', 'n_tokens_mistral': 320, 'n_tokens_neox': 308, 'n_words': 70}