<commit_before># coding: utf-8
import pytest
from django.contrib.auth.models import Permission, Group, AnonymousUser
from jsonrpcclient import http_client as jsonrpcclient

from . import xmlrpclib


@pytest.fixture(scope='session')
def common_pwd():
    """The default password, used to create any user"""
    return '<PASSWORD>!'


@pytest.fixture(scope='session')
def anonymous_user():
    return AnonymousUser()


@pytest.fixture
def john_doe(django_user_model, common_pwd):
    """Create and return a standard Django user"""
    return django_user_model.objects.create_user('johndoe', email='<EMAIL>', password=<PASSWORD>)


@pytest.fixture
def superuser(django_user_model, common_pwd):
    """Create and return a Django superuser"""
    return django_user_model.objects.create_superuser('admin', email='<EMAIL>', password=<PASSWORD>)


@pytest.fixture
def group_A(db):
    """Return a group named 'A'. Create it if necessary"""
    group, _ = Group.objects.get_or_create(name='A')
    return group


@pytest.fixture
def group_B(db):
    """Return a group named 'B'. Create it if necessary"""
    group, _ = Group.objects.get_or_create(name='B')
    return group


@pytest.fixture
def add_user_perm():
    """Return permission 'auth.add_user'"""
    return Permission.objects.get(codename='add_user')


@pytest.fixture
def change_user_perm():
    """Return permission 'auth.change_user'"""
    return Permission.objects.get(codename='change_user')


@pytest.fixture
def delete_user_perm():
    """Return permission 'auth.delete_user'"""
    return Permission.objects.get(codename='delete_user')


@pytest.fixture(scope='session')
def live_server_url(live_server):
    """Return the url associated with unit tests Django live server"""
    return live_server.url


@pytest.fixture(scope='session')
def all_rpc_url(live_server):
    """Return the default RPC test endpoint URL. See 'testsite.urls' for additional info."""
    return live_server + '/all-rpc/'


@pytest.fixture(scope='session')
def all_rpc_doc_url(live_server):
    """Return the URL to view configured to serve RPC documentation. See 'testsite.urls' for additional info."""<commit_msg>Coverage: remove unused pytest fixture<commit_after># coding: utf-8
import pytest
from django.contrib.auth.models import Permission, Group, AnonymousUser
from jsonrpcclient import http_client as jsonrpcclient

from . import xmlrpclib


@pytest.fixture(scope='session')
def common_pwd():
    """The default password, used to create any user"""
    return '<PASSWORD>!'


@pytest.fixture(scope='session')
def anonymous_user():
    return AnonymousUser()


@pytest.fixture
def john_doe(django_user_model, common_pwd):
    """Create and return a standard Django user"""
    return django_user_model.objects.create_user('johndoe', email='<EMAIL>', password=common_<PASSWORD>)


@pytest.fixture
def superuser(django_user_model, common_pwd):
    """Create and return a Django superuser"""
    return django_user_model.objects.create_superuser('admin', email='<EMAIL>', password=common_pwd)


@pytest.fixture
def group_A(db):
    """Return a group named 'A'. Create it if necessary"""
    group, _ = Group.objects.get_or_create(name='A')
    return group


@pytest.fixture
def group_B(db):
    """Return a group named 'B'. Create it if necessary"""
    group, _ = Group.objects.get_or_create(name='B')
    return group


@pytest.fixture
def add_user_perm():
    """Return permission 'auth.add_user'"""
    return Permission.objects.get(codename='add_user')


@pytest.fixture
def change_user_perm():
    """Return permission 'auth.change_user'"""
    return Permission.objects.get(codename='change_user')


@pytest.fixture
def delete_user_perm():
    """Return permission 'auth.delete_user'"""
    return Permission.objects.get(codename='delete_user')


@pytest.fixture(scope='session')
def all_rpc_url(live_server):
    """Return the default RPC test endpoint URL. See 'testsite.urls' for additional info."""
    return live_server + '/all-rpc/'


@pytest.fixture(scope='session')
def all_rpc_doc_url(live_server):
    """Return the URL to view configured to serve RPC documentation. See 'testsite.urls' for additional info."""
{'fraction_non_alphanumeric': 0.12796549245147376, 'fraction_numerical': 0.0004792715073088905, 'mean_word_length': 5.2298507462686565, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '213092', 'n_tokens_mistral': 1329, 'n_tokens_neox': 1321, 'n_words': 336}