<commit_before>'use strict';
var AV = require('leancloud-storage/live-query');

AV._config.disableCurrentUser = true;

if (process.env.LEANCLOUD_REGION) {
  AV._config.region = process.env.LEANCLOUD_REGION;
}

if (process.env.LC_API_SERVER) {
  AV.setServerURLs(process.env.LC_API_SERVER);
}

AV._sharedConfig.userAgent = 'AVOS Cloud Code Node ' + require('../package').version;
AV.Cloud.__prod = process.env.NODE_ENV === 'production' ? 1 : 0;
AV.setProduction(AV.Cloud.__prod);

module.exports = AV;
<commit_msg>fix: add LEANCLOUD_API_SERVER env support<commit_after>'use strict';
var AV = require('leancloud-storage/live-query');

AV._config.disableCurrentUser = true;

if (process.env.LEANCLOUD_REGION) {
  AV._config.region = process.env.LEANCLOUD_REGION;
}

if (process.env.LC_API_SERVER) {
  AV.setServerURLs(process.env.LC_API_SERVER);
}

if (process.env.LEANCLOUD_API_SERVER) {
  AV.setServerURLs(process.env.LEANCLOUD_API_SERVER);
}

AV._sharedConfig.userAgent = 'AVOS Cloud Code Node ' + require('../package').version;
AV.Cloud.__prod = process.env.NODE_ENV === 'production' ? 1 : 0;
AV.setProduction(AV.Cloud.__prod);

module.exports = AV;

{'fraction_non_alphanumeric': 0.15030408340573415, 'fraction_numerical': 0.0034752389226759338, 'mean_word_length': 5.329670329670329, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7017423', 'n_tokens_mistral': 415, 'n_tokens_neox': 427, 'n_words': 63}