<commit_before>from django.template import Library
from django.conf import settings

register = Library()

@register.inclusion_tag("gtm/gtm.html")
def gtm(google_tag_id=None):
    if google_tag_id is None:
        google_tag_id = getattr(settings, 'GOOGLE_TAG_ID', None);
    return {
        'google_tag_id': google_tag_id
    }

@register.inclusion_tag("gtm/gtm_body.html")
def gtm_head(google_tag_id=None):
    if google_tag_id is None:
        google_tag_id = getattr(settings, 'GOOGLE_TAG_ID', None);
    return {
        'google_tag_id': google_tag_id
    }

@register.inclusion_tag("gtm/gtm_head.html")
def gtm_body(google_tag_id=None):
    if google_tag_id is None:
        google_tag_id = getattr(settings, 'GOOGLE_TAG_ID', None);
    return {
        'google_tag_id': google_tag_id
    }
<commit_msg>Added two tags gtm_head and gtm_body to follow google instructions<commit_after>from django.template import Library
from django.conf import settings

register = Library()

@register.inclusion_tag("gtm/gtm.html")
def gtm(google_tag_id=None):
    if google_tag_id is None:
        google_tag_id = getattr(settings, 'GOOGLE_TAG_ID', None);
    return {
        'google_tag_id': google_tag_id
    }

@register.inclusion_tag("gtm/gtm_head.html")
def gtm_head(google_tag_id=None):
    if google_tag_id is None:
        google_tag_id = getattr(settings, 'GOOGLE_TAG_ID', None);
    return {
        'google_tag_id': google_tag_id
    }

@register.inclusion_tag("gtm/gtm_body.html")
def gtm_body(google_tag_id=None):
    if google_tag_id is None:
        google_tag_id = getattr(settings, 'GOOGLE_TAG_ID', None);
    return {
        'google_tag_id': google_tag_id
    }

{'fraction_non_alphanumeric': 0.10280932456664674, 'fraction_numerical': 0.0, 'mean_word_length': 4.042168674698795, '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': '6173329', 'n_tokens_mistral': 610, 'n_tokens_neox': 603, 'n_words': 113}