def service_name_from_file_name(self, file_name):
        file_name = os.path.basename(file_name).split('.', 1)[0]
        return file_name.title().replace('_', '').replace('-', '')
Converts the given string 'a' to a valid CMake target name.
dataset/ETHPy150Open ooici/pyon/pyon/core/interfaces/service_object_generator.py/ServiceObjectGenerator.service_name_from_file_name--crossover with--dataset/ETHPy150Open francelabs/datafari/debian7/elk/kibana/node/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py/StringToCMakeTargetName