Giter Site home page Giter Site logo

autocomplete's Introduction

autocomplete

Emulation of an autocomplete API. This is a terminal application that accumulates data about the navigatin of users in a website and uses it to suggest completions to strings that the user enters.

The example of data that I received was a json file that looked like this:

{
    {"event","buy"},
    {"timestamp","2016-09-22T13:57:31.2311892-04:00"}
}

which led me to think that the users of this API will be the people who are analysing the traffic in some brand website (possibly workers for that brand itself).

How to use this emulation

To interface with this API, simply input special commands or the string you want to be completed. The API will then display the completion suggestions or execute the command.

There are three special commands to use: :q to quit the application, :l to display the accumulated data and :h to display help.

To use the API, call it from from the command line and give the name of the json file you want to use as an argument. If you don't have such a file, just give it any name and it will create one with mock data.

The frile main is the executable that I compiled under Linux Mint 19, feel free to use it if it works for you.

Compilation

You will need to use the JSON for Modern C++ library by Niels Lohmann in order to compile. Just add nlohmann/json.hpp to the directory with main.cpp and autocomplete.cpp.

autocomplete's People

Contributors

fernandesmf avatar

Watchers

James Cloos avatar  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.