<commit_before>#!/usr/bin/env python

import sys
import os
from taca.utils.statusdb import ProjectSummaryConnection
from taca.utils.config import load_config

if len(sys.argv) == 1:
    sys.exit('Please provide a project name')
prj = sys.argv[1]

statusdb_config = os.getenv('STATUS_DB_CONFIG')
conf = load_config(statusdb_config)
conf = conf.get('statusdb')

pcon = ProjectSummaryConnection(config=conf)
prj_obj = pcon.get_entry(prj)
prj_samples = prj_obj.get('samples',{})

print("NGI_id\tUser_id")
for sample in sorted(prj_samples.keys()):
    user_name = prj_samples[sample].get('customer_name','')
    print("{}\t{}".format(sample, user_name))<commit_msg>Neater formatting<commit_after>#!/usr/bin/env python

import sys
import os
from taca.utils.statusdb import ProjectSummaryConnection
from taca.utils.config import load_config

if len(sys.argv) == 1:
    sys.exit('Please provide a project name')
prj = sys.argv[1]

statusdb_config = os.getenv('STATUS_DB_CONFIG')
conf = load_config(statusdb_config).get('statusdb')

pcon = ProjectSummaryConnection(config=conf)
prj_obj = pcon.get_entry(prj)
prj_samples = prj_obj.get('samples',{})

print("NGI_id\tUser_id")
for sample in sorted(prj_samples.keys()):
    user_name = prj_samples[sample].get('customer_name','')
    print("{}\t{}".format(sample, user_name))
{'fraction_non_alphanumeric': 0.14253048780487804, 'fraction_numerical': 0.003048780487804878, 'mean_word_length': 6.418079096045198, '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': '69695', 'n_tokens_mistral': 467, 'n_tokens_neox': 459, 'n_words': 88}