Giter Site home page Giter Site logo

autograder's Introduction

431Project

We have the best project.

WE ARE USING RUBY VERSION: 2.2.3

response encoding

{
  status: "success/fail"
  err: "compile error: yadadada"
  results : [
    {
      title: "test case #0",
      result: "success/fail",,
      err: "runtimeError: yadadada",
      input: "test case input 0"
    },
    {
      title: "test case #1",
      result: "success/fail",
      err: "runtimeError: yadadada",
      input: "test case input 1"
    },
    ...
  ]
}

Answer to Seed Problems

IO Practice Java

import java.util.*;
public class useCode {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            System.out.print(in.next());
        }
    }
}

IO Practice Python

from __future__ import print_function
text = raw_input()
print(text)

IO Practice Bad Java

import java.util.*;
public class useCode {
    public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            System.out.print(in.next());
        }
        int count = 0;
        while (count != -1)
        {
          count++;
          count--;
        }
        System.out.println();
    }
}

autograder's People

Contributors

keithkade avatar auroratide avatar bblok avatar d-dishman avatar ardeol avatar

Stargazers

Matthew Saari avatar

Watchers

James Cloos avatar  avatar  avatar  avatar Matthew Saari avatar  avatar  avatar  avatar

autograder's Issues

Add this later

This code goes into student show view.

<h1>Submissions</h1>
<table class="table submissions">
  <thead>
    <tr>
      <th>Passed?</th>
      <th>Problem</th>
      <th>Time Submitted</th>
    </tr>
  </thead>
  <tbody>
    <% @submissions.each do |submission| %>
      <tr class="clickable-row <% if submission.status %>success<% else %>danger<% end %>" data-href="<%= admin_submission_path(submission) %>">
        <td>
          <% if submission.status %><span class="glyphicon glyphicon-ok" aria-hidden="true"></span><% else %><span class="glyphicon glyphicon-remove" aria-hidden="true"></span><% end %>
        </td>
        <td>
          <% if @problemNames.include?(submission.problemid) %>
            <%= @problemNames[submission.problemid] %>
          <% else %>
            <strong><span class="text-danger">INVALID PROBLEM</span></strong>
          <% end %>
        </td>
        <td><%= submission.timeSubmitted.strftime("%d %b, %I:%M %p") %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.