-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/ssid_coursemology_integration
- Loading branch information
Showing
88 changed files
with
2,708 additions
and
797 deletions.
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
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 |
---|---|---|
|
@@ -40,4 +40,5 @@ | |
/node_modules | ||
/yarn-error.log | ||
yarn-debug.log* | ||
.yarn-integrity | ||
.yarn-integrity | ||
*.yml |
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,55 @@ | ||
FROM ruby:2.6.6 | ||
|
||
# install java & set path | ||
RUN apt-get update | ||
RUN apt-get -y install -y sudo | ||
|
||
RUN apt-get install -y openjdk-11-jdk | ||
RUN sudo update-alternatives --config java | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64/ | ||
RUN export JAVA_HOME | ||
RUN javac -version | ||
|
||
# install ant | ||
RUN apt update | ||
RUN apt -y install ant | ||
# RUN ant -version # Causes issues with docker build | ||
|
||
# install antlr | ||
WORKDIR /usr/local/lib | ||
RUN mkdir -p /usr/java/lib | ||
RUN wget http://www.antlr.org/download/antlr-4.8-complete.jar -P /usr/local/lib | ||
RUN echo '#!/bin/bash\njava -jar /usr/local/lib/antlr-4.8-complete.jar' > /usr/bin/antlr4 | ||
RUN chmod +x /usr/bin/antlr4 | ||
RUN echo '#!/bin/bash\njava org.antlr.v4.gui.TestRig' > /usr/bin/grun | ||
RUN chmod +x /usr/bin/grun | ||
ENV CLASSPATH .:/usr/local/lib/antlr-4.8-complete.jar:$CLASSPATH | ||
WORKDIR / | ||
|
||
# install mysql client | ||
RUN apt update | ||
RUN apt-get install default-mysql-client -y | ||
|
||
# install rails dependencies | ||
RUN apt-get clean all | ||
RUN apt-get update -qq | ||
RUN apt-get install -y build-essential libpq-dev \ | ||
curl gnupg2 apt-utils default-libmysqlclient-dev git libcurl3-dev cmake \ | ||
libssl-dev pkg-config openssl imagemagick file nodejs yarn | ||
|
||
RUN mkdir /ssid | ||
WORKDIR /ssid | ||
|
||
# Adding gems | ||
COPY Gemfile Gemfile | ||
COPY Gemfile.lock Gemfile.lock | ||
RUN gem install bundler -v 2.4.18 | ||
RUN bundle install | ||
|
||
COPY . /ssid | ||
|
||
# Add a script to be executed every time the container starts. | ||
COPY entrypoint.sh /usr/bin/ | ||
RUN chmod +x /usr/bin/entrypoint.sh | ||
ENTRYPOINT ["entrypoint.sh"] |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
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,50 @@ | ||
(function () { | ||
let SubmissionObfuscation = {}; | ||
|
||
// Retrieve the "obfuscate" parameter from the URL | ||
let urlParams = new URLSearchParams(window.location.search); | ||
window.shouldNotObfuscate = (urlParams.get('obfuscate') === 'false'); | ||
|
||
SubmissionObfuscation.maskStudentName = function () { | ||
|
||
// Check if the global flag for obfuscation is false; if so, return without obfuscating | ||
if (window.shouldNotObfuscate) { | ||
return; | ||
} | ||
|
||
// Masking inside all h4 elements with id "submission_similarities_for_students" to get the student pairings | ||
let h4Element = document.querySelector('h4[class="submission_similarities_for_students"]'); | ||
if (h4Element) { | ||
let match = h4Element.innerHTML.match(/for Students .*? and (.*?) \(\d+\.\d+%\)/); | ||
if (match && match[1] && match[1] !== '******') { | ||
let student2Name = match[1]; | ||
h4Element.innerHTML = h4Element.innerHTML.replace(new RegExp("and\\s" + student2Name, "g"), "and ******"); | ||
} | ||
} | ||
|
||
// Masking h5 elements with the class 'submission2_by_student2' | ||
let h5Elements = document.querySelectorAll('h5.submission2_by_student2'); | ||
|
||
h5Elements.forEach(h5Element => { | ||
// Adjusted regex to capture student names like Student-02 or x-v6551_q1 | ||
h5Element.innerHTML = h5Element.innerHTML.replace(/Submission by [\w-]+[_\w]*/, 'Submission by ******'); | ||
}); | ||
|
||
// Masking inside table header with class "student2_submission" in every table | ||
let tables = document.querySelectorAll('table'); | ||
tables.forEach(table => { | ||
let thirdColumnHeader = table.querySelector('th.student2_submission'); | ||
if (thirdColumnHeader) { | ||
// Adjusted regex to capture student names like Student-02 or x-v6551_q1 | ||
let match = thirdColumnHeader.innerHTML.match(/Submission by ([\w-]+[_\w]*)/); | ||
if (match && match[1] && match[1] !== '******') { | ||
thirdColumnHeader.innerHTML = thirdColumnHeader.innerHTML.replace(match[1], '******'); | ||
} | ||
} | ||
}); | ||
}; | ||
|
||
// Expose SubmissionObfuscation to the global context | ||
window.SubmissionObfuscation = SubmissionObfuscation; | ||
|
||
}).call(this); |
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
Oops, something went wrong.