package org.crunchytorch.coddy.language.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LanguageService {


    @Value("#{'${org.crunchytorch.coddy.languages:java,c++,python,go}'.split(',')}")
    private List<String> languages;

    public List<String> getLanguages() {
        return this.languages;
    }

    public boolean isLanguageValid(String language) {
        return this.languages.contains(language);
    }
}

@@ -276,10 +276,10 @@
 va,c
-++
+pp
 ,pyt

fix c++ name