Skip to content

Commit

Permalink
I forgot a header apparently. lol
Browse files Browse the repository at this point in the history
  • Loading branch information
unaidedelf8777 committed Oct 5, 2023
1 parent acb8dbc commit 1858ffb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 46 deletions.
8 changes: 0 additions & 8 deletions interpreter/code_interpreters/languages/applescript.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@
from ..subprocess_code_interpreter import SubprocessCodeInterpreter

class AppleScript(SubprocessCodeInterpreter):
<<<<<<< HEAD

file_extension = "applescript"
proper_name = "AppleScript"

def __init__(self, **kwargs):
super().__init__(**kwargs)

=======
file_extension = "applescript"
proper_name = "AppleScript"

def __init__(self):
super().__init__()
>>>>>>> upstream/main
self.start_cmd = os.environ.get('SHELL', '/bin/zsh')

def preprocess_code(self, code):
Expand Down
5 changes: 0 additions & 5 deletions interpreter/code_interpreters/languages/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ class HTML(BaseCodeInterpreter):
file_extension = "html"
proper_name = "HTML"

<<<<<<< HEAD
def __init__(self, **kwargs):
super().__init__(**kwargs) # include kwargs though they dont do anything in this case.
# This is just so we dont need more logic in the create interpreter function
=======
def __init__(self):
super().__init__()
>>>>>>> upstream/main

def run(self, code):
# Create a temporary HTML file with the content
Expand Down
8 changes: 0 additions & 8 deletions interpreter/code_interpreters/languages/javascript.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@
import re

class JavaScript(SubprocessCodeInterpreter):
<<<<<<< HEAD

file_extension = "js"
proper_name = "JavaScript"

def __init__(self, **kwargs):
super().__init__(**kwargs)

=======
file_extension = "js"
proper_name = "JavaScript"

def __init__(self):
super().__init__()
>>>>>>> upstream/main
self.start_cmd = "node -i"

def preprocess_code(self, code):
Expand Down
9 changes: 0 additions & 9 deletions interpreter/code_interpreters/languages/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import re

class Python(SubprocessCodeInterpreter):
<<<<<<< HEAD

file_extension = "py"
proper_name = "Python"
Expand All @@ -15,14 +14,6 @@ def __init__(self, **kwargs):
self.start_cmd = "python3 -i -q -u"
else:
self.start_cmd = sys.executable + " -i -q -u"
=======
file_extension = "py"
proper_name = "Python"

def __init__(self):
super().__init__()
self.start_cmd = sys.executable + " -i -q -u"
>>>>>>> upstream/main

def preprocess_code(self, code):
return preprocess_python(code)
Expand Down
8 changes: 0 additions & 8 deletions interpreter/code_interpreters/languages/r.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,13 @@
import re

class R(SubprocessCodeInterpreter):
<<<<<<< HEAD


file_extension = "r"
proper_name = "R"

def __init__(self, **kwargs):
super().__init__(**kwargs)
=======
file_extension = "r"
proper_name = "R"

def __init__(self):
super().__init__()
>>>>>>> upstream/main
self.start_cmd = "R -q --vanilla" # Start R in quiet and vanilla mode

def preprocess_code(self, code):
Expand Down
8 changes: 0 additions & 8 deletions interpreter/code_interpreters/languages/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@
import os

class Shell(SubprocessCodeInterpreter):
<<<<<<< HEAD

file_extension = "sh"
proper_name = "Shell"
=======
file_extension = "sh"
proper_name = "Shell"

def __init__(self):
super().__init__()
>>>>>>> upstream/main

def __init__(self, **kwargs):
super().__init__(**kwargs)
Expand Down

0 comments on commit 1858ffb

Please sign in to comment.