These lines are found in the first stanza inlines 1 and 2. The author uses internal rhyming (the words dreary and weary)
The author has given the scene a dark, sad and lonely setting for the main character, who is unsettled and restless, drowning in grief, for his lost love Lenore.
Internal rhyming
Ocean Santiago
once upon a midnight dreary, while I pondered weak and weary.
The author emphasizes the idea. By repeating it, he is adding more depth and feeling to the scene he is describing, and showing the main characters obsessive personality, as he is hearing a tapping at his chamber door, wondering what it is, he goes to open the door. He finds only the darkness of the night
These lines (22, 23, 24) are found in the 4th stanza. There is proof that the author used repetition in these lines ( tapping, tapping)
Repetition
And so faintly you came tapping, taping at my chamber door, that I was scarce I was sure I heard you- here I opened wide the door; darkness there, and nothing more.
Ocean Santiago
In lines 100 and 101 found in the 14th stanza, author uses metaphors as well as euphony in the sentence "Take thy beak from out of my heart" and Alliteration "form, from" "leave loneliness"
Metaphor
The main character is begging the raven to leave him alone because he fells like the birds presence is only causing him more pain, teasing or mocking him over his grief.
Leave my loneliness unbroken!—quit the bust above my door!Take thy beak from out my heart, and take thy form from off my door!”