<commit_before>from django.shortcuts import render_to_response
from django.views.decorators.cache import cache_page
import memcache

def index(request, **kwargs):
    client = memcache.Client(['127.0.0.1:11211'], debug=False)
    client.get('key')
    client.get('key2')
    try:
        client.incr('hello')
    except:
        pass
    return render_to_response('demo/index.html')<commit_msg>code to swap out to pylibmc<commit_after>from django.shortcuts import render_to_response
from django.views.decorators.cache import cache_page
import memcache
#import pylibmc

def index(request, **kwargs):
    client = memcache.Client(['127.0.0.1:11211'], debug=False)
    #client = pylibmc.Client(['127.0.0.1'], binary=True)
    client.get('key')
    client.get('key2')
    try:
        client.incr('hello')
    except:
        pass
    return render_to_response('demo/index.html')
{'fraction_non_alphanumeric': 0.13142857142857142, 'fraction_numerical': 0.03428571428571429, 'mean_word_length': 3.977272727272727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '4855066', 'n_tokens_mistral': 300, 'n_tokens_neox': 282, 'n_words': 57}