<commit_before>const request = require('superagent')
const formatter = require('./formatter.js')
const target = 'https://www.reddit.com/api/v1/'
let oauthTarget = 'https://oauth.reddit.com/api/'

let reddit = function(obj){
	let self = this
	this.useragent = obj.useragent || ''
	this.username = obj.username
	this.password = <PASSWORD>
	this.clientID = obj.clientID
	this.clientSecret = obj.clientSecret
}

reddit.prototype.getCurrentUser = function(){
	let self = this
	return new Promise((resolve, reject) =>{
		getToken(self)
			.then(token =>{
				self.bearer = token
				request
					.get(oauthTarget + 'v1/me')
					.set('Authorization', 'bearer ' + self.bearer)<commit_msg>Useragent is no longer compulsory<commit_after>const request = require('superagent')
const formatter = require('./formatter.js')
const target = 'https://www.reddit.com/api/v1/'
let oauthTarget = 'https://oauth.reddit.com/api/'

let reddit = function(obj){
	let self = this
	this.useragent = (obj.useragent === undefined) ? '' : obj.useragent
	this.username = obj.username
	this.password = <PASSWORD>
	this.clientID = obj.clientID
	this.clientSecret = obj.clientSecret
}

reddit.prototype.getCurrentUser = function(){
	let self = this
	return new Promise((resolve, reject) =>{
		getToken(self)
			.then(token =>{
				self.bearer = token
				request
					.get(oauthTarget + 'v1/me')
					.set('Authorization', 'bearer ' + self.bearer)
{'fraction_non_alphanumeric': 0.15003538570417552, 'fraction_numerical': 0.0028308563340410475, 'mean_word_length': 4.086330935251799, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4838247', 'n_tokens_mistral': 495, 'n_tokens_neox': 467, 'n_words': 99}