The bassline in "Drive My Car" is taken from Otis Redding's "Respect". The chord progressions are different, but the melodic patternand rhythm within each measure are the same.
The bassline in "I Saw Her Standing There" is taken from Chuck Berry's "I'm Talking About You", which the Beatles covered during their long Hamburg stints. Here is a live recording from 1962 of the Beatles performing "I'm Talking About You" at the Top Ten Club in Hamburg - with Paul playing the exact same bassline he would borrow two years later.
I have often been harshly critical of such blatant theft (I have often called John Williams a "musical kleptomaniac"), but I've been much more understanding of "borrowing" in the past few years as I've realized that all composers take what others have done and add to it/edit it to "make it their own". As Igor Stravinsky famously said, "Good composers borrow, great composers steal."