Coder Social home page Coder Social logo

vjudge-contest-analyzer's Introduction

Vjudge Contest Analyzer

Vjudge: an online tool that allows grab problems from other vritual judges like codeForces, HackerRank, etc. you can also make groups and you can make a contest between the students of this group.

This python library allows you to get useful insights from the contest while it's running or - preferably - after completion, you can also compare contests to see how the levels of the students have changed.

Requirements

python

numpy

pandas

matplotlib

bs4

lxml

for the python libraries you can easily use the command pip install -r requirements.txt.

Usage

1- open the contests (rank) webpage in which you see the submissions of all students for each problem in a very huge table.

2- scroll down if you have big number of students, check that you don't see (show more) anymore. The getter function will crash if you didn't.

3- save the HTML code of the page.

now open a new jupyter notbook or a python file. use get_contest function to save the contest into a variable. pass the HTML file to this function as a parameter.

c1 = get_contest("someHTMLfile.html")

Congratulations! you can now analyze this contest using the 4 functions:

1- verbal_stats

2- graph_submissions_per_problem

3- graph_scores_histogram

4- graph_submissions_per_hour

The usage of these functions are very similar, each one takes at least one parameter, that must be an iterable e.g., a list - you may need to compare many contests - and an optional boolean save parameter if you want to save the stats or the graph, and finally the name of this file, it will have a general name if no name is specified.

graph_scores_histogram([c1, c2], True)
graph_submissions_per_hour([myContest])
verbal_stats([c1, c2, c3, c4], True, "all verbal stats")

you can also check Test.ipynb .

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.