<commit_before>#!/usr/bin/env python2
import ystockquote
import datetime
from dateutil.relativedelta import relativedelta
import json
import urllib2

def get_stock_year_price(symbol,year_begin, year_end):
	'''
	Get the prices of Stock {symbol} from year_begin (int) to year_end (int)

	Returns a dictionary like:
	{"Symbol": symbol, "Prices": {"2015-1-1":..., "2015-2-1":...}}

	'''
	d = datetime.datetime(year_begin,1,1)
	end_date = datetime.datetime(year_end,1,1)
	ret = {"Symbol":{},"Prices":{}}
	# iterating over month
	while  d < end_date:<commit_msg>added symbol in returning json.<commit_after>#!/usr/bin/env python2
import ystockquote
import datetime
from dateutil.relativedelta import relativedelta
import json
import urllib2

def get_stock_year_price(symbol,year_begin, year_end):
	'''
	Get the prices of Stock {symbol} from year_begin (int) to year_end (int)

	Returns a dictionary like:
	{"Symbol": symbol, "Prices": {"2015-1-1":..., "2015-2-1":...}}

	'''
	d = datetime.datetime(year_begin,1,1)
	end_date = datetime.datetime(year_end,1,1)
	ret = {"Symbol":symbol,"Prices":{}}
	# iterating over month
	while  d < end_date:
{'fraction_non_alphanumeric': 0.1472663139329806, 'fraction_numerical': 0.031746031746031744, 'mean_word_length': 5.376404494382022, 'pattern_counts': {'":': 12, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5418321', 'n_tokens_mistral': 421, 'n_tokens_neox': 400, 'n_words': 103}