<commit_before>var App = require("./../core");
var basePath = '/api';
var request = require('superagent');

var apiBaseUrl = 'https://onevone-demo.herokuapp.com'  || 'http://localhost:5000';

module.exports = function() {
	App.Express.get(basePath + "/test", function (req, res) {
		res.send(process.env.APIBASEURL || 'localhost:3000');
	});

	App.Express.get(basePath + "/searchSummoner/:summonerName", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/summoner/name/' + req.params.summonerName)
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});	

	App.Express.get(basePath + "/summoner/:id", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/summoner/' + req.params.id)
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});	

	App.Express.get(basePath + "/tournamnet/:id", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/tournament/' + req.params.id)
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});

	App.Express.get(basePath + "/tournamnet/:id/standings", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/tournament/' + req.params.id + '/standings')
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});
};


<commit_msg>api now uses APIBASEURL systemavriable if available<commit_after>var App = require("./../core");
var basePath = '/api';
var request = require('superagent');

var apiBaseUrl = process.env.APIBASEURL  || 'http://localhost:5000';

module.exports = function() {
	App.Express.get(basePath + "/searchSummoner/:summonerName", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/summoner/name/' + req.params.summonerName)
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});	

	App.Express.get(basePath + "/summoner/:id", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/summoner/' + req.params.id)
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});	

	App.Express.get(basePath + "/tournamnet/:id", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/tournament/' + req.params.id)
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});

	App.Express.get(basePath + "/tournamnet/:id/standings", function (req, result) {
		request
	      .get(apiBaseUrl + '/public_client_api/tournament/' + req.params.id + '/standings')
	      .end(function(err, res){
	        result.send(res.body);
	      }); 
	});
};



{'fraction_non_alphanumeric': 0.1807823775161413, 'fraction_numerical': 0.004557538928978352, 'mean_word_length': 3.0030395136778116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4460298', 'n_tokens_mistral': 966, 'n_tokens_neox': 900, 'n_words': 141}