Exhaustive research shows only a handful of cops with such posts.

One post made a joke about breathalyzers and oral sex.

Another post encouraged people to share a picture of a pig named Mohammud.

And then there was the post that made light of shooting criminals.

These weren’t Facebook posts from private citizens. They were from people who took an oath to protect and serve the community.

The York Daily Record/Sunday News analyzed the Facebook pages of more than 500 police officers from all 20 police departments in York County in response to the Plain View Project, a database that flagged posts and comments that researchers believed could undermine public trust and confidence in law enforcement. The initiative received national attention and sparked outrage across the United States.

The York City Police Department was one of eight police departments examined in the national project.

More than 99% of police officers — or 519 — in the York Daily Record's analysis didn't post anything of note. They shared pictures of their family, offered commentary about sports and posted tributes to fallen first-responders.

But the investigation also uncovered four police officers who publicly posted racist, Islamophobic and sexually aggressive comments and pictures, which the district attorney lamented could place a stain on law enforcement.

Here’s a look at the posts:

West Manchester Township Police Sgt. Patrick Hinds

In a post from April, West Manchester Township Police Sgt. Patrick Hinds shared a meme of the cartoon character Lisa Simpson standing on stage in front of an audience. There’s a screen behind her with the words: “Evidence suggests dead pedophiles do not reoffend.”

Later, in May, Hinds posted a picture of a sign outside a BBQ restaurant called “Little Pigs.” The sign outside of the restaurant was circled and read, “Ramadan Special Pulled Pork Sandwiches $2.99 Muslims Eat Free.”

Several other posts on Hinds’ page contained messages with similar Islamophobic themes, such as the following photo he shared of a pig.

“This pigs name is ‘mohammud,’” the text said. “Share for no reason other than to annoy certain people.”

The York Daily Record flagged more than 20 posts from Hinds, who as an officer was shot in the face during a standoff in 1995.

The shooter later killed himself. The bullet shattered Hinds' jaw and required reconstructive surgery.

In a statement, West Manchester Township Police Chief John Snyder said he was made aware of the posts through the York Daily Record’s investigation.

“The department is going to address the issue and handle the matter which is a personnel issue,” Snyder said. “As the Chief of Police, I take this situation very seriously and I will take appropriate action to address this and any other behavior that discredits the professional reputation of this police department.”

Snyder said the department is investigating the incident, and as part of its protocol with all internal investigations, Hinds has been restricted to desk duty.

Hinds, who's a more than 34-year veteran of the West Manchester Township Police Department, could not be reached. Since the York Daily Record’s efforts to reach him, he has taken down his Facebook page.

'Punch a guy so hard he poops himself:'Police under fire for 'shameful' social media posts

York City Police Officer Griffin Jackson

In 2013, York City Police Officer Griffin Jackson posted the following Facebook status: “A large group of black people is so quite. Said no one ever.”

The post seemed to include a spelling error, but someone quickly corrected it, commenting “*quiet,” with a laughing emoji.

A few months later, Jackson made another post with racial overtones.

“What are you trying to say casting black people in your commercials KFC?” the post said.

Later in 2014, Jackson posted a meme with three photos. Two were the same — tumbleweeds rolling down a dirt road. The text across the top of one image read, “Black Person Kills Black Person.” The text across the other image stated, “Black Person Kills White Person.”

The third image was a mushroom cloud with the text, “White Person Kills Black Person.” He then added the following commentary, “Ha ha ha.”

That post had been shared about two weeks after Michael Brown, a black man, was shot and killed by a white police officer in Ferguson, Missouri.

When reached, Jackson said he believed the posts were made when he was in high school.

“I think they were made years ago, and they do not reflect the person I am now,” he said.

He was in his early 20s.

In January 2018, the York City Police Department implemented a policy to look at newly hired officers’ social media accounts. Jackson took the oath of office in June 2018.

“With regard specifically to this Officer, the City reviewed over 2,000 of his posts dating back several years, which was considered sufficient due diligence” Mayor Michael Helfrich said in a statement.

Helfrich described Jackson in an interview as a “very prolific poster.” The posts that the city did review only took them back two to three years.

“We saw posts that were anti-white nationalist, pro-gay rights. All the posts we saw were positive,” Helfrich said. “The idea of reviewing every social media post ever — how many people are we going to hire and pay to review every post?”

As a result of the Facebook posts brought to the police department's attention by the York Daily Record, Jackson was taken off the street and the city has launched an internal investigation. It will also review the social media practices used during the hiring process.

The York Daily Record obtained a copy of the police department’s social media policy through a Right-to-Know Law request. Part of the policy reads:

"Employees are expressly discouraged from using social media because of the potential linking of private and personal expressions to the official policies of the department, and official duties of a police officer."

Helfrich said he takes these allegations seriously and is thankful for having them brought to his attention.

CHECK OUT:Here's how York's mayor is addressing police officers' controversial Facebook posts

North Hopewell Township Police Officer Justin Ruhl

In one post from February, North Hopewell Township Police Officer Justin Ruhl shared a meme that featured a woman who was smiling and looking up to the left.

“When you stick it in my mouth do you want me to look you in the eyes?” the text said. “Ma’am just blow in the breathalyzer please.”

In another post, from 2015, Ruhl posted an image that said, “I wonder if I said …… ‘F--- Islam’ how many friends would say it also? Share and Let’s see!” The image, for some reason, featured a picture of Dopey from “Snow White and the Seven Dwarfs.”

Several weeks earlier, Ruhl shared a picture that read, “Free Little Caesars in Ferguson today. Just joking you burnt it down.”

In 2013, Ruhl posted a photo of six women who were lined up against a brick wall. “Against the wall and spread ‘em!” the picture said. “Don’t you sometimes wish you were a cop?”

In a statement, North Hopewell Township Police Chief Tim Quinan said Ruhl reportedly made the posts before he was employed with the police department. He started in February.

Quinan said the department would immediately conduct an internal investigation and create and implement a social media policy as soon as possible.

“First and foremost, our officers treat everyone with dignity and respect regardless of their race, creed, color, ethnicity, religion, sex, sexual orientation, gender expression, physical or mental ability, veteran status, and or marital status,” Quinan said.

“Moreover, our department strongly discourages any such posts made on any social media platform and they do not express the views, values or opinions of our police department or officers,” he added.

He thanked the York Daily Record for bringing the posts to his attention.

Ruhl could not be reached. He’s since taken down his Facebook page.

MORE:72 Philadelphia police officers on administrative duty after alleged offensive posts

Southern Regional Police Sgt. Daniel Teague

In 2015, Southern Regional Police Sgt. Daniel Teague shared a picture from a Facebook page called “I Like Guns Everywhere” that said, “Statistics show that criminals commit less crime after they’ve been shot.”

Teague posted a meme about one month earlier that read, “If an illegal immigrant fights a child molester would it be called Alien vs Predator?”

He also shared several photos that appeared to show support for displaying the Confederate battle flag, which some organizations have used as a symbol of slavery and white supremacy. Supporters believe it represents Southern heritage.

“Why wasn’t anyone offended by the flag when our show was on the air?” read one photo showing a scene from the TV show “The Dukes of Hazzard.” “People weren’t spineless p------ that didn’t understand history when our show was on the air. Today everyone’s a victim.”

The posts were made amid a national debate about the battle flag after a white supremacist murdered nine black parishioners at Emanuel AME Church in Charleston, South Carolina.

Teague could not be reached.

He's a more than 17-year veteran of the Southern Regional Police Department. The Glen Rock American Legion Austin L. Grove Post 403 recognized him in 2008 as its officer of the year.

When a reporter initially described some of the posts on the phone, Southern Regional Police Chief James Boddington asked of the Confederate battle flag, “How is that racial?” He later added, “I guess some people consider that as racial.”

Boddington said some people view “our flag as being offensive” and wondered where the line should be drawn.

”Everyone does have a right to their opinion about stuff,” he said, “it’s just under whose terms it’s deemed inappropriate.”

The reporter later sent him screenshots of the posts in an email.

Boddington said he received the email and “we are looking into it.”

ALSO OF INTEREST:‘At what point do they stop?’ Tactics in prostitution stings raise questions in Pa.

‘These negative and racist attitudes do not serve the community’

Community leaders believe these revelations speak to a larger problem.

“As district attorney, I am very disappointed by public Facebook posts which recently came to light involving members of our law enforcement community,” York County District Attorney Dave Sunday said in a statement.

“The overwhelming majority of police officers in York County understand that they are representatives of the communities that they are sworn to protect and serve, and by making public statements demeaning someone’s race, religion, gender or societal status, those actions may disrupt much good and place a stain on the entire profession,” he added.

Sunday continued: “For those individuals who do not understand that, the public demands better. I fully expect that all police departments will take every appropriate action against those officers who offend these principles of basic human decency.”

In an email, Chief Public Defender Bruce Blocher described the posts as “rather disturbing.”

Ophelia Chambliss, vice president of the York NAACP, said in a statement that “we are concerned about the individual officers, and the culture of the police department.”

“Although these might be personal pages and comments, they do reflect the temperament and attitude of the officers, which can negatively impact the treatment of people of color,” Chambliss said. “These negative and racist attitudes do not serve the community in which these officers are hired to serve, and could cause them to not treat everyone equally.”

The posts threaten the officers’ credibility and suggests they have racial biases, said Chad Dion Lassiter, executive director of the Pennsylvania Human Relations Commission and a national expert on race relations.

“It creates that problem of trust and mistrust between police officers and their community,” Lassiter said. “There may be an individual who truly needs the police but won’t call because of things that have occurred like this.”

The only way for the departments to move forward — and to keep the public’s trust intact — Lassiter said, is for each to show how they are handling the situation.

Some officers may need to be fired and some may just need a tap on the wrist, but the community needs to know the department is being proactive, he said.

Said Lassiter: “We need to figure out how to answer the question, ‘Who polices the police?’”

Contact Dylan Segelbaum at 717-771-2102 and Sam Ruland at 717-771-2029.

READ MORE ABOUT WHY THIS IS A PROBLEM: Bobby Simpson: York police inappropriate Facebook posts threaten progress since riots (opinion)

How did we report this story?

The York Daily Record/Sunday News requested the rosters of all 20 police departments in York County. (Some of them made us file Right-to-Know Law requests.)

We included the York County detectives in our analysis.

Next, we built a database. Reporters used LexisNexis, court records and property records to find as many profiles as possible.

We were able to find the Facebook pages of 253 police officers, or about 48%, in York County. (Some police officers don’t have social media accounts.)

Reporters looked for clues including whether someone posted a picture of him or herself in uniform or wrote about working in law enforcement. We also examined their friends list to see if they were friends with other police officers.

We avoided including posts that simply reflected a police officer’s political opinion.

So how did we decide on what posts to include in the story? We imposed our own standards. To borrow a phrase from U.S. Supreme Court Justice Potter Stewart (though he was talking about obscenity), we took the approach of, "I know it when I see it.”

We saved screenshots of the posts and reached out for responses.

Did we miss anything? Email Dylan Segelbaum at dsegelbaum@ydr.com, or Sam Ruland at sruland@ydr.com.