Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PEP8 Python app method names. #477

Merged
merged 2 commits into from
May 29, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/python/aut/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aut.app import Extract_Popular_Images, Write_Gexf, Write_Graphml
from aut.app import ExtractPopularImages, WriteGexf, WriteGraphml
from aut.common import WebArchive
from aut.udfs import (
compute_image_size,
Expand All @@ -18,10 +18,10 @@
)

__all__ = [
"Extract_Popular_Images",
"ExtractPopularImages",
"WebArchive",
"Write_Gexf",
"Write_Graphml",
"WriteGexf",
"WriteGraphml",
"compute_image_size",
"compute_md5",
"compute_sha1",
Expand Down
6 changes: 3 additions & 3 deletions src/main/python/aut/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pyspark.sql.functions import desc, first


def Extract_Popular_Images(d, limit, min_width, min_height):
def ExtractPopularImages(d, limit, min_width, min_height):
df = d.select("url", "md5")
count = df.groupBy("md5").count()

Expand All @@ -19,7 +19,7 @@ def Extract_Popular_Images(d, limit, min_width, min_height):
)


def Write_Gexf(data, gexf_path):
def WriteGexf(data, gexf_path):
ruebot marked this conversation as resolved.
Show resolved Hide resolved
output_file = open(gexf_path, "x")
end_attribute = '" />\n'
vertices = set()
Expand Down Expand Up @@ -75,7 +75,7 @@ def Write_Gexf(data, gexf_path):
return


def Write_Graphml(data, graphml_path):
def WriteGraphml(data, graphml_path):
ruebot marked this conversation as resolved.
Show resolved Hide resolved
output_file = open(graphml_path, "x")
nodes = set()

Expand Down