Giter VIP home page Giter VIP logo

codatlas.js's Introduction

 ______     ______     _____     ______     ______   __         ______     ______    
/\  ___\   /\  __ \   /\  __-.  /\  __ \   /\__  _\ /\ \       /\  __ \   /\  ___\   
\ \ \____  \ \ \/\ \  \ \ \/\ \ \ \  __ \  \/_/\ \/ \ \ \____  \ \  __ \  \ \___  \  
 \ \_____\  \ \_____\  \ \____-  \ \_\ \_\    \ \_\  \ \_____\  \ \_\ \_\  \/\_____\ 
  \/_____/   \/_____/   \/____/   \/_/\/_/     \/_/   \/_____/   \/_/\/_/   \/_____/ 

Codatlas understands program just as your IDE does. It's just for the Web from its very beginning. More scalable and accessible. codatlas.js provides a convenient way to combine Codatlas's powerful code analysis capability with your web applications. Just a few lines of code, you get a better and deeper understanding of you program!

Example


java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.ayst.healthkit.cq
at com.ayst.healthkit.bp.onServiceConnected(MainActivity.java:492)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1140)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1157)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)

Dependency

They are all packed with codatlas.js now. Use with caution if you extend them.

Getting started

Using codatlas service is simple, just put the following lines in your webpage, all the source code are under dist folder:

<script src="/codatlas.js"></script>
<link rel="stylesheet" href="/codatlas.css" />
<link rel="stylesheet" href="/tooltipster.css" />

One more thing you need to do is add the data-codatlas-lang attribute to the code segment you want codatlas.js to analyze. The options to data-codatlas-lang are: auto, stacktrace, more to come later. Use auto if you want codatlas.js to automatically detect the language.

For the above example, the code should be:

<pre data-codatlas-lang="stacktrace">
<code>
java.lang.ClassCastException: android.os.BinderProxy cannot be cast to com.ayst.healthkit.cq
at com.ayst.healthkit.bp.onServiceConnected(MainActivity.java:492)
at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1140)
at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1157)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)
at dalvik.system.NativeStart.main(Native Method)
</code>
</pre>

Build

To generate codatlas.js, cd to src, then type:

make gen

It will generate a file named codatlas.js under the same directory.

codatlas.js's People

Contributors

wweic avatar

Watchers

The Gitter Badger 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.