Skip to content

kipawa/Buggy---Linux

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buggy : V.2.3

A batch-testing sublime plug-in for CodeForces

This application is to assist a competitive-programmer in a CodeForces round. This application downloads all the sample test cases for a problem and runs a user's solution program on all these test cases so that no time is wasted on manual checking of the solution.

For now the application is for C++ users only.

The project is under constant development and the files in the repository might be unstable. It is therefore advised to download the latest release for usage. This is the link to the latest release
NOTE : Please try the Plug-in once before using it in actual contest to avoid any last minute confusions.
Make Sure you have read the Installation and Usage very very carefully.

Index

  1. New Features
  2. Requisites
  3. Installation
  4. Usage
  5. Technology Used
  6. Testing
  7. FAQ

New Features

New Features in the latest release (V.2.3) include :

  • Execution time for the tested program (which includes only the execution time and not the input time)
  • Time elapsed till the program is executed (Time is counted from the moment the test cases are fetched)
Contributed by Aditya Shankar Tripathi (kipawa)

Requisites

  • Linux (Tested on Ubuntu-14.04)
  • Internet Connection (it should be working on terminal)
  • Sublime Text-3
    • To check Sublime is installed correctly
      1. Open a terminal window.
      2. Run "subl".
      3. If Sublime opens up, everything is perfect.
  • A default browser
  • Working g++
    • To check g++ is working
      1. Open a terminal window.
      2. Run "g++".
      3. If it identifies the command, everything is perfect.

Installation

  1. Download all the files from here : V.2.3.
  2. Shift the Buggy---Linux and CF folder to ~/.config/sublime-text-3/Packages/User/
  3. Make sure proper execution permission is given to ini and shell scripts.
  4. Open sublime. GoTo "Tools -> Build System" and select CF
  5. If you see Buggy menu in the menu-bar, installation is complete
  6. Change the template code in CF/dist/template.cpp as it suits you. (Let the end-comment be there to show support :) ).

Usage

  • After the installation, you should see a new menu in the menu bar, Buggy.
  • Click on the Buggy menu and you'll be able to see all the options there.
    • If you are not able to see all the options, "Tools -> Build System" and select CF.
  • Make sure Sublime Side-Bar is visible (View -> Side Bar -> Show Side Bar).
  • To start parsing the test-cases, (Buggy -> Start).
  • For parsing the test-cases, provide the round-number you see in the url of the contest.
  • Compile the code before running it on test-cas2.es (Ctrl+B or Buggy -> Compile)
  • Copy the code before going to submit the code.
  • If you want you can change the key-bindings too.
  • If you are working behind proxy
    • Open dist/proxy.txt
    • Delete all the contents of the file and add your proxy with the following format
    • username:password@proxy:port



Technology Used

  • The application is made using Python-2.7.9 and Shell scripting
  • BeautifulSoup module is used alongwith requests in Python
  • Executables are made using cx_freeze

Testing

The program has been tested on Ubuntu14.04, 64-bit


Refer to this post for more detailed explanation of the working of the application.

For Hugs and Bugs drop a mail at asimkprasad@gmail.com

About

Batch-testing for CodeForces : Linux version

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 43.5%
  • JavaScript 39.9%
  • Python 15.1%
  • C++ 1.5%