This is a test parser which can automatically parse the tests in from websites like codeforces, codechef, atcoder etc.

Overview

Sublime test parser

This is a test parser which can automatically parse the tests in from websites like codeforces, codechef, atcoder etc.

  • See how it looks while working in this video.

Why did I make sublime test parser?

  1. Most sublime users use a 3 column layout (source.cpp, input.txt, output.txt) file for competitive programming.

image


  1. Their was no test parser which can generate the test cases inside input.txt itself.
  2. I wanted one :p .

Pre-requisites for running this.

  • You should have node.js installed in your computer.
  • If not, don't worry, just download node js from here.
  • Competitive companion extension in chrome : download from here.

How to run this?

  1. Download the project.
  2. Go into the file "index.js".
  3. On line number 10, change the "path" to the path of your "input.txt" file or any name of your input file.
  4. Make sure you keep the same name in line no. 28 as well i.e. if your file name is "i" , in line 28, make the first parameter of the function as path + "/i".
  5. Go into the project directory using the terminal.
  6. Run the command : " npm install " to install all the modules and dependencies of the project.
  7. Then run the command : " node index.js " to run the project.
  8. Note : Don't close the terminal. Let it run in background.

NOTE :

  • You have to add 1 extra loop in sublime to run it over all sample test cases.
  • For ex. you run your regular test cases like :
int t;
cin >> t;
while (t--) {...)
  • Now all you have to do is add 1 extra loop :
int samples = 1;
cin >> samples;
while (samples--) {
  int t;
  cin >> t;
  while (t--) {...)
}
  • That's it.
  • When you submit on any judge, just comment out the line : " cin >> samples; ".

Now just go to any problem on codeforces, atcoder, codechef etc and click on competitive companion and your inputs will be parsed! 😃

Please drop a if it helps you :) .


Raise an issue if their is any flaw.
Thank you
You might also like...

Command line tool that automatically migrates tests from protractor to playwright.

Protractor to Playwright migration tool This tool is designed to automatically migrate code from Protractor to Playwright. It is inspired by the "Migr

Nov 20, 2022

Example-browserstack-reporting - This repository contains an example of running Selenium tests and reporting BrowserStack test results, including full CI pipeline integration.

BrowserStack reporting and Selenium test result example This repository contains an example of running Selenium tests and reporting BrowserStack test

Jan 1, 2022

Jugglr is a tool for managing test data and running tests with a dedicated database running in a Docker container.

Jugglr Jugglr is a tool for managing test data and running tests with a lightweight, dedicated database. Jugglr enables developers, testers, and CI/CD

Aug 20, 2022

Twitter Text Libraries. This code is used at Twitter to tokenize and parse text to meet the expectations for what can be used on the platform.

twitter-text This repository is a collection of libraries and conformance tests to standardize parsing of Tweet text. It synchronizes development, tes

Jan 8, 2023

A Parsimmon-like, stateful parser-combinator library with TypeScript.

A Parsimmon-like, stateful parser-combinator library with TypeScript.

terrario A Parsimmon-like, stateful parser-combinator library with TypeScript. Try it out! The terrario is a parser-combinator library inspired by PEG

Dec 2, 2022

An online multiplayer IO-like game that tests your general knowledge.

An online multiplayer IO-like game that tests your general knowledge.

Source code for insort.app Insort is a game where you sort a deck of cards by some attribute. It's main components are React, Socket.io, Express and P

Dec 10, 2022

Jester is a test-generation tool to create integration test code.

Jester is a test-generation tool to create integration test code.

Code Generator for Integration Tests Introduction Welcome to Jester: An easy-to-use web application that helps you create and implement integration te

Dec 12, 2022

A MagicMirror² module which embeds multiple other websites with iframe or webview

A MagicMirror² module which embeds multiple other websites with iframe or webview

MMM-EmbedURL This is a MagicMirror² module which embeds other websites either by "iframe" (default), "webview" or a custom HTML-element to your mirror

Dec 18, 2022
Owner
Prakhar Rai
I am enthusiastic and always open to collaborate , code , help and make tools . If you want to have a chat you can dm me on linked in 😉
Prakhar Rai
Cloudflare worker function to update github bio automatically with leetcode and codeforces profile stats 🚀

Stats check ?? Cloudflare worker function to update github bio automatically with leetcode and codeforces profile stats ?? You can see it in action he

Vaibhav Chopra 2 Feb 15, 2022
This package will help parse OData strings (only the Microsoft Dataverse subset). It can be used as a validator, or you can build some javascript library which consumes the output of this library.

@albanian-xrm/dataverse-odata This package will help parse OData strings (only the Microsoft Dataverse subset). It can be used as a validator, or you

AlbanianXrm 3 Oct 22, 2022
A set of connectors to describe, parse and process the data sources provided by websites and social networks

HUDI-PACKAGE-CONNECTORS What is this repository for? A set of connectors to describe, parse and process the data sources provided by websites and soci

HUDI 8 Aug 5, 2022
Add icons to the AtCoder standings table according to ratings.

ac-rating-icon AtCoder のコンテスト順位表に、レーティングに対応したアイコンを追加するユーザースクリプトです。 アイデア元: https://twitter.com/e869120/status/1519310341024677888 灰色の細分化について 内部レート 0 以上

subaru 5 May 6, 2022
we learn the whole concept of JS including Basics like Object, Functions, Array etc. And Advance JS - Understanding DOMs, JQuery, Ajax, Prototypes etc.

JavaScript-for-Complete-Web Development. we learn the whole concept of JS including Basics like Object, Functions, Array etc. And Advance JS - Underst

prasam jain 2 Jul 22, 2022
Json-parser - A parser for json-objects without dependencies

Json Parser This is a experimental tool that I create for educational purposes, it's based in the jq works With this tool you can parse json-like stri

Gabriel Guerra 1 Jan 3, 2022
SAP Community Code Challenge: This repository contains an empty OpenUI5 application and end-to-end tests written with wdi5. Take part in the challenge and develop an app that passes the tests.

SAP Community Code Challenge - UI5 The change log describes notable changes in this package. Description This repository is the starting point for the

SAP Samples 8 Oct 24, 2022
A web component that allows you to run high level programming languages on your websites (static websites included!)

Code-Runner-Web-Component A web component that allows you to run high level programming languages on your website via the public Piston API Show your

Marketing Pipeline 28 Dec 16, 2022
Completely free TS/JS one-file source code snippets with tests, which can be copied to avoid extra dependencies (contributions welcome).

TinySource Completely free TS/JS one-file source code snippets with tests, which can be copied to avoid extra dependencies (contributions welcome). Sn

null 81 Jan 3, 2023