<commit_before>#!/usr/bin/env python

import json
import argparse
from auth_stack2 import AuthStack
from solidfire.factory import ElementFactory


def get_solid_fire():
    auth = AuthStack()
    sf = ElementFactory.create(auth.solid_fire_ip, auth.solid_fire_user, auth.solid_fire_password)
    return sf


def get_volumes():
    sf = get_solid_fire()
    vls = sf.list_volumes_for_account()
    for vl in vls:
        print vl


def main():
    get_volumes()


if __name__== "__main__":
  main()

<commit_msg>adding more solidfire calls<commit_after>#!/usr/bin/env python

import json
import argparse
from auth_stack2 import AuthStack
from solidfire.factory import ElementFactory


def get_solid_fire():
    auth = AuthStack()
    sf = ElementFactory.create(auth.solid_fire_ip, auth.solid_fire_user, auth.solid_fire_password)
    return sf


def get_volumes():
    sf = get_solid_fire()
    vls = sf.list_volumes()
    return vls


def get_volume_by_volume_name(name):
    vls = get_volumes()
    for vl in vls.volumes:
        if vl.name.endswith(name):
            print "Found SolidFire volume for Cinder ID " + name
            print "SolidFire volume name " + vl.name + " SolidFire volume ID: " + vl.volume_id
            return vl.volume_id
    print "No SolidFire volume found for Cinder ID " + name
    return None


def main():
    get_volume_by_volume_name('81f16643-a50c-43bf-84e3-d67ba35cd222')
    

if __name__== "__main__":
  main()
{'fraction_non_alphanumeric': 0.08908839779005524, 'fraction_numerical': 0.015883977900552487, 'mean_word_length': 3.4584615384615383, 'pattern_counts': {'":': 2, '<': 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': '6676215', 'n_tokens_mistral': 506, 'n_tokens_neox': 488, 'n_words': 125}