<commit_before>const path = require('path')
const moduleAlias = require('module-alias')
moduleAlias.addAlias('../service', (fromPath, request, alias) => {
  // @hap-toolkit/packager/lib/router/routes/index.js
  if (fromPath.indexOf('/@hap-toolkit') !== -1 && fromPath.indexOf('packager') !== -1) {
    return path.resolve(__dirname, 'service.js')
  }
  return path.join(fromPath, '..', request)
})
require('@hap-toolkit/server').launchServer({})<commit_msg>quickapp: 更新serve判断逻辑 windows平台 "/" 为 "\"<commit_after>const path = require('path')
const moduleAlias = require('module-alias')
moduleAlias.addAlias('../service', (fromPath, request, alias) => {
  // @hap-toolkit/packager/lib/router/routes/index.js
  if (fromPath.indexOf('@hap-toolkit') !== -1 && fromPath.indexOf('packager') !== -1) {
    return path.resolve(__dirname, 'service.js')
  }
  return path.join(fromPath, '..', request)
})
require('@hap-toolkit/server').launchServer({})
{'fraction_non_alphanumeric': 0.2104144527098831, 'fraction_numerical': 0.004250797024442083, 'mean_word_length': 5.077419354838709, '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': '4606694', 'n_tokens_mistral': 324, 'n_tokens_neox': 328, 'n_words': 49}