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

from __future__ import division

'''
Created on Nov 8, 2011
'''

__author__ = "<NAME>, <NAME>"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__date__ = "May 11, 2012"

import argparse
from collections import OrderedDict

from pymatgen.io.feffio import FeffLdos
from pymatgen.electronic_structure.dos import DosPlotter

parser = argparse.ArgumentParser(description='''Convenient DOS Plotter for Feff runs.
Author: <NAME>, <NAME>
Version: 1.0
Last updated: May 10, 2012''')
parser.add_argument('filename', metavar='filename', type=str, nargs=1, help='ldos%% file set to plot')
parser.add_argument('filename1', metavar='filename1', type=str, nargs=1, help='feff.inp input file ')
parser.add_argument('-s', '--site', dest='site', action='store_const', const=True, help='plot site projected DOS')
parser.add_argument('-e', '--element', dest='element', action='store_const', const=True, help='plot element projected DOS')
parser.add_argument('-o', '--orbital', dest="orbital", action='store_const', const=True, help='plot orbital projected DOS')


args = parser.parse_args()
f = FeffLdos(args.filename1[0], args.filename[0])<commit_msg>minor changes<commit_after>#!/usr/bin/env python

from __future__ import division

'''
Created on Nov 8, 2011
'''

__author__ = "<NAME>, <NAME>"
__copyright__ = "Copyright 2011, The Materials Project"
__version__ = "0.1"
__maintainer__ = "<NAME>"
__email__ = "<EMAIL>"
__date__ = "May 11, 2012"

import argparse
from collections import OrderedDict

from pymatgen.io.feffio import FeffLdos
from pymatgen.electronic_structure.plotter import DosPlotter

parser = argparse.ArgumentParser(description='''Convenient DOS Plotter for Feff runs.
Author: <NAME>, <NAME>
Version: 1.0
Last updated: May 10, 2012''')
parser.add_argument('filename', metavar='filename', type=str, nargs=1, help='ldos%% file set to plot')
parser.add_argument('filename1', metavar='filename1', type=str, nargs=1, help='feff.inp input file ')
parser.add_argument('-s', '--site', dest='site', action='store_const', const=True, help='plot site projected DOS')
parser.add_argument('-e', '--element', dest='element', action='store_const', const=True, help='plot element projected DOS')
parser.add_argument('-o', '--orbital', dest="orbital", action='store_const', const=True, help='plot orbital projected DOS')


args = parser.parse_args()
f = FeffLdos(args.filename1[0], args.filename[0])
{'fraction_non_alphanumeric': 0.1578525641025641, 'fraction_numerical': 0.02564102564102564, 'mean_word_length': 6.901898734177215, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '4406531', 'n_tokens_mistral': 883, 'n_tokens_neox': 810, 'n_words': 218}