<commit_before>var oauth = require('oauth');
var _     = require('lodash');
var async = require('async');

var db = require('../db/content-provider');
var timelineUtils = require('../utils/timeline-utils');

require('dotenv').load();

var _oauth = new oauth.OAuth(
    null,
    null,
    process.env.CONSUMER_KEY_BITBUCKET,
    process.env.CONSUMER_SECRET_BITBUCKET,
    '1.0',
    null,
    'HMAC-SHA1'
);

_oauth.get(
    'https://bitbucket.org/api/2.0/repositories/jrm2k6',
    null,
    null,
    function(err, data, res) {
        if (err) {
            console.log(err);
        }<commit_msg>replace hardcoded username by username provided by env file<commit_after>var oauth = require('oauth');
var _     = require('lodash');
var async = require('async');

var db = require('../db/content-provider');
var timelineUtils = require('../utils/timeline-utils');

require('dotenv').load();

var _oauth = new oauth.OAuth(
    null,
    null,
    process.env.CONSUMER_KEY_BITBUCKET,
    process.env.CONSUMER_SECRET_BITBUCKET,
    '1.0',
    null,
    'HMAC-SHA1'
);

_oauth.get(
    'https://bitbucket.org/api/2.0/repositories/' + process.env.BITBUCKET_USERNAME,
    null,
    null,
    function(err, data, res) {
        if (err) {
            console.log(err);
        }
{'fraction_non_alphanumeric': 0.16129032258064516, 'fraction_numerical': 0.00944138473642801, 'mean_word_length': 2.9626168224299065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '896329', 'n_tokens_mistral': 469, 'n_tokens_neox': 461, 'n_words': 81}