Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
taehunkim115 committed Feb 25, 2020
2 parents 83e18f9 + 998b813 commit dc36a1f
Show file tree
Hide file tree
Showing 33 changed files with 106 additions and 102 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/Orrick-Flashcards.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions Flashcard Generator/question_filter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import language_check
import os
# import getpass

def question_filter(questions_ls):
# Need to implement this part to do a interactive feature that takes client's password:
'''
# sudo_password = input('Input password for a sudo command: ')
# os.system('if which jenv > /dev/null; then eval "$(jenv init -)"; fi')
# need to import getpass for the following line
# sudo_password = getpass.getpass()
# command = 'sudo jenv global 1.8.0.242'
# os.system('echo %s|sudo -S %s' % (sudo_password, command))
'''
tool = language_check.LanguageTool('en-US')
for q in questions_ls:
matches = tool.check(q)
if matches != []:
questions_ls.remove(q)

return questions_ls
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
46 changes: 46 additions & 0 deletions backup_correcter/demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import language_check
import os
import getpass


def question_filter(questions_ls):

# sudo_password = input('Input password for a sudo command: ')

#os.system('if which jenv > /dev/null; then eval "$(jenv init -)"; fi')
#sudo_password = getpass.getpass()
#command = 'sudo jenv global 1.8.0.242'
#os.system('echo %s|sudo -S %s' % (sudo_password, command))

tool = language_check.LanguageTool('en-US')
for q in questions_ls:
matches = tool.check(q)
if matches != []:
questions_ls.remove(q)

return questions_ls

def main():

qls = ['What is H20?',
'Can this Java-program be written better?',
'Who teaches Java at teamtreehouse?',
'Which Countries share a border with Switzerland?',
'What is our group name?',
'Who was the 3rd president of the United States?',
'Which law school?',
'Which law school do you attend?']

q1 = ['What could not support class certification even if they were implemented?',
'Moreover, Plaintiffs injury theories could not support class certification even if they were implemented.',
'What was thus appropriately denied?',
'Class certification was thus appropriately denied.',
'Who has provided Plaintiffs ample opportunity to establish their case?',
'Since inheriting this and related cases in 2012 (when Judge James Ware retired), Judge Gonzalez Rogers has been impartial, patient and provided Plaintiffs ample opportunity to establish their case.',
'What are suspect?', "Plaintiffs' motivations in even raising the issue are suspect.", 'What did Rail Freight F.3d at?', 'Rail Freight, 725 F.3d at 253.', 'What 459?']

print(question_filter(q1))
print(question_filter(qls))

if __name__ == '__main__':
main()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
102 changes: 0 additions & 102 deletions grammar_checker/README.rst

This file was deleted.

0 comments on commit dc36a1f

Please sign in to comment.