<commit_before>import VeloAPI
import os
import sys


def get_file(filename, user, username, password):
    velo_api = VeloAPI.Velo()
    if not velo_api.isJVMStarted():
        velo_api.start_jvm()
    rs = velo_api.init_velo(username, password)
    path = os.getcwd() + '/userdata/' + user
    print 'path to file ', path
    if not os.path.isdir(path):
        os.makedirs(path)

    if velo_api.download_file(filename, path):
        content = open(path + file_to_get['filename']).read()
        print content
    else:
        return -1

get_file(sys.argv[1], sys.argv[2], sys.argv[3])
<commit_msg>working with get_file<commit_after>import VeloAPI
import os
import sys


def get_file(filename, user, username, password):
    velo_api = VeloAPI.Velo()
    if not velo_api.isJVMStarted():
        velo_api.start_jvm()
    rs = velo_api.init_velo(username, password)
    path = os.getcwd() + '/userdata/' + user
    print 'path to file ', path
    if not os.path.isdir(path):
        os.makedirs(path)

    if velo_api.download_file(filename, path):
        content = open(path + file_to_get['filename']).read()
        print content
    else:
        return -1


for arg in sys.argv:
	print arg
	
get_file(sys.argv[1], sys.argv[2], sys.argv[3])

{'fraction_non_alphanumeric': 0.12510024057738572, 'fraction_numerical': 0.006415396952686447, 'mean_word_length': 3.051948051948052, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1265976', 'n_tokens_mistral': 452, 'n_tokens_neox': 445, 'n_words': 102}