<commit_before>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8

import os
import gettext


#RapidSMS Internationalization (i18n)

# 

# Read more about Django i18n: http://docs.djangoproject.com/en/dev/topics/i18n/
# Read more about Python i18n: http://www.python.org/doc/2.5/lib/node733.html

# A data model for simple interconnected graphs of nodes.
#
# There are two types of nodes: Sets and Nodes.
#
# The only distinction is:
# - Sets may contain other nodes (both Sets and Nodes)
# - Leaves may _not_ contain other nodes (they terminate the graph)
#
# Speaking concretely, A graph of Nodes can represent GROUPS of USERS where:
# - Groups are Sets and can contain other Groups and Users
#
# default_language
# languages
# web_languages
# sms_languages
#
# Not Supported Yet:
# - Different default languages for webui and sms
#   So if you have Set A with itself as the only member (A<A--A contains A) asking for the

# path to GNU gettext 'locale' directory
LOCALE_PATH=os.path.join('contrib','locale')

# translation are instantiated globally
_translations = {}
_default = None

# Used to mark sms text that needs to be translated 
from django.utils.translation import ugettext_noop


# ugettext is globally available to make tagging strings easy
def ugettext_from_locale(locale, text):
    """ <commit_msg>Got rid of junk comments (cherry picked from commit 5b0635f0b7da560e80fafa59da84659e3fc02082)<commit_after>#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8

import os
import gettext


#RapidSMS Internationalization (i18n)
# 
# Read more about Django i18n: http://docs.djangoproject.com/en/dev/topics/i18n/
# Read more about Python i18n: http://www.python.org/doc/2.5/lib/node733.html

# path to GNU gettext 'locale' directory
LOCALE_PATH=os.path.join('contrib','locale')

# translation are instantiated globally
_translations = {}
_default = None

# Used to mark sms text that needs to be translated 
from django.utils.translation import ugettext_noop


# ugettext is globally available to make tagging strings easy
def ugettext_from_locale(locale, text):
    """ 
{'fraction_non_alphanumeric': 0.08854166666666667, 'fraction_numerical': 0.02793560606060606, 'mean_word_length': 4.516971279373368, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4501698', 'n_tokens_mistral': 736, 'n_tokens_neox': 678, 'n_words': 240}