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

import argparse
import json
import subprocess

def read_json(f):
    f = open(f)
    j = json.loads(f.read())
    f.close()

    return j

def update_task_definitions(task_definition, image_name, tag, env):
    for d in task_definition['containerDefinitions']:
        for env_kv in d['environment']:
            if env_kv['name'] == 'ENV':
                env_kv['value'] = env
            
        d['image'] = image_name + ':' + tag

    return task_definition<commit_msg>remove env twiddling<commit_after>#!/usr/bin/env python

import argparse
import json
import subprocess

def read_json(f):
    f = open(f)
    j = json.loads(f.read())
    f.close()

    return j

def update_task_definitions(task_definition, image_name, tag, env):
    for d in task_definition['containerDefinitions']:
        d['image'] = image_name + ':' + tag

    return task_definition
{'fraction_non_alphanumeric': 0.12084257206208426, 'fraction_numerical': 0.0, 'mean_word_length': 3.085972850678733, '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': '4058086', 'n_tokens_mistral': 297, 'n_tokens_neox': 289, 'n_words': 72}