<commit_before>import inspect, string
from optparse import make_option
from django.db import models
from django.db.models import fields
from django.db.models.fields import related
from django.conf import settings
from django.utils.importlib import import_module
from django.core.management.base import BaseCommand, CommandError
from django_sphinx_db.backend.models import SphinxModel, SphinxField


CONF_TEMPLATE = '''\

#*~ Auto-generated by django-sphinx-db ~*
index %(index_name)s
{
	# Options:
	type			= rt
	path			= %(directory)s/%(index_name)s
	min_infix_len		= 3
	enable_star		= 1

	# Fields:
	%(fields)s
} #*~ End auto-generation ~*
'''
CONF_FIELD_TEMPLATE = '%(field_type)s%(indent)s= %(field_name)s'
<commit_msg>Removed min_infix_len from syncsphinx, RT indexes do not support infixes yet<commit_after>import inspect, string
from optparse import make_option
from django.db import models
from django.db.models import fields
from django.db.models.fields import related
from django.conf import settings
from django.utils.importlib import import_module
from django.core.management.base import BaseCommand, CommandError
from django_sphinx_db.backend.models import SphinxModel, SphinxField


CONF_TEMPLATE = '''\

#*~ Auto-generated by django-sphinx-db ~*
index %(index_name)s
{
	# Options:
	type			= rt
	path			= %(directory)s/%(index_name)s
	enable_star		= 1

	# Fields:
	%(fields)s
} #*~ End auto-generation ~*
'''
CONF_FIELD_TEMPLATE = '%(field_type)s%(indent)s= %(field_name)s'

{'fraction_non_alphanumeric': 0.10490921318090114, 'fraction_numerical': 0.0020174848688634837, 'mean_word_length': 5.469565217391304, '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': '3220270', 'n_tokens_mistral': 527, 'n_tokens_neox': 498, 'n_words': 126}