<commit_before>'use strict';

var googleTrends = require('./lib/google-trends-api.js');
var util = require('util');

// 'Numbers represent search interest relative to the highest point on the chart for the given region and time. A value of 100 is the peak popularity for the term. A value of 50 means that the term is half as popular. Likewise a score of 0 means the term was less than 1% as popular as the peak.'

// must be an object, {keyword: 'SOME KEYWORD'}
// object optionally contains {startTime: new Date()} and/or {endTime: new Date()}
// object optionally contains {geo: 'some geocode string'} geocode string example 'US' or 'US-CA'
/*googleTrends.trendData({keyword: '<NAME>', startTime: new Date('2017-02-01'), endTime: new Date('2017-02-06')})
.then((res) => {
  console.log('this is res', res);
})
.catch((err) => {
  console.log('got the error', err);
})*/


// 'See in which location your term was most popular during the specified time frame. Values are calculated on a scale from 0 to 100, where 100 is the location with the most popularity as a fraction of total searches in that location, a value of 50 indicates a location which is half as popular, and a value of 0 indicates a location where the term was less than 1% as popular as the peak. <p><p> <b>Note:</b> A higher value means a higher proportion of all queries, not a higher absolute query count. So a tiny country where 80% of the queries are for "bananas" will get twice the score of a giant country where only 40% of the queries are for "bananas".'
// must be an object, {keyword: 'SOME KEYWORD'}
// object optionally contains {startTime: new Date()} and/or {endTime: new Date()}
// object optionally contains {geo: 'some geocode string'} geocode string example 'US' or 'US-CA' or 'US-CA-800'
googleTrends.comparedGeo({keyword: '<NAME>', startTime: new Date('2017-02-01'), endTime: new Date('2017-02-06')})
.then((res) => {
  console.log('this is res', res);
})
.catch((err) => {<commit_msg>resolving merge conflict<commit_after>'use strict';

var googleTrends = require('./lib/google-trends-api.js');
var util = require('util');

// 'Numbers represent search interest relative to the highest point on the chart for the given region and time. A value of 100 is the peak popularity for the term. A value of 50 means that the term is half as popular. Likewise a score of 0 means the term was less than 1% as popular as the peak.'

// must be an object, {keyword: 'SOME KEYWORD'}
// object optionally contains {startTime: new Date()} and/or {endTime: new Date()}
// object optionally contains {geo: 'some geocode string'} geocode string example 'US' or 'US-CA-800'
/*googleTrends.trendData({keyword: '<NAME>', startTime: new Date('2017-02-01'), endTime: new Date('2017-02-06')})
.then((res) => {
  console.log('this is res', res);
})
.catch((err) => {
  console.log('got the error', err);
})*/


// 'See in which location your term was most popular during the specified time frame. Values are calculated on a scale from 0 to 100, where 100 is the location with the most popularity as a fraction of total searches in that location, a value of 50 indicates a location which is half as popular, and a value of 0 indicates a location where the term was less than 1% as popular as the peak. <p><p> <b>Note:</b> A higher value means a higher proportion of all queries, not a higher absolute query count. So a tiny country where 80% of the queries are for "bananas" will get twice the score of a giant country where only 40% of the queries are for "bananas".'
// must be an object, {keyword: 'SOME KEYWORD'}
// object optionally contains {startTime: new Date()} and/or {endTime: new Date()}
// object optionally contains {geo: 'some geocode string'} geocode string example 'US' or 'US-CA' or 'US-CA-800'
googleTrends.comparedGeo({keyword: '<NAME>', startTime: new Date('2017-02-01'), endTime: new Date('2017-02-06')})
.then((res) => {
  console.log('this is res', res);
})
.catch((err) => {
{'fraction_non_alphanumeric': 0.12288670199343932, 'fraction_numerical': 0.029523088569265707, 'mean_word_length': 4.342318059299191, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, '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': '285132', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1131, 'n_words': 566}