Code Monkey home page Code Monkey logo

codeforces-data-model's Introduction

Codeforces Data Model

This project illustrates the functionalities of TypeDB and TypeQL working with the codeforces data model.
All data used in this project was generated using the Codeforces API.

How to use this repo

Ensure that you have git installed in your system.
To clone the repository, you can use the following clone command in your terminal.

git clone https://github.com/Yash-bhagwat/codeforces-data-model.git

We also need to run the typedb server. The download zip can be found here. Please download the server required for your operating system (i.e. Windows, Mac or Linux).

Next, we extract our folder and run the following command in the "...\typedb-server-{your-version}-07b.." directory.

./typedb server --server.address=localhost:1729

Once the server is up and running the 'cargo run' command can be invoked at the root of our repo.

Currently this program supports 3 types of queries to choose from which are

  1. Get names of all coders with rating >= x
  2. Get IDs of problems with a particular tag
  3. Get problem-name of problems with a particular tag with rating >= x where paramters x and tag can be supplied by the user.

How the commands were generated

The json data for the problems and the coders and the text file for the problem tags obtained from the CF Api was converted into TypeQL with the help of the dataloader.py file link here.

codeforces-data-model's People

Contributors

yash-bhagwat avatar diogwg avatar

Watchers

 avatar

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.