-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add ?censor and ?safe params #270
Open
odinhb
wants to merge
5
commits into
ngerakines:main
Choose a base branch
from
odinhb:second-try-safe-for-work
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
eab9d91
these names are never used anymore
odinhb d833c0f
add self to humans
odinhb f24e7d8
Split generator into separate python module
odinhb 826905b
holy contrast batman
odinhb 61f715b
add ?censor and ?safe params so we can use it at work
odinhb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/__pycache__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
these are the source text files from which all the commit messages | ||
are generated | ||
|
||
- put commit messages with swear words in censorable.txt, this makes | ||
them funny by using [grawlixes](https://en.wikipedia.org/wiki/Grawlix) | ||
|
||
- put other nsfw in unsafe, because they cannot be made funny and safe | ||
by using grawlixes | ||
|
||
- put safe for work messages in safe.txt. | ||
|
||
## Script for filtering of swear words | ||
|
||
This was used to create the initial list of unsafe words. | ||
|
||
```py | ||
BAD_WORDS = [ | ||
"shit", | ||
"piss", | ||
"fuck", | ||
"cunt", | ||
"cocksucker", | ||
"motherfucker", | ||
"tits", | ||
|
||
"cock", | ||
"fucker", | ||
|
||
"fart", | ||
"turd", | ||
"twat", | ||
|
||
"dicksucker", | ||
"fucking", | ||
|
||
"sex", | ||
"sexy", | ||
] | ||
|
||
safe_f = open("commit_messages/safe.txt", "w") | ||
unsafe_f = open("commit_messages/unsafe.txt", "w") | ||
|
||
with open("./commit_messages.txt") as original_f: | ||
for line in original_f: | ||
bad = False | ||
|
||
for bad_word in BAD_WORDS: | ||
if bad_word in line.lower(): | ||
bad = True | ||
|
||
if bad: | ||
unsafe_f.write(line) | ||
else: | ||
safe_f.write(line) | ||
|
||
safe_f.close() | ||
unsafe_f.close() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
"Get that shit outta my master." | ||
Code was clean until manager requested to fuck it up | ||
Derp search/replace fuckup | ||
Either Hot Shit or Total Bollocks | ||
FUCKING XUPPERNAMEX | ||
Fixed some shit | ||
Fixed the fuck out of #XNUMX! | ||
Fuck it, YOLO! | ||
Fucking egotistical bastard. adds expandtab to vimrc | ||
Fucking submodule bull shit | ||
Fucking templates. | ||
Herping the fucking derp right here and now. | ||
I don't get paid enough for this shit. | ||
I hate this fucking language. | ||
I'm too old for this shit! | ||
It fucking compiles \:D/ | ||
Merge pull request #67 from Lazersmoke/fix-andys-shit Fix andys shit | ||
My boss forced me to build this feature... Pure shit. | ||
REALLY FUCKING FIXED | ||
Revert "fuckup". | ||
SHIT ===> GOLD | ||
SOAP is a piece of shit | ||
Shit code! | ||
Some shit. | ||
WHO THE FUCK CAME UP WITH MAKE? | ||
Why The Fuck? | ||
a lot of shit | ||
clarify further the brokenness of C++. why the fuck are we using C++? | ||
fix some fucking errors | ||
fixed shit that havent been fixed in last commit | ||
fixing project shit | ||
fuckup. | ||
holy shit it's functional | ||
if you're not using et, fuck off | ||
include shit | ||
refuckulated the carbonator | ||
someday I gonna kill someone for this shit... | ||
this is how we generate our shit. | ||
I don't give a damn 'bout my reputation | ||
arrgghh... damn this thing for not working. | ||
download half the damn internet to parse a pdf | ||
fix that damn sign!!! | ||
hopefully going to get a successful build got damn it | ||
still trying to render a damn cube |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI, for the future, this can be done in one statement as:
...And then you don't need any explicit
.close()
es.(Python 3.10+ is required to surround the
open()
s with()
s, otherwise they all need to be on one line.)