Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 22, 2023. It is now read-only.

Commit 78bc437

Browse files
chore: black applied across all files
- black applied across all files
1 parent f1095d8 commit 78bc437

File tree

55 files changed

+25
-85
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+25
-85
lines changed

‎Scripts/API/Football-Standings/main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131

3232
def print_standings(league_id):
33-
3433
league_code = league_id.get("code")
3534
resource = f"competitions/{league_code}/standings"
3635
api_url = API_URL + resource
@@ -72,7 +71,6 @@ def print_standings(league_id):
7271

7372
if __name__ == "__main__":
7473
try:
75-
7674
# If API key is not stored
7775
if API_KEY is None or API_KEY == "YOUR_KEY_HERE":
7876
print(

‎Scripts/API/GeoCode API/code.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
adrs = []
1515
parms = {}
1616
for line in fh:
17-
1817
address = line.strip()
1918
parms["address"] = address
2019
parms["key"] = api_key
@@ -26,7 +25,6 @@
2625
raise ValueError from None
2726

2827
with urllib.request.urlopen(req) as resp:
29-
3028
data = resp.read().decode()
3129

3230
try:

‎Scripts/API/Google-Py Translator/main.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def greeting():
2121

2222

2323
def custom(src, dst):
24-
2524
sent = input("\nEnter your sentence : ")
2625

2726
if src == 0:
@@ -31,7 +30,6 @@ def custom(src, dst):
3130

3231

3332
def from_file(src, dst):
34-
3533
name = input("\nEnter absolute path for file : ")
3634

3735
try:
@@ -69,7 +67,6 @@ def from_file(src, dst):
6967

7068

7169
def main():
72-
7370
prompt = """
7471
Available options :
7572
1. Custom text translation

‎Scripts/API/Random_Album_API/Random_Album_API/application.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"/v1/random-album/", view_func=RandomAlbumAPI.as_view("random-album")
1111
)
1212

13+
1314
# Exception Handler
1415
@app.errorhandler(APIException)
1516
def handle_invalid_usage(error):

‎Scripts/API/Random_Quote_Notification/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from plyer import notification
88
from apscheduler.schedulers.blocking import BlockingScheduler
99

10+
1011
# Sub-Routines
1112
def fetch(): # This gets the quote from the API and turns it into the quote to be displayed
1213
quoteSite = requests.get("http://api.quotable.io/random")

‎Scripts/API/Twitter-topic-modeling-and-sentiment-analysis/btm_model.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66

77
def categorize(tweets_list, number_of_topics=3):
8-
98
# vectorize texts
109
vec = CountVectorizer(stop_words="english")
1110
X = vec.fit_transform(tweets_list).toarray()

‎Scripts/API/Twitter-topic-modeling-and-sentiment-analysis/text_cleaning.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ def remove_stop_words(sentence):
1919

2020

2121
def clean_tweets(tweets):
22-
2322
# remove url
2423
no_url_tweets = [re.sub(r"http\S+", "", t) for t in tweets]
2524

‎Scripts/API/simple_api_requests/main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import json
44

55
app = Flask(__name__)
6+
7+
68
# GET ALL API DATA
79
# http://127.0.0.1:8000/
810
@app.route("/")

‎Scripts/Bots/DiscordBot/bot.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ async def ping(ctx):
158158
@client.event
159159
async def on_message(message):
160160
if message.content in cursewords:
161-
162161
await message.channel.purge(limit=1)
163162
await message.author.create_dm()
164163
await message.author.dm_channel.send(

‎Scripts/Bots/Slack-Bot/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
os.environ.get("SLACK_EVENTS_TOKEN"), "/slack/events", app
1212
)
1313

14+
1415
# When a 'message' event is detected by the events adapter, forward that payload
1516
# to this function.
1617
@slack_events_adapter.on("message")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /