{"size": 450, "ext": "js", "max_stars_repo_path": "test/helpers/integration/index.js", "max_stars_repo_name": "DoSomething/slothie", "max_stars_repo_stars_event_min_datetime": "2017-09-07T21:45:52.000Z", "max_stars_repo_stars_event_max_datetime": "2018-03-13T15:39:26.000Z", "max_issues_repo_path": "test/helpers/integration/index.js", "max_issues_repo_name": "DoSomething/gamb", "max_issues_repo_issues_event_min_datetime": "2016-08-10T14:56:37.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T11:22:24.000Z", "max_forks_repo_path": "test/helpers/integration/index.js", "max_forks_repo_name": "DoSomething/slothie", "max_forks_repo_forks_event_min_datetime": "2020-01-11T04:03:57.000Z", "max_forks_repo_forks_event_max_datetime": "2020-01-11T04:03:57.000Z"}
{"max_stars_count": 2, "max_issues_count": 419, "max_forks_count": 1, "avg_line_length": 25.0, "max_line_length": 100, "alphanum_fraction": 0.7133333333}
'use strict';

// Require env variables
require('dotenv').config();

const hooks = require('./hooks');
const routes = require('./routes');

// config
const basicAuthConfig = require('../../../config/lib/middleware/authenticate');

module.exports.hooks = hooks;
module.exports.routes = routes;

module.exports.getAuthKey = function getAuthKey() {
  return new Buffer(`${basicAuthConfig.auth.name}:${basicAuthConfig.auth.pass}`).toString('base64');
};
