<commit_before>import Rollbar from 'rollbar';

const rollbar = new Rollbar({
  accessToken: 'POST_CLIENT_ITEM_TOKEN',
  captureUncaught: false,
  captureUnhandledRejections: false
})

module.exports = function tool(x) {
  rollbar.log('foobar got data', {x})
}<commit_msg>Use the new noconflict build to show an example of how to embed rollbar.js into a library which will not cause any conflicts with another install of Rollbar @rokob<commit_after>// Use noconflict so we can embed rollbar.js in this library
var Rollbar = require('rollbar/dist/rollbar.noconflict.umd');

const rollbar = new Rollbar({
  accessToken: 'POST_CLIENT_ITEM_TOKEN',
  captureUncaught: true,
  captureUnhandledRejections: true
})

module.exports = function tool(x) {
  rollbar.log('foobar got data', {x})
}
{'fraction_non_alphanumeric': 0.09718670076726342, 'fraction_numerical': 0.0, 'mean_word_length': 5.418032786885246, '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': '1435628', 'n_tokens_mistral': 252, 'n_tokens_neox': 253, 'n_words': 80}