<commit_before>#!/usr/bin/python
import sys
import boto3

s3 = boto3.resource('s3')
object = s3.Bucket('ictrp-data').upload_file(sys.argv[1], sys.argv[1])
object.Acl().put(ACL='public-read')<commit_msg>Fix failing attempt to set ACL<commit_after>#!/usr/bin/python
import sys
import boto3

s3 = boto3.resource('s3')
with open(sys.argv[1], 'rb') as f:
    object = s3.Bucket('ictrp-data').put_object(Key=sys.argv[1], Body=f)
    object.Acl().put(ACL='public-read')
{'fraction_non_alphanumeric': 0.19480519480519481, 'fraction_numerical': 0.030303030303030304, 'mean_word_length': 5.7101449275362315, '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': '3454999', 'n_tokens_mistral': 191, 'n_tokens_neox': 185, 'n_words': 31}