<commit_before>var express = require('express');
var router = express.Router();
var FantasySports = require('FantasySports');

FantasySports.options({
    "accessTokenUrl": "https://api.login.yahoo.com/oauth/v2/get_request_token",
    "requestTokenUrl": "https://api.login.yahoo.com/oauth/v2/get_token",
    "oauthKey": "some key",
    "oauthSecret": "some secret",
    "version": "1.0",
    "callback": "http://ftff.craigsturgis.com/auth/oauth/callback",
    "encryption": "HMAC-SHA1"
});


/* GET users listing. */
router.get('/', function(req, res) {
  res.send('To oauth to yahoo, use /auth/oauth and callback is /auth/oauth/callback');
});

//start yahoo fantasy oauth<commit_msg>change to pull key from environment vars<commit_after>var express = require('express');
var router = express.Router();
var FantasySports = require('FantasySports');

FantasySports.options({
    "accessTokenUrl": "https://api.login.yahoo.com/oauth/v2/get_request_token",
    "requestTokenUrl": "https://api.login.yahoo.com/oauth/v2/get_token",
    "oauthKey": process.env.YAHOO_API_OAUTH_KEY,
    "oauthSecret": process.env.YAHOO_API_OAUTH_SECRET,
    "version": "1.0",
    "callback": "http://ftff.craigsturgis.com/auth/oauth/callback",
    "encryption": "HMAC-SHA1"
});


/* GET users listing. */
router.get('/', function(req, res) {
  res.send('To oauth to yahoo, use /auth/oauth and callback is /auth/oauth/callback');
});

//start yahoo fantasy oauth
{'fraction_non_alphanumeric': 0.17651146629603892, 'fraction_numerical': 0.006949270326615705, 'mean_word_length': 4.475285171102661, 'pattern_counts': {'":': 14, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5954010', 'n_tokens_mistral': 523, 'n_tokens_neox': 504, 'n_words': 95}