<commit_before>split_args "$@"

REPOSITORY_LISTING=$(awscli ecr describe-repositories --output text --query "sort_by(repositories,&repositoryName)[$(auto_filter repositoryName -- $FIRST_RESOURCE)].[repositoryName]")
select_one Repository "$REPOSITORY_LISTING"

FILTER=$(auto_filter imageDigest "(imageTags||[''])|join(',',@)" -- $SECOND_RESOURCE)

awscli ecr describe-images --repository-name $SELECTED --output table --query "imageDetails[$FILTER].{\"1.Digest\":imageDigest, \"2.Tags\":join(', ', sort(imageTags||[''])),\"3.ImageSize(Bytes)\":imageSizeInBytes}"
<commit_msg>Add timestamp for ecr images<commit_after>split_args "$@"

REPOSITORY_LISTING=$(awscli ecr describe-repositories --output text --query "sort_by(repositories,&repositoryName)[$(auto_filter repositoryName -- $FIRST_RESOURCE)].[repositoryName]")
select_one Repository "$REPOSITORY_LISTING"

FILTER=$(auto_filter imageDigest "(imageTags||[''])|join(',',@)" -- $SECOND_RESOURCE)

awscli ecr describe-images --repository-name $SELECTED --output table --query "sort_by(imageDetails,&imagePushedAt)[$FILTER].{
  \"1.Digest\":imageDigest,
  \"2.Tags\":join(', ', sort(imageTags||[''])),
  \"3.ImageSize(Bytes)\":imageSizeInBytes,
  \"4.ImagePushTimestamp\":imagePushedAt}"

{'fraction_non_alphanumeric': 0.19289749798224373, 'fraction_numerical': 0.005649717514124294, 'mean_word_length': 7.551724137931035, 'pattern_counts': {'":': 7, '<': 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': '1664339', 'n_tokens_mistral': 410, 'n_tokens_neox': 398, 'n_words': 63}