Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DMOJ/judge-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: haslambda/judge
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 11 commits
  • 2 files changed
  • 1 contributor

Commits on May 31, 2019

  1. Add JAVA 11

    gyusang committed May 31, 2019
    Copy the full SHA
    690b9f5 View commit details
  2. Add R Executor

    gyusang committed May 31, 2019
    Copy the full SHA
    919e092 View commit details
  3. Add R test script

    gyusang committed May 31, 2019
    Copy the full SHA
    e4d35bd View commit details
  4. Modify R runner

    gyusang committed May 31, 2019
    Copy the full SHA
    0b6d1f1 View commit details
  5. Edit R test program

    gyusang committed May 31, 2019
    Copy the full SHA
    b80641f View commit details
  6. Edit R command line args

    gyusang committed May 31, 2019
    Copy the full SHA
    9e316e8 View commit details
  7. Test Mathods

    gyusang committed May 31, 2019
    Copy the full SHA
    d161a43 View commit details
  8. Test Command

    gyusang committed May 31, 2019
    Copy the full SHA
    897ffd7 View commit details
  9. Edit Test Program

    gyusang committed May 31, 2019
    Copy the full SHA
    fd424f2 View commit details
  10. Copy the full SHA
    a08bc9e View commit details

Commits on Jun 1, 2019

  1. No R support

    gyusang committed Jun 1, 2019
    Copy the full SHA
    5131adc View commit details
Showing with 34 additions and 0 deletions.
  1. +33 −0 dmoj/executors/JAVA11.py
  2. +1 −0 dmoj/executors/base_executor.py
33 changes: 33 additions & 0 deletions dmoj/executors/JAVA11.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from dmoj.executors.java_executor import JavacExecutor


class Executor(JavacExecutor):
compiler = 'javac11'
vm = 'java11'
name = 'JAVA11'
jvm_regex = r'java-11-|openjdk11'

test_program = '''\
import java.io.IOException;
interface IORunnable {
public void run() throws IOException;
}
public class self_test {
public static void run(IORunnable target) throws IOException {
target.run();
}
public static void main(String[] args) throws IOException {
run(() -> {
var buffer = new byte[4096];
int read;
while ((read = System.in.read(buffer)) >= 0)
System.out.write(buffer, 0, read);
});
}
}'''

def get_compile_args(self):
return [self.get_compiler(), '-encoding', 'UTF-8', self._code]
1 change: 1 addition & 0 deletions dmoj/executors/base_executor.py
Original file line number Diff line number Diff line change
@@ -127,6 +127,7 @@ def run_self_test(cls, sandbox=True, output=True, error_callback=None):

res = stdout.strip() == test_message and not stderr
if output:
print("stdout : '%s'"%stdout)
# Cache the versions now, so that the handshake packet doesn't take ages to generate
cls.get_runtime_versions()
usage = '[%.3fs, %d KB]' % (proc.execution_time, proc.max_memory)