<commit_before>class GetCharityData {
	getData(){
		var CHARITY_DATA = [
			{amount: '41,234', month: 'January', year: '2015', name: 'Charity:Water', description: 'Cool description that was so hard to come up with. Hence I ended up writing some random text that dosent make much text' ,imageSource: 'https://s3.amazonaws.com/moveit-multunus/charity_resources/March2015/GiveIndia_education_march_2015.png'},
			{amount: '41,234', month: 'February',  year: '2015', name: 'Charity:Water', description: 'Cooler description hat was so hard to come up with. Hence I ended up writing some random text that dosent make much text',imageSource: 'https://s3.amazonaws.com/moveit-multunus/charity_resources/April2015/charity_water+Apr+2015.png'},
			{amount: '21,234', month: 'March',  year: '2015', name: 'Charity:Water', description: 'Coolest description hat was so hard to come up with. Hence I ended up writing some random text that dosent make much text',imageSource: 'https://s3.amazonaws.com/moveit-multunus/charity_resources/April2015/charity_water+Apr+2015.png'}
		];
		return CHARITY_DATA ;
	}
}

export default new GetCharityData();<commit_msg>Implement service to fetch charity data from spreadsheet<commit_after>class GetCharityData {
  getData(){
    var CHARITY_DATA_ARRAY = [];
    var spreadsheetID = "1f1tFr7y62QS7IRWOC2nNR5HWsTO99Bna3d0Xv1PTPiY";
    var url = "https://spreadsheets.google.com/feeds/list/" + spreadsheetID + "/od6/public/values?alt=json";
    fetch(url).then((response) => response.json())
      .then((responseText) => {
        entry = responseText.feed.entry;
        entry.forEach(function(element){
          CHARITY_DATA_ARRAY.push({amount: element.gsx$charityamount.$t, month: element.gsx$month.$t, year: element.gsx$year.$t, name: element.gsx$charityname.$t, description: element.gsx$charitydesc.$t, imageSource: element.gsx$charityimage.$t });
        });
      })
      .catch((error) => {
        console.warn(error);
      });
    return CHARITY_DATA_ARRAY;
  }
}
export default new GetCharityData();
{'fraction_non_alphanumeric': 0.13261296660117877, 'fraction_numerical': 0.03339882121807466, 'mean_word_length': 4.72191011235955, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '3197803', 'n_tokens_mistral': 715, 'n_tokens_neox': 648, 'n_words': 156}