<commit_before># -*- coding: UTF-8 -*-
import pages.utils
from pages import settings
from django.db import models, connection
from django.http import HttpResponseRedirect

def get_page_ids_by_slug(slug, parents=None):
    """
    Return all the page id according to a slug
    """
    if not parents:
        sql = '''
        SELECT c.page_id, c.language, MAX(c.creation_date)
        FROM pages_content c
        WHERE c.type = 'slug' AND c.body = %s
        GROUP BY c.page_id, c.language
        '''<commit_msg>missing import<commit_after># -*- coding: UTF-8 -*-
import pages.utils
from pages import settings
from django.db import models, connection
from django.http import Http404, HttpResponseRedirect

def get_page_ids_by_slug(slug, parents=None):
    """
    Return all the page id according to a slug
    """
    if not parents:
        sql = '''
        SELECT c.page_id, c.language, MAX(c.creation_date)
        FROM pages_content c
        WHERE c.type = 'slug' AND c.body = %s
        GROUP BY c.page_id, c.language
        '''
{'fraction_non_alphanumeric': 0.10096153846153846, 'fraction_numerical': 0.004807692307692308, 'mean_word_length': 2.704626334519573, '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': '5969935', 'n_tokens_mistral': 323, 'n_tokens_neox': 314, 'n_words': 104}