<commit_before>import json
import requests
import urlparse
#from keystoneclient.v2_0 import client as v2client
from keystoneclient import client as client

import logging
logger = logging.getLogger(__name__)

class AuthOpenstack(object):<commit_msg>Don't fail if keystoneclient not installed<commit_after>import json
import requests
import urlparse

try:
  #from keystoneclient.v2_0 import client as v2client
  from keystoneclient import client as client
  keystoneclient_available=True
except ImportError:
  keystoneclient_available=False

import logging
logger = logging.getLogger(__name__)

class AuthOpenstack(object):
  @staticmethod
  def available():
    return keystoneclient_available

{'fraction_non_alphanumeric': 0.04755043227665706, 'fraction_numerical': 0.008645533141210375, 'mean_word_length': 6.722222222222222, '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': '2820435', 'n_tokens_mistral': 198, 'n_tokens_neox': 188, 'n_words': 62}