<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()

# The following two calls are equivalent:
rl = repository_service_mgr.get_repository_lookup_session()
all_repos = rl.get_repositories()
all_repos = repository_service_mgr.get_repositories()
print "\nTotal repositories: ", all_repos.available()
test_repo = None
for each in all_repos:
	test_repo = each
d =  test_repo.get_id()
import ipdb; ipdb.set_trace()
rl = repository_service_mgr.get_asset_lookup_session_for_repository(d)<commit_msg>Impl test code for read_assets updated.<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()

# The following two calls are equivalent:
rl = repository_service_mgr.get_repository_lookup_session()
all_repos = rl.get_repositories()
all_repos = repository_service_mgr.get_repositories()
print "\nTotal repositories: ", all_repos.available()
test_repo = None
for each in all_repos:
	test_repo = each
d =  test_repo.get_id()
# import ipdb; ipdb.set_trace()
grp_assets = test_repo.get_assets()
print "\n Total Assets: ", grp_assets.available()

# rl = repository_service_mgr.get_asset_lookup_session_for_repository(d)
{'fraction_non_alphanumeric': 0.14625681705503224, 'fraction_numerical': 0.0009915716410510659, 'mean_word_length': 8.342592592592593, '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': '6943943', 'n_tokens_mistral': 661, 'n_tokens_neox': 638, 'n_words': 129}