Brahms regarded his Hungarian Dances as adaptations and didn’t even assign them an Opus number.
He was honest about his sources, by not calling it his Opus.
And when Mel Brooks “composed” “Hope For the Best, Expect the Worst”, he credited Brahms! (From Hungarian Dance #2) LOL!