Coder Social home page Coder Social logo

CodeMetropolis

See your software as never before.

http://codemetropolis.github.io/CodeMetropolis/

Getting started

Setup for SourceMeter analysis

  1. Download SourceMeter from its webpage.
  2. Extract SourceMeter.
  3. Download Minecraft Java version from its webpage.
  4. Install Minecraft.
  5. Optionally you could use the Minecraft starter to change the version of Minecraft to 1.8 (the officialy supported one), but newer versions could also open CodeMetropolis generated worlds.
  6. Download the current stable releas of CodeMetropolis.
  7. Extract CodeMetropolis

Visualize source code meterics

  1. CodeMetropolis is able to visualize the static analysis results from SourceMeter. Currently Java is the most widely supported language. So to start, you have to locate a Java system, we will call this as target system.
  2. Analyze the target system with SourceMeter. You could use any settings as long as it will produce a graph file. This graph file contains all the necessary data for the CodeMetropolis.
  3. We will use the command line tools to create the visualization.
    1. Convert the data represented in the graph file into a more generic representations. Use the converter tool, with the sourcemeter conversion type option. It will produce an XML file which we call CDF file (Common Data Format)
    2. Create a mapping XML file to define the mapping between the properties of the source code items and the graphical attributes of CodeMetropolis. There is several sample files in this repository.
    3. Execute the mapping tool with the CDF file and the mapping XML to produce the first (yet incomplete) representation of the city. It will stored as an XML file we called IXML (Intermediate XML).
    4. The output of the mapping tool does not contain the placement and the size of the buildings. These data hava to be computed with the placing tool.
    5. In the final step we need to use the rendering tool to convert the final IXML file into a Minecraft world.
  4. Installing the new visualization
    1. Start and close your Minecraft client (play the game) at least once to generate the necessary folder structure.
    2. Copy the generated world into the location of your saved worlds. On Windwos it is usually located under C:\Users\<windows username>\AppData\Roaming\.minecraft\saves. You have to copy the whole folder not just its content.
    3. Start the game and select the world from the list.

Complie from source

  1. clone repository
  2. checkout develop branch
  3. install Java 22
  4. install Maven 3.8.3 or newer
  5. navigate to sources folder
  6. mvn clean package
  7. The current distribution will be aviable under source/distro.

CodeMetropolis's Projects

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.