<commit_before>"""
The main file that will evolve into our trading library
"""
from datetime import datetime, timedelta
import v20


OANDA_ACCESS_TOKEN = "01d4e6de4fc1246d2bfde02450871fe6-0ae159e87f2cc523a9116d9b535e85fa"
OANDA_ACCOUNT_ID = '101-001-6963280-001' #put your access id here 

def main():
    print("------ System online -------", datetime.now())
    latest_price_time = (datetime.utcnow() - timedelta(seconds=15)).isoformat('T')+'Z'

    api = v20.Context(
            'api-fxpractice.oanda.com',
            '443',
            token=OANDA_ACCESS_TOKEN)

    response = api.pricing.get(
                    OANDA_ACCOUNT_ID,
                    instruments='EUR_USD',
                    since=latest_price_time,
                    includeUnitsAvailable=False)

    print(response.reason + latest_price_time)
    
    prices = response.get("prices", 200)
    if len(prices):
        buy_price = prices[0].bids[0].price 

        print("Buy at" + str(buy_price))

        response = api.order.market(
            OANDA_ACCOUNT_ID,
            instrument='EUR_USD',
            units=5000)

        print("Trading id" + str(response.get('orderFillTransaction').id))
        print("Account Balance" + str(response.get('orderFillTransaction').accountBalance))
        print("Price" + str(response.get('orderFillTransaction').price))
        
    else:
        print(response.reason)

if __name__ == "__main__":
    main()<commit_msg>print formatting fix<commit_after>"""
The main file that will evolve into our trading library
"""
from datetime import datetime, timedelta
import v20


OANDA_ACCESS_TOKEN = "01d4e6de4fc1246d2bfde02450871fe6-0ae159e87f2cc523a9116d9b535e85fa"
OANDA_ACCOUNT_ID = '101-001-6963280-001' #put your access id here 

def main():
    print("------ System online -------", datetime.now())
    latest_price_time = (datetime.utcnow() - timedelta(seconds=15)).isoformat('T')+'Z'

    api = v20.Context(
            'api-fxpractice.oanda.com',
            '443',
            token=<PASSWORD>_ACCESS_TOKEN)

    response = api.pricing.get(
                    OANDA_ACCOUNT_ID,
                    instruments='EUR_USD',
                    since=latest_price_time,
                    includeUnitsAvailable=False)

    print(response.reason + latest_price_time)
    
    prices = response.get("prices", 200)
    if len(prices):
        buy_price = prices[0].bids[0].price 

        print("Buy at " + str(buy_price))

        response = api.order.market(
            OANDA_ACCOUNT_ID,
            instrument='EUR_USD',
            units=5000)

        print("Trading id: " + str(response.get('orderFillTransaction').id))
        print("Account Balance: " + str(response.get('orderFillTransaction').accountBalance))
        print("Price: " + str(response.get('orderFillTransaction').price))
        
    else:
        print(response.reason)

if __name__ == "__main__":
    main()
{'fraction_non_alphanumeric': 0.12487100103199174, 'fraction_numerical': 0.05022359821121431, 'mean_word_length': 2.5680981595092023, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, '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': '3986953', 'n_tokens_mistral': 1018, 'n_tokens_neox': 908, 'n_words': 157}