DuoLens: A Framework for Robust Detection of Machine-Generated Multilingual Text and Code