<commit_before>import sys
import logging

import django
from django.db import transaction
django.setup()

from osf.models import OSFUser

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)

def main():
    dry_run = '--dry' in sys.argv
    with transaction.atomic():
        users = OSFUser.objects.filter(fullname__regex=r'^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$', tags__name='osf4m')
        logger.info('{} users found added by OSF 4 Meetings with emails for fullnames'.format(users.count()))
        for user in users:
            user.fullname = user._id
            if not dry_run:
                user.save()

if __name__ == '__main__':
    main()<commit_msg>remove atomic tranaction<commit_after>import sys
import logging

import django
from django.db import transaction
django.setup()

from osf.models import OSFUser

logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)


def main():
    dry_run = '--dry' in sys.argv
    users = OSFUser.objects.filter(fullname__regex=r'^[A-Za-z0-9\.\+_-]+@[A-Za-z0-9\._-]+\.[a-zA-Z]*$', tags__name='osf4m')
    logger.info('{} users found added by OSF 4 Meetings with emails for fullnames'.format(users.count()))
    for user in users:
        user.fullname = user._id
        if not dry_run:
            user.save()


if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.14411764705882352, 'fraction_numerical': 0.008823529411764706, 'mean_word_length': 3.200617283950617, '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': '7150555', 'n_tokens_mistral': 473, 'n_tokens_neox': 456, 'n_words': 109}