<commit_before>import picscout.depend.dependency.main.Runner;
import picscout.depend.dependency.interfaces.ISolution;

class Jenkins {

def static map = [     
       key_here: 'value_here.sln'       
]
                                    
    static void main(String... args) {      
    
    
        def repo = 'infrastructure' //args[0]
        def inputJobs = 'PicScout_Inf_MessagingFramework;PicScout_Inf_Messaging;' //args[1]
        
        println 'going to calc depenencies' + 'repo is:' + repo + 'jobs to calc for are: ' + inputJobs      
      
       def  inputsolutionNames
       inputsolutionNames = parseJobs(inputJobs)
    
    
     Runner runner = new Runner();
    List<ISolution> result = runner.getSolutionsThatDependOnSolutionsByNames(Arrays.asList(inputsolutionNames));
    println 'got results:' + result
            for(ISolution sol : result) {
                System.out.println(sol.getName());                
            }
    
}

static parseJobs(inputJobs) {
  		def inputJobsList = inputJobs.split(';')
        def inputsolutionNames = ''
        for(job in inputJobsList) {
        inputsolutionNames = HandleJob(job, inputsolutionNames)
          println inputsolutionNames
  
}
}




static  HandleJob(job, inputsolutionNames) {

if(map[job] != null) {
          job = map[job]
        }
        else{
        job = job.replace('_', '.')
        }       
       
        inputsolutionNames += job<commit_msg>get solution names<commit_after>import picscout.depend.dependency.main.Runner;
import picscout.depend.dependency.interfaces.ISolution;

class Jenkins {

def static map = [     
       key_here: 'value_here.sln'       
]
                                    
    static void main(String... args) {      
    
    
        def repo = 'infrastructure' //args[0]
        def inputJobs = 'PicScout_Inf_MessagingFramework;PicScout_Inf_Messaging;' //args[1]
        
        println 'going to calc depenencies' + 'repo is:' + repo + 'jobs to calc for are: ' + inputJobs    
         def  inputsolutionNames  
        inputsolutionNames = parseJobs(inputJobs)  
         def dependentsolutionNames   
    dependentsolutionNames = getDependentSolutionNames(inputsolutionNames)
    
    
}

static parseJobs(inputJobs) {
  		def inputJobsList = inputJobs.split(';')
        def inputsolutionNames = ''
        for(job in inputJobsList) {
        inputsolutionNames = HandleJob(job, inputsolutionNames)
          println inputsolutionNames  
}
}

static geDependentSolutionNames(inputsolutionNames) {
 ArrayList<String>  dependentsolutionNames = new  ArrayList<String>()
 Runner runner = new Runner();
    List<ISolution> result = runner.getSolutionsThatDependOnSolutionsByNames(Arrays.asList(inputsolutionNames));  
            for(ISolution sol : result) {
                System.out.println(sol.getName());
               dependentsolutionNames.add(sol.getName())                
            }
           return dependentsolutionNames
            }



static  HandleJob(job, inputsolutionNames) {

if(map[job] != null) {
          job = map[job]
        }
        else{
        job = job.replace('_', '.')
        }       
       
        inputsolutionNames += job
{'fraction_non_alphanumeric': 0.09309590752889722, 'fraction_numerical': 0.0012496094970321774, 'mean_word_length': 2.1453831041257367, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1355227', 'n_tokens_mistral': 938, 'n_tokens_neox': 904, 'n_words': 176}