AP photo by John Bazemore / The Pittsburgh Pirates' Ben Gamel scores ahead of the throw to Atlanta Braves catcher William Contreras on an Adam Frazier single during the seventh inning of Thursday's game in Atlanta.

ATLANTA — Everything seems to be going right for Adam Frazier these days, so he's trying to keep his superstitions in check.

Whatever he's doing has worked thus far, because the Pittsburgh Pirates second baseman leads the National League with 58 hits and has hit .386 in 83 at-bats with eight doubles in his past 20 games since April 28.

Frazier said he's even careful to put his toothpaste and toothbrush in the same spot to begin each day.

"I put my pants on every day when I come to the field, which foot I put on the bench to tie my cleats first because I don't tie my cleats until I get out in the dugout," he said, "to what bat cubby I put the helmet in, to what batting glove I put on first, to spray my hands with the stick stuff first. Then if I doesn't work for a few at-bats, you change it.

"And if that works, then you keep going."

Kevin Newman hit a tiebreaking single in the 10th inning, and Frazier had four hits as the Pirates beat the Atlanta Braves 6-4 on Thursday night.

With the score 4-all and Ben Gamel starting the 10th on second base under the extra-innings rule, Frazier singled Gamel to third base off Jacob Webb (1-2) and Newman singled for a 5-4 lead. Gregory Polanco then added a sacrifice fly off Grant Dayton.

Atlanta, winner of the past three NL East Division titles, has lost seven of 10 and dropped to fourth place at 20-24. Braves manager Brian Snitker is grateful his team is only 3 1/2 games out of the division lead.

"Yeah, absolutely," Snitker said. "It could be a lot worse, but we're a winning streak from being in first. If we get on one little winning streak, which we haven't been able to do yet, we could find ourselves in first place. We've just got to keep fighting it because we have a lot of baseball left, a lot of time to get really good."

Richard Rodríguez (3-0) pitched two perfect innings, for Pittsburgh, which is last in the NL Central and stopped a three-game skid.

Jacob Stallings hit a two-run homer in the first against Drew Smyly, who gave up three runs and six hits in six innings. Smyly struck out Gamel in the third to strand the bases loaded.

William Contreras' three-run homer put the Braves ahead in the second, but Bryan Reynolds tied the score with a solo homer in the sixth.

Dansby Swanson, who had three hits, homered off Wil Crowe in the bottom half for a 4-3 lead, and Frazier retied the score with an RBI single in the seventh.

Smyly, signed to an $11 million, one-year contract, went 0-2 with an 8.05 ERA in four April starts. He has allowed five runs — four earned — in his past 18 innings. He also singled for the first hit of his MLB career in the fourth, ending an 0-for-33 slump.

Pirates starter Crowe gave up four runs, seven hits and three walks in five-plus innings. He struck out 2020 NL MVP Freddie Freeman to leave the bases loaded in the fourth.

Crowe has been amazed watching Frazier hit so well this season.

"What Frazier is doing is awesome," Crowe said. "It's a testament to who he is as a worker, as a grinder. He's someone that you love to play with. Every time he gets on, I just smile. It's fun to watch when someone's in a groove like that — it's so much fun to watch."

As long as his superstitions hold up, Frazier figures the results will, too.

"When you're on time, you see the ball a little longer and you're able to stay within the zone and not chase pitches as much," Frazier said. "I think when you make big league pitchers come into the zone, you have a better chance for success."

Snitker said there was no reason to worry that left-hander Max Fried left his most recent start with cramping in his left hand. Fried departed after allowing one run and five hits with two walks and eight strikeouts in six innings of Monday's 3-1 loss to the New York Mets.

"No, that was just an isolated thing," Snitker said. "I don't know, maybe he was dehydrated that particular day, but he's been throwing and hitting. He's fine."