<commit_before>import urllib2
import json

api_call = 'https://www.bitstamp.net/api/ticker/'

def query():
    f = urllib2.urlopen(api_call)
    json_string = f.read()
    f.close()
    return json.loads(json_string)

def get_btc_last(l):
    json = query()
    return 'Last BTC price: ' + json['last']

def get_btc_high(l):
    json = query()
    return 'Last 24 hours price high: ' + json['high']

def get_btc_low(l):
    json = query()
    return 'Last 24 hours price low: ' + json['low']

def get_btc_volume(l):
    json = query()
    return 'Last 24 hours volume: ' + json['volume']

def get_btc_vwap(l):
    json = query()
    return 'Last 24 hours volume weighted average price: ' + json['vwap']


if __name__ == '__main__':
    print get_btc_last([])
    print get_btc_high([])
    print get_btc_low([])
    print get_btc_volume([])
    print get_btc_vwap([])<commit_msg>Right btc file<commit_after>import urllib2
import json

api_call = 'https://www.bitstamp.net/api/ticker/'

def query():
    f = urllib2.urlopen(api_call)
    json_string = f.read()
    f.close()
    return json.loads(json_string)

def get_btc_info(l):
    json = query()
    return 'Last price: {0}. In last 24hr: price high: {1}, price low: {2}, volume: {3}, volume weighted average price: {4}'.format(json['last'], json['high'], json['low'], json['volume'], json['vwap'])


if __name__ == '__main__':
    print get_btc_info([])
{'fraction_non_alphanumeric': 0.15696022727272727, 'fraction_numerical': 0.013494318181818182, 'mean_word_length': 3.744107744107744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4953362', 'n_tokens_mistral': 539, 'n_tokens_neox': 525, 'n_words': 131}