Skip to content

Commit

Permalink
update license (#35)
Browse files Browse the repository at this point in the history
* update license

* rename testlib
  • Loading branch information
zhangt2333 authored Nov 24, 2020
1 parent eeb7b34 commit 82b8947
Show file tree
Hide file tree
Showing 42 changed files with 2,572 additions and 1,589 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ MAINTAINER SDUOJ-dev

COPY docker/sources.list /etc/apt/sources.list
COPY docker/mavenSettings.xml /usr/share/maven/conf/settings.xml
COPY docker/testlib.h /testlib.h
COPY docker/testlib /testlib.h

RUN apt-get update \
&& apt-get install -y sudo git unzip wget libseccomp-dev libseccomp2 seccomp build-essential python3-pip python dosbox openjdk-8-jdk maven
Expand Down
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ docker run -di \
```

* Docker parms:
* `pids-limit`: the limit of process in container
* `--pids-limit`: the limit of process in container
* `--cpuset-cpus`: the settings of cpu
* `--cpu-shares`: the relative weight of cpu
* `NACOS_ADDR`: the host of Nacos
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/gpl-3.0.en.html
*/

package cn.edu.sdu.qd.oj.judger.dto;

import cn.edu.sdu.qd.oj.judger.util.NoNullFieldStringStyle;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
* @ClassName BaseDTO
* @Description TODO
* @Author zhangt2333
* @Date 2020/9/7 16:26
* @Version V1.0
**/

public class BaseDTO implements Serializable, Cloneable {
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, new NoNullFieldStringStyle());
}

@Override
public boolean equals(Object obj) {
return EqualsBuilder.reflectionEquals(this, obj, false);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this, false);
}
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/gpl-3.0.en.html
*/

package cn.edu.sdu.qd.oj.judger.dto;

import cn.edu.sdu.qd.oj.judger.util.NoNullFieldStringStyle;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
* @ClassName BaseDTO
* @Description TODO
* @Author zhangt2333
* @Date 2020/9/7 16:26
* @Version V1.0
**/

public class BaseDTO implements Serializable, Cloneable {
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, new NoNullFieldStringStyle());
}

@Override
public boolean equals(Object obj) {
return EqualsBuilder.reflectionEquals(this, obj, false);
}

@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this, false);
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
package cn.edu.sdu.qd.oj.judger.dto;

import lombok.*;

@Getter
public class CommandExecuteResult<V> extends BaseDTO {

private final V result;

public CommandExecuteResult(V result) {
this.result = result;
}
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/gpl-3.0.en.html
*/

package cn.edu.sdu.qd.oj.judger.dto;

import lombok.*;

@Getter
public class CommandExecuteResult<V> extends BaseDTO {

private final V result;

public CommandExecuteResult(V result) {
this.result = result;
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
package cn.edu.sdu.qd.oj.judger.dto;

import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserDTO extends BaseDTO {
private String username;
private String password;
}
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/gpl-3.0.en.html
*/

package cn.edu.sdu.qd.oj.judger.dto;

import lombok.*;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserDTO extends BaseDTO {
private String username;
private String password;
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
package cn.edu.sdu.qd.oj.judger.exception;

public class CompileErrorException extends Exception {
public CompileErrorException() {
super();
}

public CompileErrorException(String message, Throwable cause) {
super(message, cause);
}

public CompileErrorException(String message) {
super(message);
}

public CompileErrorException(Throwable cause) {
super(cause);
}
}
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/gpl-3.0.en.html
*/

package cn.edu.sdu.qd.oj.judger.exception;

public class CompileErrorException extends Exception {
public CompileErrorException() {
super();
}

public CompileErrorException(String message, Throwable cause) {
super(message, cause);
}

public CompileErrorException(String message) {
super(message);
}

public CompileErrorException(Throwable cause) {
super(cause);
}
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
package cn.edu.sdu.qd.oj.judger.exception;

public class SystemErrorException extends Exception {
public SystemErrorException() {
super();
}

public SystemErrorException(String message, Throwable cause) {
super(message, cause);
}

public SystemErrorException(String message) {
super(message);
}

public SystemErrorException(Throwable cause) {
super(cause);
}
}
/*
* Copyright 2020-2020 the original author or authors.
*
* Licensed under the General Public License, Version 3.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gnu.org/licenses/gpl-3.0.en.html
*/

package cn.edu.sdu.qd.oj.judger.exception;

public class SystemErrorException extends Exception {
public SystemErrorException() {
super();
}

public SystemErrorException(String message, Throwable cause) {
super(message, cause);
}

public SystemErrorException(String message) {
super(message);
}

public SystemErrorException(Throwable cause) {
super(cause);
}
}
Loading

0 comments on commit 82b8947

Please sign in to comment.