<commit_before>from dlkit_runtime import RUNTIME, PROXY_SESSION
condition = PROXY_SESSION.get_proxy_condition()

# getting req object
from dlkit_gstudio.gstudio_user_proxy import GStudioRequest
req_obj = GStudioRequest(id=1)

condition.set_http_request(req_obj)
proxy = PROXY_SESSION.get_proxy(condition)


#================================================== GROUP as REPOSITORY ==================
repository_service_mgr = RUNTIME.get_service_manager('REPOSITORY', proxy=proxy)

# import ipdb; ipdb.set_trace()
all_repos = repository_service_mgr.get_repositories()
print "\nTotal repositories: ", all_repos.len()
test_repo = None
for each in all_repos:
	print "\t- ", each.get_display_name().get_text()
	test_repo = each
# al = repository_service_mgr.get_asset_lookup_session()

al_repo = repository_service_mgr.get_asset_lookup_session_for_repository(test_repo.get_repository_id())
al_repo.get_repository_id
al_repo.get_repository_id()
test_asset = repository_service_mgr.get_asset(ObjectId('57926e16a6127d01f8e85946'))


# asset_by_id = repository_service_mgr.get_asset_content(ObjectId('57926e16a6127d01f8e85946'))
# print "\nAsset found:  ", asset_by_id



# ============================================================= try outs

# repo_obj = all_repos.next()
# print repo_obj.get_display_name().get_text()
# print repo_obj.get_description().get_text()

# from dlkit_runtime.proxy_example import TestRequest
# dummy_request = TestRequest(username='administrator',
#                             authenticated=True)
<commit_msg>get_asset arg must be osid id not objectid<commit_after>from dlkit_runtime import RUNTIME, PROXY_SESSION
condition = PROXY_SESSION.get_proxy_condition()

# getting req object
from dlkit_gstudio.gstudio_user_proxy import GStudioRequest
req_obj = GStudioRequest(id=1)

condition.set_http_request(req_obj)
proxy = PROXY_SESSION.get_proxy(condition)


#================================================== GROUP as REPOSITORY ==================
repository_service_mgr = RUNTIME.get_service_manager('REPOSITORY', proxy=proxy)

# import ipdb; ipdb.set_trace()
all_repos = repository_service_mgr.get_repositories()
print "\nTotal repositories: ", all_repos.len()
test_repo = None
for each in all_repos:
	print "\t- ", each.get_display_name().get_text()
	test_repo = each
# al = repository_service_mgr.get_asset_lookup_session()

al_repo = repository_service_mgr.get_asset_lookup_session_for_repository(test_repo.get_repository_id())
al_repo.get_repository_id
al_repo.get_repository_id()

# test_asset = repository_service_mgr.get_asset(ObjectId('57926e16a6127d01f8e85946'))


# asset_by_id = repository_service_mgr.get_asset_content(ObjectId('57926e16a6127d01f8e85946'))
# print "\nAsset found:  ", asset_by_id



# ============================================================= try outs

# repo_obj = all_repos.next()
# print repo_obj.get_display_name().get_text()
# print repo_obj.get_description().get_text()

# from dlkit_runtime.proxy_example import TestRequest
# dummy_request = TestRequest(username='administrator',
#                             authenticated=True)

{'fraction_non_alphanumeric': 0.16903684550743375, 'fraction_numerical': 0.025210084033613446, 'mean_word_length': 7.5497237569060776, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2631313', 'n_tokens_mistral': 1052, 'n_tokens_neox': 987, 'n_words': 155}