<commit_before>Graphql Api
===========

*New in 0.9*

It is possible to query for public events, users events and staff events.

Settings
~~~~~~~~

Install with ``pip install django-graphql-utils django-filters``

 .. highlight:: python

::

   INSTALLED_APPS += ("graphene_django", "graphql_utils",)

   GRAPHENE = {
      'SCHEMA': 'mqueue.schema.schema'
   }
   
   if DEBUG is True:
      GRAPHENE['MIDDLEWARE'] = ['graphene_django.debug.DjangoDebugMiddleware']
      
   # optional: limit number of events to be retrieved in one query (default 100):
   MQUEUE_API_MAX_EVENTS = 50
   
Urls:

::

   from django.conf import settings
   from graphene_django.views import GraphQLView
   from graphql_utils.views import TGraphQLView
   
   urlpatterns = [
    # ...
    url(r'^graphql', TGraphQLView.as_view()),
   ]
   
   if settings.DEBUG:
      urlpatterns += [url(r'^graphiql', GraphQLView.as_view(graphiql=True)), ]
<commit_msg>Correction in api doc<commit_after>Graphql Api
===========

*New in 0.9*

It is possible to query for public events, users events and staff events.

Settings
~~~~~~~~

Install with ``pip install django-graphql-utils django-filters``

 .. highlight:: python

::

   INSTALLED_APPS += ("graphene_django", "graphql_utils", "django_filters",)

   GRAPHENE = {
      'SCHEMA': 'mqueue.schema.schema'
   }
   
   if DEBUG is True:
      GRAPHENE['MIDDLEWARE'] = ['graphene_django.debug.DjangoDebugMiddleware']
      
   # optional: limit number of events to be retrieved in one query (default 100):
   MQUEUE_API_MAX_EVENTS = 50
   
Urls:

::

   from django.conf import settings
   from graphene_django.views import GraphQLView
   from graphql_utils.views import TGraphQLView
   
   urlpatterns = [
    # ...
    url(r'^graphql', TGraphQLView.as_view()),
   ]
   
   if settings.DEBUG:
      urlpatterns += [url(r'^graphiql', GraphQLView.as_view(graphiql=True)), ]

{'fraction_non_alphanumeric': 0.12618796198521648, 'fraction_numerical': 0.007391763463569166, 'mean_word_length': 3.458823529411765, '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': '4691510', 'n_tokens_mistral': 668, 'n_tokens_neox': 621, 'n_words': 154}