Giter Site home page Giter Site logo

tableau-ization's Introduction

Tableau-ization

The purpose of this project is to transform any source code into an stylized picture.

Here's a few example of file transformed by our project:

Why ?

An advantage of this project, is to detect code plagiarism in the output pictures. Here's an example :

These are all students source code for a same exercice. Do you see, how, some of these are alike ?

How it works

So, our project take every files and folder in the Input folder and it'll transform every file in it into an image in the Output folder.

The parsing

A file is parsed in order to generated an image. We take the text and replace all non-alphanumerics character by a space. In order to avoid noise in the output file, we delete all commentaries present in the code with a generic class that can be personnalized. For now, we delete commentaries for a few different langages, the list can be found and improved here.

Now, we count the occurence of every words of the file and order them by order of apparition.

The agents

To draw the picture, we use a multi agent system. The "Particule" agent will move and put their color on the background agent. A Background agent represent a pixel of the generated picture.

The agent are placed depending of the words found in the input file. The color is determined by the Hash of the word. And the number of agent for a specified word is determined by the number of occurence of this particular word. The more a word appear, the more his vector will be large and will last longer in the generated picture.

How do I use it ?

The main can be launched in two different mode :

  • Default mode, which generate a beautiful picture of your code present in the Input file.
  • Visual mode, which does the same, but you can see how it's generated. Here's an example :

Credits

This project has been written by Lucas Delvallet and Florian Doublet.

tableau-ization's People

Contributors

floriandoublet avatar lucasdelvallet avatar

Watchers

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